/* Amulya Homes / AHOWA website. Mobile first, no framework. */
:root {
  --green-900: #0f2a1d;
  --green-800: #163d2a;
  --green-700: #1f5a3c;
  --green-600: #287249;
  --green-100: #e6f2ea;
  --sand-50: #faf7f1;
  --sand-100: #f3ece0;
  --sand-300: #e3d4b8;
  --gold: #c89b3c;
  --ink: #1b2420;
  --ink-soft: #4d5a54;
  --line: #e3e6e2;
  --white: #ffffff;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(15, 42, 29, 0.12);
  --max: 1160px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Telugu", "Noto Sans Devanagari", sans-serif;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--sand-50); line-height: 1.6; font-size: 17px; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--green-700); }
a:hover { color: var(--green-600); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: var(--white); padding: 8px 12px; z-index: 100; border-radius: 8px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(250, 247, 241, 0.94); backdrop-filter: saturate(140%) blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--green-900); }
.brand img { width: 46px; height: 46px; border-radius: 12px; object-fit: contain; background: var(--white); }
.brand b { display: block; font-family: var(--serif); font-size: 1.15rem; line-height: 1.1; }
.brand small { display: block; color: var(--ink-soft); font-size: 0.78rem; letter-spacing: 0.02em; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 600; font-size: 0.95rem; padding: 10px 12px; border-radius: 10px; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--green-100); color: var(--green-800); }
.nav .cta { background: var(--green-700); color: var(--white); margin-left: 6px; }
.nav .cta:hover { background: var(--green-800); color: var(--white); }
.menu-btn { display: none; border: 0; background: var(--green-100); color: var(--green-900); width: 46px; height: 46px; border-radius: 12px; font-size: 1.4rem; cursor: pointer; }
@media (max-width: 920px) {
  .menu-btn { display: block; }
  .nav { position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch; background: var(--sand-50); padding: 12px 20px 20px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 12px; font-size: 1.05rem; }
  .nav .cta { margin: 8px 0 0; text-align: center; }
}

/* ---------- hero ---------- */
.hero { position: relative; color: var(--white); min-height: min(86vh, 760px); display: flex; align-items: flex-end; overflow: hidden; }
.hero picture, .hero picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15, 42, 29, 0.4) 0%, rgba(15, 42, 29, 0.5) 45%, rgba(15, 42, 29, 0.88) 100%); }
.hero .wrap { position: relative; z-index: 2; padding-top: 120px; padding-bottom: 56px; width: 100%; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.78rem; font-weight: 700; color: var(--sand-300); }
.hero h1 { font-family: var(--serif); font-size: clamp(2.3rem, 6vw, 4.2rem); line-height: 1.04; margin: 12px 0 14px; max-width: 14ch; font-weight: 600; }
.hero p.lead { font-size: clamp(1.05rem, 2.2vw, 1.3rem); max-width: 56ch; margin: 0 0 26px; color: #eef3ef; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 22px; border-radius: 14px; font-weight: 700; text-decoration: none; font-size: 1rem; border: 2px solid transparent; transition: transform .15s ease, background .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: var(--green-900); }
.btn-gold:hover { background: #d8ac4d; color: var(--green-900); }
.btn-light { background: rgba(255, 255, 255, 0.14); color: var(--white); border-color: rgba(255, 255, 255, 0.55); }
.btn-light:hover { background: rgba(255, 255, 255, 0.24); color: var(--white); }
.btn-green { background: var(--green-700); color: var(--white); }
.btn-green:hover { background: var(--green-800); color: var(--white); }
.btn-outline { border-color: var(--green-700); color: var(--green-800); background: transparent; }

/* ---------- stats strip ---------- */
.stats { background: var(--green-900); color: var(--white); }
.stats .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; padding: 0; }
.stat { padding: 26px 20px; text-align: center; border-right: 1px solid rgba(255, 255, 255, 0.08); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font-family: var(--serif); font-size: 2.2rem; color: var(--gold); line-height: 1.1; }
.stat span { font-size: 0.92rem; color: #cfe0d6; }
@media (max-width: 720px) { .stats .wrap { grid-template-columns: repeat(2, 1fr); } .stat:nth-child(2) { border-right: 0; } }

/* ---------- sections ---------- */
section { padding: 72px 0; }
section.alt { background: var(--white); }
section.green { background: var(--green-800); color: var(--white); }
.section-head { max-width: 720px; margin-bottom: 34px; }
.section-head h2 { font-family: var(--serif); font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.15; margin: 8px 0 12px; color: var(--green-900); font-weight: 600; }
section.green .section-head h2 { color: var(--white); }
.section-head p { color: var(--ink-soft); margin: 0; font-size: 1.08rem; }
section.green .section-head p { color: #d6e6dc; }
.kicker { color: var(--green-600); font-weight: 800; text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.78rem; }
section.green .kicker { color: var(--gold); }

.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: 0 2px 0 rgba(15, 42, 29, 0.03); display: flex; flex-direction: column; }
section.alt .card { background: var(--sand-50); }
.card .ph { aspect-ratio: 4 / 3; overflow: hidden; background: var(--sand-100); }
.card .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .ph img { transform: scale(1.04); }
.card .body { padding: 18px 20px 22px; }
.card h3 { margin: 0 0 6px; font-size: 1.15rem; color: var(--green-900); }
.card p { margin: 0; color: var(--ink-soft); font-size: 0.98rem; }
.icon-card { padding: 24px; }
.icon-card .ico { width: 52px; height: 52px; border-radius: 14px; background: var(--green-100); color: var(--green-700); display: grid; place-items: center; font-size: 1.5rem; margin-bottom: 14px; }

.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 44px; align-items: center; }
.split .photo { border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 5 / 4; }
.split .photo img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 26px; } }
.ticks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.ticks li { padding-left: 34px; position: relative; }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 24px; height: 24px; border-radius: 50%; background: var(--green-100); color: var(--green-700); display: grid; place-items: center; font-weight: 800; font-size: 0.8rem; }

/* gallery */
.gallery { columns: 3 260px; column-gap: 16px; }
.gallery figure { break-inside: avoid; margin: 0 0 16px; border-radius: 16px; overflow: hidden; background: var(--white); border: 1px solid var(--line); }
.gallery figcaption { padding: 10px 14px 12px; font-size: 0.9rem; color: var(--ink-soft); }
.gallery figcaption b { color: var(--green-900); display: block; font-size: 0.95rem; }

/* timeline */
.timeline { position: relative; margin: 0; padding: 0 0 0 28px; list-style: none; }
.timeline::before { content: ""; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 2px; background: var(--sand-300); }
.timeline li { position: relative; padding: 0 0 26px 12px; }
.timeline li::before { content: ""; position: absolute; left: -26px; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--gold); border: 3px solid var(--sand-50); box-shadow: 0 0 0 2px var(--gold); }
.timeline .yr { font-weight: 800; color: var(--green-700); font-size: 0.9rem; letter-spacing: 0.06em; }
.timeline h3 { margin: 2px 0 4px; font-size: 1.1rem; color: var(--green-900); }
.timeline p { margin: 0; color: var(--ink-soft); }

/* app download */
.apps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 900px) { .apps { grid-template-columns: 1fr; } }
.app { background: var(--white); color: var(--ink); border-radius: 22px; padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.app .top { display: flex; gap: 14px; align-items: center; }
.app .top img { width: 64px; height: 64px; border-radius: 16px; }
.app h3 { margin: 0; font-size: 1.2rem; color: var(--green-900); }
.app .who { color: var(--ink-soft); font-size: 0.92rem; margin: 2px 0 0; }
.app ul { margin: 0; padding-left: 18px; color: var(--ink-soft); font-size: 0.96rem; }
.app .btn { margin-top: auto; }
.note { font-size: 0.88rem; color: var(--ink-soft); }
section.green .note { color: #cfe0d6; }

/* contact + roles */
.role { display: flex; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.role:last-child { border-bottom: 0; }
.role b { color: var(--green-900); }
.role a { font-weight: 600; word-break: break-all; }

.page-hero { background: linear-gradient(135deg, var(--green-900), var(--green-700)); color: var(--white); padding: 70px 0 56px; position: relative; overflow: hidden; }
.page-hero.with-photo { padding: 120px 0 56px; }
.page-hero.with-photo picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.35; }
.page-hero .wrap { position: relative; }
.page-hero h1 { font-family: var(--serif); font-size: clamp(2rem, 5vw, 3.2rem); margin: 8px 0 10px; font-weight: 600; }
.page-hero p { max-width: 60ch; color: #dce9e1; margin: 0; font-size: 1.1rem; }

.faq details { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 4px 18px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 14px 0; color: var(--green-900); }
.faq details p { margin: 0 0 16px; color: var(--ink-soft); }

/* footer */
.site-footer { background: var(--green-900); color: #c9dbd0; padding: 56px 0 28px; font-size: 0.95rem; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
@media (max-width: 860px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .site-footer .cols { grid-template-columns: 1fr; } }
.site-footer h4 { color: var(--white); margin: 0 0 12px; font-size: 1rem; }
.site-footer a { color: #e6efe9; text-decoration: none; display: block; padding: 4px 0; }
.site-footer a:hover { color: var(--gold); }
.site-footer .legal { border-top: 1px solid rgba(255, 255, 255, 0.1); margin-top: 34px; padding-top: 18px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 0.85rem; color: #9fb8a9; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }
.h2 { font-family: var(--serif); font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.15; color: var(--green-900); margin: 8px 0 14px; font-weight: 600; }

/* ---------- logo (src/logo.svg, inlined) ---------- */
.ah-logo { display: block; width: 100%; height: auto; }
.logo-card { background: #000; display: grid; place-items: center; padding: 8%; }
.hero-logo { width: min(400px, 78vw); margin: 0 0 18px -6px; filter: drop-shadow(0 4px 18px rgba(0, 0, 0, 0.6)); }
/* The home hero draws the logo once on arrival: the saffron blades sweep down, the
   silver strokes and the drop draw themselves, then the words settle in. */
.hero-logo .ah-blade { animation: ah-wipe 0.9s cubic-bezier(.6, 0, .2, 1) 0.1s both; }
.hero-logo .ah-flick { animation-delay: 0.3s; }
.hero-logo .ah-flick2 { animation-delay: 0.45s; }
.hero-logo .ah-line { stroke-dasharray: 1; animation: ah-draw 1s cubic-bezier(.5, 0, .2, 1) var(--d, 0s) both; }
.hero-logo .ah-drop { animation-duration: 0.8s; }
.hero-logo .ah-word, .hero-logo .ah-tag { transform-box: fill-box; animation: ah-in 0.8s cubic-bezier(.2, .7, .2, 1) both; }
.hero-logo .ah-word { --from: translateX(-18px); animation-delay: 1.15s; }
.hero-logo .ah-tag1 { --from: translateY(-8px); animation-delay: 1.55s; }
.hero-logo .ah-tag2 { --from: translateY(8px); animation-delay: 1.7s; }
.hero .eyebrow, .hero h1, .hero p.lead, .hero .btns { animation: ah-in 0.7s ease both; --from: translateY(12px); }
.hero .eyebrow { animation-delay: 1.8s; }
.hero h1 { animation-delay: 1.95s; }
.hero p.lead { animation-delay: 2.1s; }
.hero .btns { animation-delay: 2.25s; }
@keyframes ah-wipe { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0); } }
@keyframes ah-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes ah-in { from { opacity: 0; transform: var(--from); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .hero-logo *, .hero .eyebrow, .hero h1, .hero p.lead, .hero .btns { animation: none !important; stroke-dasharray: none !important; }
}
