/* Sevenshores — Heritage */

:root {
  --navy: #002037;
  --navy-hover: #0B3A5C;
  --sky: #399AD3;
  --sky-text: #1F6FA3;
  --sky-on-navy: #5DB6EA;
  --wash: #EEF6FB;
  --cream: #F4F1EA;
  --muted: #4A5B6B;
  --muted-on-navy: #C7D3DD;
  --rule: #C9D7E2;
  --rule-light: #DCE6EE;
  --rule-on-navy: #2B4A63;
  --frame-inner: #A9C3D6;
  --field-border: #9DB0BF;

  --serif: 'Marcellus', Georgia, serif;
  --sans: 'Libre Franklin', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --gutter: clamp(16px, 4vw, 56px);
  --section-y: clamp(72px, 8vw, 112px);
}

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

html { -webkit-text-size-adjust: 100%; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: #FFFFFF;
  color: var(--navy);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 400; }
p { margin: 0; }
img, svg { display: block; }

a { color: var(--sky-text); }
a:hover { color: var(--navy); }

:focus-visible { outline: 2px solid var(--sky); outline-offset: 2px; }

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 10;
  padding: 10px 16px;
  border-radius: 3px;
  background: var(--navy);
  color: #FFFFFF;
  font-weight: 500;
  text-decoration: none;
}
.skip-link:focus { top: 16px; color: #FFFFFF; }

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Spaced-caps label between two tapered rules */

.flourish {
  --flourish: var(--sky);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.flourish::before,
.flourish::after {
  content: "";
  flex: none;
  width: clamp(28px, 8vw, 64px);
  height: 4px;
  background: var(--flourish);
}
.flourish::before { clip-path: polygon(0 50%, 86.67% 85%, 100% 50%, 86.67% 15%); }
.flourish::after { clip-path: polygon(0 50%, 13.33% 15%, 100% 50%, 13.33% 85%); }

.eyebrow {
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sky-text);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 20px;
  border: 1px solid var(--navy);
  border-radius: 3px;
  background: var(--navy);
  color: #FFFFFF;
  font: inherit;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { background: var(--navy-hover); border-color: var(--navy-hover); color: #FFFFFF; }

.btn--lg { height: 52px; padding: 0 28px; font-size: 16px; }

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

/* Header */

.site-header { border-bottom: 1px solid var(--rule-light); }
.site-header .wrap {
  padding-top: 14px;
  padding-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 32px;
}
.site-header__logo { display: block; line-height: 0; }
.site-header__logo img { width: 260px; max-width: 64vw; height: auto; }

.nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 28px;
  font-size: 15px;
  font-weight: 500;
}
.nav-link { color: var(--navy); text-decoration: none; }
.nav-link:hover { color: var(--sky-text); }

/* Hero */

.hero {
  padding: clamp(56px, 7vw, 96px) var(--gutter) clamp(48px, 6vw, 80px);
  text-align: center;
}
.hero__inner {
  max-width: 920px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero__logo { width: 360px; max-width: 78vw; height: auto; }
.hero .eyebrow { margin-top: clamp(40px, 5vw, 56px); }
.hero h1 {
  margin-top: 24px;
  font-size: clamp(40px, 5.4vw, 74px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.hero__lede {
  margin-top: 24px;
  max-width: 640px;
  font-size: clamp(17px, 1.4vw, 20px);
  color: var(--muted);
  text-wrap: pretty;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 40px;
}

@keyframes swell {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-5px) rotate(-0.6deg); }
}
.swell { animation: swell 7s ease-in-out infinite; transform-origin: 50% 70%; }
@media (prefers-reduced-motion: reduce) {
  .swell { animation: none; }
}

/* Horizon divider */

.divider {
  position: relative;
  display: flex;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
/* One continuous rule; the arcs sit on top of it */
.divider::after {
  content: "";
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: 0;
  height: 1px;
  background: var(--rule);
}
.divider svg { margin-bottom: 1px; }

/* Sections */

.section { padding: var(--section-y) 0; }
.section--wash { background: var(--wash); }
.section--navy { background: var(--navy); color: var(--cream); }
.section--navy .eyebrow { --flourish: var(--sky-on-navy); color: var(--sky-on-navy); }

.section-head { max-width: 760px; margin: 0 auto; text-align: center; }
.section-head h2 {
  margin-top: 20px;
  font-size: clamp(32px, 3.6vw, 52px);
  line-height: 1.15;
  text-wrap: balance;
}
.section-head__lede {
  margin: 24px auto 0;
  max-width: 660px;
  color: var(--muted);
  font-size: 18px;
  text-wrap: pretty;
}
.section-head--wide { max-width: 820px; }

.section-body { margin-top: clamp(40px, 5vw, 64px); }

/* Double-ruled frame */

.frame { display: flex; padding: 6px; border: 1px solid var(--navy); }
.frame__inner { flex: 1; border: 1px solid var(--frame-inner); }

/* Products */

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr));
  gap: 28px;
}
.product {
  padding: clamp(24px, 2.6vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.product__id { display: flex; align-items: flex-start; gap: 14px; }
.product__icon { flex: none; width: 52px; height: 52px; border-radius: 12px; }
.product h3 { font-size: 30px; line-height: 1.1; }
.product__meta {
  margin-top: 2px;
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sky-text);
}
.product__tagline { margin-top: 8px; font-size: 19px; font-weight: 500; line-height: 1.35; }
.product__desc { color: var(--muted); font-size: 16px; text-wrap: pretty; }
.product__links {
  margin-top: auto;
  padding-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--navy);
  font-weight: 500;
  text-decoration: none;
}
.arrow-link:hover { color: var(--sky-text); }

.products-note {
  max-width: 640px;
  margin: 40px auto 0;
  text-align: center;
  font-family: var(--serif);
  font-size: clamp(19px, 1.6vw, 22px);
}

/* What we build */

.crafts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 48px;
  text-align: center;
}
.craft { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.craft h3 { margin-top: 4px; font-size: 26px; }
.craft p { max-width: 34ch; color: var(--muted); text-wrap: pretty; }

/* Consulting */

.services {
  list-style: none;
  margin-inline: 0;
  margin-bottom: 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  column-gap: 56px;
}
.service {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 16px;
  padding: 28px 0;
  border-top: 1px solid var(--rule);
}
.service:last-child { border-bottom: 1px solid var(--rule); }
@media (min-width: 960px) {
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service:nth-last-child(2) { border-bottom: 1px solid var(--rule); }
}
.service__num { font-family: var(--serif); font-size: 26px; line-height: 1.2; color: var(--sky); }
.service h3 { font-size: 24px; line-height: 1.25; }
.service p { margin-top: 6px; color: var(--muted); }

.stack {
  margin: clamp(48px, 5vw, 64px) 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 24px;
  text-align: center;
}
.stack dt { font-family: var(--serif); font-size: 22px; }
.stack dd { margin: 4px 0 0; color: var(--muted); font-size: 15px; }

.center-actions { display: flex; justify-content: center; margin-top: 48px; }

/* How we work */

.principles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 48px;
}
.principle { padding-top: 24px; border-top: 1px solid var(--rule-on-navy); }
.principle__source {
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sky-on-navy);
}
.principle h3 { margin-top: 10px; font-size: 26px; }
.principle__body { margin-top: 10px; color: var(--muted-on-navy); text-wrap: pretty; }

/* Contact */

.section-head--contact { max-width: 720px; }
.section-head--contact h2 { font-size: clamp(34px, 4vw, 56px); line-height: 1.12; }
.section-head--contact .section-head__lede { margin-top: 18px; max-width: 560px; }

.contact-card {
  max-width: 680px;
  margin: clamp(36px, 4vw, 48px) auto 0;
  background: #FFFFFF;
}
.contact-form {
  padding: clamp(22px, 3vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 16px;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field label,
.choices legend { font-size: 14px; font-weight: 600; }

.input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--field-border);
  border-radius: 3px;
  background: #FFFFFF;
  color: var(--navy);
  font: inherit;
  font-size: 16px;
}
textarea.input { height: auto; padding: 12px 14px; resize: vertical; }
.input:focus { outline: 2px solid var(--sky); outline-offset: 1px; border-color: var(--navy); }

.choices { min-width: 0; margin: 0; padding: 0; border: 0; }
.choices legend { padding: 0; margin-bottom: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 16px;
  border: 1px solid var(--field-border);
  border-radius: 3px;
  font-size: 15px;
  cursor: pointer;
}
.chip input { margin: 0; accent-color: var(--sky); }
.chip:has(input:checked) { background: var(--navy); border-color: var(--navy); color: #FFFFFF; }
.chip:has(input:focus-visible) { outline: 2px solid var(--sky); outline-offset: 2px; }

.form-submit { align-self: center; padding: 0 32px; }

/* Footer */

.site-footer .wrap {
  padding-top: clamp(56px, 6vw, 80px);
  padding-bottom: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
  text-align: center;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 32px;
  font-size: 15px;
  font-weight: 500;
}
.copyright { width: 100%; font-size: 14px; color: var(--muted); }
