
/* =========================================================
   Fish & Chips Media
   Fractional Media Consulting
   Brand palette: dark blue, dark gray, orange
   ========================================================= */

:root {
  --navy: #102a43;
  --navy-deep: #0a1f33;
  --navy-soft: #294c6b;
  --charcoal: #3f3f3f;
  --charcoal-deep: #2e2e2e;
  --gray: #66717f;
  --gray-light: #e7ebef;
  --gray-soft: #f5f6f7;
  --orange: #f28c00;
  --orange-dark: #d87300;
  --orange-pale: #fff2df;
  --white: #ffffff;
  --ink: #1f2933;
  --max: 1180px;
  --radius: 16px;
  --radius-sm: 9px;
  --focus: 3px solid var(--orange);
}

/* ---------- Reset ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.58;
  font-size: 18px;
  text-rendering: optimizeLegibility;
}

img,
svg,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--navy);
  text-underline-offset: 0.16em;
  text-decoration-thickness: 0.08em;
}

a:hover {
  color: var(--orange-dark);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: var(--focus);
  outline-offset: 3px;
}

p,
ul,
ol {
  margin-top: 0;
}

h1,
h2,
h3,
h4 {
  color: var(--navy);
  line-height: 1.06;
  letter-spacing: -0.025em;
  margin: 0 0 0.65em;
}

h1 {
  font-size: clamp(2.7rem, 6vw, 5.5rem);
  max-width: 13ch;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.25rem);
}

h3 {
  font-size: clamp(1.3rem, 2vw, 1.7rem);
}

strong {
  color: var(--navy);
}

::selection {
  background: var(--orange);
  color: var(--white);
}

/* ---------- Layout ---------- */

.container {
  width: min(calc(100% - 40px), var(--max));
  margin-inline: auto;
}

.section {
  padding: 88px 0;
}

.section--tight {
  padding: 60px 0;
}

.section--soft {
  background: var(--gray-soft);
}

.section--navy {
  background: var(--navy);
  color: var(--white);
}

.section--charcoal {
  background: var(--charcoal-deep);
  color: var(--white);
}

.section--navy h2,
.section--navy h3,
.section--navy strong,
.section--charcoal h2,
.section--charcoal h3,
.section--charcoal strong {
  color: var(--white);
}

.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--orange-dark);
  font-size: 0.8rem;
  font-weight: 850;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.section--navy .eyebrow,
.section--charcoal .eyebrow {
  color: var(--orange);
}

.lede {
  max-width: 760px;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  color: var(--gray);
}

.section--navy .lede,
.section--charcoal .lede {
  color: #dbe3ea;
}

.rule {
  width: 68px;
  height: 4px;
  margin: 18px 0 28px;
  border: 0;
  background: var(--orange);
}

/* ---------- Header / nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--gray-light);
  backdrop-filter: blur(10px);
}

.nav {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  color: var(--navy);
  font-weight: 850;
  text-decoration: none;
}

.brand-logo {
  width: 190px;
  max-height: 68px;
  object-fit: contain;
  object-position: left center;
}

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

.nav-links a {
  color: var(--navy);
  text-decoration: none;
  font-weight: 750;
  font-size: 0.95rem;
}

.nav-links a:hover {
  color: var(--orange-dark);
}

/* Keep the header CTA text visible against the dark button background. */
.nav-links a.button {
  color: var(--white);
}

.nav-links a.button:hover {
  color: var(--white);
}

/* ---------- Buttons ---------- */

.button,
button,
input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 13px 20px;
  border: 2px solid var(--navy);
  border-radius: 999px;
  background: var(--navy);
  color: var(--white);
  font: inherit;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
}

.button:hover,
button:hover,
input[type="submit"]:hover {
  background: var(--charcoal-deep);
  border-color: var(--charcoal-deep);
  color: var(--white);
}

.button--secondary {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}

.button--secondary:hover {
  background: var(--navy);
  color: var(--white);
}

.button--accent {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--white);
}

.button--accent:hover {
  background: var(--orange-dark);
  border-color: var(--orange-dark);
  color: var(--white);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 110px 0 92px;
  border-bottom: 1px solid var(--gray-light);
  background:
    linear-gradient(
      115deg,
      var(--white) 0%,
      var(--white) 70%,
      #f7f7f7 70%,
      #f7f7f7 100%
    );
}

.hero::before {
  content: "";
  position: absolute;
  right: -110px;
  top: 0;
  width: 330px;
  height: 12px;
  background: var(--orange);
  transform: skewX(-38deg);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 68px;
  align-items: end;
}

.hero-copy p {
  max-width: 720px;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  color: var(--gray);
}

.hero-aside {
  border-left: 4px solid var(--orange);
  padding-left: 24px;
}

.hero-aside p {
  margin: 0;
  color: var(--charcoal);
  font-size: 1rem;
  font-weight: 700;
}

/* ---------- Promise strip ---------- */

.promise-strip {
  background: var(--charcoal-deep);
  color: var(--white);
}

.promise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.promise {
  padding: 24px;
  border-right: 1px solid rgba(255, 255, 255, 0.16);
}

.promise:last-child {
  border-right: 0;
}

.promise span {
  display: block;
  color: var(--orange);
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.promise strong {
  display: block;
  margin-top: 6px;
  color: var(--white);
  font-size: 1.1rem;
}

/* ---------- Service cards ---------- */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.card {
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-top: 6px solid var(--navy);
  border-radius: var(--radius);
  padding: 30px;
}

.card--accent {
  border-top-color: var(--orange);
  background: #fffaf4;
}

.card--dark {
  border-top-color: var(--charcoal);
}

.card-number {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-weight: 850;
}

.card--accent .card-number {
  background: var(--orange);
  color: var(--white);
}

.card p:last-child {
  margin-bottom: 0;
}

/* ---------- Two-column feature ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
}

.checklist li {
  position: relative;
  padding: 0 0 14px 32px;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.48em;
  width: 12px;
  height: 12px;
  background: var(--orange);
}

/* ---------- Stats ---------- */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-top: 36px;
}

.stat {
  padding: 26px;
  border: 1px solid var(--gray-light);
  border-radius: var(--radius-sm);
  background: var(--white);
}

.stat strong {
  display: block;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1;
  color: var(--navy);
  letter-spacing: -0.04em;
}

.stat span {
  display: block;
  margin-top: 10px;
  color: var(--gray);
  font-size: 0.95rem;
}

/* ---------- Case studies / proof ---------- */

.case-study {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 34px;
  padding: 34px;
  border: 1px solid var(--gray-light);
  border-left: 6px solid var(--orange);
  border-radius: var(--radius);
  background: var(--white);
}

.case-study + .case-study {
  margin-top: 20px;
}

.case-label {
  font-size: 0.78rem;
  color: var(--orange-dark);
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.case-study ul {
  margin-bottom: 0;
}

/* ---------- Engagement model ---------- */

.engagement-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.engagement {
  padding: 28px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--gray-light);
}

.engagement .step {
  color: var(--orange-dark);
  font-size: 0.8rem;
  font-weight: 850;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* ---------- Quote ---------- */

.quote {
  margin: 0;
  padding: 34px 0 34px 30px;
  border-left: 7px solid var(--orange);
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  font-weight: 750;
  line-height: 1.3;
  color: var(--navy);
}

.quote cite {
  display: block;
  margin-top: 14px;
  font-size: 0.9rem;
  color: var(--gray);
  font-style: normal;
  font-weight: 600;
}

/* ---------- CTA ---------- */

.cta {
  padding: 54px;
  border-radius: var(--radius);
  background: var(--navy);
  color: var(--white);
  border-bottom: 7px solid var(--orange);
}

.cta h2,
.cta h3 {
  color: var(--white);
}

.cta p {
  max-width: 720px;
  color: #dce4ec;
}

/* ---------- Forms ---------- */

form {
  max-width: 760px;
}

label {
  display: block;
  margin: 0 0 8px;
  color: var(--navy);
  font-weight: 750;
}

input,
textarea,
select {
  width: 100%;
  min-height: 48px;
  margin: 0 0 20px;
  padding: 12px 14px;
  border: 1px solid #aeb7bf;
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
}

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

/* ---------- Footer ---------- */

.site-footer {
  padding: 36px 0;
  background: var(--charcoal-deep);
  color: #e7e7e7;
  font-size: 0.9rem;
  border-top: 5px solid var(--orange);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
}

.site-footer a {
  color: var(--white);
}

/* ---------- Utilities ---------- */

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

.center {
  text-align: center;
}

.narrow {
  max-width: 780px;
}

.measure {
  max-width: 66ch;
}

.mt-0 {
  margin-top: 0;
}

.mb-0 {
  margin-bottom: 0;
}

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

.orange {
  color: var(--orange-dark);
}

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

/* ---------- Accessibility ---------- */

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--orange);
  color: var(--white);
  font-weight: 850;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

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

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .hero-grid,
  .split,
  .case-study {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .services-grid,
  .engagement-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .promise-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
  }

  .stat {
    padding: 22px 18px;
  }

  .stat strong {
    font-size: clamp(1.8rem, 3vw, 3rem);
  }

  .stat span {
    font-size: 0.88rem;
  }

  .hero-aside {
    max-width: 680px;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 17px;
  }

  .container {
    width: min(calc(100% - 28px), var(--max));
  }

  .section {
    padding: 62px 0;
  }

  .hero {
    padding: 78px 0 60px;
  }

  .nav {
    min-height: 72px;
  }

  .brand-logo {
    width: 150px;
    max-height: 54px;
  }

  .nav-links a:not(.button) {
    display: none;
  }

  .services-grid,
  .engagement-grid,
  .stats-grid,
  .promise-grid {
    grid-template-columns: 1fr;
  }

  .promise {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  }

  .promise:last-child {
    border-bottom: 0;
  }

  .cta {
    padding: 34px 26px;
  }

  .footer-grid {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* ---------- Print ---------- */

@media print {
  .site-header,
  .button,
  button,
  form {
    display: none !important;
  }

  body {
    color: #000;
    background: #fff;
    font-size: 12pt;
  }

  .section,
  .hero {
    padding: 24px 0;
  }

  .card,
  .stat,
  .case-study,
  .engagement,
  .cta {
    break-inside: avoid;
  }

  .cta,
  .section--navy,
  .section--charcoal,
  .promise-strip {
    background: #fff !important;
    color: #000 !important;
    border: 1px solid #000;
  }
}
