/* Coastal Resource Consulting, LLC — one-page site. Mobile-first. */
:root {
  --navy: #0D2A4A;
  --orange: #E67E22;
  --orange-dark: #C96A14;
  --slate: #3D5975;
  --bg-1: #F8F9FA;
  --bg-2: #F1F5F9;
  --text: #2E3440;
  --muted: #5A6472;
  --line: #E2E8F0;
  --white: #fff;
  --serif: "Libre Baskerville", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --header-h: 68px;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(13, 42, 74, .08), 0 8px 24px rgba(13, 42, 74, .08);
  --pad-x: clamp(16px, 4vw, 32px);
  --section-y: clamp(56px, 8vw, 104px);
}

*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: var(--header-h);
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: clamp(1rem, .96rem + .2vw, 1.0625rem);
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }
address { font-style: normal; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--pad-x); }
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; text-decoration: none;
}
.skip-link:focus { top: 12px; }
.icon { width: 20px; height: 20px; fill: currentColor; flex: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border-radius: 10px;
  font: 600 1rem/1.2 var(--sans); text-decoration: none; cursor: pointer;
  border: 2px solid transparent; transition: background-color .2s, color .2s, border-color .2s;
}
.btn-primary, .btn-submit { background: var(--orange); color: var(--navy); }
.btn-primary:hover, .btn-submit:hover { background: var(--orange-dark); color: #fff; }
.btn-outline { border-color: var(--navy); color: var(--navy); background: #fff; }
.btn-outline:hover { background: var(--navy); color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 12px rgba(13, 42, 74, .06);
}
@supports (backdrop-filter: blur(8px)) {
  .site-header { background: rgba(255, 255, 255, .9); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; padding-block: 8px; }
.brand { display: block; flex: none; border-radius: 8px; }
.brand img { height: 50px; width: auto; aspect-ratio: 1500 / 450; }

.header-actions { display: flex; align-items: center; gap: 8px; }
.header-phone {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-width: 44px; height: 44px; padding: 0 12px; border-radius: 10px;
  background: var(--orange); color: var(--navy); font-weight: 700; text-decoration: none; white-space: nowrap;
}
.header-phone:hover { background: var(--orange-dark); color: #fff; }
.header-phone-text { display: none; }

.menu-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 10px;
  background: #fff; color: var(--navy); cursor: pointer;
}
.menu-bars { position: relative; width: 22px; height: 16px; }
.menu-bars span {
  position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px; background: currentColor;
  transition: transform .25s ease, opacity .2s ease, top .25s ease;
}
.menu-bars span:nth-child(1) { top: 0; }
.menu-bars span:nth-child(2) { top: 7px; }
.menu-bars span:nth-child(3) { top: 14px; }
.menu-toggle[aria-expanded="true"] .menu-bars span:nth-child(1) { top: 7px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-bars span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-bars span:nth-child(3) { top: 7px; transform: rotate(-45deg); }

/* Mobile nav panel */
.site-nav {
  position: absolute; left: 0; right: 0; top: 100%;
  background: #fff; border-bottom: 1px solid var(--line);
  box-shadow: 0 16px 32px rgba(13, 42, 74, .14);
  padding: 8px var(--pad-x) 20px;
  max-height: calc(100vh - var(--header-h)); max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
  visibility: hidden; opacity: 0; transform: translateY(-8px);
  transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
}
.site-header.is-open .site-nav { visibility: visible; opacity: 1; transform: none; transition: opacity .2s ease, transform .2s ease; }
.nav-list a {
  display: block; padding: 14px 4px; border-bottom: 1px solid var(--line);
  font-family: var(--serif); font-size: 1.125rem; color: var(--navy); text-decoration: none;
}
.nav-list a:hover, .nav-list a[aria-current="true"] { color: var(--orange-dark); }
.nav-contact { display: grid; gap: 6px; padding-top: 16px; }
.nav-contact a { color: var(--slate); font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }

@media (min-width: 480px) {
  .header-phone-text { display: inline; }
}
@media (min-width: 1024px) {
  .header-inner { min-height: 84px; gap: 24px; }
  .brand img { height: 64px; }
  .menu-toggle { display: none; }
  .site-nav {
    position: static; visibility: visible; opacity: 1; transform: none; transition: none;
    background: none; border: 0; box-shadow: none; padding: 0; max-height: none; overflow: visible;
    margin-left: auto;
  }
  .nav-list { display: flex; gap: clamp(4px, 1vw, 16px); }
  .nav-list a {
    padding: 8px 10px; border: 0; border-radius: 8px;
    font-family: var(--sans); font-size: .95rem; font-weight: 600; color: #1E2D3B; position: relative;
  }
  .nav-list a::after {
    content: ""; position: absolute; left: 10px; right: 10px; bottom: 2px; height: 2px;
    background: var(--orange); transform: scaleX(0); transition: transform .2s ease;
  }
  .nav-list a:hover::after, .nav-list a[aria-current="true"]::after { transform: scaleX(1); }
  .nav-list a:hover, .nav-list a[aria-current="true"] { color: var(--navy); }
  .nav-contact { display: none; }
  .header-phone { padding: 0 16px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  color: #fff; text-align: center; background: var(--slate);
}
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::before { content: ""; position: absolute; inset: 0; background: rgba(61, 89, 117, .75); z-index: -1; }
.hero-inner { padding-block: clamp(48px, 9vw, 112px) clamp(40px, 7vw, 88px); }
.pill {
  display: inline-block; padding: 7px 18px; border: 1px solid #fff; border-radius: 999px;
  background: var(--slate); font-size: .75rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase;
}
.hero-title {
  margin-top: 22px; font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.9rem, 1.05rem + 4.1vw, 3.85rem); line-height: 1.15; letter-spacing: -.01em;
  text-wrap: balance;
}
.hero-title .accent { color: var(--orange); }
.hero-sub {
  max-width: 44rem; margin: 18px auto 0; color: #E4E7EB;
  font-family: var(--serif); font-size: clamp(1rem, .92rem + .45vw, 1.25rem); line-height: 1.6;
}
.hero-stats {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px;
  max-width: 880px; margin: clamp(32px, 5vw, 48px) auto 0; padding-top: clamp(24px, 4vw, 36px);
  border-top: 1px solid rgba(255, 255, 255, .3);
}
.hero-stats li { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.stat-num { color: var(--orange); font-weight: 800; font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.25rem); line-height: 1.1; }
.stat-label { color: #D4D9DF; font-size: .78rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
@media (min-width: 640px) { .hero-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------- Sections ---------- */
.section { padding-block: var(--section-y); }
.section-head { max-width: 46rem; margin: 0 auto clamp(32px, 5vw, 56px); text-align: center; }
.eyebrow { color: var(--orange-dark); font-size: .85rem; font-weight: 700; letter-spacing: .16em; }
.section-title {
  margin-top: 10px; color: var(--navy); font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.65rem, 1.2rem + 2vw, 2.5rem); line-height: 1.22; text-wrap: balance;
}
.section-intro { margin-top: 14px; color: var(--muted); }
.br-md { display: none; }
@media (min-width: 768px) { .br-md { display: inline; } }

/* ---------- Services ---------- */
.services { background: var(--bg-1); }
.service-grid { display: grid; grid-template-columns: 1fr; gap: clamp(16px, 2.5vw, 28px); }
@media (min-width: 640px) { .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .service-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.service-card {
  display: grid; grid-template-columns: 56px 1fr; align-content: start; column-gap: 14px; row-gap: 12px;
  padding: clamp(20px, 3vw, 28px); background: #fff; border-radius: 15px; box-shadow: var(--shadow);
  border-top: 3px solid transparent; transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
}
.service-card:hover { transform: translateY(-2px); border-top-color: var(--orange); box-shadow: 0 2px 4px rgba(13,42,74,.08), 0 14px 32px rgba(13,42,74,.12); }
.service-icon { width: 56px; height: 56px; border-radius: 12px; align-self: center; }
.service-card h3 { align-self: center; color: var(--navy); font-size: 1.08rem; font-weight: 700; line-height: 1.3; }
.service-card p, .service-card .ticks { grid-column: 1 / -1; }
.service-card p { color: #3B4552; font-size: .95rem; }
.ticks { display: grid; gap: 6px; padding-top: 4px; border-top: 1px solid var(--line); padding-top: 12px; }
.ticks li { position: relative; padding-left: 24px; color: var(--navy); font-size: .9rem; line-height: 1.45; }
.ticks li::before {
  content: ""; position: absolute; left: 2px; top: .3em; width: 12px; height: 7px;
  border-left: 2px solid var(--orange); border-bottom: 2px solid var(--orange); transform: rotate(-45deg);
}

/* ---------- About ---------- */
.about-grid { display: grid; gap: clamp(28px, 4vw, 56px); align-items: center; }
@media (min-width: 960px) { .about-grid { grid-template-columns: 1.25fr 1fr; } }
.about-copy .section-title { margin-bottom: 18px; }
.about-copy > p:not(.eyebrow) { color: #3B3A3A; margin-bottom: 14px; }
.about-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 24px; }
.about-stats li {
  display: flex; flex-direction: column; gap: 2px; padding: 16px;
  background: var(--bg-2); border: 1px solid var(--orange); border-radius: 8px;
  font-family: var(--serif); color: var(--navy);
}
.about-stats .num { font-size: clamp(1.3rem, 1.1rem + .8vw, 1.6rem); font-weight: 700; }
.about-stats .label { font-size: .88rem; line-height: 1.35; }

.profile-card {
  position: relative; overflow: hidden;
  padding: clamp(28px, 4vw, 44px); border-radius: 24px; background: var(--navy); color: #DBDBDB;
  box-shadow: 0 20px 40px rgba(13, 42, 74, .25);
}
.profile-card::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 180px; height: 180px; border-radius: 50%;
  border: 2px solid rgba(230, 126, 34, .35); pointer-events: none;
}
.profile-name { color: var(--orange); font-family: var(--serif); font-size: clamp(1.35rem, 1.2rem + .6vw, 1.6rem); font-weight: 400; letter-spacing: .04em; }
.profile-title { margin-top: 4px; font-weight: 600; color: #fff; font-size: .95rem; }
.profile-bio { margin-top: 16px; font-size: .95rem; }
.profile-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 24px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.15); }
.profile-stats li { display: flex; flex-direction: column; }
.profile-stats .num { color: var(--orange); font-size: 1.6rem; font-weight: 800; line-height: 1.2; }
.profile-stats .label { font-size: .82rem; }

.logo-wall {
  --gap: 12px; --cols: 3;
  display: flex; flex-wrap: wrap; justify-content: center; gap: var(--gap);
  margin-top: clamp(40px, 6vw, 72px); padding-top: clamp(32px, 5vw, 48px); border-top: 1px solid var(--line);
}
.logo-wall li {
  flex: 0 0 calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols));
  display: flex; align-items: center; justify-content: center;
  height: clamp(76px, 9vw, 96px); padding: 10px 12px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
}
.logo-wall img { width: 100%; height: 100%; object-fit: contain; }
@media (min-width: 600px) { .logo-wall { --cols: 4; --gap: 16px; } }
@media (min-width: 768px) { .logo-wall { --cols: 5; } }
@media (min-width: 1100px) { .logo-wall { --cols: 7; } }

/* ---------- Projects ---------- */
.projects { background: var(--navy); color: #fff; }
.projects .section-title { color: #fff; }
.projects .eyebrow { color: var(--orange); }
.projects .section-intro { color: #DBDBDB; }
.project-grid { display: grid; grid-template-columns: 1fr; gap: clamp(16px, 2.5vw, 24px); }
@media (min-width: 560px) { .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .project-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.project-card {
  display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid rgba(198, 198, 198, .45); border-radius: 22px; background: rgba(255, 255, 255, .03);
  transition: border-color .2s, transform .2s;
}
.project-card:hover { border-color: var(--orange); transform: translateY(-2px); }
.project-body { order: -1; padding: 18px 20px 14px; }
.project-state { color: var(--orange); font-family: var(--serif); font-weight: 700; font-size: .95rem; }
.project-type { margin-top: 2px; color: #FBF3F3; font-size: 1.02rem; font-weight: 600; line-height: 1.35; }
.project-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin-top: auto; background: #18375a; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: clamp(28px, 4vw, 48px); align-items: start; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); } }
.contact-info h3 { color: var(--navy); font-family: var(--serif); font-size: 1.4rem; font-weight: 700; }
.quick-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
@media (min-width: 960px) { .quick-actions { display: none; } }
.info-list { display: grid; gap: 18px; margin-top: 22px; }
.info-list li { display: flex; gap: 14px; align-items: flex-start; }
.info-icon {
  flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  background: var(--bg-2); color: var(--slate);
}
.info-icon svg { width: 20px; height: 20px; fill: currentColor; }
.info-label { color: var(--navy); font-weight: 700; }
.info-list p:not(.info-label), .info-list address { color: #3B3A3A; font-size: .95rem; }
.info-list a { color: var(--slate); font-weight: 600; text-underline-offset: 3px; overflow-wrap: anywhere; }
.info-list a:hover { color: var(--orange-dark); }
.linkedin {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 24px; min-height: 44px;
  color: var(--navy); font-weight: 600; text-decoration: none;
}
.linkedin svg { width: 32px; height: 32px; }
.linkedin:hover span { text-decoration: underline; }

.contact-form {
  display: grid; gap: 16px; padding: clamp(20px, 4vw, 36px);
  background: #F7F7F7; border-radius: 24px; box-shadow: 0 0 25px rgba(59, 58, 58, .12);
}
.form-row { display: grid; gap: 16px; }
@media (min-width: 560px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { color: #324158; font-size: .9rem; font-weight: 600; }
.field input, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  font: 16px/1.4 var(--sans); color: var(--text);
  background: #fff; border: 1px solid var(--slate); border-radius: 8px;
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 132px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(230, 126, 34, .35); }
.btn-submit { width: 100%; font-size: 1.05rem; }
.form-status { min-height: 0; font-weight: 600; color: var(--navy); }
.form-status:not(:empty) { padding: 14px 16px; border-radius: 10px; background: #FFF4E8; border: 1px solid var(--orange); }

/* ---------- Footer ---------- */
.site-footer { background: #0A2240; color: #C9D1DB; padding-block: 32px calc(32px + env(safe-area-inset-bottom)); text-align: center; font-size: .9rem; }
.footer-inner { display: grid; gap: 12px; }
.footer-contact { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 20px; }
.footer-contact a { color: #fff; text-decoration: none; }
.footer-contact a:hover { color: var(--orange); }
.copyright { letter-spacing: .03em; color: #9FB0C3; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}

/* Typographic polish */
p, li { text-wrap: pretty; }
@media (max-width: 599px) { .logo-wall li { padding: 8px; } }
