/* =========================================================
   Taalim — Tabla Classes by Tejas Joshi
   Palette: wine maroon #3A1220, brass gold #C89B3C, ivory #F1E9D8
   ========================================================= */

:root {
  --maroon: #3A1220;
  --maroon-dark: #2A0C17;
  --maroon-soft: #4E1B2C;
  --gold: #C89B3C;
  --gold-light: #E0BE6E;
  --ivory: #F1E9D8;
  --ivory-soft: #E9DFC9;
  --white: #FFFDF9;
  --ink: #241014;
  --text-on-ivory: #3A1220;
  --text-muted: #6B5A56;

  --font-head: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container-w: 1120px;
  --radius: 10px;
  --shadow-sm: 0 2px 8px rgba(58, 18, 32, 0.10);
  --shadow-md: 0 8px 28px rgba(58, 18, 32, 0.16);
  --transition: 0.2s ease;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text-on-ivory);
  background: var(--ivory);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
ul { list-style: none; margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; color: var(--maroon); margin: 0 0 0.5em; line-height: 1.15; }
p { margin: 0 0 1em; }
button { font-family: inherit; }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* Visible focus states for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--maroon);
  color: var(--ivory);
  padding: 0.75em 1.25em;
  z-index: 1000;
  border-radius: 0 0 6px 0;
}
.skip-link:focus {
  left: 0;
}

.container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 88px 0; }
@media (max-width: 640px) {
  .section { padding: 56px 0; }
}

.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.6em;
}
.eyebrow.center { text-align: center; }

.center { text-align: center; }
.section-intro {
  max-width: 640px;
  margin: 0 auto 3rem;
  color: var(--text-muted);
  font-size: 1.05rem;
}

h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.85em 1.7em;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), background var(--transition), color var(--transition), border-color var(--transition);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--gold);
  color: var(--maroon-dark);
}
.btn-primary:hover { background: var(--gold-light); }

.btn-outline {
  background: transparent;
  border-color: var(--maroon);
  color: var(--maroon);
}
.btn-outline:hover { background: var(--maroon); color: var(--ivory); }

.btn-whatsapp {
  background: #25D366;
  color: #0b2b17;
}
.btn-whatsapp:hover { background: #2fe375; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(241, 233, 216, 0.92);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid rgba(58, 18, 32, 0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand { display: flex; align-items: center; gap: 0.6em; }
.brand-logo { height: 42px; width: auto; }
.brand-fallback .brand-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--maroon);
  letter-spacing: 0.02em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2.2rem;
}
.main-nav ul {
  display: flex;
  gap: 1.8rem;
}
.main-nav a:not(.btn) {
  font-weight: 500;
  font-size: 0.98rem;
  color: var(--maroon);
  position: relative;
  padding: 4px 0;
}
.main-nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.main-nav a:not(.btn):hover::after,
.main-nav a:not(.btn):focus-visible::after {
  transform: scaleX(1);
}
.nav-whatsapp { padding: 0.6em 1.3em; font-size: 0.9rem; }

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}
.hamburger span {
  display: block;
  height: 2px;
  width: 24px;
  margin: 0 auto;
  background: var(--maroon);
  transition: transform var(--transition), opacity var(--transition);
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .main-nav {
    position: fixed;
    top: 76px;
    right: 0;
    left: 0;
    background: var(--ivory);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1.5rem 24px 2rem;
    border-bottom: 1px solid rgba(58,18,32,0.08);
    box-shadow: var(--shadow-md);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--transition), opacity var(--transition);
  }
  .main-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .main-nav ul {
    flex-direction: column;
    gap: 0;
    margin-bottom: 1.25rem;
  }
  .main-nav ul li a { display: block; padding: 0.85em 0; font-size: 1.05rem; }
  .nav-whatsapp { align-self: flex-start; }
  .hamburger { display: flex; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: radial-gradient(120% 140% at 15% 0%, var(--maroon-soft) 0%, var(--maroon) 45%, var(--maroon-dark) 100%);
  color: var(--ivory);
  padding: 120px 0 130px;
  overflow: hidden;
  isolation: isolate;
}
.hero-motif {
  position: absolute;
  top: 50%;
  right: -10%;
  width: 620px;
  height: 620px;
  max-width: 90vw;
  max-height: 90vw;
  transform: translateY(-50%);
  border-radius: 50%;
  border: 1px solid rgba(200, 155, 60, 0.35);
  z-index: -1;
}
.hero-motif::before,
.hero-motif::after {
  content: "";
  position: absolute;
  inset: 60px;
  border-radius: 50%;
  border: 1px solid rgba(200, 155, 60, 0.22);
}
.hero-motif::after { inset: 130px; border-color: rgba(200, 155, 60, 0.16); }

.hero-inner { max-width: 640px; }
.hero .eyebrow { color: var(--gold-light); }
.hero h1 {
  font-size: clamp(3rem, 8vw, 5rem);
  color: var(--ivory);
  margin-bottom: 0.15em;
}
.hero-sub {
  font-size: 1.15rem;
  color: rgba(241, 233, 216, 0.86);
  max-width: 520px;
  margin-bottom: 2.2rem;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero-ctas .btn-outline {
  border-color: var(--gold-light);
  color: var(--ivory);
}
.hero-ctas .btn-outline:hover {
  background: var(--gold-light);
  color: var(--maroon-dark);
}

@media (max-width: 640px) {
  .hero { padding: 90px 0 90px; text-align: left; }
  .hero-ctas .btn { width: 100%; }
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 4rem;
  align-items: start;
}
.about-portrait { position: relative; }
.portrait-photo {
  aspect-ratio: 4 / 5;
  width: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  position: relative;
  z-index: 1;
}
.portrait-ring {
  position: absolute;
  inset: 18px -18px -18px 18px;
  border: 1.5px solid var(--gold);
  border-radius: var(--radius);
  z-index: 0;
}

.about-copy .lede {
  font-family: var(--font-head);
  font-size: 1.3rem;
  color: var(--gold);
  font-weight: 600;
  margin-top: -0.3em;
  margin-bottom: 1em;
}

.about-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 2.2rem;
  margin-top: 2rem;
  padding-top: 1.8rem;
  border-top: 1px solid rgba(58,18,32,0.12);
}
.about-highlights li {
  display: flex;
  flex-direction: column;
  gap: 0.2em;
}
.hl-num {
  font-family: var(--font-head);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--maroon);
}
.about-highlights li span:last-child {
  font-size: 0.85rem;
  color: var(--text-muted);
}

@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-portrait { max-width: 280px; }
}

/* ---------- Services ---------- */
.services { background: var(--white); }
.service-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
  margin-top: 3rem;
}
.service-card {
  background: var(--ivory);
  border-radius: var(--radius);
  padding: 2.4rem 2rem;
  border: 1px solid rgba(58,18,32,0.08);
  transition: transform var(--transition), box-shadow var(--transition);
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.service-icon {
  font-family: var(--font-head);
  font-size: 1.8rem;
  color: var(--gold);
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gold);
  border-radius: 50%;
  margin-bottom: 1.2rem;
}
.service-meta {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--maroon);
  margin-bottom: 1rem;
}
.service-list { margin-top: 1.2rem; display: flex; flex-direction: column; gap: 0.6em; }
.service-list li {
  padding-left: 1.4em;
  position: relative;
  font-size: 0.95rem;
  color: var(--text-muted);
}
.service-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

.exam-note {
  margin-top: 2.5rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--maroon);
  color: var(--ivory);
  border-radius: var(--radius);
  padding: 1.6rem 1.8rem;
}
.exam-note-icon {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--maroon-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}
.exam-note p { margin: 0; color: rgba(241,233,216,0.92); }
.exam-note strong { color: var(--gold-light); }

@media (max-width: 720px) {
  .service-cards { grid-template-columns: 1fr; }
  .exam-note { flex-direction: column; }
}

/* ---------- YouTube ---------- */
.youtube {
  background: radial-gradient(120% 140% at 85% 0%, var(--maroon-soft) 0%, var(--maroon) 45%, var(--maroon-dark) 100%);
  color: var(--ivory);
}
.youtube .eyebrow { color: var(--gold-light); }
.youtube h2 { color: var(--ivory); }
.youtube .section-intro { color: rgba(241, 233, 216, 0.86); }

.youtube-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1.4rem;
  margin-top: 2.5rem;
}
.youtube-card {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(200, 155, 60, 0.35);
  box-shadow: var(--shadow-md);
  background: var(--maroon-dark);
}
.youtube-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  background: var(--maroon-dark);
}
.youtube-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, opacity 0.4s ease;
}
.youtube-thumb:hover img { transform: scale(1.05); opacity: 0.85; }
.youtube-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(58, 18, 32, 0.88);
  color: var(--ivory);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  padding-left: 4px;
  transition: background var(--transition), transform var(--transition);
}
.youtube-thumb:hover .youtube-play {
  background: var(--maroon);
  transform: translate(-50%, -50%) scale(1.08);
}
.youtube-card iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.youtube-cta {
  display: flex;
  justify-content: center;
  margin-top: 2.8rem;
}

@media (max-width: 480px) {
  .youtube-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Location ---------- */
.location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.address-block {
  font-style: normal;
  font-size: 1.02rem;
  color: var(--text-muted);
  margin: 1.2rem 0 1.8rem;
  padding: 1rem 1.2rem;
  border-left: 3px solid var(--gold);
  background: var(--white);
  border-radius: 0 6px 6px 0;
}
.map-placeholder {
  aspect-ratio: 4 / 3;
  background: var(--ivory-soft);
  border: 1.5px dashed rgba(58,18,32,0.35);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}
/* When a real <iframe> replaces .map-placeholder, this keeps it responsive: */
.location-map iframe {
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 0;
  border-radius: var(--radius);
}

@media (max-width: 860px) {
  .location-grid { grid-template-columns: 1fr; }
}

/* ---------- Contact ---------- */
.contact { background: var(--white); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3.5rem;
}
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 1.8rem 0;
}
.contact-details li {
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
  font-size: 1.02rem;
}
.cd-label {
  font-weight: 600;
  color: var(--maroon);
  min-width: 88px;
}
.contact-details a:hover { color: var(--gold); }

.social-links { display: flex; gap: 1.4rem; }
.social-links a {
  font-weight: 600;
  color: var(--maroon);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
}
.social-links a:hover { color: var(--gold); }

.contact-form-wrap {
  background: var(--ivory);
  border-radius: var(--radius);
  padding: 2.2rem;
  border: 1px solid rgba(58,18,32,0.08);
}
.form-row { margin-bottom: 1.2rem; }
.form-row label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.4em;
  color: var(--maroon);
}
.form-row input,
.form-row textarea {
  width: 100%;
  padding: 0.75em 0.9em;
  border-radius: 6px;
  border: 1.5px solid rgba(58,18,32,0.2);
  background: var(--white);
  font-family: inherit;
  font-size: 0.98rem;
  color: var(--text-on-ivory);
  resize: vertical;
}
.form-row input:focus,
.form-row textarea:focus {
  border-color: var(--gold);
}
.form-submit { width: 100%; margin-top: 0.4rem; }
.form-note {
  margin-top: 0.9rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--maroon-dark);
  color: rgba(241,233,216,0.7);
  padding: 2.6rem 0;
  text-align: center;
}
.footer-brand {
  font-family: var(--font-head);
  font-size: 1.2rem;
  color: var(--ivory);
  margin-bottom: 0.3em;
}
.footer-meta { font-size: 0.88rem; margin-bottom: 0.6em; }
.footer-copyright { font-size: 0.8rem; margin: 0; }

/* ---------- Floating WhatsApp button ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  z-index: 600;
  transition: transform var(--transition);
}
.whatsapp-float:hover { transform: scale(1.08); }

@media (max-width: 480px) {
  .whatsapp-float { bottom: 16px; right: 16px; width: 52px; height: 52px; }
}
