/* =========================================================
   THILLAI THIRUMANA THAGAVAL MAIYAM - style.css
   ========================================================= */

/* ---------- 1. VARIABLES (colours, fonts, IMAGES) ---------- */
:root {
  --maroon: #650D24;
  --burgundy: #7B172E;
  --gold: #C89B45;
  --ivory: #FFF8EA;
  --cream: #F6E9D1;
  --text: #30231F;
  --whatsapp: #16834A;

  --font-tamil: "Noto Sans Tamil", sans-serif;
  --font-head: "Cormorant Garamond", Georgia, serif;
  --font-body: "Lato", "Noto Sans Tamil", sans-serif;

  /* >>> REPLACE THESE TWO IMAGE URLS (e.g. from Unsplash or Pexels) <<<
     Example: --img-hero: url("https://images.unsplash.com/your-photo?w=1400");
     Until you add one, a warm gradient is shown instead. */
--img-hero: url("pexels-ramkrishnaiyengar-22890480.jpg");
--img-about: url("pexels-sagar-ambator-2160561897-36814772.jpg");

  --header-h: 88px;
}

/* ---------- 2. BASE ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0; color: var(--text); background: var(--ivory);
  font-family: var(--font-body); line-height: 1.7; overflow-x: hidden;
}
h1, h2, h3, p, ul, blockquote { margin: 0; padding: 0; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; }
svg { display: block; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.container { width: min(1180px, 92%); margin-inline: auto; }

/* ---------- 3. REUSABLE: buttons, headings ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px; padding: .6rem 1.7rem; border-radius: 999px;
  font: 700 .95rem var(--font-body); border: 1.5px solid transparent;
  cursor: pointer; transition: background .2s, color .2s, border-color .2s;
}
.btn .icon { width: 20px; height: 20px; }
.btn-primary { background: var(--maroon); color: #fff; }
.btn-primary:hover { background: var(--burgundy); }
.btn-outline { border-color: var(--maroon); color: var(--maroon); background: transparent; }
.btn-outline:hover { background: var(--maroon); color: #fff; }
.btn-whatsapp { background: var(--whatsapp); color: #fff; border-color: var(--gold); }
.btn-whatsapp:hover { background: #0f6b3b; }
.btn-small { min-height: 42px; padding: .4rem 1.3rem; font-size: .9rem; }

.section { padding: 3.5rem 0 4rem; }
.section-ivory { background: var(--ivory); }
.section-head { text-align: center; margin-bottom: 2.5rem; }
.eyebrow { color: var(--gold); font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 700; }
h2 { font-family: var(--font-tamil); font-weight: 700; color: var(--maroon); font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.4; }
h3 { font-family: var(--font-tamil); font-weight: 700; color: var(--maroon); font-size: 1.05rem; line-height: 1.5; }
.ornament { display: block; width: 160px; height: 10px; margin: .6rem auto 0; position: relative; }
.ornament::before { content: ""; position: absolute; top: 50%; left: 0; right: 0; border-top: 1px solid var(--gold); }
.ornament::after { content: ""; position: absolute; top: 50%; left: 50%; width: 9px; height: 9px; background: var(--ivory); border: 1.5px solid var(--gold); transform: translate(-50%, -50%) rotate(45deg); }
.icon-circle { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: var(--maroon); color: #fff; border: 2px solid var(--gold); outline: 2px solid var(--maroon); outline-offset: -5px; }
.icon-circle svg { width: 30px; height: 30px; }

/* decorative jasmine flowers (CSS-positioned SVG) */
.flower { position: absolute; z-index: 1; pointer-events: none; }
.flower svg { width: 100%; height: 100%; }

/* ---------- 4. HEADER ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--maroon); color: #fff; border-bottom: 2px solid var(--gold); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 1rem; }
.brand { display: flex; align-items: center; gap: .8rem; }
.brand-logo { width: 52px; height: 62px; color: var(--gold); flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-family: var(--font-head); font-size: 1.9rem; letter-spacing: .12em; color: var(--cream); }
.brand-tamil { font-family: var(--font-tamil); font-weight: 700; font-size: 1rem; }
.brand-sub { font-size: .62rem; letter-spacing: .08em; color: var(--cream); }
.main-nav { display: flex; align-items: center; gap: 2rem; }
.main-nav ul { display: flex; gap: 1.8rem; }
.main-nav li a { font-size: .9rem; padding: .4rem 0; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s; }
.main-nav li a:hover, .main-nav li a.active { color: var(--gold); border-color: var(--gold); }
.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.nav-burger { display: none; width: 46px; height: 46px; padding: 12px 10px; cursor: pointer; flex-direction: column; justify-content: space-between; border: 1px solid var(--gold); border-radius: 6px; }
.nav-burger span { height: 2px; background: var(--cream); display: block; }
.nav-toggle:focus-visible + .nav-burger { outline: 3px solid var(--gold); }

/* ---------- 5. HERO ---------- */
.hero { display: grid; grid-template-columns: 1fr 1fr; min-height: 380px; background: var(--cream); }
.hero-content { position: relative; padding: 3rem 2rem 3rem max(4%, calc((100vw - 1180px) / 2)); display: flex; flex-direction: column; justify-content: center; gap: 1.1rem; background: linear-gradient(90deg, var(--cream) 85%, #fbf1dd); overflow: hidden; }
.hero-content > * { position: relative; z-index: 2; }
.tagline { color: var(--gold); letter-spacing: .15em; font-size: .85rem; font-weight: 700; }
.hero h1 { font-family: var(--font-tamil); font-weight: 700; color: var(--maroon); font-size: clamp(1.7rem, 3.2vw, 2.4rem); line-height: 1.35; }
.hero-text { font-family: var(--font-tamil); max-width: 30rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: .4rem; }
.hero-image { background: var(--img-hero) center / cover no-repeat; min-height: 300px; }
.f1 { width: 90px; height: 90px; top: -14px; left: -20px; }
.f2 { width: 80px; height: 80px; bottom: -14px; left: -14px; }

/* ---------- 6. WHY CHOOSE ---------- */
.features { display: grid; grid-template-columns: repeat(4, 1fr); }
.feature { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .7rem; padding: .5rem 1.5rem; border-left: 1px solid rgba(200,155,69,.45); }
.feature:first-child { border-left: 0; }
.feature p { font-family: var(--font-tamil); font-size: .92rem; line-height: 1.8; }

/* ---------- 7. ABOUT ---------- */
.about { display: grid; grid-template-columns: 35% 1fr; background: linear-gradient(90deg, #fbf1dd, var(--cream)); }
.about-image { background: var(--img-about) center / cover no-repeat; min-height: 280px; }
.about-content { padding: 2.6rem 5% 2.6rem 3.5rem; display: flex; flex-direction: column; align-items: flex-start; gap: .8rem; max-width: 820px; }
.about-content p:not(.eyebrow) { font-family: var(--font-tamil); max-width: 34rem; }
.eyebrow.left, h2.left { text-align: left; }

/* ---------- 8. SERVICES ---------- */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .6rem; padding: 1.6rem 1.2rem; background: #fffaf0; border: 1px solid rgba(200,155,69,.55); border-radius: 14px; }
.card p { font-family: var(--font-tamil); font-size: .9rem; line-height: 1.8; }
.card:hover { border-color: var(--gold); background: #fff; }

/* ---------- 9. CALL TO ACTION ---------- */
.cta { position: relative; background: var(--maroon); color: var(--cream); padding: 1.8rem 0; border-top: 2px solid var(--gold); overflow: hidden; }
.cta-inner { display: grid; grid-template-columns: 1fr 1.1fr; align-items: center; gap: 2rem; position: relative; z-index: 2; }
.cta-quote { text-align: center; font-family: var(--font-tamil); font-size: 1.05rem; line-height: 1.9; }
.cta .ornament::after { background: var(--maroon); }
.cta-panel { text-align: center; padding: 1.4rem 1.5rem; border: 1.5px solid var(--gold); border-radius: 22px; background: linear-gradient(135deg, var(--cream), #e8c978); color: var(--text); display: flex; flex-direction: column; align-items: center; gap: .6rem; }
.cta-panel h2 { font-size: 1.15rem; }
.cta-panel p { font-family: var(--font-tamil); font-size: .85rem; }
.f3 { width: 90px; height: 90px; left: -20px; top: 10px; }
.f4 { width: 90px; height: 90px; right: -20px; bottom: -10px; }

/* ---------- 10. FOOTER ---------- */
.site-footer { background: var(--maroon); color: var(--cream); border-top: 2px solid var(--gold); padding-top: 1.6rem; }
.footer-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.2rem; padding-bottom: 1.4rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 1.8rem; font-size: .85rem; }
.footer-nav a:hover, .footer-bottom a:hover { color: var(--gold); }
.socials { display: flex; gap: 1rem; }
.socials a { color: var(--gold); }
.socials svg { width: 26px; height: 26px; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; padding: 1rem 0 1.2rem; border-top: 1px solid rgba(200,155,69,.5); font-size: .78rem; }
.footer-bottom span { margin: 0 .7rem; color: var(--gold); }

/* ---------- 11. RESPONSIVE ---------- */
@media (max-width: 1000px) {
  .nav-burger { display: flex; }
  .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 1rem; padding: 1.2rem 4%; background: var(--maroon); border-bottom: 2px solid var(--gold); }
  .nav-toggle:checked ~ .main-nav { display: flex; }
  .main-nav ul { flex-direction: column; gap: .4rem; }
  .main-nav li a { display: block; padding: .7rem 0; }
  .features, .services { grid-template-columns: repeat(2, 1fr); }
  .feature:nth-child(3) { border-left: 0; }
  .feature { padding-block: 1.2rem; }
  .cta-inner { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  :root { --header-h: 76px; }
  .brand-logo { width: 42px; height: 52px; }
  .brand-name { font-size: 1.5rem; }
  .brand-sub { font-size: .52rem; }
  .hero, .about { grid-template-columns: 1fr; }
  .hero-image { order: -1; min-height: 240px; }
  .hero-content { padding: 2.2rem 6% 2.5rem; }
  .about-image { min-height: 240px; }
  .about-content { padding: 2rem 6%; }
  .btn-row .btn { flex: 1 1 100%; }
}
@media (max-width: 520px) {
  .features, .services { grid-template-columns: 1fr; }
  .feature { border-left: 0; border-top: 1px solid rgba(200,155,69,.45); }
  .feature:first-child { border-top: 0; }
  .footer-top, .footer-bottom { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }