/* ============================================================
   Integris Outdoor Living — Ad Landing Page
   Palette: black / gold / cream, premium residential build
   ============================================================ */

:root{
  --black:       #0d0d0d;
  --ink:         #16140f;     /* near-black warm */
  --charcoal:    #221f1a;
  --cream:       #f6f1e7;
  --cream-soft:  #efe8d9;
  --paper:       #fbf8f1;
  --gold:        #c9a35e;
  --gold-deep:   #a9823f;
  --gold-soft:   #e3c98e;
  --line:        #d8cfbd;
  --line-dark:   #34302a;
  --text:        #1c1812;
  --text-muted:  #6b6457;
  --text-faint:  #968d7c;
  --on-dark:     #f1ece2;
  --on-dark-mut: #b9b1a2;

  --maxw: 1180px;
  --radius: 4px;
  --shadow-card: 0 18px 44px -22px rgba(20,16,8,.45);
  --ease: cubic-bezier(.22,.61,.36,1);

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

.container{
  width:100%;
  max-width:var(--maxw);
  margin-inline:auto;
  padding-inline:clamp(20px, 5vw, 48px);
}

/* ---------- Typography ---------- */
h1,h2,h3{ font-family:var(--font-display); font-weight:600; line-height:1.08; letter-spacing:-.01em; }
.eyebrow{
  display:inline-block;
  font-family:var(--font-body);
  font-size:.78rem;
  font-weight:600;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:var(--gold-deep);
  margin-bottom:1rem;
}
.eyebrow-light{ color:var(--gold-soft); }

.section{ padding-block:clamp(56px, 8vw, 104px); }
.section-head{ max-width:720px; margin-bottom:clamp(32px,5vw,52px); }
.section-title{
  font-size:clamp(1.9rem, 4.6vw, 3.05rem);
  color:var(--ink);
}
.section-title.light{ color:var(--cream); }
.section-lead{
  margin-top:1.1rem;
  font-size:clamp(1.02rem, 1.6vw, 1.18rem);
  color:var(--text-muted);
  max-width:62ch;
}
.section-lead.light{ color:var(--on-dark-mut); }
.fineprint{
  margin-top:2rem;
  font-size:.82rem;
  color:var(--text-faint);
  max-width:70ch;
}

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.5rem;
  font-family:var(--font-body);
  font-weight:600;
  letter-spacing:.01em;
  border-radius:var(--radius);
  border:1.5px solid transparent;
  cursor:pointer;
  transition:transform .2s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease), color .2s var(--ease);
  text-align:center;
  line-height:1.1;
}
.btn-sm{ padding:.62rem 1.1rem; font-size:.92rem; }
.btn-lg{ padding:1.02rem 1.7rem; font-size:1.04rem; }
.btn-gold{
  background:var(--gold);
  color:#1a140a;
  box-shadow:0 10px 26px -12px rgba(201,163,94,.7);
}
.btn-gold:hover{ background:var(--gold-soft); transform:translateY(-2px); }
.btn-gold:active{ transform:translateY(0); }
.btn-outline-light{
  background:rgba(255,255,255,.04);
  border-color:rgba(246,241,231,.55);
  color:var(--cream);
  backdrop-filter:blur(3px);
}
.btn-outline-light:hover{ background:rgba(246,241,231,.12); border-color:var(--cream); transform:translateY(-2px); }
.btn:focus-visible{ outline:3px solid var(--gold-soft); outline-offset:3px; }

/* ---------- Header ---------- */
.site-header{
  position:fixed;
  top:0; left:0; right:0;
  z-index:60;
  transition:background .3s var(--ease), box-shadow .3s var(--ease), padding .3s var(--ease);
  padding-block:.85rem;
}
.site-header.scrolled{
  background:rgba(13,13,13,.92);
  backdrop-filter:blur(10px);
  box-shadow:0 1px 0 rgba(201,163,94,.22);
  padding-block:.55rem;
}
.header-inner{ display:flex; align-items:center; gap:1.5rem; }
.brand-logo{ height:30px; width:auto; }
.header-nav{ display:flex; gap:1.7rem; margin-left:auto; }
.header-nav a{
  font-size:.95rem; font-weight:500; color:var(--on-dark);
  opacity:.88; transition:opacity .2s, color .2s;
}
.header-nav a:hover{ opacity:1; color:var(--gold-soft); }
.header-cta{ flex-shrink:0; }

/* ---------- Hero ---------- */
.hero{
  position:relative;
  min-height:clamp(620px, 92vh, 880px);
  display:flex;
  align-items:flex-end;
  overflow:hidden;
}
.hero-bg{
  position:absolute; inset:0;
  background:url("assets/img/hero-louvered.jpg") center 35%/cover no-repeat;
  transform:scale(1.04);
}
.hero-overlay{
  position:absolute; inset:0;
  background:
    linear-gradient(180deg, rgba(13,13,13,.66) 0%, rgba(13,13,13,.18) 34%, rgba(13,13,13,.42) 64%, rgba(13,13,13,.9) 100%);
}
.hero-content{
  position:relative;
  z-index:2;
  padding-block:clamp(90px, 14vh, 150px) clamp(48px, 8vh, 88px);
  max-width:760px;
}
.hero-title{
  color:#fff;
  font-size:clamp(2.5rem, 7vw, 4.6rem);
  font-weight:600;
  text-shadow:0 2px 30px rgba(0,0,0,.4);
}
.hero-sub{
  color:var(--on-dark);
  font-size:clamp(1.08rem, 2.1vw, 1.32rem);
  margin-top:1.4rem;
  max-width:60ch;
  text-shadow:0 1px 14px rgba(0,0,0,.45);
}
.hero-actions{
  display:flex; flex-wrap:wrap; gap:.9rem;
  margin-top:2.1rem;
}
.hero-note{
  margin-top:1.3rem;
  font-size:.88rem;
  color:var(--on-dark-mut);
  letter-spacing:.01em;
}

/* ---------- Trust strip ---------- */
.trust-strip{
  background:var(--ink);
  border-top:1px solid var(--line-dark);
  border-bottom:1px solid var(--line-dark);
}
.trust-inner{
  display:flex;
  flex-wrap:wrap;
  justify-content:space-between;
  gap:1rem 2rem;
  padding-block:1.15rem;
}
.trust-item{
  display:flex; align-items:center; gap:.55rem;
  font-size:.92rem; font-weight:500;
  color:var(--on-dark);
}
.trust-mark{ color:var(--gold); font-size:.6rem; line-height:1; }

/* ---------- Configurator ---------- */
.configurator-section{ background:var(--paper); }
.configurator-section .section-head{ margin-inline:auto; text-align:center; max-width:760px; }
.configurator-section .section-lead{ margin-inline:auto; }
.configurator-frame-wrap{ margin-top:6px; }
.configurator-frame{
  position:relative;
  width:100%;
  height:900px;
  border-radius:10px;
  overflow:hidden;
  background:#13110d;
  border:1px solid var(--line);
  box-shadow:var(--shadow-card);
}
.configurator-frame iframe{
  width:100%;
  height:100%;
  border:0;
  display:block;
}
.configurator-fineprint{
  margin-top:1.1rem;
  text-align:center;
  font-size:.84rem;
  color:var(--text-faint);
}

/* ---------- Process ---------- */
.process-section{ background:var(--cream); }
.process-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(190px, 1fr));
  gap:1.1rem;
}
.process-card{
  background:var(--paper);
  border:1px solid var(--line);
  border-radius:8px;
  padding:1.7rem 1.5rem;
  position:relative;
  transition:transform .25s var(--ease), box-shadow .25s var(--ease);
}
.process-card:hover{ transform:translateY(-4px); box-shadow:var(--shadow-card); }
.process-num{
  font-family:var(--font-display);
  font-size:1.5rem; font-weight:600;
  color:var(--gold-deep);
  display:block; margin-bottom:.7rem;
}
.process-card h3{ font-size:1.16rem; margin-bottom:.45rem; color:var(--ink); }
.process-card p{ font-size:.94rem; color:var(--text-muted); }

/* ---------- Reviews ---------- */
.reviews-section{
  background:var(--cream);
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
}
.reviews-head{
  text-align:center;
  margin-inline:auto;
  max-width:680px;
}
.reviews-head .section-lead{ margin-inline:auto; }

.reviews-widget-wrap{
  margin-top:clamp(24px, 4vw, 40px);
  /* Give the widget room to breathe; Trustindex renders inside here */
  min-height:200px;
  position:relative;
}

/* Ensure Trustindex cards pick up the page's color scheme via CSS overrides.
   The widget injects its own shadow-DOM-adjacent elements; these nudge colors
   where the widget respects custom properties on the parent. */
.reviews-widget-wrap{
  --ti-primary-color: var(--gold);
  --ti-text-color:    var(--text);
  --ti-bg-color:      var(--paper);
}

/* Fallback paragraph — hidden by default, shown by JS if widget appears empty */
.reviews-fallback{
  margin-top:1.5rem;
  font-size:.88rem;
  color:var(--text-faint);
  text-align:center;
  line-height:1.6;
}
.reviews-fallback a{
  color:var(--gold-deep);
  text-decoration:underline;
  text-underline-offset:3px;
}
.reviews-fallback a:hover{ color:var(--gold); }

/* ---------- Inspiration gallery ---------- */
.inspiration-section{ background:var(--paper); }
.gallery-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(290px, 1fr));
  gap:1.3rem;
}
.gallery-card{
  position:relative;
  border-radius:8px;
  overflow:hidden;
  box-shadow:var(--shadow-card);
  background:var(--ink);
}
.gallery-card img{
  width:100%;
  aspect-ratio:4/3;
  object-fit:cover;
  transition:transform .5s var(--ease);
}
.gallery-card:hover img{ transform:scale(1.05); }
.gallery-card figcaption{
  position:absolute;
  left:0; right:0; bottom:0;
  padding:1.4rem 1.1rem .9rem;
  font-size:.94rem;
  font-weight:600;
  color:#fff;
  background:linear-gradient(0deg, rgba(13,13,13,.86) 0%, rgba(13,13,13,0) 100%);
}

/* ---------- Services ---------- */
.services-section{ background:var(--ink); color:var(--on-dark); }
.services-section .section-title{ color:var(--cream); }
.services-section .section-lead{ color:var(--on-dark-mut); }
.services-section .eyebrow{ color:var(--gold-soft); }
.services-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(280px, 1fr));
  gap:1.1rem;
}
.service-card{
  border:1px solid var(--line-dark);
  border-radius:8px;
  padding:1.7rem 1.5rem;
  background:var(--charcoal);
  transition:border-color .25s var(--ease), transform .25s var(--ease);
}
.service-card:hover{ transform:translateY(-4px); }
.service-card.primary{ border-color:rgba(201,163,94,.32); }
.service-card.primary:hover{ border-color:var(--gold); }
.service-card.supporting{ background:transparent; }
.service-tag{
  display:inline-block;
  font-size:.68rem; font-weight:700; letter-spacing:.16em; text-transform:uppercase;
  color:var(--gold);
  margin-bottom:.7rem;
}
.service-tag.muted{ color:var(--text-faint); }
.service-card h3{ font-size:1.22rem; color:var(--cream); margin-bottom:.5rem; }
.service-card p{ font-size:.95rem; color:var(--on-dark-mut); }

/* ---------- Lead / CTA ---------- */
.lead-section{
  background:
    linear-gradient(rgba(13,12,10,.86), rgba(13,12,10,.93)),
    url("assets/img/project-kitchen.jpg") center/cover fixed no-repeat;
  color:var(--on-dark);
}
.lead-inner{
  display:grid;
  grid-template-columns:1.5fr 1fr;
  gap:clamp(2rem, 5vw, 4rem);
  align-items:center;
}
.lead-actions{ margin-top:1.9rem; }
.lead-points{
  display:flex; flex-direction:column; gap:1rem;
  border-left:2px solid rgba(201,163,94,.4);
  padding-left:1.5rem;
}
.lead-points li{
  display:flex; align-items:center; gap:.7rem;
  font-size:1.02rem; font-weight:500; color:var(--cream);
}

/* ---------- Footer ---------- */
.site-footer{ background:#0a0a09; color:var(--on-dark-mut); padding-block:clamp(40px,6vw,64px); }
.footer-inner{
  display:grid;
  grid-template-columns:1fr 1.6fr;
  gap:2.5rem;
  align-items:start;
}
.footer-logo{ height:28px; margin-bottom:1rem; }
.footer-brand p{ font-size:.92rem; max-width:34ch; }
.footer-fine p{ font-size:.8rem; line-height:1.65; }
.footer-copy{ margin-top:1rem; color:var(--text-faint); }

/* ---------- Sticky mobile CTA ---------- */
.sticky-cta{
  display:none;
  position:fixed;
  left:16px; right:16px; bottom:16px;
  z-index:70;
  background:var(--gold);
  color:#1a140a;
  font-family:var(--font-body);
  font-weight:700;
  font-size:1.05rem;
  text-align:center;
  padding:1.05rem;
  border-radius:8px;
  box-shadow:0 14px 32px -10px rgba(0,0,0,.6);
  transition:transform .18s var(--ease), background .18s var(--ease);
}
.sticky-cta:hover{ background:var(--gold-soft); }
.sticky-cta:active{ transform:translateY(1px); }
.sticky-cta:focus-visible{ outline:3px solid var(--gold-soft); outline-offset:3px; }

/* ---------- Mobile launch card ---------- */
/* Hidden on desktop — shown only at mobile breakpoint below */
.mobile-launch-card{ display:none; }

.mobile-launch-inner{
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  background:var(--paper);
  border:1px solid var(--line);
  border-radius:12px;
  padding:clamp(28px, 6vw, 48px) clamp(20px, 5vw, 40px);
  box-shadow:var(--shadow-card);
  gap:1.15rem;
  max-width:520px;
  margin-inline:auto;
}
.mobile-launch-icon{
  width:56px; height:56px;
  flex-shrink:0;
}
.mobile-launch-heading{
  font-family:var(--font-display);
  font-size:clamp(1.35rem, 5vw, 1.7rem);
  font-weight:600;
  color:var(--ink);
  line-height:1.12;
}
.mobile-launch-copy{
  font-size:clamp(.94rem, 3.2vw, 1.06rem);
  color:var(--text-muted);
  max-width:48ch;
  line-height:1.62;
}
.mobile-launch-primary{
  width:100%;
  max-width:340px;
  margin-top:.3rem;
}
.mobile-launch-primary:focus-visible{ outline:3px solid var(--gold-soft); outline-offset:3px; }
.mobile-launch-newtab{
  display:inline-block;
  font-size:.87rem;
  font-weight:500;
  color:var(--gold-deep);
  text-decoration:underline;
  text-underline-offset:3px;
  letter-spacing:.01em;
  padding:.25rem .5rem;
  border-radius:var(--radius);
  transition:color .18s var(--ease);
}
.mobile-launch-newtab:hover{ color:var(--gold); }
.mobile-launch-newtab:focus-visible{ outline:3px solid var(--gold-soft); outline-offset:3px; }
.mobile-launch-fine{
  margin-top:0;
  max-width:44ch;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px){
  .lead-inner{ grid-template-columns:1fr; }
  .footer-inner{ grid-template-columns:1fr; gap:1.6rem; }
  .lead-points{ border-left:none; border-top:2px solid rgba(201,163,94,.4); padding-left:0; padding-top:1.4rem; }
  .lead-section{ background-attachment:scroll; }
}

@media (max-width: 720px){
  .header-nav{ display:none; }
  .header-cta{ margin-left:auto; }
  .trust-inner{ justify-content:flex-start; }

  /* Hide the desktop iframe embed, show the mobile launch card */
  #configuratorDesktop{ display:none; }
  .mobile-launch-card{
    display:block;
    padding-block:clamp(28px, 6vw, 48px);
  }

  .sticky-cta{ display:block; }
  body{ padding-bottom:84px; } /* room for sticky CTA */
  .hero{ min-height:auto; }
  .hero-content{ padding-block:120px 56px; }
}

@media (max-width: 420px){
  /* .configurator-frame height not needed — iframe is hidden on mobile */
  .btn-lg{ width:100%; }
  .hero-actions{ flex-direction:column; align-items:stretch; }
}

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