/* ===================================================================
   KINGSTOWER HOMES LIMITED — design tokens
   Forest green + muted gold, land-survey grid motif, Fraunces/Inter
=================================================================== */
:root{
  --ink:        #12201A;
  --ink-soft:   #3C4B43;
  --forest:     #0F3A2B;
  --forest-2:   #17513C;
  --forest-tint:#E7EFE9;
  --gold:       #AD8330;
  --gold-deep:  #8C6A26;
  --gold-light: #E7C778;
  --sand:       #F6F1E4;
  --paper:      #FBF9F3;
  --white:      #FFFFFF;
  --line:       rgba(15,58,43,0.14);
  --line-soft:  rgba(15,58,43,0.08);
  --shadow:     0 18px 40px -22px rgba(15,58,43,0.35);

  --serif: "Fraunces", ui-serif, Georgia, serif;
  --sans:  "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --maxw: 1180px;
}

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

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img{ max-width:100%; display:block; }
a{ color: inherit; text-decoration: none; }
button{ font-family: inherit; }
ul{ margin:0; padding:0; list-style:none; }

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

h1,h2,h3,h4{ font-family: var(--serif); margin: 0; color: var(--forest); font-weight: 560; letter-spacing: -0.01em; }

.eyebrow-label{ /* deliberately unused: brief calls for no generic eyebrow chrome */ }

.section-head{ max-width: 640px; margin-bottom: 44px; }
.section-head h2{ font-size: clamp(1.9rem, 3.2vw, 2.6rem); line-height: 1.12; }
.section-head p{ margin-top: 14px; font-size: 1.05rem; line-height: 1.65; color: var(--ink-soft); max-width: 56ch; }
.section-head.center{ margin-left:auto; margin-right:auto; text-align:center; }

.btn{
  display:inline-flex; align-items:center; gap:10px;
  padding: 13px 26px;
  border-radius: 3px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor:pointer;
  transition: transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
}
.btn svg{ width:17px; height:17px; }
.btn-gold{ background: var(--gold); color: var(--white); }
.btn-gold:hover{ background: var(--gold-deep); transform: translateY(-1px); }
.btn-line{ border-color: rgba(255,255,255,0.55); color: var(--white); }
.btn-line:hover{ background: rgba(255,255,255,0.12); }
.btn-forest-line{ border-color: var(--forest); color: var(--forest); }
.btn-forest-line:hover{ background: var(--forest); color: var(--white); }

/* ===================== HEADER ===================== */
.site-header{
  position: sticky; top:0; z-index: 40;
  background: rgba(251,249,243,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.header-inner{
  max-width: var(--maxw); margin:0 auto; padding: 14px 28px;
  display:flex; align-items:center; justify-content:space-between; gap: 24px;
}
.brand{ display:flex; align-items:center; gap:12px; flex-shrink:0; }
.brand-mark{ width: 42px; height:42px; object-fit:contain; }
.brand-word{ display:flex; flex-direction:column; line-height:1.05; }
.brand-word-top{ font-family: var(--serif); font-weight: 620; font-size: 1.18rem; color: var(--forest); }
.brand-word-bottom{ font-size: 0.62rem; letter-spacing: 0.14em; color: var(--gold-deep); font-weight:600; }

.main-nav{ display:flex; align-items:center; gap: 30px; }
.main-nav a{
  font-size: 0.93rem; font-weight: 500; color: var(--ink-soft);
  position:relative; padding: 6px 0;
}
.main-nav a::after{
  content:""; position:absolute; left:0; right:100%; bottom:0; height:2px; background: var(--gold);
  transition: right .22s ease;
}
.main-nav a:hover{ color: var(--forest); }
.main-nav a:hover::after{ right:0; }
.main-nav a.active{ color: var(--forest); font-weight:600; }
.main-nav a.active::after{ right:0; }

.header-actions{ display:flex; align-items:center; gap:16px; }
.phone-pill{
  display:flex; align-items:center; gap:8px;
  background: var(--forest); color: var(--white);
  padding: 9px 16px; border-radius:3px; font-size:0.86rem; font-weight:600;
  white-space:nowrap;
}
.phone-pill .icon{ width:15px; height:15px; fill: var(--gold-light); }
.phone-pill:hover{ background: var(--forest-2); }

.hamburger{ display:none; flex-direction:column; justify-content:center; gap:5px; width:34px; height:34px; background:none; border:none; cursor:pointer; padding:0; }
.hamburger span{ display:block; width:100%; height:2px; background: var(--forest); transition: transform .2s ease, opacity .2s ease; }
.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); }

.mobile-drawer{
  display:none; flex-direction:column;
  position: sticky; top: 71px; z-index: 39;
  background: var(--paper); border-bottom:1px solid var(--line-soft);
  max-height:0; overflow:hidden; transition: max-height .28s ease;
}
.mobile-drawer.open{ max-height: 420px; }
.mobile-drawer a{ padding: 14px 28px; border-top:1px solid var(--line-soft); font-weight:500; }
.drawer-phone{ background: var(--forest); color:var(--white) !important; font-weight:600; }

/* ===================== HERO (home) ===================== */
.hero{
  position:relative; overflow:hidden;
  background: var(--forest);
  color: var(--white);
  padding: 108px 0 96px;
}
.hero-grid-art{
  position:absolute; inset:0; opacity:0.5;
  background-image:
    linear-gradient(rgba(232,199,120,0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232,199,120,0.16) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(180deg, transparent, rgba(0,0,0,0.9) 35%, rgba(0,0,0,0.4));
}
.hero-glow{
  position:absolute; right:-12%; top:-18%; width:640px; height:640px; border-radius:50%;
  background: radial-gradient(circle, rgba(232,199,120,0.20), transparent 68%);
}
.hero-inner{
  position:relative; z-index:2;
  max-width: var(--maxw); margin:0 auto; padding: 0 28px;
  display:grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items:end;
}
.hero-kicker{ color: var(--gold-light); font-weight:600; font-size:0.95rem; margin-bottom:18px; }
.hero h1{
  color: var(--white); font-size: clamp(2.4rem, 5vw, 3.7rem); line-height:1.06; letter-spacing:-0.01em;
  animation: heroRise .8s cubic-bezier(.2,.7,.2,1) both;
}
.hero h1 em{ font-style: italic; color: var(--gold-light); }
@keyframes heroRise{ from{ opacity:0; transform: translateY(18px);} to{ opacity:1; transform:none; } }
.hero p.lede{
  margin-top: 22px; max-width: 46ch; font-size: 1.08rem; line-height:1.7; color: rgba(255,255,255,0.82);
  animation: heroRise .9s .1s cubic-bezier(.2,.7,.2,1) both;
}
.hero-ctas{ margin-top: 34px; display:flex; gap:14px; flex-wrap:wrap; animation: heroRise 1s .18s cubic-bezier(.2,.7,.2,1) both; }

.hero-plot-card{
  background: rgba(255,255,255,0.06); border:1px solid rgba(255,255,255,0.16);
  border-radius:4px; padding: 26px 26px 22px; backdrop-filter: blur(4px);
  animation: heroRise 1s .22s cubic-bezier(.2,.7,.2,1) both;
}
.hero-plot-card .plot-label{ font-size:0.78rem; letter-spacing:0.08em; color: var(--gold-light); font-weight:600; }
.hero-plot-card ul{ margin-top:16px; display:flex; flex-direction:column; gap:12px; }
.hero-plot-card li{ display:flex; gap:10px; align-items:flex-start; font-size:0.92rem; color: rgba(255,255,255,0.88); }
.hero-plot-card svg{ width:17px; height:17px; flex-shrink:0; margin-top:2px; fill: var(--gold-light); }

/* ===================== small stat / pillar strip ===================== */
.pillars{ background: var(--forest-2); }
.pillars-inner{
  max-width: var(--maxw); margin:0 auto; padding: 26px 28px;
  display:grid; grid-template-columns: repeat(4,1fr); gap: 20px;
}
.pillar{ display:flex; gap:12px; align-items:center; color: rgba(255,255,255,0.92); }
.pillar svg{ width:22px; height:22px; fill: var(--gold-light); flex-shrink:0; }
.pillar span{ font-size:0.88rem; font-weight:500; line-height:1.3; }

/* ===================== generic page hero (inner pages) ===================== */
.page-hero{
  background: var(--forest); color: var(--white);
  padding: 70px 0 58px; position:relative; overflow:hidden;
}
.page-hero::before{
  content:""; position:absolute; inset:0;
  background-image: linear-gradient(rgba(232,199,120,0.12) 1px, transparent 1px), linear-gradient(90deg, rgba(232,199,120,0.12) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.5), transparent 80%);
}
.page-hero-inner{ position:relative; z-index:1; max-width: var(--maxw); margin:0 auto; padding: 0 28px; }
.page-hero .crumb{ color: var(--gold-light); font-size:0.88rem; font-weight:600; margin-bottom: 10px; }
.page-hero h1{ color: var(--white); font-size: clamp(2rem, 3.6vw, 2.9rem); max-width: 22ch; }
.page-hero p{ margin-top:14px; max-width:56ch; color: rgba(255,255,255,0.82); font-size:1.02rem; line-height:1.6; }

/* ===================== ABOUT ===================== */
.about-section{ padding: 92px 0; }
.about-layout{ display:grid; grid-template-columns: 0.95fr 1.05fr; gap: 64px; align-items:start; }
.about-copy p{ font-size:1.04rem; line-height:1.75; color: var(--ink-soft); margin: 0 0 18px; }
.about-copy p:last-child{ margin-bottom:0; }

.about-panel{
  background: var(--forest); color:var(--white); border-radius:4px; padding: 34px 32px;
  position:relative; overflow:hidden;
}
.about-panel::after{
  content:""; position:absolute; right:-40px; bottom:-40px; width:180px; height:180px; border-radius:50%;
  background: radial-gradient(circle, rgba(232,199,120,0.22), transparent 70%);
}
.about-panel h3{ color: var(--gold-light); font-size:1.15rem; margin-bottom: 18px; position:relative; }
.about-panel ol{ counter-reset: item; display:flex; flex-direction:column; gap:16px; position:relative; }
.about-panel li{ counter-increment: item; display:flex; gap:14px; font-size:0.95rem; line-height:1.55; color: rgba(255,255,255,0.9); }
.about-panel li::before{
  content: counter(item, decimal-leading-zero);
  font-family: var(--serif); font-size:0.95rem; color: var(--gold-light);
  border: 1px solid rgba(232,199,120,0.5); border-radius:50%;
  width:28px; height:28px; flex-shrink:0; display:flex; align-items:center; justify-content:center;
}

.value-strip{ margin-top: 76px; display:grid; grid-template-columns: repeat(4,1fr); gap: 0; border-top:1px solid var(--line); }
.value-item{ padding: 26px 24px 0; border-left: 1px solid var(--line); }
.value-item:first-child{ border-left:none; padding-left:0; }
.value-item svg{ width:24px; height:24px; fill: var(--gold-deep); margin-bottom: 14px; }
.value-item h4{ font-size:1.02rem; color:var(--forest); }
.value-item p{ margin-top:8px; font-size:0.92rem; line-height:1.55; color: var(--ink-soft); }

/* ===================== SERVICES ===================== */
.services-section{ padding: 92px 0; background: var(--sand); }
.services-list{ display:flex; flex-direction:column; }
.service-row{
  display:grid; grid-template-columns: 64px 1.1fr 1.4fr; gap: 28px; align-items:start;
  padding: 30px 0; border-top: 1px solid var(--line);
}
.services-list .service-row:last-child{ border-bottom: 1px solid var(--line); }
.service-icon{ width:56px; height:56px; border-radius:3px; background: var(--forest-tint); display:flex; align-items:center; justify-content:center; }
.service-icon svg{ width:26px; height:26px; fill: var(--forest); }
.service-name h3{ font-size:1.25rem; }
.service-name span{ display:inline-block; margin-top:8px; font-size:0.78rem; letter-spacing:0.06em; color: var(--gold-deep); font-weight:600; }
.service-desc p{ font-size:0.98rem; line-height:1.65; color: var(--ink-soft); margin:0; }

/* ===================== PROJECTS grid ===================== */
.projects-section{ padding: 92px 0; }
.projects-grid{ display:grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.project-card{
  border: 1px solid var(--line); border-radius: 4px; overflow:hidden; background: var(--white);
  display:flex; flex-direction:column; transition: transform .22s ease, box-shadow .22s ease;
}
.project-card:hover{ transform: translateY(-4px); box-shadow: var(--shadow); }
.project-media{ aspect-ratio: 16/10; overflow:hidden; background: var(--forest-tint); }
.project-media img{ width:100%; height:100%; object-fit:cover; }
.project-body{ padding: 22px 22px 26px; display:flex; flex-direction:column; gap:10px; flex:1; }
.project-status{ font-size:0.72rem; letter-spacing:0.08em; font-weight:700; color: var(--gold-deep); text-transform:uppercase; }
.project-body h3{ font-size:1.3rem; }
.project-loc{ display:flex; gap:6px; align-items:center; font-size:0.88rem; color: var(--ink-soft); }
.project-loc svg{ width:14px; height:14px; fill: var(--gold-deep); flex-shrink:0; }
.project-from{ margin-top:auto; padding-top:14px; border-top:1px solid var(--line-soft); display:flex; align-items:center; justify-content:space-between; }
.project-from .amount{ font-family: var(--serif); font-size:1.15rem; color: var(--forest); }
.project-from .amount small{ font-family: var(--sans); font-size:0.72rem; color: var(--ink-soft); font-weight:500; }
.view-link{ font-size:0.85rem; font-weight:600; color: var(--forest); display:flex; align-items:center; gap:6px; }
.view-link svg{ width:14px; height:14px; transition: transform .18s ease; }
.project-card:hover .view-link svg{ transform: translateX(3px); }

.projects-empty{ padding: 60px 0; text-align:center; color: var(--ink-soft); }

/* ===================== PROJECT DETAIL ===================== */
.project-hero{ position:relative; }
.project-hero-img{ width:100%; height: min(46vw, 380px); object-fit:cover; }
.project-hero-overlay{
  position:absolute; inset:0; background: linear-gradient(0deg, rgba(15,58,43,0.88), rgba(15,58,43,0.15));
  display:flex; align-items:flex-end;
}
.project-hero-caption{ max-width: var(--maxw); margin:0 auto; padding: 0 28px 30px; width:100%; color:var(--white); }
.project-hero-caption .back-link{ display:inline-flex; gap:8px; align-items:center; font-size:0.86rem; color: var(--gold-light); font-weight:600; margin-bottom:14px; }
.project-hero-caption .back-link svg{ width:14px; height:14px; }
.project-hero-caption h1{ color:var(--white); font-size: clamp(1.9rem,3.6vw,2.7rem); }
.project-hero-caption .loc{ margin-top:8px; display:flex; gap:8px; align-items:center; color: rgba(255,255,255,0.88); font-size:0.98rem; }
.project-hero-caption .loc svg{ width:15px; height:15px; fill: var(--gold-light); }

.project-detail-body{ padding: 64px 0 96px; }
.pd-layout{ display:grid; grid-template-columns: 1.4fr 1fr; gap: 56px; align-items:start; }

.pd-features{ display:grid; grid-template-columns: repeat(3,1fr); gap: 22px 18px; margin: 0 0 42px; }
.pd-feature{ display:flex; gap:12px; align-items:flex-start; }
.pd-feature svg{ width:22px; height:22px; fill: var(--gold-deep); flex-shrink:0; margin-top:2px; }
.pd-feature span{ font-size:0.92rem; font-weight:500; color: var(--forest); line-height:1.3; }

.pd-section-title{ font-size:1.3rem; margin: 40px 0 18px; }
.pd-section-title:first-child{ margin-top:0; }

.price-table{ width:100%; border-collapse:collapse; font-size:0.95rem; }
.price-table caption{ text-align:left; font-size:0.78rem; letter-spacing:0.06em; font-weight:700; color: var(--gold-deep); text-transform:uppercase; padding-bottom:10px; }
.price-table th{ text-align:left; padding: 10px 14px; background: var(--forest); color:var(--white); font-weight:600; font-size:0.85rem; }
.price-table td{ padding: 12px 14px; border-bottom: 1px solid var(--line-soft); }
.price-table tbody tr:nth-child(odd){ background: var(--sand); }
.price-table td.amount{ font-family: var(--serif); font-weight:560; color: var(--forest); }
.price-tables-wrap{ display:grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 8px; }
.price-note{ margin-top:14px; font-size:0.88rem; color: var(--ink-soft); }

.pd-terms{ display:flex; flex-wrap:wrap; gap:14px; margin: 22px 0 0; }
.pd-term-chip{ display:flex; align-items:center; gap:8px; background: var(--forest-tint); padding:10px 16px; border-radius:3px; font-size:0.88rem; font-weight:500; color: var(--forest); }
.pd-term-chip svg{ width:16px; height:16px; fill: var(--gold-deep); }

.pd-sidebar{ position:sticky; top: 100px; }
.enquiry-card{ background: var(--forest); color: var(--white); border-radius:4px; padding: 30px 28px; }
.enquiry-card h3{ color: var(--white); font-size:1.2rem; }
.enquiry-card p{ margin-top:10px; font-size:0.92rem; color: rgba(255,255,255,0.8); line-height:1.6; }
.enquiry-card .btn{ width:100%; justify-content:center; margin-top: 18px; }
.enquiry-contacts{ margin-top:20px; padding-top:20px; border-top:1px solid rgba(255,255,255,0.18); display:flex; flex-direction:column; gap:10px; }
.enquiry-contacts a{ display:flex; align-items:center; gap:10px; font-size:0.92rem; color: rgba(255,255,255,0.9); }
.enquiry-contacts svg{ width:16px; height:16px; fill: var(--gold-light); flex-shrink:0; }

/* ===================== CONTACT ===================== */
.contact-section{ padding: 92px 0; background: var(--sand); }
.contact-layout{ display:grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.contact-card{ background: var(--white); border:1px solid var(--line); border-radius:4px; padding: 30px 28px; }
.contact-row{ display:flex; gap:16px; align-items:flex-start; padding: 18px 0; border-top:1px solid var(--line-soft); }
.contact-row:first-child{ border-top:none; padding-top:0; }
.contact-row svg{ width:22px; height:22px; fill: var(--gold-deep); flex-shrink:0; margin-top:2px; }
.contact-row h4{ font-size:1rem; color:var(--forest); margin-bottom:4px; }
.contact-row p, .contact-row a{ font-size:0.95rem; color: var(--ink-soft); line-height:1.55; }
.contact-row a:hover{ color: var(--forest); }

.contact-cta{ display:flex; flex-direction:column; justify-content:center; gap:18px; background: var(--forest); color:var(--white); border-radius:4px; padding: 40px 34px; }
.contact-cta h3{ color:var(--white); font-size:1.5rem; }
.contact-cta p{ color: rgba(255,255,255,0.82); font-size:0.98rem; line-height:1.6; }
.contact-cta .btn{ align-self:flex-start; }

/* ===================== FOOTER ===================== */
.site-footer{ background: var(--forest); color: rgba(255,255,255,0.86); padding: 62px 0 0; }
.footer-inner{ max-width: var(--maxw); margin:0 auto; padding: 0 28px; display:grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 44px; }
.footer-brand{ display:flex; flex-direction:column; gap:14px; }
.footer-brand .brand-mark{ width:46px; height:46px; }
.footer-brand p{ font-size:0.92rem; line-height:1.6; color: rgba(255,255,255,0.72); max-width:32ch; margin:0; }
.footer-cac{ display:inline-block; border:1px solid rgba(232,199,120,0.5); color: var(--gold-light) !important; font-size:0.76rem !important; font-weight:600; padding:4px 10px; border-radius:2px; width:fit-content; }
.footer-col h4{ color: var(--gold-light); font-family: var(--sans); font-size:0.82rem; letter-spacing:0.06em; font-weight:700; margin-bottom:16px; text-transform:uppercase; }
.footer-col{ display:flex; flex-direction:column; gap:10px; }
.footer-col a{ font-size:0.92rem; color: rgba(255,255,255,0.78); }
.footer-col a:hover{ color: var(--gold-light); }
.social-row{ display:flex; gap:12px; }
.social-row a{ width:36px; height:36px; border:1px solid rgba(255,255,255,0.24); border-radius:50%; display:flex; align-items:center; justify-content:center; }
.social-row svg{ width:16px; height:16px; fill: rgba(255,255,255,0.85); }
.social-row a:hover{ border-color: var(--gold-light); }
.social-row a:hover svg{ fill: var(--gold-light); }
.footer-bottom{ border-top:1px solid rgba(255,255,255,0.14); padding: 18px 28px; text-align:center; font-size:0.82rem; color: rgba(255,255,255,0.6); }

/* ===================== view fade ===================== */
.view{ animation: viewFade .35s ease both; }
@keyframes viewFade{ from{ opacity:0; } to{ opacity:1; } }

/* ===================== focus ===================== */
a:focus-visible, button:focus-visible{ outline: 2px solid var(--gold-deep); outline-offset: 2px; }

/* ===================== responsive ===================== */
@media (max-width: 980px){
  .main-nav{ display:none; }
  .hamburger{ display:flex; }
  .mobile-drawer{ display:flex; }
  .hero-inner{ grid-template-columns: 1fr; }
  .pillars-inner{ grid-template-columns: repeat(2,1fr); }
  .about-layout{ grid-template-columns: 1fr; }
  .value-strip{ grid-template-columns: repeat(2,1fr); }
  .value-item{ border-left:none; border-top:1px solid var(--line); padding: 22px 0 0 !important; }
  .service-row{ grid-template-columns: 52px 1fr; }
  .service-desc{ grid-column: 2 / 3; }
  .projects-grid{ grid-template-columns: repeat(2,1fr); }
  .pd-layout{ grid-template-columns: 1fr; }
  .pd-sidebar{ position:static; }
  .contact-layout{ grid-template-columns: 1fr; }
  .footer-inner{ grid-template-columns: 1fr 1fr; }
  .footer-brand{ grid-column: 1 / 3; }
}
@media (max-width: 620px){
  .header-inner{ padding: 12px 18px; }
  .phone-pill span{ display:none; }
  .container, .hero-inner, .page-hero-inner, .footer-inner, .footer-bottom{ padding-left:18px; padding-right:18px; }
  .pillars-inner{ grid-template-columns: 1fr 1fr; padding:22px 18px; }
  .projects-grid{ grid-template-columns: 1fr; }
  .price-tables-wrap{ grid-template-columns: 1fr; }
  .pd-features{ grid-template-columns: 1fr 1fr; }
  .value-strip{ grid-template-columns: 1fr; }
  .footer-brand{ grid-column: 1 / 2; }
  .footer-inner{ grid-template-columns: 1fr; }
}
