/* ============================================================
   HARBOR ESCROW — Main Stylesheet
   Colors: Navy #1a2e4a | Teal #2a9d8f | White #ffffff | Gray #f4f6f8
   ============================================================ */

/* ── Reset & Base ──────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --navy:        #1a2e4a;
  --navy-dark:   #0f1e32;
  --navy-mid:    #243a5e;
  --teal:        #2a9d8f;
  --teal-dark:   #207a6e;
  --teal-light:  #3dbfb0;
  --white:       #ffffff;
  --gray-50:     #f4f6f8;
  --gray-100:    #e8ecf0;
  --gray-300:    #b0bbc8;
  --gray-500:    #6b7a8d;
  --gray-700:    #3d4f63;
  --text-main:   #1a2e4a;
  --text-muted:  #5a6a7a;

  --font-body:   'Inter', system-ui, sans-serif;
  --font-serif:  'Playfair Display', Georgia, serif;

  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   20px;

  --shadow-sm:   0 2px 8px rgba(26,46,74,0.08);
  --shadow-md:   0 6px 24px rgba(26,46,74,0.12);
  --shadow-lg:   0 16px 48px rgba(26,46,74,0.16);

  --max-width:   1160px;
  --nav-height:  74px;
  --transition:  0.25s ease;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-main);
  background: var(--white);
}

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

a { color: var(--teal); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--teal-dark); }

address { font-style: normal; }

.container {
  width: min(var(--max-width), 100% - 2.5rem);
  margin-inline: auto;
}

/* ── Section Utilities ─────────────────────────────────────── */
section {
  padding-block: 100px;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.6rem;
}

.section-header {
  text-align: center;
  max-width: 580px;
  margin-inline: auto;
  margin-bottom: 60px;
}

.section-header h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  color: var(--navy);
  margin-bottom: 0.75rem;
  line-height: 1.25;
}

.section-sub {
  color: var(--text-muted);
  font-size: 1.05rem;
}

h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--navy);
  line-height: 1.25;
  margin-bottom: 1rem;
}

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: background var(--transition), color var(--transition),
              box-shadow var(--transition), transform var(--transition);
  text-decoration: none;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
}
.btn-primary:hover {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(42,157,143,0.35);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.65);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--white);
  color: var(--white);
  transform: translateY(-1px);
}

/* ══════════════════════════════════════════════════════════════
   NAVIGATION
══════════════════════════════════════════════════════════════ */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  height: var(--nav-height);
  background: rgba(15, 30, 50, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: box-shadow var(--transition);
}

#site-header.scrolled {
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
  width: min(var(--max-width), 100% - 2.5rem);
  margin-inline: auto;
}

.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

/* ── Logo lockup (SVG icon + wordmark) ─────────────────────── */
.logo-lockup {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.logo-wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  gap: 1px;
}

.logo-harbor {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.02em;
}

.logo-escrow {
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal-light);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.nav-links a {
  color: rgba(255,255,255,0.82);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}

.nav-links a:hover {
  color: var(--white);
  background: rgba(255,255,255,0.08);
}

.nav-phone {
  background: var(--teal) !important;
  color: var(--white) !important;
  padding: 0.45rem 1.1rem !important;
  border-radius: var(--radius-sm) !important;
  font-weight: 600 !important;
  margin-left: 0.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.nav-phone:hover {
  background: var(--teal-dark) !important;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* ══════════════════════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════════════════ */
#hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-block: 0;
  overflow: hidden;
  background:
    linear-gradient(145deg, var(--navy-dark) 0%, var(--navy-mid) 45%, #1e4a5e 100%);
}

/* Subtle geometric pattern overlay */
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(42,157,143,0.18) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(42,157,143,0.10) 0%, transparent 45%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Ccircle cx='40' cy='40' r='1' fill='rgba(255,255,255,0.03)'/%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(15,30,50,0.1) 0%, rgba(15,30,50,0.45) 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  max-width: 760px;
  padding-inline: 1.5rem;
  padding-top: calc(var(--nav-height) + 20px);
}

.hero-eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal-light);
  margin-bottom: 1rem;
}

.hero-content h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.78);
  max-width: 560px;
  margin-inline: auto;
  margin-bottom: 2.25rem;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Scroll hint */
.hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.hero-scroll-hint span {
  display: block;
  width: 22px;
  height: 36px;
  border: 2px solid rgba(255,255,255,0.35);
  border-radius: 12px;
  position: relative;
}

.hero-scroll-hint span::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: rgba(255,255,255,0.6);
  border-radius: 2px;
  animation: scroll-hint 1.8s ease-in-out infinite;
}

@keyframes scroll-hint {
  0%, 100% { opacity: 1; transform: translateX(-50%) translateY(0); }
  50%       { opacity: 0.3; transform: translateX(-50%) translateY(10px); }
}

/* ══════════════════════════════════════════════════════════════
   TRUST BAR
══════════════════════════════════════════════════════════════ */
.trust-bar {
  padding-block: 0;
  background: var(--navy);
}

.trust-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
  padding-block: 22px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: rgba(255,255,255,0.82);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.4rem 2rem;
}

.trust-item i {
  color: var(--teal-light);
  font-size: 1rem;
}

.trust-divider {
  width: 1px;
  height: 28px;
  background: rgba(255,255,255,0.15);
}

/* ══════════════════════════════════════════════════════════════
   ABOUT
══════════════════════════════════════════════════════════════ */
#about {
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: center;
}

.about-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 380px;
}

.about-accent-box {
  position: absolute;
  inset: 0;
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-100);
}

.about-badge {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.about-badge i {
  font-size: 5rem;
  color: var(--teal);
  line-height: 1;
  filter: drop-shadow(0 8px 20px rgba(42,157,143,0.25));
}

.about-badge span {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--navy);
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

/* ══════════════════════════════════════════════════════════════
   SERVICES
══════════════════════════════════════════════════════════════ */
.services-section {
  background: var(--gray-50);
}

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

.service-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.service-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: rgba(42,157,143,0.25);
}

.service-card.featured {
  border-top: 3px solid var(--teal);
  background: linear-gradient(160deg, var(--white) 0%, rgba(42,157,143,0.03) 100%);
}

.service-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.service-icon-wrap i {
  font-size: 1.3rem;
  color: var(--white);
}

.service-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.3;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  flex: 1;
}

/* ══════════════════════════════════════════════════════════════
   CONTACT
══════════════════════════════════════════════════════════════ */
#contact {
  background: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 70px;
  align-items: start;
}

.contact-intro {
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

.contact-details {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

.contact-details li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon i {
  font-size: 1rem;
  color: var(--teal-light);
}

.contact-details strong {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 0.2rem;
}

.contact-details address,
.contact-details a {
  font-size: 0.98rem;
  color: var(--text-main);
  font-weight: 500;
  line-height: 1.5;
}

.contact-details a:hover {
  color: var(--teal);
}

.contact-map {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-100);
  min-height: 360px;
}

.contact-map iframe {
  display: block;
  min-height: 360px;
}

/* ══════════════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════════════ */
#site-footer {
  background: var(--navy-dark);
  padding-block: 52px;
  text-align: center;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.footer-logo-wrap .logo-harbor {
  font-size: 1.3rem;
}

.footer-logo-wrap .logo-icon {
  width: 36px;
  height: 36px;
}

.footer-logo-wrap .logo-escrow {
  font-size: 0.68rem;
}

.footer-tagline {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal-light);
}

.footer-copy {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.42);
}

.footer-copy a {
  color: rgba(255,255,255,0.55);
}
.footer-copy a:hover {
  color: var(--teal-light);
}

/* ══════════════════════════════════════════════════════════════
   ANIMATIONS & ACTIVE STATES
══════════════════════════════════════════════════════════════ */

/* Fade-in animation (driven by JS IntersectionObserver) */
.fade-in {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Active nav link */
.nav-links a.active {
  color: var(--white);
  background: rgba(255,255,255,0.1);
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE — Tablet
══════════════════════════════════════════════════════════════ */
@media (max-width: 960px) {
  section { padding-block: 72px; }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .about-visual { min-height: 260px; }
  .about-badge i { font-size: 3.5rem; }

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

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .trust-divider { display: none; }
  .trust-bar-inner { gap: 0.5rem; }
  .trust-item { padding: 0.35rem 1rem; }
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE — Mobile
══════════════════════════════════════════════════════════════ */
@media (max-width: 640px) {
  section { padding-block: 56px; }

  .nav-toggle { display: flex; }

  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--navy-dark);
    flex-direction: column;
    align-items: stretch;
    padding: 1.25rem 1.5rem 1.75rem;
    gap: 0.25rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    font-size: 1rem;
    padding: 0.7rem 1rem;
  }

  .nav-phone {
    margin-left: 0 !important;
    justify-content: center;
    margin-top: 0.5rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .hero-content h1 { font-size: 2.2rem; }

  .trust-bar-inner { flex-direction: column; gap: 0.75rem; }

  .contact-map { min-height: 280px; }
  .contact-map iframe { min-height: 280px; }
}
