/* ====================================
   Coach Tejaswi Website - Shared Styles
   ==================================== */

/* CSS Variables */
:root {
  --bg: #f7f3ee;
  --card: #ffffff;
  --accent: #b98b4a;
  --accent-hover: #9f7638;
  --text: #111;
  --muted: #6b6b6b;
  --border: #e7ddd0;
  --radius: 12px;
  --container: 1100px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 6px 18px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 12px 30px rgba(14, 14, 14, 0.12);
  --shadow-xl: 0 18px 48px rgba(10, 10, 10, 0.18);
  --transition: 0.3s ease;
}

/* Reset & Base Styles */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  height: 100%;
  margin: 0;
}

body {
  font-family: 'Inter', system-ui, 'Segoe UI', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

img {
  max-width: 100%;
  height: auto;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Playfair Display', serif;
  line-height: 1.2;
  margin: 0;
}

/* Layout */
.wrap {
  max-width: var(--container);
  margin: 28px auto;
  padding: 20px;
}

.site-wrap {
  max-width: var(--container);
  margin: 36px auto;
  padding: 28px;
}

/* Header / Navigation */
.site-header {
  width: 100%;
  background: var(--bg);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 50;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.site-header.scrolled {
  background: rgba(247, 243, 238, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
  transition: transform var(--transition);
}

.brand:hover {
  transform: translateY(-2px);
}

.logo {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: linear-gradient(135deg, #f1e6da, #f7f3ee);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--accent);
  box-shadow: var(--shadow-md);
  transition: box-shadow var(--transition), transform var(--transition);
}

.brand:hover .logo {
  box-shadow: var(--shadow-lg);
  transform: scale(1.05);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text .name {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 700;
}

.brand-text .tagline {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.main-nav ul {
  display: flex;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.main-nav a {
  text-decoration: none;
  color: #333;
  font-weight: 600;
  position: relative;
  padding: 8px 10px;
  border-radius: 8px;
  transition: color var(--transition), background-color var(--transition);
}

.main-nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0%;
  height: 2px;
  background: var(--accent);
  transition: width var(--transition);
}

.main-nav a:hover {
  color: var(--accent);
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 80%;
}

.main-nav a.active {
  color: var(--accent);
}

.main-nav a.primary {
  background: var(--accent);
  color: #fff !important;
  padding: 8px 16px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(185, 139, 74, 0.2);
  margin-left: 8px;
}

.main-nav a.primary::after {
  display: none;
}

.main-nav a.primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(185, 139, 74, 0.18);
  color: #fff;
}

/* Buttons */
.btn {
  background: var(--accent);
  color: #fff;
  padding: 10px 16px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  box-shadow: 0 6px 18px rgba(185, 139, 74, 0.18);
  transition: all var(--transition);
  cursor: pointer;
  border: none;
  font-family: inherit;
  font-size: inherit;
}

.btn:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(185, 139, 74, 0.24);
}

.btn:active {
  transform: translateY(0);
}

.btn.ghost,
.btn.secondary {
  background: transparent;
  color: #333;
  border: 1px solid var(--border);
  padding: 9px 14px;
  box-shadow: none;
}

.btn.ghost:hover,
.btn.secondary:hover {
  background: var(--card);
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Footer */
footer {
  margin-top: 60px;
  padding: 28px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}

footer small {
  color: var(--muted);
}

footer a {
  color: var(--muted);
  text-decoration: underline;
  transition: color var(--transition);
}

footer a:hover {
  color: var(--accent);
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(6, 6, 6, 0.5);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  animation: fadeIn 0.3s ease;
}

.modal-backdrop.active {
  display: flex;
}

.modal {
  background: #fff;
  padding: 28px;
  border-radius: var(--radius);
  max-width: 520px;
  width: 92%;
  box-shadow: var(--shadow-xl);
  animation: slideUp 0.3s ease;
}

.modal h3 {
  margin: 0 0 10px;
  font-family: 'Playfair Display', serif;
  font-size: 24px;
}

.modal p {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 18px;
}

.modal form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.modal input[type="email"],
.modal input[type="text"],
.modal textarea {
  flex: 1;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.modal input:focus,
.modal textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(185, 139, 74, 0.1);
}

.modal button[type="submit"] {
  padding: 12px 18px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}

.modal button[type="submit"]:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}

/* Utility Classes */
.muted {
  color: var(--muted);
  font-size: 14px;
}

.muted-link {
  color: var(--muted);
  text-decoration: underline;
  font-size: 14px;
}

.text-center {
  text-align: center;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease;
}

.fade-in-up {
  animation: fadeInUp 0.8s ease;
}

/* Scroll to top button */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition);
  z-index: 50;
  font-size: 20px;
}

.scroll-to-top.visible {
  display: flex;
}

.scroll-to-top:hover {
  background: var(--accent-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-container {
    padding: 0 16px;
  }

  .main-nav ul {
    gap: 16px;
  }

  .main-nav a {
    font-size: 14px;
    padding: 6px 8px;
  }

  .brand-text .tagline {
    display: none;
  }

  .logo {
    width: 40px;
    height: 40px;
  }

  .wrap,
  .site-wrap {
    padding: 16px;
  }

  footer {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .main-nav ul {
    gap: 8px;
  }

  .main-nav a {
    font-size: 13px;
    padding: 6px;
  }

  .btn {
    padding: 8px 12px;
    font-size: 14px;
  }
}