/* ============================================================
   Bailey Web Marketing — shared stylesheet
   Palette derived from the logo:
   blue #1CA0E3 · yellow #FFD400 · orange #F26A1B · red #E01E26
   ============================================================ */

:root {
  --blue:   #1CA0E3;
  --yellow: #FFD400;
  --orange: #F26A1B;
  --red:    #E01E26;

  --ink:        #0E1116;   /* near-black background */
  --ink-2:      #161B22;   /* raised surface */
  --ink-3:      #1F2630;   /* card surface */
  --line:       #2A323D;   /* hairline borders */
  --text:       #E6EAF0;   /* primary text on dark */
  --text-dim:   #9AA6B5;   /* secondary text */
  --text-ink:   #0E1116;   /* text on bright surfaces */

  --radius:   14px;
  --radius-lg: 22px;
  --maxw:     1160px;
  --ease:     cubic-bezier(.22,.61,.36,1);

  --grad-brand: linear-gradient(100deg, var(--blue), var(--orange) 60%, var(--red));
  --grad-btn: linear-gradient(105deg, #1CA0E3, #2789D6 45%, #F26A1B);

  /* layered drop shadows (soft, for a dark UI) */
  --shadow-sm: 0 1px 2px rgba(0,0,0,.30), 0 2px 6px rgba(0,0,0,.22);
  --shadow-md: 0 4px 10px rgba(0,0,0,.30), 0 10px 24px rgba(0,0,0,.28);
  --shadow-lg: 0 10px 24px rgba(0,0,0,.34), 0 24px 56px rgba(0,0,0,.40);
  --shadow-hover: 0 16px 36px rgba(0,0,0,.42), 0 30px 70px rgba(0,0,0,.45);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--ink);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: "Sora", "Inter", system-ui, sans-serif;
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.container { width: 92%; max-width: var(--maxw); margin: 0 auto; }

/* ---------- accessibility ---------- */
:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
  border-radius: 4px;
}
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 2000;
  background: var(--yellow); color: var(--text-ink);
  padding: 10px 18px; font-weight: 700; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 26px; border-radius: 12px;
  font-weight: 600; font-size: .95rem; letter-spacing: -0.01em; cursor: pointer;
  border: none; transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
  font-family: inherit; line-height: 1;
}
.btn i { font-size: .85em; transition: transform .2s var(--ease); }
.btn-primary {
  background: var(--grad-btn); background-size: 140% 140%; background-position: 0% 50%;
  color: #fff;
  box-shadow: 0 6px 20px -8px rgba(28,160,227,.55);
}
.btn-primary:hover {
  transform: translateY(-2px); background-position: 100% 50%;
  box-shadow: 0 10px 26px -8px rgba(28,160,227,.6);
}
.btn-primary:hover i { transform: translateX(3px); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost {
  background: transparent; color: var(--text);
  border: 1.5px solid var(--line);
}
.btn-ghost:hover { border-color: var(--blue); color: #fff; transform: translateY(-2px); }
.btn-ghost:hover i { transform: translateX(3px); }
.btn-block { width: 100%; justify-content: center; }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 1000;
  background: rgba(14,17,22,.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.site-header.scrolled { border-bottom-color: var(--line); background: rgba(14,17,22,.92); box-shadow: var(--shadow-sm); }
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 74px;
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; }
.brand img { height: 40px; width: auto; border-radius: 8px; }
.brand span { font-family: "Sora", sans-serif; font-size: 1.05rem; letter-spacing: -.01em; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  padding: 9px 15px; border-radius: 999px; font-weight: 600; font-size: .95rem;
  color: var(--text-dim); transition: color .2s, background .2s;
}
.nav-links a:hover, .nav-links a.active { color: #fff; background: var(--ink-3); }
.nav-links .btn { margin-left: 8px; padding: 10px 20px; }
.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  width: 44px; height: 44px; color: var(--text);
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; width: 24px; height: 2px; background: currentColor;
  left: 10px; transition: transform .3s var(--ease), opacity .2s;
}
.nav-toggle span { top: 21px; }
.nav-toggle span::before { top: -7px; } .nav-toggle span::after { top: 7px; }
.nav-toggle.open span { background: transparent; }
.nav-toggle.open span::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span::after  { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: block; position: relative; }
  .nav-links {
    position: fixed; inset: 74px 0 auto 0; flex-direction: column; gap: 4px;
    background: var(--ink-2); border-bottom: 1px solid var(--line);
    padding: 16px 22px 26px; transform: translateY(-120%); transition: transform .35s var(--ease);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { width: 100%; padding: 13px 14px; }
  .nav-links .btn { margin: 8px 0 0; }
}

/* ---------- hero ---------- */
.hero { position: relative; padding: 150px 0 90px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 60vw; height: 60vw;
  background: radial-gradient(circle at center, rgba(28,160,227,.20), transparent 60%);
  filter: blur(20px); z-index: 0;
}
.hero::after {
  content: ""; position: absolute; left: -10%; bottom: -30%; width: 50vw; height: 50vw;
  background: radial-gradient(circle at center, rgba(242,106,27,.16), transparent 60%);
  z-index: 0;
}
.hero .container { position: relative; z-index: 1; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-dim); padding: 7px 14px; border: 1px solid var(--line);
  border-radius: 999px; margin-bottom: 22px;
}
.eyebrow b { width: 8px; height: 8px; border-radius: 50%; background: var(--grad-brand); }
.hero h1 {
  font-size: clamp(2.3rem, 6vw, 4.1rem); max-width: 16ch; margin-bottom: 20px;
}
.hero h1 .accent {
  background: var(--grad-brand); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p.lead { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--text-dim); max-width: 56ch; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- generic section ---------- */
.section { padding: 88px 0; }
.section-head { max-width: 60ch; margin-bottom: 52px; }
.section-head .eyebrow { margin-bottom: 16px; }
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.7rem); margin-bottom: 14px; }
.section-head p { color: var(--text-dim); font-size: 1.08rem; }
.bg-raised { background: var(--ink-2); }

/* ---------- service cards ---------- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-3 { grid-template-columns: 1fr; } }

.card {
  background: var(--ink-3); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 30px 26px; transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
  position: relative; overflow: hidden; box-shadow: var(--shadow-md);
}
.card:hover { transform: translateY(-6px); border-color: var(--blue); box-shadow: var(--shadow-hover); }
.card .ico {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
  font-size: 1.4rem; color: #fff; margin-bottom: 18px; box-shadow: var(--shadow-sm);
}
.card:nth-child(6n+1) .ico { background: linear-gradient(135deg, var(--blue), #0b7bb5); }
.card:nth-child(6n+2) .ico { background: linear-gradient(135deg, var(--orange), #c84e0c); }
.card:nth-child(6n+3) .ico { background: linear-gradient(135deg, var(--red), #a8131a); }
.card:nth-child(6n+4) .ico { background: linear-gradient(135deg, var(--yellow), #cBA600); color: var(--text-ink); }
.card:nth-child(6n+5) .ico { background: linear-gradient(135deg, var(--blue), var(--orange)); }
.card:nth-child(6n+6) .ico { background: linear-gradient(135deg, var(--red), var(--orange)); }
.card h3 { font-size: 1.28rem; margin-bottom: 10px; }
.card p { color: var(--text-dim); font-size: .98rem; margin-bottom: 16px; }
.card .more {
  font-weight: 700; font-size: .92rem; color: var(--blue);
  display: inline-flex; align-items: center; gap: 7px; transition: gap .2s;
}
.card .more:hover { gap: 12px; }

/* ---------- about / split ---------- */
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 54px; align-items: center; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; gap: 30px; } }
.split h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 18px; }
.split p { color: var(--text-dim); margin-bottom: 16px; }
.stat-row { display: flex; gap: 30px; flex-wrap: wrap; margin-top: 26px; }
.stat b { display: block; font-family: "Sora", sans-serif; font-size: 2rem;
  background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat span { color: var(--text-dim); font-size: .9rem; }
.media-frame {
  border-radius: var(--radius-lg); border: 1px solid var(--line); overflow: hidden;
  background: var(--ink-3); padding: 40px; display: grid; place-items: center; box-shadow: var(--shadow-lg);
}
.media-frame img { border-radius: 12px; }

/* ---------- list with checks ---------- */
.checklist { display: grid; gap: 14px; margin: 26px 0; }
.checklist li { display: flex; gap: 13px; align-items: flex-start; color: var(--text); }
.checklist i { color: var(--blue); margin-top: 4px; }

/* ---------- process steps ---------- */
.steps { counter-reset: step; display: grid; gap: 18px; }
.step {
  display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: start;
  background: var(--ink-3); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 26px; box-shadow: var(--shadow-sm);
}
.step .num {
  counter-increment: step; font-family: "Sora", sans-serif; font-weight: 800;
  font-size: 1.1rem; width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center; background: var(--ink); border: 1px solid var(--line);
  color: var(--blue);
}
.step .num::before { content: counter(step, decimal-leading-zero); }
.step h3 { font-size: 1.12rem; margin-bottom: 5px; }
.step p { color: var(--text-dim); font-size: .96rem; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; max-width: 820px; }
.faq details {
  background: var(--ink-3); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 4px 22px; transition: border-color .2s, box-shadow .2s; box-shadow: var(--shadow-sm);
}
.faq details[open] { border-color: var(--blue); box-shadow: var(--shadow-md); }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 0; font-weight: 600;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; color: var(--blue); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--text-dim); padding: 0 0 20px; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; text-align: center; padding: 80px 0; }
.cta-band::before {
  content: ""; position: absolute; inset: 0; background: var(--grad-brand); opacity: .12; z-index: 0;
}
.cta-band .container { position: relative; z-index: 1; }
.cta-band h2 { font-size: clamp(1.8rem, 4vw, 2.7rem); margin-bottom: 14px; }
.cta-band p { color: var(--text-dim); max-width: 50ch; margin: 0 auto 28px; }

/* ---------- contact form ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 46px; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; gap: 30px; } }
.contact-info p { color: var(--text-dim); margin-bottom: 22px; }
.contact-info .row { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; }
.contact-info .row i {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--ink-3); border: 1px solid var(--line); color: var(--blue); box-shadow: var(--shadow-sm);
}
.contact-info .row a, .contact-info .row span { color: var(--text); }
form .field { margin-bottom: 16px; }
form label { display: block; font-size: .88rem; font-weight: 600; margin-bottom: 7px; color: var(--text-dim); }
form input, form select, form textarea {
  width: 100%; padding: 13px 15px; border-radius: 11px;
  background: var(--ink); border: 1px solid var(--line); color: var(--text);
  font-family: inherit; font-size: .98rem; transition: border-color .2s;
}
form input:focus, form select:focus, form textarea:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px rgba(28,160,227,.18); }
form textarea { resize: vertical; min-height: 130px; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 540px) { .field-grid { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }
.form-note { font-size: .85rem; color: var(--text-dim); margin-top: 10px; }
.form-status { margin-top: 16px; padding: 14px 16px; border-radius: 11px; font-size: .95rem; display: none; }
.form-status.show { display: block; }
.form-status.ok { background: rgba(28,160,227,.12); border: 1px solid var(--blue); color: var(--text); }
.form-status.err { background: rgba(224,30,38,.12); border: 1px solid var(--red); color: var(--text); }

/* ---------- footer ---------- */
.site-footer { background: var(--ink-2); border-top: 1px solid var(--line); padding: 60px 0 30px; box-shadow: 0 -10px 30px rgba(0,0,0,.25); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { font-size: .95rem; margin-bottom: 16px; color: #fff; }
.footer-grid a { color: var(--text-dim); display: block; padding: 5px 0; transition: color .2s; }
.footer-grid a:hover { color: var(--blue); }
.footer-brand img { height: 44px; border-radius: 8px; margin-bottom: 14px; }
.footer-brand p { color: var(--text-dim); font-size: .94rem; max-width: 32ch; }
.footer-bottom {
  margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  color: var(--text-dim); font-size: .88rem;
}
.footer-bottom a { color: var(--text-dim); }
.footer-bottom a:hover { color: var(--blue); }

/* ---------- page hero (interior pages) ---------- */
.page-hero { padding: 140px 0 60px; position: relative; overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; inset: -30% -10% auto auto; width: 50vw; height: 50vw;
  background: radial-gradient(circle, rgba(28,160,227,.16), transparent 60%); z-index: 0;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); max-width: 18ch; margin-bottom: 16px; }
.page-hero p { color: var(--text-dim); font-size: 1.12rem; max-width: 60ch; }
.breadcrumb { font-size: .85rem; color: var(--text-dim); margin-bottom: 18px; }
.breadcrumb a:hover { color: var(--blue); }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
