/* ============================================
   Maa Kalyani Group — tokens
   ============================================ */
:root {
  --crimson: #A91B22;
  --crimson-dark: #7D141A;
  --navy: #1A237E;
  --navy-dark: #10164F;
  --gold: #D4AF37;
  --gold-light: #E8CE7D;

  --paper: #FBF8F2;
  --paper-dim: #F1EBDD;
  --ink: #211A14;
  --ink-soft: #55493C;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --max-width: 1140px;
  --radius: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--navy-dark);
  margin: 0 0 0.5em;
  line-height: 1.15;
  font-weight: 600;
}

p { margin: 0 0 1em; color: var(--ink-soft); }

a { color: inherit; text-decoration: none; }

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

.section-kicker {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--crimson);
  margin-bottom: 0.6em;
}
.section-kicker--center { text-align: center; }
.section-title--center { text-align: center; }

/* ============================================
   Header
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: transparent;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
.site-header.is-scrolled {
  background: var(--paper);
  box-shadow: 0 2px 14px rgba(33, 26, 20, 0.08);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-logo {
  height: 46px;
  width: auto;
  display: block;
}
.brand-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--navy-dark);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--paper-dim);
  color: var(--navy-dark);
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}
.nav-social svg { fill: currentColor; }
.nav-social:hover, .nav-social:focus-visible {
  background: var(--crimson);
  color: var(--paper);
  transform: translateY(-1px);
}
.site-nav a {
  font-size: 0.95rem;
  color: var(--ink);
  position: relative;
  padding-bottom: 4px;
}
.site-nav a:not(.nav-social)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--crimson);
  transition: width 0.25s ease;
}
.site-nav a:hover::after,
.site-nav a:focus-visible::after { width: 100%; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--navy-dark);
  display: block;
}

/* ============================================
   Hero
   ============================================ */
.hero {
  padding: 64px 0 96px;
  overflow: hidden;
}
.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 40px;
}

.hero-kicker {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--crimson);
  font-size: 1.05rem;
  margin-bottom: 0.5em;
}

.hero-title {
  font-size: clamp(2.2rem, 4.4vw, 3.4rem);
  margin-bottom: 0.5em;
}
.hero-title .line {
  display: block;
  opacity: 0;
  transform: translateY(14px);
  animation: hero-line-in 0.7s ease forwards;
}
.hero-title .line:nth-child(1) { animation-delay: 0.05s; }
.hero-title .line:nth-child(2) { animation-delay: 0.22s; }
.hero-title .line:nth-child(3) { animation-delay: 0.39s; }

@keyframes hero-line-in {
  to { opacity: 1; transform: translateY(0); }
}

.hero-sub {
  max-width: 46ch;
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 1.4em;
}

.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}
.btn-primary {
  background: var(--crimson);
  color: var(--paper);
}
.btn-primary:hover, .btn-primary:focus-visible {
  background: var(--crimson-dark);
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: var(--navy-dark);
  border-color: var(--navy-dark);
}
.btn-ghost:hover, .btn-ghost:focus-visible {
  background: var(--navy-dark);
  color: var(--paper);
}
.btn-block { width: 100%; text-align: center; }
.btn:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.hero-art { display: flex; justify-content: center; }
.motif { width: 100%; max-width: 400px; height: auto; }
.motif-ring { fill: none; stroke: var(--gold); stroke-width: 1; }
.motif-ring--inner { stroke: var(--navy); stroke-dasharray: 2 6; }
.motif-rays line { stroke: var(--gold); stroke-width: 1.5; }
.motif-glyph { fill: var(--crimson); stroke: var(--crimson); }
.motif-glyph:nth-of-type(2) { fill: var(--navy); stroke: var(--navy); }
.motif-glyph:nth-of-type(3) { fill: none; stroke: var(--gold); stroke-width: 2.5; }

/* ============================================
   About
   ============================================ */
.about {
  background: var(--paper-dim);
  padding: 88px 0;
}
.about-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 56px;
}
.about-copy h2 { font-size: 2rem; }

.about-stats {
  display: flex;
  flex-direction: column;
  gap: 26px;
  border-left: 1px solid var(--gold);
  padding-left: 32px;
}
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat-num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--crimson);
  line-height: 1;
}
.stat-label { color: var(--ink-soft); font-size: 0.95rem; }

/* ============================================
   Operations — triptych
   ============================================ */
.operations { padding: 96px 0; }
.operations h2 { font-size: 2.1rem; margin-bottom: 1em; }

.triptych {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--paper-dim);
}
.panel {
  padding: 40px 32px;
  border-right: 1px solid var(--paper-dim);
  border-bottom: 3px solid transparent;
  transition: border-bottom-color 0.25s ease, background-color 0.25s ease;
}
.panel:last-child { border-right: none; }
.panel:hover { background: var(--paper-dim); }
.panel--crimson:hover { border-bottom-color: var(--crimson); }
.panel--navy:hover { border-bottom-color: var(--navy); }
.panel--gold:hover { border-bottom-color: var(--gold); }

.panel-icon svg { width: 40px; height: 40px; }
.panel--crimson .panel-icon svg { fill: var(--crimson); }
.panel--navy .panel-icon svg { fill: var(--navy); stroke: var(--navy); }
.panel--gold .panel-icon svg { fill: none; stroke: var(--gold); stroke-width: 2.5; }

.panel h3 { font-size: 1.4rem; margin-top: 20px; margin-bottom: 0.2em; }
.panel-tag {
  font-size: 0.85rem;
  color: var(--ink-soft);
  font-style: italic;
  margin-bottom: 1em;
}
.panel-link {
  display: inline-block;
  margin-top: 0.4em;
  font-weight: 600;
  font-size: 0.92rem;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}
.panel--crimson .panel-link { color: var(--crimson); }
.panel--navy .panel-link { color: var(--navy); }
.panel--gold .panel-link { color: #8a6d1f; }

/* ============================================
   Contact
   ============================================ */
.contact {
  background: var(--navy-dark);
  color: var(--paper);
  padding: 96px 0;
}
.contact h2 { color: var(--paper); font-size: 2rem; }
.contact .section-kicker { color: var(--gold-light); }
.contact-lead { color: #C9CBE6; max-width: 42ch; }

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
}

.contact-details { margin-top: 2em; }
.contact-details div { margin-bottom: 1.2em; }
.contact-details dt {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold-light);
  margin-bottom: 2px;
}
.contact-details dd { margin: 0; color: var(--paper); }
.contact-fb-link {
  border-bottom: 1px solid rgba(251, 248, 242, 0.4);
  padding-bottom: 1px;
}
.contact-fb-link:hover { border-bottom-color: var(--gold); color: var(--gold-light); }

.map-wrap {
  position: relative;
  margin-top: 28px;
  padding-top: 66%;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.35);
}
.map-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.contact-form { display: flex; flex-direction: column; gap: 26px; }

.field { position: relative; }
.field input,
.field textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(251, 248, 242, 0.35);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 10px 2px 8px;
  resize: vertical;
}
.field textarea { min-height: 90px; }
.field label {
  position: absolute;
  left: 2px;
  top: 10px;
  color: rgba(251, 248, 242, 0.6);
  font-size: 1rem;
  transition: transform 0.18s ease, font-size 0.18s ease, color 0.18s ease;
  pointer-events: none;
  transform-origin: left top;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--gold);
}
.field input:focus + label,
.field textarea:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:not(:placeholder-shown) + label {
  transform: translateY(-20px) scale(0.82);
  color: var(--gold-light);
}

.form-note {
  min-height: 1.2em;
  font-size: 0.9rem;
  color: var(--gold-light);
  margin: 0;
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
  background: var(--ink);
  color: rgba(251, 248, 242, 0.75);
  padding-top: 64px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.3);
}
.footer-logo-plate {
  display: inline-flex;
  background: var(--paper);
  padding: 8px 10px;
  border-radius: var(--radius);
}
.footer-logo { height: 40px; width: auto; display: block; }
.footer-brand p { color: rgba(251, 248, 242, 0.6); margin-top: 14px; max-width: 32ch; }
.footer-social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  color: var(--gold-light);
  font-size: 0.9rem;
  fill: var(--gold-light);
}
.footer-social:hover { color: var(--paper); fill: var(--paper); }

.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links h4 {
  font-family: var(--font-body);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold-light);
  margin-bottom: 6px;
}
.footer-links a, .footer-links span { color: rgba(251, 248, 242, 0.75); font-size: 0.95rem; }
.footer-links a:hover { color: var(--gold-light); }

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 22px 32px 32px;
  font-size: 0.85rem;
  color: rgba(251, 248, 242, 0.5);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 240px; margin: 0 auto; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-stats { border-left: none; border-top: 1px solid var(--gold); padding-left: 0; padding-top: 24px; }
  .triptych { grid-template-columns: 1fr; }
  .panel { border-right: none; border-bottom: 1px solid var(--paper-dim); }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    flex-direction: column;
    padding: 18px 32px;
    gap: 18px;
    box-shadow: 0 8px 16px rgba(33,26,20,0.08);
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .nav-toggle { display: flex; }
}
