/* Smooth cross-page navigation (progressive enhancement — no-op in
   browsers that don't support the Cross-Document View Transitions API) */
@view-transition {
  navigation: auto;
}

/* ===========================================================
   Shoreline Walks & Whiskers — design tokens
   =========================================================== */
:root {
  /* Brand — navy */
  --navy-950: #08131f;
  --navy-900: #0c1c2e;
  --navy-800: #132840;
  --navy-700: #1b3552;
  --navy-600: #294a6b;

  /* Brand — gold */
  --gold-600: #a9822f;
  --gold-500: #c9a24e;
  --gold-400: #d9b869;
  --gold-300: #e8ceA0;

  /* Neutrals */
  --cream-50: #faf7f0;
  --cream-100: #f2ece0;
  --ink-900: #17232f;
  --ink-700: #3b4a59;
  --ink-500: #647184;
  --white: #ffffff;

  /* Semantic */
  --color-bg: var(--cream-50);
  --color-surface: var(--white);
  --color-text: var(--ink-900);
  --color-text-muted: var(--ink-500);
  --color-border: #e3dccb;
  --color-danger: #b3432f;

  /* Type */
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Spacing scale */
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-8: 3rem;
  --space-10: 4rem;
  --space-12: 6rem;

  /* Layout */
  --max-width: 1180px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --shadow-card: 0 1px 2px rgba(23, 35, 47, 0.06), 0 12px 28px -14px rgba(23, 35, 47, 0.18);
  --shadow-pop: 0 20px 45px -18px rgba(8, 19, 31, 0.45);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ===========================================================
   Reset & base
   =========================================================== */
*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: none; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 var(--space-4);
  color: inherit;
}

h1 { font-size: clamp(2.2rem, 4.5vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.25rem; margin-bottom: var(--space-2); }
p { margin: 0 0 var(--space-4); color: var(--color-text-muted); }

.wrap {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-5);
}

.icon { width: 1.15em; height: 1.15em; }
.icon-sm { width: 1em; height: 1em; }

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--navy-900);
  color: var(--white);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  z-index: 1000;
}
.skip-link:focus {
  left: var(--space-4);
  top: var(--space-4);
}

:focus-visible {
  outline: 3px solid var(--gold-500);
  outline-offset: 2px;
  border-radius: 4px;
}

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

/* ===========================================================
   Buttons
   =========================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  padding: 0.85em 1.5em;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 180ms var(--ease), background-color 180ms var(--ease), color 180ms var(--ease), box-shadow 180ms var(--ease);
  white-space: nowrap;
  min-height: 44px;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-gold {
  background: linear-gradient(180deg, var(--gold-400), var(--gold-600));
  color: var(--navy-950);
  box-shadow: 0 10px 24px -10px rgba(169, 130, 47, 0.55);
}
.btn-gold:hover { background: linear-gradient(180deg, var(--gold-300), var(--gold-500)); }

.btn-lg { padding: 1em 1.9em; font-size: 1rem; }

.btn-submit { width: 100%; position: relative; }
.icon-spin { display: none; animation: spin 0.8s linear infinite; }
.btn-submit.is-loading .btn-label { visibility: hidden; }
.btn-submit.is-loading .icon-spin { display: block; position: absolute; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ===========================================================
   Header
   =========================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--cream-50);
  border-bottom: 1px solid var(--color-border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-block: var(--space-3);
}

.brand { display: flex; align-items: center; gap: var(--space-3); min-height: 44px; }
.brand-mark {
  width: 52px;
  height: 52px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 0 0 1.5px rgba(201,162,78,0.5);
}
.brand-mark-footer { width: 58px; height: 58px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--navy-900); }
.brand-sub { font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-600); font-weight: 600; }

.main-nav ul { display: flex; gap: var(--space-6); }
.main-nav a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--navy-800);
  padding: 0.4em 0.1em;
  border-bottom: 2px solid transparent;
  transition: color 160ms var(--ease), border-color 160ms var(--ease);
}
.main-nav a:hover { color: var(--gold-600); border-color: var(--gold-500); }

.header-actions { display: flex; align-items: center; gap: var(--space-3); }
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  cursor: pointer;
  color: var(--navy-900);
}
.nav-toggle:hover { background: rgba(23,35,47,0.06); }

@media (max-width: 899px) {
  .main-nav {
    position: fixed;
    inset: 72px 0 0 0;
    background: var(--cream-50);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 200ms var(--ease), transform 200ms var(--ease);
    padding: var(--space-6) var(--space-5);
    overflow-y: auto;
  }
  .main-nav.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .main-nav ul { flex-direction: column; gap: var(--space-2); }
  .main-nav a { display: block; font-size: 1.15rem; padding: var(--space-3) 0; border-bottom: 1px solid var(--color-border); }
  .header-cta { display: none; }
  .nav-toggle { display: inline-flex; }
}

/* ===========================================================
   Hero
   =========================================================== */
.hero {
  position: relative;
  background: radial-gradient(120% 140% at 85% -10%, var(--navy-700) 0%, var(--navy-900) 45%, var(--navy-950) 100%);
  color: var(--white);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 88% 8%, rgba(201,162,78,0.16), transparent 40%),
    repeating-linear-gradient(115deg, rgba(255,255,255,0.03) 0 2px, transparent 2px 90px);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: var(--space-10);
  padding-top: var(--space-8);
  padding-bottom: var(--space-8);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--gold-300);
  margin-bottom: var(--space-4);
}
.eyebrow-dark { color: var(--gold-600); }
.eyebrow-line { width: 34px; height: 1.5px; background: currentColor; display: inline-block; opacity: 0.8; }

.hero h1 { color: var(--white); max-width: 15ch; }
.hero-lede { color: rgba(255,255,255,0.78); font-size: 1.08rem; max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-4); margin-bottom: var(--space-6); }

.hero-tagline {
  display: flex;
  align-items: center;
  gap: 0.5em;
  color: var(--gold-300);
  font-family: var(--font-display);
  font-size: 1.02rem;
  letter-spacing: 0.02em;
}

.hero-badge {
  position: relative;
  justify-self: center;
  width: min(460px, 92%);
}
.hero-badge img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: var(--shadow-pop), 0 0 0 6px rgba(201,162,78,0.18);
}

.hero-wave {
  display: block;
  width: 100%;
  height: 60px;
  fill: var(--color-bg);
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-lede { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-tagline { justify-content: center; }
  .hero-badge { width: min(320px, 78%); order: -1; }
}

/* ===========================================================
   Services
   =========================================================== */
.services { padding-block: var(--space-12); }
.services h2 { text-align: center; }
.section-lede { text-align: center; max-width: 52ch; margin-inline: auto; margin-bottom: var(--space-8); font-size: 1.05rem; }
.services .eyebrow { justify-content: center; }

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
}
.service-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6) var(--space-5);
  box-shadow: var(--shadow-card);
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease);
}
.service-card:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -22px rgba(23,35,47,0.28); }

.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(160deg, var(--navy-800), var(--navy-900));
  color: var(--gold-400);
  margin-bottom: var(--space-4);
}
.service-icon .icon { width: 26px; height: 26px; }
.service-card h3 { color: var(--navy-900); }
.service-card p { margin-bottom: 0; font-size: 0.95rem; }

@media (max-width: 980px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .service-grid { grid-template-columns: 1fr; }
}

/* ===========================================================
   Our team
   =========================================================== */
.team { padding-block: var(--space-12); background: var(--cream-100); }
.team h2 { text-align: center; }
.team .eyebrow { justify-content: center; }

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-8);
  max-width: 920px;
  margin-inline: auto;
}
.team-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-card);
  text-align: center;
}
.team-photo {
  width: min(240px, 70%);
  margin: 0 auto var(--space-5);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 4px solid var(--cream-50);
  box-shadow: 0 0 0 3px var(--gold-500), var(--shadow-card);
}
.team-photo img {
  width: 100%;
  height: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center 22%;
}
.team-card h3 { color: var(--navy-900); margin-bottom: 0.2em; }
.team-role {
  color: var(--gold-600);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--space-4);
}
.team-card p:last-child { font-size: 0.95rem; margin-bottom: 0; text-align: left; }

.team-closing {
  text-align: center;
  max-width: 60ch;
  margin: var(--space-8) auto 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--navy-800);
}

@media (max-width: 720px) {
  .team-grid { grid-template-columns: 1fr; max-width: 440px; }
}

/* ===========================================================
   Service area
   =========================================================== */
.area {
  background: linear-gradient(180deg, var(--navy-900), var(--navy-950));
  color: var(--white);
  text-align: center;
  padding-block: var(--space-10);
}
.area-inner { max-width: 820px; margin-inline: auto; }
.area-icon { width: 44px; height: 44px; color: var(--gold-400); margin-bottom: var(--space-4); }
.area h2 { color: var(--white); }
.area p { color: rgba(255,255,255,0.75); }

.area-towns {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3);
  margin-top: var(--space-6);
}
.area-town-link {
  display: inline-flex;
  align-items: center;
  padding: 0.6em 1.1em;
  border-radius: 999px;
  border: 1px solid rgba(201,162,78,0.4);
  background: rgba(201,162,78,0.06);
  color: var(--gold-300);
  font-size: 0.88rem;
  font-weight: 500;
  min-height: 44px;
  transition: border-color 160ms var(--ease), background-color 160ms var(--ease), color 160ms var(--ease), transform 160ms var(--ease);
}
.area-town-link:hover {
  border-color: var(--gold-400);
  background: rgba(201,162,78,0.14);
  color: var(--gold-400);
  transform: translateY(-1px);
}
.area-town-link[aria-current] {
  border-color: var(--gold-500);
  background: rgba(201,162,78,0.2);
  color: var(--gold-300);
}

/* ===========================================================
   Breadcrumbs (town pages)
   =========================================================== */
.breadcrumbs {
  background: var(--cream-50);
  border-bottom: 1px solid var(--color-border);
  padding-block: var(--space-3);
}
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5em;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}
.breadcrumbs a { color: var(--navy-800); font-weight: 500; }
.breadcrumbs a:hover { color: var(--gold-600); }
.breadcrumbs li:not(:last-child)::after {
  content: "/";
  margin-left: 0.5em;
  opacity: 0.5;
}

/* ===========================================================
   Town page content sections
   =========================================================== */
.town-content { padding-block: var(--space-10); }
.town-content .wrap { max-width: 760px; }
.town-content h2 { text-align: center; }
.town-content p { font-size: 1.05rem; }

.town-cta {
  background: linear-gradient(180deg, var(--navy-900), var(--navy-950));
  color: var(--white);
  text-align: center;
  padding-block: var(--space-10);
}
.town-cta h2 { color: var(--white); }
.town-cta p { color: rgba(255,255,255,0.75); max-width: 52ch; margin-inline: auto; }
.town-cta .hero-actions { justify-content: center; margin-top: var(--space-6); margin-bottom: 0; }

/* ===========================================================
   Request service
   =========================================================== */
.request { padding-block: var(--space-12); background: var(--cream-100); }
.request-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: var(--space-10);
  align-items: start;
}
.request-intro .eyebrow { justify-content: flex-start; }

.request-form {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow-card);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); }
.field { margin-bottom: var(--space-5); }
.field label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--navy-900);
  margin-bottom: 0.5em;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 44px;
  padding: 0.7em 0.9em;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--white);
  font: inherit;
  font-size: 0.98rem;
  color: var(--ink-900);
  transition: border-color 160ms var(--ease), box-shadow 160ms var(--ease);
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--gold-500);
  box-shadow: 0 0 0 4px rgba(201,162,78,0.18);
  outline: none;
}
.field input:invalid[data-touched="true"],
.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: var(--color-danger);
}
.field-error {
  color: var(--color-danger);
  font-size: 0.85rem;
  margin-top: 0.4em;
}

.form-note { text-align: center; font-size: 0.85rem; margin-top: var(--space-4); margin-bottom: 0; }

.form-status {
  border-radius: var(--radius-sm);
  padding: var(--space-4);
  margin-bottom: var(--space-5);
  font-size: 0.92rem;
  font-weight: 500;
}
.form-status[data-type="success"] { background: #eaf5ec; color: #2c6b3f; }
.form-status[data-type="error"] { background: #fbeae6; color: var(--color-danger); }

@media (max-width: 900px) {
  .request-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .form-row { grid-template-columns: 1fr; }
  .request-form { padding: var(--space-6) var(--space-4); }
}

/* ===========================================================
   Footer
   =========================================================== */
.site-footer { background: var(--navy-950); color: rgba(255,255,255,0.72); padding-top: var(--space-10); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: var(--space-8);
  padding-bottom: var(--space-8);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand p { color: rgba(255,255,255,0.6); font-size: 0.92rem; margin-top: var(--space-4); margin-bottom: var(--space-2); }
.footer-owners { color: var(--gold-300); font-weight: 600; font-size: 0.88rem; }
.brand-footer .brand-name { color: var(--white); }

.social-links { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-5); }
.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  padding: 0.6em 1.1em;
  border-radius: 999px;
  border: 1px solid rgba(201,162,78,0.4);
  background: rgba(201,162,78,0.06);
  color: var(--gold-300);
  font-size: 0.88rem;
  font-weight: 500;
  min-height: 44px;
  transition: border-color 160ms var(--ease), background-color 160ms var(--ease), color 160ms var(--ease), transform 160ms var(--ease);
}
.social-link .icon { width: 18px; height: 18px; flex-shrink: 0; }
.social-link:hover {
  border-color: var(--gold-400);
  background: rgba(201,162,78,0.14);
  color: var(--gold-400);
  transform: translateY(-1px);
}

.footer-col h3 {
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: var(--space-4);
}
.footer-col ul { display: flex; flex-direction: column; gap: var(--space-3); }
.footer-col a { font-size: 0.92rem; transition: color 160ms var(--ease); }
.footer-col a:hover { color: var(--gold-400); }

.footer-contact li { display: flex; align-items: center; gap: 0.6em; font-size: 0.92rem; }
.footer-contact .icon { color: var(--gold-500); flex-shrink: 0; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-2);
  padding-block: var(--space-5);
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
}
.footer-tagline { font-family: var(--font-display); color: var(--gold-300); }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
