/* =========================================================
   SATTVIC — Design tokens
   Palette drawn from the brand's own name: "sattvic" (Skt. sattva)
   — balance, clarity, natural materials. Stone, pine and brass
   stand in for limestone, deep foliage and hand-finished metal —
   materials this studio actually builds with.
   ========================================================= */
:root{
  --stone:        #EFEAE0;
  --stone-mid:    #E1D9C8;
  --stone-line:   #C9BFA8;
  --ink:          #201D18;
  --ink-soft:     #4A453B;
  --muted:        #756D5D;
  /* Dark base + accents lifted from the Sattvic emblem (black / gold / silver) */
  --pine:         #14130F;
  --pine-2:       #1E1C16;
  --pine-3:       #2B2822;
  --brass:        #C0932E;
  --brass-light:  #E3C179;
  --silver:       #B9BBBD;
  --silver-light: #D8D9DA;
  --clay:         #8A4A34;
  --cream:        #FBF8F1;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Work Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container-max: 1200px;
}

*{ box-sizing: border-box; }

html{ scroll-behavior: smooth; scroll-padding-top: 84px; }

body{
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--stone);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

::selection{ background: var(--brass-light); color: var(--pine); }

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

h1,h2,h3,h4{
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.12;
  margin: 0;
}

p{ margin: 0; }

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

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

.mono-tag{
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  color: var(--muted);
}

/* ---------- buttons ---------- */
.btn-sv{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  border-radius: 2px;
  border: 1px solid transparent;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .15s ease;
  cursor: pointer;
}
.btn-sv:active{ transform: translateY(1px); }
.btn-sv-brass{
  background: var(--brass);
  color: var(--cream);
}
.btn-sv-brass:hover{ background: var(--brass-light); color: var(--pine); }
.btn-sv-outline{
  background: transparent;
  border-color: currentColor;
  color: inherit;
}
.btn-sv-outline:hover{ background: rgba(255,255,255,0.08); }
.btn-sv-outline-dark{
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}
.btn-sv-outline-dark:hover{ background: var(--ink); color: var(--cream); }
.btn-sv i{ font-size: 1rem; }

/* ---------- section shell ---------- */
.section{ padding: 118px 0; position: relative; }
.section-tight{ padding: 88px 0; }
@media (max-width: 767px){
  .section{ padding: 76px 0; }
  .section-tight{ padding: 56px 0; }
}

.section-head{
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 64px;
  max-width: 720px;
}
.section-index{
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--brass);
}
.section-head h2{
  font-size: clamp(2rem, 3.6vw, 2.9rem);
}
.section-lede{
  color: var(--ink-soft);
  font-size: 1.08rem;
  max-width: 62ch;
}

.on-dark .section-lede{ color: rgba(251,248,241,0.72); }
.on-dark .section-index{ color: var(--brass-light); }

.bg-pine{ background: var(--pine); color: var(--cream); }
.bg-pine h1, .bg-pine h2, .bg-pine h3, .bg-pine h4{ color: var(--cream); }
.bg-stone-mid{ background: var(--stone-mid); }

.rule{
  height: 1px;
  background: var(--stone-line);
  border: 0;
  margin: 0;
}
.on-dark .rule{ background: rgba(251,248,241,0.16); }

/* =========================================================
   NAV
   ========================================================= */
.sv-nav{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 999;
  padding: 22px 0;
  background: transparent;
  transition: background .35s ease, padding .35s ease, box-shadow .35s ease;
}
.sv-nav.is-scrolled{
  background: var(--pine);
  padding: 14px 0;
  box-shadow: 0 6px 24px rgba(0,0,0,0.18);
}
.sv-nav .wrap{
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sv-brand{
  display: flex;
  align-items: center;
  gap: 12px;
  line-height: 1;
}
.sv-brand img{
  height: 44px;
  width: auto;
  display: block;
}
.sv-brand-text{
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--cream);
  letter-spacing: 0.01em;
  line-height: 1;
}
.sv-brand-text small{
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  color: var(--brass-light);
  margin-top: 4px;
}
.sv-nav.is-scrolled .sv-brand img{ height: 36px; transition: height .3s ease; }
.sv-nav-links{
  display: flex;
  align-items: center;
  gap: 34px;
  list-style: none;
  margin: 0; padding: 0;
}
.sv-nav-links a{
  color: rgba(251,248,241,0.82);
  font-size: 0.94rem;
  font-weight: 500;
  position: relative;
  padding-bottom: 4px;
}
.sv-nav-links a:hover{ color: var(--cream); }
.sv-nav-links a::after{
  content:'';
  position: absolute; left:0; right:0; bottom:0;
  height: 1px; background: var(--brass-light);
  transform: scaleX(0); transform-origin: left;
  transition: transform .25s ease;
}
.sv-nav-links a:hover::after{ transform: scaleX(1); }
.sv-nav-cta{
  padding: 10px 20px !important;
  border: 1px solid var(--brass-light);
  border-radius: 2px;
  color: var(--cream) !important;
}
.sv-nav-cta::after{ display:none; }
.sv-nav-toggle{
  display: none;
  background: none; border: 0;
  color: var(--cream);
  font-size: 1.6rem;
}

@media (max-width: 991px){
  .sv-nav-toggle{ display: block; }
  .sv-nav-links{
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(320px, 84vw);
    background: var(--pine);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 28px;
    padding: 40px;
    transform: translateX(100%);
    transition: transform .35s ease;
  }
  .sv-nav-links.is-open{ transform: translateX(0); }
}

/* =========================================================
   HERO
   ========================================================= */
.hero{
  background: var(--pine);
  color: var(--cream);
  padding: 168px 0 0;
  overflow: hidden;
  position: relative;
}
.hero-top{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  padding-bottom: 64px;
}
.hero-copy{
  flex: 1 1 460px;
  min-width: 0;
}
.hero-mark{
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 8vw, 6rem);
  line-height: 0.94;
  letter-spacing: -0.01em;
  color: var(--cream);
}
.hero-sub{
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  color: var(--brass-light);
  margin-top: 14px;
}
.hero-headline{
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2.05rem);
  font-weight: 500;
  color: var(--cream);
  max-width: 15ch;
  margin-top: 40px;
  line-height: 1.28;
}
.hero-desc{
  margin-top: 22px;
  max-width: 46ch;
  color: rgba(251,248,241,0.72);
  font-size: 1.02rem;
}
.hero-actions{
  margin-top: 44px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.hero-art{
  flex: 1 1 440px;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
}
.hero-art svg{
  width: 100%;
  max-width: 500px;
  height: auto;
  display: block;
}
.hero-baseline{
  border-top: 1px solid rgba(251,248,241,0.16);
  padding: 26px 0;
}
.hero-baseline .wrap{
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}
.hero-stat{ display: flex; flex-direction: column; }
.hero-stat b{
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--brass-light);
}
.hero-stat span{
  font-size: 0.82rem;
  color: rgba(251,248,241,0.6);
  margin-top: 2px;
}

@media (max-width: 767px){
  .hero{ padding-top: 120px; }
  .hero-top{ flex-direction: column; }
  .hero-art{ align-self: flex-start; }
  .hero-art svg{ max-width: 340px; }
}

/* =========================================================
   ABOUT
   ========================================================= */
.about-grid{
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 72px;
}
.about-statement{
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 600;
  line-height: 1.2;
}
.about-body p{ color: var(--ink-soft); font-size: 1.03rem; }
.about-body p + p{ margin-top: 18px; }
.philosophy{
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--stone-line);
  border-bottom: 1px solid var(--stone-line);
}
.philosophy span{
  display: flex;
  align-items: center;
  min-width: 0;
  padding: 18px 22px;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--pine-2);
  font-size: 1.05rem;
}
.philosophy span:nth-child(odd){
  padding-left: 0;
  border-right: 1px solid var(--stone-line);
}
.philosophy span:nth-child(n + 3){
  border-top: 1px solid var(--stone-line);
}

@media (max-width: 900px){
  .about-grid{ grid-template-columns: 1fr; gap: 34px; }
}
@media (max-width: 480px){
  .philosophy{ grid-template-columns: 1fr; }
  .philosophy span{ padding: 16px 0; }
  .philosophy span:nth-child(odd){ border-right: 0; }
  .philosophy span + span{ border-top: 1px solid var(--stone-line); }
}
/* =========================================================
   SERVICES ("What We Do")
   ========================================================= */
.services-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--stone-line);
  border: 1px solid var(--stone-line);
}
.service-card{
  background: var(--stone);
  padding: 40px 34px;
  transition: background .25s ease;
}
.service-card:hover{ background: var(--cream); }
.service-icon{
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--stone-line);
  color: var(--brass);
  font-size: 1.25rem;
  margin-bottom: 22px;
  border-radius: 2px;
}
.service-card h3{
  font-size: 1.18rem;
  margin-bottom: 10px;
}
.service-card p{ color: var(--ink-soft); font-size: 0.97rem; }

@media (max-width: 900px){
  .services-grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px){
  .services-grid{ grid-template-columns: 1fr; }
}

/* =========================================================
   TURNKEY
   ========================================================= */
.turnkey-intro{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: end;
  margin-bottom: 76px;
}
.turnkey-intro .about-statement{ color: var(--cream); }
.turnkey-intro p{ color: rgba(251,248,241,0.72); font-size: 1.03rem; }

.timeline{
  position: relative;
  padding-left: 52px;
}
.timeline::before{
  content:'';
  position: absolute;
  left: 17px; top: 8px; bottom: 8px;
  width: 1px;
  background: rgba(251,248,241,0.2);
}
.timeline-step{
  position: relative;
  padding-bottom: 46px;
}
.timeline-step:last-child{ padding-bottom: 0; }
.timeline-step::before{
  content: attr(data-n);
  position: absolute;
  left: -52px; top: 0;
  width: 35px; height: 35px;
  border: 1px solid var(--brass-light);
  color: var(--brass-light);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.82rem;
  display: flex; align-items: center; justify-content: center;
  background: var(--pine);
  border-radius: 50%;
}
.timeline-step h4{
  color: var(--cream);
  font-size: 1.22rem;
  margin-bottom: 8px;
}
.timeline-step p{ color: rgba(251,248,241,0.68); font-size: 0.98rem; max-width: 56ch; }

@media (max-width: 900px){
  .turnkey-intro{ grid-template-columns: 1fr; gap: 26px; }
}

/* =========================================================
   WHY SATTVIC
   ========================================================= */
.why-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 64px;
}
.why-item{
  display: flex;
  gap: 20px;
  padding: 28px 0;
  border-top: 1px solid var(--stone-line);
}
.why-grid .why-item:nth-last-child(-n+2){ border-bottom: 1px solid var(--stone-line); }
.why-num{
  font-family: var(--font-display);
  font-style: italic;
  color: var(--brass);
  font-size: 1.1rem;
  min-width: 30px;
}
.why-item h4{ font-size: 1.1rem; margin-bottom: 6px; }
.why-item p{ color: var(--ink-soft); font-size: 0.97rem; }

@media (max-width: 800px){
  .why-grid{ grid-template-columns: 1fr; column-gap: 0; }
  .why-grid .why-item:nth-last-child(-n+2){ border-bottom: 0; }
  .why-grid .why-item:last-child{ border-bottom: 1px solid var(--stone-line); }
}

/* =========================================================
   PROJECTS
   ========================================================= */
.cat-row{
  display: flex; flex-wrap: wrap; gap: 12px;
  margin-bottom: 52px;
}
.cat-pill{
  padding: 8px 18px;
  border: 1px solid var(--stone-line);
  border-radius: 2px;
  font-size: 0.88rem;
  color: var(--ink-soft);
}
.projects-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.project-card{
  border: 1px solid var(--stone-line);
  background: var(--cream);
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 30px;
  position: relative;
  overflow: hidden;
}
.project-card .ph-lines{ opacity: 0.5; }
.project-card .tag{
  font-size: 0.78rem;
  color: var(--brass);
  font-weight: 600;
  letter-spacing: 0.03em;
}
.project-card h4{
  font-size: 1.25rem;
  margin-top: 12px;
  color: var(--muted);
}
.project-card .loc{ color: var(--muted); font-size: 0.9rem; margin-top: 6px; }
.project-card .soon{
  align-self: flex-start;
  margin-top: 20px;
  font-size: 0.82rem;
  padding: 6px 14px;
  border: 1px dashed var(--stone-line);
  color: var(--muted);
}

@media (max-width: 900px){
  .projects-grid{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px){
  .projects-grid{ grid-template-columns: 1fr; }
}

/* =========================================================
   PROCESS (horizontal)
   ========================================================= */
.process-row{
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  border-top: 1px solid var(--stone-line);
}
.process-node{
  padding: 30px 18px 0 24px;
  border-right: 1px solid var(--stone-line);
}
.process-node:last-child{ border-right: 0; }
.process-node .pn-num{
  font-family: var(--font-display);
  font-style: italic;
  color: var(--brass);
  font-size: 1rem;
  display: block;
  margin-bottom: 10px;
}
.process-node h4{ font-size: 1.02rem; }

@media (max-width: 900px){
  .process-row{ grid-template-columns: repeat(3, 1fr); }
  .process-node:nth-child(3){ border-right: 0; }
  .process-node{ border-bottom: 1px solid var(--stone-line); padding-bottom: 20px; margin-bottom: 6px;}
}
@media (max-width: 560px){
  .process-row{ grid-template-columns: repeat(2, 1fr); }
  .process-node:nth-child(2n){ border-right: 0; }
}

/* =========================================================
   CTA
   ========================================================= */
.cta-band{
  background: var(--brass);
  color: var(--pine);
  padding: 86px 0;
}
.cta-band h2{ color: var(--pine); font-size: clamp(1.9rem, 4vw, 2.7rem); max-width: 16ch; }
.cta-band p{ color: rgba(38,48,31,0.78); margin-top: 16px; max-width: 56ch; font-size: 1.04rem; }
.cta-row{
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 30px;
  flex-wrap: wrap;
}

/* =========================================================
   CONTACT
   ========================================================= */
.contact-grid{
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 70px;
}
.contact-list{ list-style: none; margin: 24px 0 0; padding: 0; }
.contact-list li{
  display: flex; gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--stone-line);
  align-items: flex-start;
}
.contact-list li:last-child{ border-bottom: 1px solid var(--stone-line); }
.contact-list i{ color: var(--brass); font-size: 1.1rem; margin-top: 3px; }
.contact-list b{ display:block; font-size: 0.82rem; color: var(--muted); font-weight: 500; }
.contact-list span, .contact-list a{ font-size: 1.02rem; }

.form-sv label{
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 6px;
  display: block;
}
.form-sv .form-control,
.form-sv .form-select{
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--stone-line);
  border-radius: 0;
  padding: 10px 2px;
  font-family: var(--font-body);
  color: var(--ink);
}
.form-sv .form-control:focus,
.form-sv .form-select:focus{
  box-shadow: none;
  border-color: var(--brass);
  background: transparent;
}
.form-sv .mb-4{ margin-bottom: 26px !important; }
#enquiry-feedback{
  margin-top: 18px;
  font-size: 0.95rem;
  display: none;
}
#enquiry-feedback.ok{ display:block; color: var(--pine-3); }
#enquiry-feedback.err{ display:block; color: var(--clay); }

@media (max-width: 900px){
  .contact-grid{ grid-template-columns: 1fr; gap: 40px; }
}

/* =========================================================
   FOOTER
   ========================================================= */
.sv-footer{
  background: var(--pine);
  color: rgba(251,248,241,0.72);
  padding: 76px 0 0;
}
.footer-grid{
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 56px;
}
.footer-grid h5{
  color: var(--cream);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  margin-bottom: 18px;
}
.footer-grid ul{ list-style: none; margin:0; padding:0; }
.footer-grid li{ margin-bottom: 10px; }
.footer-grid a:hover{ color: var(--brass-light); }
.footer-brand{
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-brand img{ height: 52px; width: auto; }
.footer-brand span{
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--cream);
}
.footer-brand-block p{ margin-top: 10px; color: var(--brass-light); font-size: 0.9rem; }
.footer-bottom{
  border-top: 1px solid rgba(251,248,241,0.14);
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.85rem;
  color: rgba(251,248,241,0.5);
}

@media (max-width: 700px){
  .footer-grid{ grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child{ grid-column: 1 / -1; margin-bottom: 10px; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *{ transition: none !important; }
}

/* ---------- focus visibility ---------- */
a:focus-visible, button:focus-visible, .form-control:focus-visible{
  outline: 2px solid var(--brass);
  outline-offset: 2px;
}

/* ---------- PHP build additions ---------- */
.hero-art img{ width: 100%; max-width: 500px; height: auto; display: block; }
@media (max-width: 767px){ .hero-art img{ max-width: 340px; } }
.hp-field{ position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
