/* =========================================================
   CT CUSTOM — Colors & Type
   Marine fabrication. Deep navy. Clean, professional, durable.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Bitter:ital,wght@0,300..900;1,300..900&family=Manrope:wght@300..800&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
  /* ---------- Brand ---------- */
  --brand-navy:        #164A66;   /* sampled directly from logo */
  --brand-navy-deep:   #0E3349;   /* hover / pressed */
  --brand-navy-ink:    #081E2C;   /* darkest, header backgrounds */
  --brand-navy-tint:   #5C8AA5;   /* mid */
  --brand-navy-soft:   #B7CCDA;   /* surfaces */
  --brand-navy-mist:   #E5EEF4;   /* faint wash */

  /* ---------- Accents ---------- */
  --brass:             #B07A2B;   /* hardware / brass cleat */
  --brass-bright:      #D9A85A;
  --brass-soft:        #F4E4C6;
  --signal-teal:       #1F8FA8;   /* highlight, links */
  --signal-teal-soft:  #CDE6EC;
  --rust:              #9B3E2C;   /* warning / destructive */

  /* ---------- Neutrals (warm, ocean-fog) ---------- */
  --hull-white:        #FAFAF7;   /* canvas / page bg */
  --fog-50:            #F4F4F0;
  --fog-100:           #E8E8E2;
  --fog-200:           #D5D5CD;
  --fog-300:           #B6B6AC;
  --fog-400:           #8E8E83;
  --fog-500:           #6A6A60;
  --fog-600:           #4A4A42;
  --fog-700:           #2E2E29;
  --ink:               #14160F;   /* primary text */

  /* ---------- Semantic surfaces ---------- */
  --bg:                var(--hull-white);
  --bg-alt:            var(--fog-50);
  --bg-sunken:         var(--fog-100);
  --bg-inverse:        var(--brand-navy-ink);
  --surface-card:      #FFFFFF;
  --surface-overlay:   rgba(8, 30, 44, 0.72);

  /* ---------- Text ---------- */
  --fg:                var(--ink);
  --fg-muted:          var(--fog-500);
  --fg-subtle:         var(--fog-400);
  --fg-inverse:        var(--hull-white);
  --fg-brand:          var(--brand-navy);
  --fg-link:           var(--signal-teal);

  /* ---------- Borders ---------- */
  --border:            var(--fog-200);
  --border-strong:     var(--fog-300);
  --border-brand:      var(--brand-navy);

  /* ---------- Status ---------- */
  --success:           #2F7A4F;
  --warning:           var(--brass);
  --danger:            var(--rust);
  --info:              var(--signal-teal);

  /* ---------- Type families ---------- */
  --font-display:      "Bitter", "Roboto Slab", Georgia, serif;
  --font-body:         "Manrope", "Helvetica Neue", system-ui, -apple-system, sans-serif;
  --font-mono:         "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* ---------- Type scale ---------- */
  --fs-display:        clamp(3rem, 6vw, 5.25rem);   /* 84px */
  --fs-h1:             clamp(2.25rem, 4vw, 3.5rem); /* 56px */
  --fs-h2:             clamp(1.75rem, 3vw, 2.5rem); /* 40px */
  --fs-h3:             1.5rem;                      /* 24px */
  --fs-h4:             1.25rem;                     /* 20px */
  --fs-lead:           1.1875rem;                   /* 19px */
  --fs-body:           1rem;                        /* 16px */
  --fs-small:          0.875rem;                    /* 14px */
  --fs-micro:          0.75rem;                     /* 12px */
  --fs-eyebrow:        0.6875rem;                   /* 11px tracked label */

  --lh-tight:          1.05;
  --lh-snug:           1.2;
  --lh-normal:         1.5;
  --lh-loose:          1.7;

  --tracking-tight:    -0.02em;
  --tracking-normal:   0;
  --tracking-wide:     0.04em;
  --tracking-eyebrow:  0.18em;

  /* ---------- Spacing (4pt grid) ---------- */
  --s-1:  4px;
  --s-2:  8px;
  --s-3:  12px;
  --s-4:  16px;
  --s-5:  24px;
  --s-6:  32px;
  --s-7:  48px;
  --s-8:  64px;
  --s-9:  96px;
  --s-10: 128px;

  /* ---------- Radii ---------- */
  --r-xs: 2px;
  --r-sm: 4px;
  --r-md: 6px;
  --r-lg: 10px;
  --r-xl: 16px;
  --r-pill: 999px;

  /* ---------- Shadows (cool, subtle) ---------- */
  --shadow-xs: 0 1px 1px rgba(8, 30, 44, 0.04), 0 1px 0 rgba(8, 30, 44, 0.03);
  --shadow-sm: 0 1px 2px rgba(8, 30, 44, 0.06), 0 2px 4px rgba(8, 30, 44, 0.04);
  --shadow-md: 0 4px 8px rgba(8, 30, 44, 0.06), 0 12px 24px rgba(8, 30, 44, 0.06);
  --shadow-lg: 0 8px 16px rgba(8, 30, 44, 0.08), 0 24px 48px rgba(8, 30, 44, 0.10);
  --shadow-inset: inset 0 1px 0 rgba(255, 255, 255, 0.4), inset 0 -1px 0 rgba(8, 30, 44, 0.06);

  /* ---------- Motion (user "likes moving parts") ---------- */
  --ease-out:    cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-inout:  cubic-bezier(0.65, 0, 0.35, 1);
  --ease-tide:   cubic-bezier(0.45, 0, 0.15, 1);   /* signature ease: slow build, smooth release */
  --dur-quick:   140ms;
  --dur-base:    260ms;
  --dur-slow:    520ms;
  --dur-swell:   3200ms;  /* ambient float / wave */
}

/* =========================================================
   Base reset + body
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-normal);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* =========================================================
   Semantic type styles
   ========================================================= */
.display, h1.display {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-display);
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--fg-brand);
  text-wrap: balance;
}
h1, .h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-h1);
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--fg-brand);
  margin: 0 0 var(--s-4);
  text-wrap: balance;
}
h2, .h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-h2);
  line-height: var(--lh-snug);
  letter-spacing: var(--tracking-tight);
  color: var(--fg-brand);
  margin: 0 0 var(--s-4);
  text-wrap: balance;
}
h3, .h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-h3);
  line-height: var(--lh-snug);
  color: var(--fg);
  margin: 0 0 var(--s-3);
}
h4, .h4 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--fs-h4);
  line-height: var(--lh-snug);
  color: var(--fg);
  margin: 0 0 var(--s-2);
}
.eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--fs-eyebrow);
  text-transform: uppercase;
  letter-spacing: var(--tracking-eyebrow);
  color: var(--fg-muted);
}
.lead {
  font-size: var(--fs-lead);
  line-height: var(--lh-loose);
  color: var(--fg-muted);
  text-wrap: pretty;
}
p {
  margin: 0 0 var(--s-4);
  text-wrap: pretty;
}
small, .small { font-size: var(--fs-small); }
.micro { font-size: var(--fs-micro); }
code, kbd, samp, .mono {
  font-family: var(--font-mono);
  font-size: 0.92em;
}
a {
  color: var(--fg-link);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  transition: color var(--dur-quick) var(--ease-out);
}
a:hover { color: var(--brand-navy); }

/* =========================================================
   Signature motion utilities — the "moving parts"
   ========================================================= */
@keyframes ct-swell {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}
@keyframes ct-drift {
  0%   { transform: translateX(-2px); }
  50%  { transform: translateX(2px); }
  100% { transform: translateX(-2px); }
}
@keyframes ct-shimmer {
  0%   { background-position: -120% 0; }
  100% { background-position: 220% 0; }
}
.swell  { animation: ct-swell var(--dur-swell) var(--ease-tide) infinite; }
.drift  { animation: ct-drift calc(var(--dur-swell) * 1.4) var(--ease-inout) infinite; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}


/* =========================================================
   CT Custom — Website shared styles
   Spec-sheet aesthetic: blueprint grid, dimension callouts,
   navy fills, brass hardware accents.
   ========================================================= */
/* ---------- Page shell ---------- */
html, body { background: var(--hull-white); }
body { font-family: var(--font-body); color: var(--ink); }

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- Site header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 250, 247, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.site-header .inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
  gap: 24px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; border: 0;
}
.brand img {
  height: 48px; width: auto;
  animation: ct-swell 3.4s var(--ease-tide) infinite;
}
.brand .wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.04em;
  color: var(--brand-navy);
  line-height: 1;
}
.brand .wordmark small {
  display: block;
  font-family: var(--font-body);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--fg-muted);
  margin-top: 4px;
}

.site-nav {
  display: flex; align-items: center; gap: 4px;
}
.site-nav a {
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--fog-600);
  text-decoration: none; border: 0;
  padding: 8px 14px;
  border-radius: var(--r-sm);
  transition: color var(--dur-quick) var(--ease-out), background var(--dur-quick) var(--ease-out);
}
.site-nav a:hover { color: var(--brand-navy); background: var(--brand-navy-mist); }
.site-nav a.on {
  color: var(--brand-navy);
  background: var(--brand-navy-mist);
}

.header-cta {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13.5px;
  padding: 10px 18px;
  background: var(--brand-navy);
  color: var(--hull-white);
  border: 0;
  border-radius: var(--r-md);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px;
  transition: background var(--dur-quick) var(--ease-out), transform var(--dur-quick) var(--ease-out);
  box-shadow: var(--shadow-xs);
}
.header-cta:hover { background: var(--brand-navy-deep); transform: translateY(-1px); }
.header-cta:active { transform: translateY(0); }

/* ---------- Section rhythm ---------- */
section { padding: 96px 0; }
section.compact { padding: 64px 0; }
section.dark {
  background: var(--brand-navy-ink);
  color: var(--hull-white);
}

/* Spec-sheet section header: hairline + small-caps label like a drawing */
.spec-rule {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 40px;
}
.spec-rule::before, .spec-rule::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border-strong);
}
.spec-rule .num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--brand-navy);
  font-weight: 500;
}
.spec-rule .label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brand-navy);
}
.dark .spec-rule::before, .dark .spec-rule::after { background: rgba(183, 204, 218, 0.28); }
.dark .spec-rule .num, .dark .spec-rule .label { color: var(--brass-bright); }

/* Spec label (used many places) */
.eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brand-navy);
}
.dark .eyebrow { color: var(--brass-bright); }

/* ---------- Blueprint grid background util ---------- */
.bp-grid {
  position: relative;
}
.bp-grid::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}
.bp-grid-light::before {
  background-image:
    linear-gradient(to right, rgba(22, 74, 102, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(22, 74, 102, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* Dimension marker — used to annotate hero like an engineering drawing */
.dim {
  display: inline-flex; align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--brass-bright);
  letter-spacing: 0.04em;
  gap: 6px;
}
.dim::before, .dim::after {
  content: "";
  height: 1px;
  background: currentColor;
  flex: 1;
  min-width: 24px;
}
.dim.short::before, .dim.short::after { min-width: 12px; }

/* ---------- Buttons ---------- */
.btn {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: var(--r-md);
  cursor: pointer;
  letter-spacing: 0.01em;
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none;
  transition: background var(--dur-quick) var(--ease-out),
              color var(--dur-quick) var(--ease-out),
              box-shadow var(--dur-quick) var(--ease-out),
              transform var(--dur-quick) var(--ease-out);
  box-shadow: var(--shadow-xs);
}
.btn.primary { background: var(--brand-navy); color: var(--hull-white); }
.btn.primary:hover { background: var(--brand-navy-deep); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn.primary:active { transform: translateY(0); box-shadow: var(--shadow-inset); }

.btn.brass { background: var(--brass); color: var(--hull-white); }
.btn.brass:hover { background: #8E6020; transform: translateY(-1px); }

.btn.secondary {
  background: transparent; color: var(--hull-white);
  border-color: rgba(250, 250, 247, 0.4);
  box-shadow: none;
}
.btn.secondary:hover { background: rgba(250, 250, 247, 0.08); border-color: var(--hull-white); }

.btn.outline {
  background: transparent; color: var(--brand-navy);
  border-color: var(--brand-navy);
  box-shadow: none;
}
.btn.outline:hover { background: var(--brand-navy-mist); }

.btn .arr { width: 14px; height: 14px; transition: transform var(--dur-quick) var(--ease-out); }
.btn:hover .arr { transform: translateX(2px); }

/* ---------- Cards ---------- */
.card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 28px;
  box-shadow: var(--shadow-xs);
  transition: box-shadow var(--dur-base) var(--ease-out),
              transform var(--dur-base) var(--ease-out);
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }

/* ---------- Quote form ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-size: 11px; font-weight: 700;
  color: var(--brand-navy);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.field input, .field textarea {
  font-family: var(--font-body);
  font-size: 15px;
  padding: 12px 14px;
  background: var(--surface-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  color: var(--ink);
  outline: none;
  transition: border-color var(--dur-quick) var(--ease-out),
              box-shadow var(--dur-quick) var(--ease-out);
}
.field input:focus, .field textarea:focus {
  border-color: var(--brand-navy);
  box-shadow: 0 0 0 3px rgba(22, 74, 102, 0.18);
}
.field textarea { min-height: 120px; resize: vertical; font-family: var(--font-body); }
.field input::placeholder, .field textarea::placeholder { color: var(--fog-400); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--brand-navy-ink);
  color: var(--brand-navy-soft);
  padding: 64px 0 32px;
}
.site-footer h4 {
  font-family: var(--font-body);
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--brass-bright);
  margin: 0 0 16px;
}
.site-footer a {
  color: var(--brand-navy-soft);
  text-decoration: none; border: 0;
  font-size: 14px;
  transition: color var(--dur-quick) var(--ease-out);
}
.site-footer a:hover { color: var(--hull-white); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(183, 204, 218, 0.16);
}
.footer-grid .col { display: flex; flex-direction: column; gap: 8px; }
.footer-grid .col p { color: var(--brand-navy-soft); font-size: 14px; line-height: 1.6; margin: 0; }
.footer-meta {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fog-400);
}

/* ---------- Reveal-on-scroll (gentle) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 720ms var(--ease-tide), transform 720ms var(--ease-tide);
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- Page hero (shared) ---------- */
.page-hero {
  background: var(--brand-navy-ink);
  color: var(--hull-white);
  padding: 96px 0 72px;
  position: relative;
  overflow: hidden;
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.02;
  margin: 12px 0 16px;
  color: var(--hull-white);
}
.page-hero .lede {
  font-size: 19px; line-height: 1.55;
  color: var(--brand-navy-soft);
  max-width: 60ch;
  margin: 0;
}

/* ---------- Misc ---------- */
.divider-rule {
  height: 1px;
  background: var(--border);
  margin: 0;
}

@media (max-width: 880px) {
  .container { padding: 0 20px; }
  .site-nav { display: none; }
  section { padding: 64px 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
