﻿/* ==========================================================================
   Sid Bahri site: restrained white theme, Raleway, editorial grid
   ========================================================================== */

:root{
  --bg: #ffffff;
  --text: #111111;
  --muted: #4D4D4D;
  --line: rgba(17,17,17,.12);
  --soft: rgba(17,17,17,.06);
  --accent: #F75C03;

  --maxw: 1200px;

  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 72px;
  --space-7: 96px;
  --space-8: 140px;

  --radius: 0px;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Raleway", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0;
}

img{ max-width: 100%; height: auto; display: block; }
a{ color: inherit; text-decoration: none; }
button{ font-family: inherit; }

.container{
  width: min(var(--maxw), 100%);
  margin: 0 auto;
  padding: 0 80px;
}

@media (max-width: 991px){
  .container{ padding: 0 24px; }
}

/* ==========================================================================
   Type scale
   ========================================================================== */

.h1{
  font-size: 64px;
  line-height: 1.05;
  letter-spacing: -0.5px;
  font-weight: 700;
  margin: 0;
}

.h2{
  font-size: 42px;
  line-height: 1.2;
  letter-spacing: -0.25px;
  font-weight: 600;
  margin: 0;
}

.h3{
  font-size: 28px;
  line-height: 1.25;
  font-weight: 600;
  margin: 0;
}

.p-lg{
  font-size: 20px;
  margin: 0;
}

.p{
  font-size: 18px;
  margin: 0;
  color: var(--text);
}

.small{
  font-size: 14px;
  color: var(--muted);
}

.muted{ color: var(--muted); }

@media (max-width: 991px){
  .h1{ font-size: 40px; }
  .h2{ font-size: 32px; }
  .h3{ font-size: 22px; }
  .p, .p-lg{ font-size: 16px; }
}

/* ==========================================================================
   Layout helpers
   ========================================================================== */

.section{
  padding: var(--space-8) 0;
}

.section-tight{
  padding: var(--space-7) 0;
}

.hr{
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0;
}

.grid-12{
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--space-5);
  align-items: start;
}

@media (max-width: 991px){
  .grid-12{ grid-template-columns: 1fr; gap: var(--space-4); }
}

.col-7{ grid-column: span 7; }
.col-5{ grid-column: span 5; }
.col-6{ grid-column: span 6; }
.col-4{ grid-column: span 4; }
.col-8{ grid-column: span 8; }
.col-12{ grid-column: span 12; }

@media (max-width: 991px){
  .col-7,.col-5,.col-6,.col-4,.col-8,.col-12{ grid-column: auto; }
}

/* ==========================================================================
   Nav
   ========================================================================== */

.nav{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--soft);
}

.nav-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand{
  font-weight: 700;
  letter-spacing: 0.2px;
}

.nav-links{
  display: flex;
  gap: 22px;
  align-items: center;
  flex-wrap: wrap;
}

.nav a{
  position: relative;
  font-size: 14px;
  color: var(--muted);
  padding: 6px 0;
  transition: color .15s ease;
}

.nav a:hover{ color: var(--text); }

.nav a::after{
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  height: 1px;
  width: 0%;
  background: var(--accent);
  transition: width .18s ease;
}

.nav a:hover::after{ width: 100%; }

@media (max-width: 991px){
  .nav-inner{ height: auto; padding: 14px 0; gap: 10px; align-items: flex-start; }
  .nav-links{ gap: 16px; }
}

/* ==========================================================================
   Buttons / CTAs (outlined, restrained)
   ========================================================================== */

.actions{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: var(--space-4);
}

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  background: transparent;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.btn:hover{
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.link{
  color: var(--text);
  border-bottom: 1px solid rgba(247,92,3,.35);
  padding-bottom: 2px;
  transition: border-color .15s ease, color .15s ease;
}

.link:hover{
  color: var(--text);
  border-color: var(--accent);
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero{
  padding: 60px 0 40px;
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
}

.hero-image{
  border: none;
  background: transparent;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.hero-kicker{
  margin-top: 16px;
  color: var(--muted);
  max-width: 58ch;
}

.divider{
  margin-top: var(--space-6);
}

@media (max-width: 991px){
  .hero{ padding: var(--space-6) 0 var(--space-5); }
  .divider{ margin-top: var(--space-5); }
}

/* ==========================================================================
   Editorial reading column
   ========================================================================== */

.reading{
  width: min(720px, 100%);
  margin: 0 auto;
}

.reading p{ margin-top: var(--space-3); }
.reading p:first-of-type{ margin-top: 0; }

.pullquote{
  font-size: 36px;
  line-height: 1.25;
  font-weight: 300;
  color: var(--text);
  margin: var(--space-6) 0;
  padding-left: var(--space-4);
  border-left: 2px solid var(--accent);
}

@media (max-width: 991px){
  .pullquote{ font-size: 26px; margin: var(--space-5) 0; }
}

/* ==========================================================================
   Equal weight section template
   ========================================================================== */

.section-head{
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
}

.blocks{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-5);
}

.block{
  border-top: 1px solid var(--line);
  padding-top: var(--space-3);
}

.block .title{
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 10px;
}

.block .desc{
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

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

/* ==========================================================================
   OSFN modules (cards + accordions)
   ========================================================================== */

.cards{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-5);
}

.card{
  border: 1px solid var(--line);
  padding: var(--space-4);
  background: #fff;
}

.card h3{ margin-bottom: 10px; }
.card p{ color: var(--muted); margin: 0; }

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

.accordion{
  margin-top: var(--space-3);
  border-top: 1px solid var(--line);
}

.acc-item{
  border-bottom: 1px solid var(--line);
}

.acc-btn{
  width: 100%;
  text-align: left;
  padding: 14px 0;
  background: transparent;
  border: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.acc-title{
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.acc-icon{
  width: 18px;
  height: 18px;
  position: relative;
  flex: 0 0 18px;
}

.acc-icon::before,
.acc-icon::after{
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 18px;
  height: 1px;
  background: var(--muted);
  transform: translateY(-50%);
}

.acc-icon::after{
  transform: translateY(-50%) rotate(90deg);
  transition: transform .15s ease;
}

.acc-item[aria-expanded="true"] .acc-icon::after{
  transform: translateY(-50%) rotate(0deg);
}

.acc-panel{
  overflow: hidden;
  max-height: 0px;
  transition: max-height .22s ease;
}

.acc-panel-inner{
  padding: 0 0 var(--space-3);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.acc-panel-inner p{ margin: 0; }
.acc-panel-inner p + p{ margin-top: 10px; }

/* ==========================================================================
   Form
   ========================================================================== */

.form{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  margin-top: var(--space-5);
}

.field{
  display: flex;
  flex-direction: column;
  gap: 8px;
}

label{
  font-size: 14px;
  color: var(--muted);
}

input, select, textarea{
  width: 100%;
  padding: 12px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 14px;
  background: #fff;
  color: var(--text);
  outline: none;
}

textarea{ min-height: 140px; resize: vertical; }

.form .full{ grid-column: 1 / -1; }

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

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

.footer{
  padding: var(--space-6) 0;
  border-top: 1px solid var(--line);
}

.footer-inner{
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-5);
  align-items: start;
}

.footer-links{
  display: grid;
  gap: 10px;
  justify-items: end;
}

.footer a{
  font-size: 14px;
  color: var(--muted);
}

.footer a:hover{ color: var(--text); }

@media (max-width: 991px){
  .footer-inner{ grid-template-columns: 1fr; }
  .footer-links{ justify-items: start; }
}

/* ==========================================================================
   Micro-interactions: reveal on scroll
   ========================================================================== */

.reveal{
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .28s ease, transform .28s ease;
}

.reveal.is-visible{
  opacity: 1;
  transform: translateY(0);
}
.logo{
  height: 32px;
  width: auto;
  display: block;
}

.accent{
  color: var(--accent);
}
@media (max-width: 600px){
  .logo{ height: 26px; }
  .nav-links{ gap: 12px; }
  .nav a{ font-size: 13px; }
  .hero-image{ width: 100%; }
}
/* ===== FINAL OVERRIDES (HOME) ===== */

.brand{ color: #4D4D4D; }

.logo{
  height: 32px;
  width: auto;
  display: block;
}

.accent{ color: #F75C03; }

/* Hero fit */
.hero{
  padding: 24px 0 16px;
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
}

.hero .h1{
  color: #4D4D4D;
  font-size: clamp(42px, 4.6vw, 62px);
  line-height: 0.98;
  letter-spacing: -0.8px;
}

.hero-kicker{
  margin-top: 10px;
  max-width: 54ch;
  line-height: 1.55;
}

.actions{ margin-top: 14px; }

/* Hero image: bigger but viewport-capped */
.hero-image{
  border: none;
  background: transparent;
  width: 100%;
  height: auto;
  max-height: calc(100vh - 160px);
  object-fit: contain;
}

@media (max-width: 600px){
  .logo{ height: 26px; }
  .nav-links{ gap: 12px; }
  .nav a{ font-size: 13px; }
}

/* ===== INDEX: NO-SCROLL LAYOUT ===== */
html, body { height: 100%; }

body{
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* main fills remaining height below sticky nav */
main{
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* hero uses available space in main, not 100vh */
.hero{
  flex: 1;
  padding: 18px 0;
  display: flex;
  align-items: center;
}

/* tighter hero */
.hero .h1{
  color: #4D4D4D;
  font-size: clamp(40px, 4.4vw, 60px);
  line-height: 0.98;
  letter-spacing: -0.8px;
}

.hero-kicker{
  margin-top: 10px;
  max-width: 52ch;
  line-height: 1.5;
}

.actions{ margin-top: 12px; }

.hero-image{
  border: none;
  background: transparent;
  width: 100%;
  height: auto;
  max-height: 62vh;
  object-fit: contain;
}

.accent{ color: #F75C03; }
.brand{ color: #4D4D4D; }
/* HERO BALANCE FIX */
.hero{
  padding: 18px 0;
  display: flex;
  align-items: center;
}

.hero .h1{
  font-size: clamp(40px, 4.6vw, 62px);
  line-height: 0.98;
  letter-spacing: -0.8px;
  color: #4D4D4D;
}

.hero-kicker{
  margin-top: 10px;
  max-width: 56ch;
  line-height: 1.5;
}

.hero-image{
  width: 100%;
  height: auto;
  max-height: 62vh;
  object-fit: contain;
  margin-top: 18px; /* drops the image so it doesn't float */
}

.grid-12{
  align-items: center;
}

