/* =============================================
   Coast to Coast Promotions — Complete Redesign
   Aesthetic: Refined coastal professional
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,600;0,9..144,700;1,9..144,400&family=DM+Sans:wght@300;400;500;600;700&display=swap');

/* ---- Design Tokens ---- */
:root {
  --navy:       #1B3A5C;
  --navy-mid:   #254C73;
  --blue:       #35699A;
  --blue-light: #5B8FBF;
  --sky:        #E8F1FA;
  --sky-deep:   #C8DDEF;
  --sand:       #F7F4EF;
  --sand-dark:  #EDE8E0;
  --white:      #FFFFFF;
  --text:       #1A2B3C;
  --text-mid:   #3D5166;
  --text-soft:  #6B7F91;
  --border:     rgba(27,58,92,.11);
  --border-med: rgba(27,58,92,.18);
  --shadow-sm:  0 2px 8px rgba(27,58,92,.08);
  --shadow-md:  0 8px 32px rgba(27,58,92,.12);
  --shadow-lg:  0 20px 60px rgba(27,58,92,.15);
  --radius-sm:  10px;
  --radius-md:  16px;
  --radius-lg:  24px;
  --max:        1120px;
  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { 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(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--blue); text-decoration: none; transition: color .2s; }
a:hover { color: var(--navy); }

/* ---- Layout ---- */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Navigation ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.95);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
}

.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.brand img {
  height: 88px;
  width: auto;
  display: block;
}

/* Desktop menu - always visible */
.menu {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: nowrap;
}

.menu a {
  color: var(--text-mid);
  font-weight: 500;
  font-size: 14px;
  padding: 7px 12px;
  border-radius: 8px;
  transition: all .18s;
  white-space: nowrap;
}

.menu a:hover {
  color: var(--navy);
  background: var(--sky);
  text-decoration: none;
}

.menu a.active {
  color: var(--blue);
  font-weight: 600;
}

/* Hamburger - hidden on desktop, shown on mobile via media query */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: var(--sky);
  border: 1.5px solid var(--sky-deep);
  border-radius: 12px;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2.5px;
  background: var(--navy);
  border-radius: 2px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all .2s;
  text-decoration: none !important;
  white-space: nowrap;
  line-height: 1;
}

.btn.primary {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.btn.primary:hover {
  background: var(--blue);
  border-color: var(--blue);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(27,58,92,.3);
}

.btn.ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--border-med);
}

.btn.ghost:hover {
  background: var(--sky);
  border-color: var(--blue);
  color: var(--blue);
}

.nav .btn.primary {
  padding: 9px 18px;
  font-size: 13px;
}

/* ---- Hero Section ---- */
.hero {
  position: relative;
  padding: 72px 0 80px;
  background: linear-gradient(160deg, #dceefb 0%, #e8f3fa 40%, #f0f6fb 70%, #f5f9fd 100%);
  overflow: hidden;
}

/* Decorative radial depth */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 65% 55% at 5% 20%, rgba(53,105,154,.14) 0%, transparent 60%),
    radial-gradient(ellipse 45% 50% at 92% 10%, rgba(200,221,239,.7) 0%, transparent 55%);
  z-index: 0;
  pointer-events: none;
}

/* SVG wave sits at the bottom of hero */
.hero-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  z-index: 1;
}

.hero-wave svg {
  display: block;
  width: 100%;
  height: 56px;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: start;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(53,105,154,.1);
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.hero-eyebrow::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
}

h1.h1 {
  font-family: var(--font-display);
  font-size: clamp(34px, 4.5vw, 52px);
  font-weight: 700;
  line-height: 1.08;
  color: var(--navy);
  margin-bottom: 20px;
  letter-spacing: -.02em;
}

.sub {
  font-size: 17px;
  color: var(--text-mid);
  line-height: 1.65;
  margin-bottom: 28px;
  max-width: 52ch;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.pillrow {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pill {
  font-size: 12px;
  font-weight: 600;
  color: var(--navy-mid);
  background: rgba(53,105,154,.09);
  border: 1px solid rgba(53,105,154,.2);
  padding: 5px 12px;
  border-radius: 999px;
}

/* ---- Quick Contact Card ---- */
.hero-card {
  background: var(--white);
  border: 1px solid var(--border-med);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--navy), var(--blue), var(--blue-light));
}

.hero-card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
}

.hero-card > p {
  font-size: 14px;
  color: var(--text-soft);
  margin-bottom: 20px;
  line-height: 1.55;
}

.kv {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 10px 14px;
  font-size: 14px;
}

.kv > div:nth-child(odd) {
  color: var(--text-soft);
  font-weight: 500;
  font-size: 13px;
  padding-top: 1px;
}

.kv > div:nth-child(even) {
  color: var(--text);
}

.kv a {
  color: var(--blue);
  font-weight: 500;
}

/* ---- Sections ---- */
.section {
  padding: 64px 0;
}

.section-alt {
  background: var(--sand);
}

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

h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.5vw, 36px);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.15;
  letter-spacing: -.02em;
  margin-bottom: 12px;
}

.section-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 10px;
}

.lead {
  font-size: 16px;
  color: var(--text-mid);
  line-height: 1.7;
  max-width: 68ch;
  margin-bottom: 28px;
}

/* ---- Service Cards ---- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  overflow: hidden;
  transition: box-shadow .25s, transform .25s;
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.card img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--sky);
  margin-bottom: 16px;
}

.card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
}

.card p {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.65;
  margin: 0;
}

/* ---- Split Layout ---- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

/* ---- Lists ---- */
.list {
  list-style: none;
  padding: 0;
  margin: 0;
  color: var(--text-mid);
}

.list li {
  padding: 8px 0 8px 22px;
  position: relative;
  font-size: 15px;
  line-height: 1.55;
  border-bottom: 1px solid var(--border);
}

.list li:last-child { border-bottom: none; }

.list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue-light);
}

.list li strong {
  color: var(--navy);
  font-weight: 600;
}

/* ---- White Card variant ---- */
.card-white {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
}

.card-white h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 16px;
}

/* ---- Process Steps ---- */
.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  top: 22px;
  left: 28px;
  right: 28px;
  height: 2px;
  background: linear-gradient(90deg, var(--sky-deep), var(--blue-light), var(--sky-deep));
  z-index: 0;
}

.step {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 16px;
  position: relative;
  z-index: 1;
  transition: box-shadow .2s;
}

.step:hover { box-shadow: var(--shadow-md); }

.step .n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 14px;
}

.step h4 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
  line-height: 1.3;
}

.step p {
  font-size: 13px;
  color: var(--text-soft);
  line-height: 1.55;
  margin: 0;
}

/* ---- CTA Section ---- */
.cta-section {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 50%, var(--blue) 100%);
  padding: 72px 0;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 80% 50%, rgba(91,143,191,.22) 0%, transparent 60%),
    radial-gradient(ellipse 40% 60% at 10% 80%, rgba(255,255,255,.05) 0%, transparent 50%);
}

.cta-section .container { position: relative; z-index: 1; }

.cta-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 48px;
  align-items: center;
}

.cta-section h2 {
  color: var(--white);
  font-size: clamp(28px, 3.5vw, 40px);
  margin-bottom: 14px;
}

.cta-section .lead {
  color: rgba(255,255,255,.8);
  margin-bottom: 28px;
}

.cta-section .btn.ghost {
  color: var(--white);
  border-color: rgba(255,255,255,.4);
  background: transparent;
}

.cta-section .btn.ghost:hover {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.7);
  color: var(--white);
}

.cta-section .btn.primary {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
}

.cta-section .btn.primary:hover {
  background: var(--sky);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0,0,0,.2);
}

.cta-contact-card {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius-md);
  padding: 24px;
  backdrop-filter: blur(8px);
}

.cta-contact-card .kv > div:nth-child(odd) { color: rgba(255,255,255,.6); }
.cta-contact-card .kv > div:nth-child(even) { color: var(--white); }
.cta-contact-card .kv a { color: var(--sky-deep); }

/* ---- Page Header ---- */
.pagehead {
  padding: 52px 0 40px;
  background: var(--sky);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.pagehead::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 90% at 90% 50%, rgba(53,105,154,.12) 0%, transparent 60%);
}

.pagehead .container { position: relative; z-index: 1; }

.pagehead h1 {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -.02em;
  margin-bottom: 10px;
}

.pagehead p {
  font-size: 17px;
  color: var(--text-mid);
  max-width: 65ch;
  line-height: 1.65;
}

/* ---- Contact Form ---- */
.form-card {
  background: var(--white);
  border: 1px solid var(--border-med);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-md);
}

.form-card h2 { font-size: 24px; margin-bottom: 8px; }
.form-note { color: var(--text-soft); font-size: 14px; margin-bottom: 24px; }

label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-mid);
  margin-bottom: 6px;
  margin-top: 16px;
}

input, textarea {
  width: 100%;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-med);
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text);
  background: var(--white);
  transition: border-color .18s, box-shadow .18s;
  outline: none;
  -webkit-appearance: none;
}

input:focus, textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(53,105,154,.12);
}

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

/* ---- Footer ---- */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,.7);
  padding: 48px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,.12);
  margin-bottom: 20px;
}

.footer strong {
  display: block;
  color: var(--white);
  font-weight: 600;
  margin-bottom: 10px;
  font-size: 14px;
}

.footer .tagline {
  font-size: 14px;
  line-height: 1.6;
}

.footer a {
  color: rgba(255,255,255,.65);
  font-size: 14px;
  display: block;
  margin-bottom: 4px;
  transition: color .18s;
}

.footer a:hover { color: var(--white); }
.footer-bottom { font-size: 13px; color: rgba(255,255,255,.4); }

/* ---- Utility ---- */
.note { color: var(--text-soft); font-size: 14px; }
.small { font-size: 12px; }

.industry-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.industry-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  transition: all .2s;
}

.industry-card:hover {
  border-color: var(--blue-light);
  box-shadow: var(--shadow-sm);
}

.industry-card h3 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
}

.industry-card p {
  font-size: 14px;
  color: var(--text-soft);
  margin: 0;
  line-height: 1.55;
}

/* =============================================
   RESPONSIVE
   Strategy: menu visible + hamburger hidden in base CSS (desktop).
   At <=900px: flip both. JS adds .open to show menu.
   ============================================= */

@media screen and (max-width: 900px) {

  /* --- NAV MOBILE --- */
  .nav-inner {
    flex-wrap: wrap;
    padding: 12px 0;
    align-items: center;
  }

  /* Show hamburger */
  .menu-toggle {
    display: flex;
  }

  /* Hide full nav menu — JS .open toggles it back on */
  .menu {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px 0 16px;
    border-top: 1px solid var(--border);
    margin-top: 12px;
    order: 10;
  }

  .menu.open {
    display: flex;
  }

  .brand { order: 1; flex: 1; }
  .menu-toggle { order: 2; }
  .menu { order: 10; }

  .menu a {
    font-size: 16px;
    padding: 11px 14px;
    border-radius: 10px;
    color: var(--text);
  }

  .menu .btn.primary {
    width: 100%;
    justify-content: center;
    padding: 14px 22px;
    font-size: 15px;
    border-radius: 12px;
    margin-top: 6px;
  }

  /* --- HERO MOBILE --- */
  .hero { padding: 36px 0 44px; }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .sub { max-width: 100%; }

  .hero-actions {
    flex-direction: column;
    gap: 10px;
  }

  .hero-actions .btn {
    width: 100%;
    padding: 15px 22px;
    font-size: 15px;
    justify-content: center;
    text-align: center;
  }

  /* --- SECTIONS MOBILE --- */
  .section { padding: 44px 0; }

  .cards { grid-template-columns: 1fr; gap: 16px; }

  .split { grid-template-columns: 1fr; gap: 20px; }

  /* Steps: vertical list */
  .steps { grid-template-columns: 1fr; gap: 10px; }
  .steps::before { display: none; }
  .step {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 16px 18px;
  }
  .step .n { flex-shrink: 0; margin-bottom: 0; }

  /* CTA */
  .cta-section { padding: 48px 0; }
  .cta-grid { grid-template-columns: 1fr; gap: 28px; }
  .cta-section .hero-actions { flex-direction: column; }
  .cta-section .hero-actions .btn {
    width: 100%;
    justify-content: center;
    padding: 15px 22px;
  }

  /* Industry / Footer */
  .industry-cards { grid-template-columns: 1fr; gap: 12px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .pagehead { padding: 32px 0 24px; }
}

@media screen and (max-width: 600px) {
  .container { padding: 0 16px; }

  .brand img {
    height: 72px;
  }

  h1.h1 { font-size: 28px; line-height: 1.1; }
  h2 { font-size: 23px; }

  .hero-eyebrow { font-size: 11px; }

  .pillrow { gap: 6px; }
  .pill { font-size: 11px; padding: 5px 10px; }

  .hero-card { padding: 20px 16px; }
  .form-card { padding: 20px 16px; }
  .card-white { padding: 18px 14px; }
}
