/* ===============================
   Strategic 3D Cards — Strong Rebuild v2
   Arial-based, industrial authority layout
   =============================== */

:root{
  --brand:#3f526f;
  --text:#1a1a1a;
  --muted:#f4f6f8;
  --border:#e5e5e5;
}

*{ box-sizing:border-box; }

body{
  margin:0;
  font-family:Arial, Helvetica, sans-serif;
  color:var(--text);
  background:#ffffff;
  line-height:1.5;
}

.container{
  width:92%;
  max-width:1200px;
  margin:0 auto;
}

/* ===============================
   Header
   =============================== */

.site-header{
  background:var(--brand);
  height:72px;
  display:flex;
  align-items:center;
}

.header-inner{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
}

.brand img{
  height:30px;
  display:block;
}

.site-nav{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  flex-wrap:wrap;
}

.site-nav a{
  color:rgba(255,255,255,0.86);
  text-decoration:none;
  margin-left:26px;
  font-weight:600;
  font-size:14px;
  letter-spacing:0.02em;
  white-space:nowrap;
}

.site-nav a:hover,
.site-nav a.active{
  color:#ffffff;
}

/* ===============================
   Typography
   =============================== */

h1,h2,h3{
  font-weight:600;
  line-height:1.2;
}

h1{ font-size:40px; margin:0 0 18px 0; }
h2{ font-size:28px; margin:0 0 14px 0; }
h3{ font-size:18px; margin:0 0 10px 0; }

p{ margin:0 0 14px 0; }

.lead{
  font-size:18px;
  max-width:860px;
}

/* ===============================
   Buttons
   =============================== */

.hero-ctas{
  margin-top:18px;
  display:flex;
  justify-content:center;
  gap:12px;
  flex-wrap:wrap;
}

.btn-primary,
.btn-secondary{
  display:inline-block;
  padding:14px 26px;
  text-decoration:none;
  font-weight:600;
  letter-spacing:0.02em;
  border:1px solid transparent;
}

.btn-primary{
  background:var(--brand);
  color:#ffffff;
}

.btn-secondary{
  background:transparent;
  color:var(--brand);
  border-color:var(--brand);
}

/* ===============================
   Sections + spacing rhythm
   =============================== */

.hero{
  padding:98px 0 56px 0;  /* tightened bottom spacing */
  text-align:center;
}

.hero p{
  max-width:780px;
  margin:0 auto 0 auto;
  font-size:18px;
}

.section{
  padding:70px 0; /* tighter default to reduce gaps */
}

.section-muted{
  background:var(--muted);
}

.section-tight-top{
  padding-top:44px; /* used when stacking directly after hero */
}

.section-tight-bottom{
  padding-bottom:44px;
}

/* ===============================
   Grids / cards
   =============================== */

.grid-3{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(240px, 1fr));
  gap:18px;
  margin-top:22px; /* reduced to avoid over-spacing */
}

.card{
  border:1px solid var(--border);
  background:#ffffff;
  padding:22px;
}

.card p{ margin:0; }

/* ===============================
   Video
   =============================== */

.video-wrapper{
  max-width:600px; /* requested */
  margin:28px auto 0 auto; /* reduced top margin */
}

.video-wrapper video{
  width:100%;
  display:block;
}

/* ===============================
   Page hero (interior pages)
   =============================== */

.page-hero{
  padding:56px 0 40px 0;
  background:var(--muted);
}

.page-hero .lead{
  margin-top:10px;
}

/* ===============================
   Process steps
   =============================== */

.steps{
  display:grid;
  gap:14px;
  margin-top:18px;
}

.step{
  border:1px solid var(--border);
  background:#ffffff;
  padding:22px;
}

.step p{ margin:0; }

/* ===============================
   Use case cards
   =============================== */

.cards{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(240px, 1fr));
  gap:18px;
  margin-top:18px;
}

/* ===============================
   FAQ
   =============================== */

.faq{
  margin-top:12px;
}

.faq details{
  border-bottom:1px solid var(--border);
  padding:14px 0;
}

.faq summary{
  cursor:pointer;
  font-weight:600;
}

.faq p{
  margin:10px 0 0 0;
}

/* ===============================
   Gallery grid + lightbox
   =============================== */

.gallery-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(240px, 1fr));
  column-gap:16px;
  row-gap:64px;
  margin-top:18px;
}

.gallery-item{
  margin:0;
  border:1px solid var(--border);
  background:#ffffff;
}

/* Lightbox */
.lightbox{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,0.75);
  display:none;
  align-items:center;
  justify-content:center;
  padding:24px;
  z-index:9999;
}

.lightbox.open{ display:flex; }

.lightbox-content{
  max-width:min(1100px, 96vw);
  max-height:90vh;
  background:#0b0b0b;
  border:1px solid rgba(255,255,255,0.12);
  position:relative;
}

.lightbox-content img{
  display:block;
  max-width:100%;
  max-height:90vh;
}

.lightbox-close{
  position:absolute;
  top:10px;
  right:10px;
  border:1px solid rgba(255,255,255,0.25);
  background:rgba(0,0,0,0.35);
  color:#ffffff;
  font-weight:600;
  padding:10px 12px;
  cursor:pointer;
}

/* ===============================
   Contact embed wrapper (fix iframe sizing)
   =============================== */

.form-wrapper{
  max-width:900px;
  margin:0 auto;
  min-height:1600px; /* aligns to form height */
}

.form-wrapper iframe{
  width:100%;
  border:none;
  display:block;
}

/* ===============================
   Footer
   =============================== */

.site-footer{
  border-top:1px solid var(--border);
  padding:44px 0;
  text-align:center;
  font-size:14px;
}

.footer-inner p{ margin:6px 0; }

.footer-sep{
  margin:0 10px;
  opacity:0.6;
}

.site-footer a{
  color:var(--brand);
  text-decoration:none;
}

.site-footer a:hover{ text-decoration:underline; }

/* ===============================
   Gallery — normalize tile heights + vertical centering
   =============================== */

/* ===============================
   Gallery — normalize tile heights + vertical centering
   =============================== */

.gallery-item button{
  all:unset;
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  aspect-ratio: 4 / 3; /* consistent tile height */
  cursor:pointer;
  background:#ffffff;
}

.gallery-item img{
  width:100%;
  height:100%;
  object-fit:contain; /* preserves full image, centers within tile */
  display:block;
}

/* ===============================
   Responsive
   =============================== */

@media (max-width: 900px){
  .site-nav a{ margin-left:16px; }
  h1{ font-size:34px; }
  .hero{ padding:84px 0 50px 0; }
  .section{ padding:60px 0; }
}

/* ===============================
   Validated deployments (Hybrid Specialist layer)
   =============================== */

.grid-2{
  display:grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap:22px;
  align-items:start;
  margin-top:18px;
}

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

.evidence-block{
  border:1px solid var(--border);
  background:#ffffff;
  padding:22px;
}

.evidence-kicker{
  font-size:12px;
  letter-spacing:0.08em;
  text-transform:uppercase;
  color:rgba(26,26,26,0.70);
  margin:0 0 10px 0;
}

.evidence-list{
  margin:12px 0 0 18px;
  padding:0;
}

.evidence-list li{
  margin:8px 0;
}

.evidence-card{
  border:1px solid var(--border);
  background:#ffffff;
  padding:14px;
}

.evidence-card img{
  width:100%;
  height:auto;
  display:block;
}

.caption{
  font-size:13px;
  color:rgba(26,26,26,0.75);
  margin:10px 0 0 0;
}

/* Specialist positioning block */
.specialist{
  max-width:920px;
}

.specialist h3{
  margin:0 0 10px 0;
}

/* ===============================
   Strategic Authority Interior Layer
   =============================== */

.authority-section{
  padding:80px 0;
}

.authority-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:40px;
  align-items:center;
}

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

.authority-image{
  border:1px solid var(--border);
  background:#ffffff;
  padding:18px;
}

.authority-image img{
  width:100%;
  height:auto;
  display:block;
}

.authority-content h3{
  font-size:22px;
  margin-bottom:14px;
}

.authority-content p{
  font-size:16px;
  line-height:1.6;
}

.authority-divider{
  height:1px;
  background:var(--border);
  margin:60px 0;
}

/* ===============================
   Portfolio titles (figcaption)
   =============================== */

.gallery-title{
  display:block;
  text-align:center;
  font-size:14px;
  font-weight:600;
  color:rgba(26,26,26,0.78);
  padding:12px 12px 16px 12px; /* keeps text outside the image tile */
}

/* Ensure figure captions never overlap the image tile */
.gallery-item figcaption{
  border-top:1px solid var(--border);
}

/* ===============================
   FAQ accordion (if used)
   =============================== */

.faq-item{
  border-bottom:1px solid var(--border);
  padding:14px 0;
}

.faq-question{
  cursor:pointer;
  font-weight:600;
}

.faq-answer{
  display:none;
  margin:10px 0 0 0;
}

.faq-item.active .faq-answer{
  display:block;
}

/* ===============================
   FAQ — clickable indicator arrows (override)
   =============================== */

.faq-question{
  position:relative;
  padding-right:26px;
}

.faq-question::after{
  content:"▾" !important;
  position:absolute;
  right:0;
  top:0;
  line-height:1.2;
  font-size:14px;
  transform:rotate(0deg);
  transition:transform 0.2s ease;
  opacity:0.85;
}

.faq-item.active .faq-question::after{
  transform:rotate(180deg);
}

/* ===============================
   Gallery — extra vertical separation lines
   =============================== */

.gallery-item{
  padding-top:18px;
  border-top:1px solid var(--border);
}

.gallery-grid{
  padding-top:18px; /* prevents first row from touching top */
}

/* ===============================
   Contact page — Project Inquiry layout
   =============================== */

.contact-grid{ align-items:start; }
.contact-criteria .evidence-list{ margin-bottom:12px; }
.contact-note{ margin:0; }

/* Keep form flush in the right column (above fold behavior) */
.contact-form .form-wrapper{ max-width:none; margin:0; }

@media (max-width: 900px){
  .contact-form .form-wrapper{ margin-top:18px; }
}
