/* ── Coastal Arrivals — public site (nav, footer, marketing pages) ──
   Loaded after shared.css on customer-facing pages only.
   Admin / worker / tracker pages do not use this file. */

:root {
  --brand-navy: #0B3A52;
  --brand-gold: #D9A43C;
  --nav-h: 76px;
}

/* ── NAV ── */
.site-nav { position:absolute; top:0; left:0; right:0; z-index:300; height:var(--nav-h); }
.site-nav::before { content:""; position:absolute; inset:0; background:linear-gradient(180deg,rgba(255,255,255,0.78) 0%,rgba(255,255,255,0.35) 70%,rgba(255,255,255,0) 100%); pointer-events:none; }
.site-nav.solid { position:relative; background:rgba(255,255,255,0.96); box-shadow:0 1px 0 rgba(11,58,82,0.08); backdrop-filter:blur(6px); }
.site-nav.solid::before { display:none; }
.nav-inner { position:relative; max-width:1200px; height:100%; margin:0 auto; padding:0 28px; display:flex; align-items:center; justify-content:space-between; gap:16px; }
.nav-brand { display:flex; align-items:center; gap:12px; text-decoration:none; color:var(--brand-navy); }
.nav-brand img { width:46px; height:46px; border-radius:50%; border:2px solid white; box-shadow:0 2px 10px rgba(11,58,82,0.18); }
.nav-brand span { font-family:var(--font-display); font-size:21px; font-weight:500; letter-spacing:0.3px; }
.nav-links { display:flex; align-items:center; gap:34px; list-style:none; }
.nav-links > li { position:relative; }
.nav-link { font-family:var(--font-display); font-size:14px; letter-spacing:3px; text-transform:uppercase; color:var(--brand-navy); text-decoration:none; background:none; border:none; cursor:pointer; padding:10px 0; display:inline-flex; align-items:center; gap:6px; }
.nav-link:hover, .nav-link[aria-current="page"] { color:var(--ocean-deep); }
.nav-link[aria-current="page"] { box-shadow:inset 0 -1.5px 0 var(--brand-gold); }
.nav-caret { width:10px; height:10px; transition:transform 0.2s; }
.nav-dropdown[aria-expanded="true"] .nav-caret { transform:rotate(180deg); }

.nav-menu { position:absolute; top:calc(100% + 6px); right:-12px; min-width:290px; background:white; border-radius:var(--radius-md); box-shadow:0 14px 40px rgba(11,58,82,0.18); padding:8px; list-style:none; opacity:0; visibility:hidden; transform:translateY(-6px); transition:opacity 0.15s, transform 0.15s, visibility 0.15s; }
.nav-menu.open { opacity:1; visibility:visible; transform:translateY(0); }
.nav-menu a { display:block; padding:12px 14px; border-radius:var(--radius-sm); text-decoration:none; color:var(--brand-navy); }
.nav-menu a:hover { background:rgba(91,184,212,0.1); }
.nav-menu .menu-eyebrow { display:block; font-size:10px; letter-spacing:2px; text-transform:uppercase; color:var(--brand-gold); font-weight:500; margin-bottom:2px; }
.nav-menu .menu-title { font-family:var(--font-display); font-size:16px; }

.nav-toggle { display:none; background:none; border:none; cursor:pointer; padding:10px; margin-right:-10px; color:var(--brand-navy); }
.nav-toggle svg { width:26px; height:26px; display:block; }

@media (max-width: 820px) {
  .nav-inner { padding:0 16px; }
  .nav-brand span { font-size:18px; }
  .nav-brand img { width:40px; height:40px; }
  .nav-toggle { display:block; }
  .nav-links { position:absolute; top:var(--nav-h); left:12px; right:12px; flex-direction:column; align-items:stretch; gap:0; background:white; border-radius:var(--radius-md); box-shadow:0 14px 40px rgba(11,58,82,0.2); padding:8px; display:none; }
  .nav-links.open { display:flex; }
  .nav-link { padding:14px 12px; width:100%; justify-content:space-between; }
  .nav-dropdown .nav-caret { display:none; }
  .nav-menu { position:static; opacity:1; visibility:visible; transform:none; box-shadow:none; min-width:0; padding:0 0 6px 8px; }
}

/* Phones: the nav sits above the photo instead of over it, so it never covers the logo */
@media (max-width: 820px) {
  .site-nav:not(.solid) { position:relative; background:white; }
  .site-nav::before { display:none; }
}

/* ── PAGE BUILDING BLOCKS ── */
.page-hero { position:relative; min-height:520px; height:78vh; max-height:720px; background:#CFE6EE center/cover no-repeat; }
/* Splash backdrop has the logo baked into the centre of the photo: anchor to the top
   so wide screens crop the beach, never the logo; on phones size by width so the logo fits */
.page-hero.splash { background-position:center top; }
@media (max-width: 820px) { .page-hero.splash { height:72vw; min-height:0; } }
.page-hero.short { height:auto; min-height:0; padding:calc(var(--nav-h) + 72px) 24px 72px; text-align:center; }
.page-hero.short::after { content:""; position:absolute; inset:0; background:linear-gradient(180deg,rgba(255,255,255,0.55),rgba(245,237,214,0.85)); }
.page-hero.short > * { position:relative; z-index:1; }
/* Text-only header: no photo behind the heading */
.page-hero.short.plain { background:linear-gradient(180deg,#E3F1F6 0%,var(--sand) 100%); padding-bottom:56px; }
.page-hero.short.plain::after { display:none; }
@media (max-width: 820px) { .page-hero.short { padding:56px 20px 44px; } }

.wrap { max-width:1100px; margin:0 auto; padding:0 28px; }
.narrow { max-width:760px; margin:0 auto; padding:0 28px; }
.section { padding:80px 0; }
.section.tight { padding:56px 0; }
.section.white { background:white; }

.eyebrow { font-size:12px; letter-spacing:3px; text-transform:uppercase; color:var(--brand-gold); font-weight:500; margin-bottom:12px; }
.display { font-family:var(--font-display); font-weight:400; color:var(--brand-navy); line-height:1.15; font-size:clamp(30px,4.6vw,48px); }
.display-sm { font-family:var(--font-display); font-weight:400; color:var(--brand-navy); line-height:1.2; font-size:clamp(24px,3.4vw,34px); }
.lead { font-size:clamp(17px,1.9vw,20px); line-height:1.7; color:var(--text-mid); font-weight:300; }
.prose p { font-size:17px; line-height:1.8; color:var(--text-mid); margin-bottom:20px; font-weight:300; }
.prose p:last-child { margin-bottom:0; }

/* Service cards (splash) */
.service-grid { display:grid; grid-template-columns:1fr 1fr; gap:28px; }
.service-card { background:white; border-radius:var(--radius-lg); overflow:hidden; box-shadow:0 10px 36px rgba(11,58,82,0.08); display:flex; flex-direction:column; }
.service-card .photo { aspect-ratio:16/10; background:#D8E9EF center/cover no-repeat; }
.service-card .body { padding:28px 28px 32px; display:flex; flex-direction:column; flex:1; }
.service-card h3 { font-family:var(--font-display); font-weight:400; font-size:26px; color:var(--brand-navy); margin-bottom:12px; }
.service-card p { font-size:15.5px; line-height:1.75; color:var(--text-mid); font-weight:300; margin-bottom:24px; flex:1; }
.service-card .btn-primary { align-self:flex-start; text-decoration:none; }
@media (max-width: 760px) { .service-grid { grid-template-columns:1fr; } }

.btn-link-navy { display:inline-block; background:var(--brand-navy); color:white; text-decoration:none; padding:14px 30px; border-radius:var(--radius-pill); font-weight:500; font-size:15px; transition:opacity 0.15s; }
.btn-link-navy:hover { opacity:0.88; }

/* Photo grid (about) */
.photo-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
.photo-grid .ph { aspect-ratio:4/5; border-radius:var(--radius-md); background:#D8E9EF center/cover no-repeat; }
@media (max-width: 760px) { .photo-grid { grid-template-columns:1fr 1fr; } }

/* Services list (home watch) */
.services-block { margin-top:64px; }
.service-list { display:grid; grid-template-columns:1fr 1fr; gap:18px; max-width:980px; margin:0 auto; }
.service-item { display:flex; gap:18px; align-items:flex-start; background:white; border-radius:var(--radius-lg); padding:24px; box-shadow:0 8px 28px rgba(11,58,82,0.07); border-top:4px solid var(--coral); }
.service-icon { flex-shrink:0; width:48px; height:48px; border-radius:50%; background:var(--coral-light); color:var(--coral); display:flex; align-items:center; justify-content:center; }
.service-icon svg { width:24px; height:24px; }
.service-item h3 { font-family:var(--font-display); font-weight:400; font-size:20px; color:var(--brand-navy); margin-bottom:6px; line-height:1.25; }
.service-item p { font-size:15px; line-height:1.65; color:var(--text-mid); font-weight:300; }
@media (max-width: 760px) { .service-list { grid-template-columns:1fr; } .services-block { margin-top:48px; } .service-item { padding:20px; } }

/* Contact card (home watch) */
.contact-card { background:white; border-radius:var(--radius-lg); padding:36px; box-shadow:0 10px 36px rgba(11,58,82,0.08); text-align:center; }
.contact-card .name { font-family:var(--font-display); font-size:24px; color:var(--brand-navy); }
.contact-card .role { font-size:13px; color:var(--text-light); letter-spacing:1px; text-transform:uppercase; margin:4px 0 22px; }
.contact-actions { display:flex; gap:12px; justify-content:center; flex-wrap:wrap; }
.contact-form { text-align:left; display:grid; gap:14px; margin-top:6px; }
.contact-form .form-row { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.contact-form .form-group { display:flex; flex-direction:column; gap:5px; }
.contact-form .optional { text-transform:none; letter-spacing:0; color:var(--text-light); font-weight:400; }
.contact-form .btn-primary { justify-self:start; padding:14px 34px; }
.contact-form[hidden], .contact-sent[hidden] { display:none; }
.contact-form .hp { position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden; }
.form-status { font-size:14px; min-height:0; }
.form-status.error { color:var(--coral-dark); background:var(--coral-light); border-radius:var(--radius-sm); padding:10px 14px; }
.contact-sent { padding:18px 0 6px; }
.contact-sent-title { font-family:var(--font-display); font-size:22px; color:var(--brand-navy); margin-bottom:6px; }
.contact-sent p { color:var(--text-mid); font-size:15px; }
.contact-direct { margin-top:22px; font-size:14px; color:var(--text-mid); }
.contact-direct a { color:var(--ocean-deep); white-space:nowrap; }
@media (max-width: 560px) { .contact-form .form-row { grid-template-columns:1fr; } .contact-form .btn-primary { justify-self:stretch; } .contact-card { padding:28px 20px; } }

/* ── FOOTER ── */
.site-footer { background:var(--brand-navy); color:rgba(255,255,255,0.6); padding:44px 28px; font-size:14px; }
.site-footer .foot-inner { max-width:1100px; margin:0 auto; display:flex; justify-content:space-between; align-items:center; gap:20px; flex-wrap:wrap; }
.site-footer strong { color:white; font-weight:500; font-family:var(--font-display); font-size:17px; }
.site-footer nav { display:flex; gap:22px; flex-wrap:wrap; }
.site-footer a { color:rgba(255,255,255,0.8); text-decoration:none; }
.site-footer a:hover { color:white; }
