:root {
  --bg: #f5efe3;
  --bg-soft: #fbf7ef;
  --surface: rgba(255, 250, 241, 0.78);
  --surface-strong: rgba(255, 248, 235, 0.96);
  --surface-border: rgba(109, 67, 24, 0.14);
  --text: #2a1d12;
  --muted: #6e5843;
  --accent: #8f2d1f;
  --accent-soft: #d97444;
  --accent-gold: #c48a2b;
  --leaf: #48674a;
  --shadow: 0 22px 55px rgba(63, 35, 11, 0.12);
  --radius-xl: 32px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Avenir Next", "Noto Sans Tamil", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(201, 138, 50, 0.22), transparent 30%),
    radial-gradient(circle at top right, rgba(143, 45, 31, 0.12), transparent 26%),
    linear-gradient(180deg, #f6f0e5 0%, #f3ecdf 45%, #efe5d5 100%);
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 12% 16%, rgba(196, 138, 43, 0.12) 0 2px, transparent 2px),
    radial-gradient(circle at 88% 12%, rgba(72, 103, 74, 0.1) 0 2px, transparent 2px),
    radial-gradient(circle at 78% 84%, rgba(143, 45, 31, 0.08) 0 2px, transparent 2px);
  background-size: 180px 180px, 220px 220px, 260px 260px;
  opacity: 0.75;
}

img {
  display: block;
  max-width: 100%;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

.page-shell {
  width: min(var(--max-width), calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(18px);
  background: rgba(246, 240, 229, 0.72);
  border-bottom: 1px solid rgba(109, 67, 24, 0.08);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 78px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand-logo {
  width: 50px;
  height: 50px;
  object-fit: contain;
  border-radius: 18px;
  flex: 0 0 auto;
  filter: drop-shadow(0 12px 20px rgba(143, 45, 31, 0.18));
}


.brand-copy strong,
.footer-brand strong {
  display: block;
  font-family: "Tamil MN", "Noto Serif Tamil", Georgia, serif;
  font-size: 1.2rem;
  letter-spacing: 0.02em;
}

.brand-copy span,
.footer-brand span,
.eyebrow,
.kicker {
  color: var(--muted);
  font-size: 0.95rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.nav-links a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: rgba(143, 45, 31, 0.08);
}

.hero {
  padding: 56px 0 32px;
}

.hero-grid,
.feature-grid,
.about-grid,
.contact-grid,
.footer-grid,
.story-grid,
.privacy-grid {
  display: grid;
  gap: 28px;
}

.hero-grid {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
}

.hero-copy,
.card,
.page-card,
.contact-card,
.privacy-card,
.feature-card,
.highlight-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.hero-copy {
  border-radius: var(--radius-xl);
  padding: 40px;
}

.eyebrow,
.section-label {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.75rem;
  font-weight: 700;
}

.hero-copy h1,
.page-hero h1 {
  margin: 14px 0 16px;
  font-family: "Tamil MN", "Noto Serif Tamil", Georgia, serif;
  font-weight: 700;
  line-height: 1.05;
}

.hero-copy h1 {
  font-size: clamp(2.8rem, 5.2vw, 5.2rem);
}

.page-hero h1 {
  font-size: clamp(2.4rem, 4.4vw, 4.4rem);
}

.hero-copy p,
.page-hero p,
.card p,
.feature-card p,
.privacy-card p,
.contact-card p,
.page-card p,
.story-card p {
  color: var(--muted);
  line-height: 1.75;
  font-size: 1.03rem;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.button,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.button {
  background: linear-gradient(135deg, var(--accent), var(--accent-soft));
  color: #fff8f0;
  box-shadow: 0 14px 28px rgba(143, 45, 31, 0.24);
}

.button-secondary {
  background: rgba(255, 249, 240, 0.86);
  border: 1px solid rgba(109, 67, 24, 0.12);
  color: var(--text);
}

.button:hover,
.button-secondary:hover,
.nav-links a:hover {
  transform: translateY(-1px);
}

.hero-visual {
  position: relative;
}

.phone-frame {
  position: relative;
  padding: 18px;
  border-radius: 38px;
  background: linear-gradient(180deg, rgba(98, 55, 20, 0.2), rgba(255,255,255,0.4));
  border: 1px solid rgba(109, 67, 24, 0.14);
  box-shadow: var(--shadow);
}

.phone-frame::before {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,0.28);
  pointer-events: none;
}

.phone-frame img {
  border-radius: 26px;
}

.floating-note {
  position: absolute;
  max-width: 220px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 248, 239, 0.88);
  border: 1px solid rgba(109, 67, 24, 0.12);
  box-shadow: var(--shadow);
}

.floating-note.top {
  top: -18px;
  right: -8px;
}

.floating-note.bottom {
  left: -12px;
  bottom: 18px;
}

main section {
  padding: 42px 0;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 24px;
}

.section-heading h2,
.section-heading h3,
.story-card h2,
.page-card h2,
.contact-card h2,
.privacy-card h2 {
  margin: 10px 0 12px;
  font-family: "Tamil MN", "Noto Serif Tamil", Georgia, serif;
  line-height: 1.15;
}

.section-heading h2 {
  font-size: clamp(2rem, 3.3vw, 3rem);
}

.feature-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feature-card,
.highlight-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.feature-card img,
.highlight-card img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.feature-content,
.highlight-content {
  padding: 22px;
}

.feature-content h3,
.highlight-content h3 {
  margin: 0 0 10px;
  font-size: 1.35rem;
  font-family: "Tamil MN", "Noto Serif Tamil", Georgia, serif;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.stat {
  padding: 22px;
  border-radius: var(--radius-md);
  background: rgba(255, 248, 235, 0.76);
  border: 1px solid rgba(109, 67, 24, 0.12);
}

.stat strong {
  display: block;
  font-family: "Tamil MN", "Noto Serif Tamil", Georgia, serif;
  font-size: 2rem;
  margin-bottom: 8px;
}

.testimonial,
.page-card,
.contact-card,
.privacy-card,
.story-card {
  border-radius: var(--radius-xl);
  padding: 30px;
}

.story-grid,
.about-grid,
.contact-grid,
.privacy-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.story-card,
.page-card,
.contact-card,
.privacy-card {
  background: var(--surface-strong);
  border: 1px solid var(--surface-border);
  box-shadow: var(--shadow);
}

.list {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.list li {
  position: relative;
  padding-left: 22px;
  color: var(--muted);
  line-height: 1.65;
}

.list li::before {
  content: "✦";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent-gold);
}

.page-hero {
  padding: 64px 0 24px;
}

.page-hero-card {
  border-radius: 36px;
  padding: 38px;
  background: linear-gradient(135deg, rgba(255, 247, 235, 0.96), rgba(248, 240, 226, 0.84));
  border: 1px solid rgba(109, 67, 24, 0.12);
  box-shadow: var(--shadow);
}

.page-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.page-meta span {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(143, 45, 31, 0.08);
  color: var(--muted);
}

.site-footer {
  padding: 36px 0 56px;
}

.footer-grid {
  grid-template-columns: 1.2fr 0.8fr;
  align-items: end;
  padding-top: 26px;
  border-top: 1px solid rgba(109, 67, 24, 0.12);
}

.footer-links {
  display: flex;
  gap: 12px 18px;
  flex-wrap: wrap;
  justify-content: flex-end;
  color: var(--muted);
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 960px) {
  .hero-grid,
  .feature-grid,
  .about-grid,
  .contact-grid,
  .footer-grid,
  .story-grid,
  .privacy-grid,
  .stat-row {
    grid-template-columns: 1fr;
  }

  .floating-note.top,
  .floating-note.bottom {
    position: static;
    margin-top: 16px;
    max-width: none;
  }

  .hero-copy,
  .page-hero-card,
  .story-card,
  .page-card,
  .contact-card,
  .privacy-card {
    padding: 28px;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(calc(100% - 20px), var(--max-width));
  }

  .nav-bar {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 0;
  }

  .nav-links {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
  }

  .hero {
    padding-top: 34px;
  }

  .hero-copy h1,
  .page-hero h1 {
    line-height: 1.08;
  }

  .hero-actions,
  .page-meta {
    flex-direction: column;
    align-items: stretch;
  }
}
