/* =========================
   Gersonde Consulting - Shared Styles
   Use on: index, who-we-are, what-we-do, how-we-work, what-you-get, case-study
   ========================= */

/* THEME */
:root{
  --text:#0f172a;
  --muted:#475569;
  --line:rgba(15,23,42,.12);
  --panel:rgba(255,255,255,.78);
  --panelSolid:rgba(255,255,255,.92);
  --shadow:0 18px 45px rgba(2,6,23,.14);
  --radius:18px;
  --max:1240px;
  --accent:#0b5fff;
}

*{ box-sizing:border-box; }

html, body{
  height:100%;
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, Helvetica, sans-serif;
  color:var(--text);
}

a{ color:inherit; text-decoration:none; }

/* BACKGROUND */
body{
  background: url("images/background.jpg") no-repeat center center fixed;
  background-size: cover;
}

body::before{
  content:"";
  position:fixed;
  inset:0;
  background: rgba(245, 248, 255, 0.82);
  z-index:-2;
}

body::after{
  content:"";
  position:fixed;
  inset:0;
  background:
    radial-gradient(900px 420px at 15% 0%, rgba(11,95,255,.14), transparent 55%),
    radial-gradient(760px 380px at 85% 10%, rgba(20,184,166,.12), transparent 55%);
  z-index:-1;
  pointer-events:none;
}

/* LAYOUT */
.wrap{
  max-width: var(--max);
  margin: 0 auto;
  padding: 22px 18px 70px;
}

/* HEADER */
header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding: 12px 6px 22px;
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
  font-weight:900;
  letter-spacing:.2px;
  font-size:18px;
}

.mark{
  width:40px;
  height:40px;
  border-radius:14px;
  background: linear-gradient(135deg, #0b5fff, #14b8a6);
  box-shadow: 0 14px 30px rgba(11,95,255,.22);
}

.nav{
  display:flex;
  align-items:center;
  gap:10px;
  background: rgba(255,255,255,.70);
  border: 1px solid rgba(15,23,42,.10);
  border-radius: 999px;
  padding: 8px 10px;
  backdrop-filter: blur(8px);
}

.nav a{
  font-size:14px;
  color: var(--muted);
  padding: 9px 12px;
  border-radius: 999px;
  transition: background .15s ease, color .15s ease;
  white-space: nowrap;
}

.nav a:hover{
  background: rgba(15,23,42,.06);
  color: var(--text);
}

.nav a.cta{
  background: rgba(11,95,255,.12);
  border: 1px solid rgba(11,95,255,.22);
  color:#0b2a6f;
  font-weight:800;
}

/* PANEL */
.panel{
  background: var(--panel);
  border: 1px solid rgba(15,23,42,.10);
  border-radius: 22px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  overflow:hidden;
}

/* PAGE (content pages) */
.page{
  padding: 34px 30px 40px;
}

.page h1,
.hero h1{
  margin: 0 0 14px;
  font-size: clamp(34px, 4vw, 54px);
  letter-spacing: -1px;
  line-height: 1.05;
}

.page p{
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
  max-width: 90ch;
}

.page h2{
  margin: 26px 0 10px;
  font-size: 20px;
  letter-spacing: -.2px;
}

.page ul{
  margin: 0 0 12px 18px;
  padding: 0;
  color: var(--muted);
  line-height: 1.7;
  max-width: 95ch;
}

.page li{ margin: 6px 0; }

/* HERO (homepage) */
.hero{
  padding: 64px 34px 18px;
  text-align:center;
}

.hero p{
  margin: 0 auto 22px;
  max-width: 74ch;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
  overflow-wrap: break-word;
}

.heroActions{
  display:flex;
  justify-content:center;
  gap:12px;
  flex-wrap:wrap;
  margin: 0 0 38px;   /* ⬅ adds white space below buttons */
  padding-bottom: 0;
}

/* BUTTONS */
.btn{
  display:inline-block;
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 14px;
  border: 1px solid rgba(15,23,42,.12);
  background: rgba(255,255,255,.86);
  transition: transform .15s ease, box-shadow .15s ease;
  white-space: nowrap;
  cursor: pointer;
}

.btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(2,6,23,.12);
}

.btn.primary{
  background: rgba(11,95,255,.14);
  border-color: rgba(11,95,255,.28);
  color:#0b2a6f;
}

/* TILE GRID (homepage + deliverables pages) */
.grid{
  display:grid;
  gap: 18px;
}

.grid.four{ grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid.five{ grid-template-columns: repeat(5, minmax(0, 1fr)); }
.grid.two{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
/* Homepage spacing below tiles */
.home-tiles{
  margin-bottom: 48px;
}


.tile{
  background: var(--panelSolid);
  border: 1px solid rgba(15,23,42,.10);
  border-radius: 18px;
  padding: 22px 20px;
  box-shadow: 0 14px 30px rgba(2,6,23,.08);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  min-width: 0;
}

.tile:hover{
  transform: translateY(-3px);
  box-shadow: 0 20px 46px rgba(2,6,23,.14);
  border-color: rgba(11,95,255,.22);
}

.tile h3{
  margin:0 0 8px;
  font-size: 18px;
  letter-spacing: -.2px;
}

.tile p{
  margin:0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
  overflow-wrap: break-word;
  word-break: break-word;
}

/* NOTE CALLOUT */
.note{
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(15,23,42,.10);
  color: #64748b;
  font-size: 13px;
  line-height: 1.6;
}

/* STATS (case study) */
.stats{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 14px;
  margin: 14px 0 6px;
}

.stat{
  background: rgba(255,255,255,.86);
  border: 1px solid rgba(15,23,42,.10);
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 14px 30px rgba(2,6,23,.06);
}

.stat b{
  display:block;
  font-size: 22px;
  letter-spacing: -.3px;
  margin-bottom: 4px;
}

.stat span{
  display:block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

/* CTA ROWS */
.nextRow,
.ctaRow{
  display:flex;
  justify-content:flex-end;
  margin-top: 20px;
}

.ctaRow.center{
  justify-content:center;
  margin: 28px 0 22px;
}

/* FOOTER */
footer{
  text-align:center;
  padding: 18px 0 6px;
  color: var(--muted);
  font-size: 12px;
}

/* MODAL (Request Audit) */
.modalOverlay{
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,.45);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  backdrop-filter: blur(6px);
}

.modalOverlay.active{ display:flex; }

.modal{
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(15,23,42,.12);
  border-radius: 22px;
  box-shadow: 0 30px 70px rgba(2,6,23,.25);
  width: 100%;
  max-width: 560px;
  padding: 28px 26px 30px;
  position: relative;
}

.modal h2{
  margin: 0 0 6px;
  font-size: 26px;
  letter-spacing: -.4px;
}

.modalIntro{
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.modalClose{
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: var(--muted);
}

.auditForm label{
  display:block;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 4px;
}

.auditForm input,
.auditForm textarea{
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(15,23,42,.18);
  font-size: 14px;
  font-family: inherit;
}

.auditForm textarea{ resize: vertical; }

.formGrid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.formGrid .full{ grid-column: 1 / -1; }

.submitBtn{
  margin-top: 18px;
  width: 100%;
}

/* RESPONSIVE */
@media (max-width: 1200px){
  .grid.five{ grid-template-columns: 1fr 1fr 1fr; }
}

@media (max-width: 1020px){
  .grid.four{ grid-template-columns: 1fr 1fr; }
  .grid.two{ grid-template-columns: 1fr; }
  .stats{ grid-template-columns: 1fr; }
}

@media (max-width: 900px){
  .grid.five{ grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px){
  .nav{ display:none; }
  .page{ padding: 22px 18px 26px; }
  .hero{ padding: 52px 18px 14px; }
  .grid.five, .grid.four, .grid.two{ grid-template-columns: 1fr; }
}

@media (max-width: 640px){
  .modal{ margin: 0 16px; }
  .formGrid{ grid-template-columns: 1fr; }
}
.page p,
.page ul {
  max-width: none;
}

.page li {
  margin: 0;
  line-height: 1.4;
}





