/* ═══════════════════════════════════════════════════════
   LIVE FREE REMODELING — Global Design System
   ═══════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600&family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
  /* Brand Colors */
  --blue-dark:   rgb(32, 69, 114);
  --blue-mid:    rgb(93, 144, 191);
  --blue-light:  rgb(137, 170, 198);
  --white:       rgb(255, 255, 255);

  /* Derived */
  --blue-deep:   rgb(18, 40, 68);
  --blue-900:    rgb(24, 52, 88);
  --blue-pale:   rgb(224, 234, 242);
  --blue-50:     rgb(240, 247, 253);
  --blue-muted:  rgba(93, 144, 191, 0.18);
  --blue-glass:  rgba(32, 69, 114, 0.06);

  /* Text */
  --text-dark:   rgb(14, 28, 46);
  --text-mid:    rgb(52, 82, 112);
  --text-light:  rgb(100, 130, 158);
  --text-muted:  rgb(148, 170, 190);

  /* UI */
  --border:      rgb(208, 223, 236);
  --border-mid:  rgb(180, 205, 225);
  --shadow-sm:   0 1px 4px rgba(32,69,114,0.08);
  --shadow-md:   0 4px 20px rgba(32,69,114,0.12);
  --shadow-lg:   0 12px 48px rgba(32,69,114,0.16);
  --shadow-xl:   0 24px 80px rgba(32,69,114,0.22);

  /* Spacing */
  --nav-h: 72px;
  --nav-logo-h: 70px;
  --footer-logo-h: 150px;

  /* Transitions */
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Outfit', sans-serif;
  background: var(--white);
  color: var(--text-dark);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; }

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', serif;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

/* ── NAV ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: var(--nav-h);
  display: flex; align-items: center;
  padding: 0 3rem;
  background: rgb(18, 40, 68);
  transition: background 0.35s ease, box-shadow 0.35s ease, height 0.3s ease;
}
.nav.solid {
  background: rgb(18, 40, 68);
  box-shadow: 0 1px 0 rgba(255,255,255,0.07);
}
.nav.scrolled {
  height: 60px;
  background: rgb(14, 32, 58);
  box-shadow: 0 4px 24px rgba(0,0,0,0.35);
}

.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; max-width: 1280px; margin: 0 auto;
}

.nav-logo {
  display: flex; align-items: center; gap: 0.75rem;
}
.nav-logo-img {
  height: var(--nav-logo-h); width: auto; display: block;
  transition: height 0.3s ease;
}
.nav.scrolled .nav-logo-img {
  height: 40px;
}

.nav-links {
  display: flex; align-items: center; gap: 0.25rem; list-style: none;
}
.nav-links a {
  padding: 0.45rem 0.85rem; border-radius: 6px;
  font-size: 0.875rem; font-weight: 500;
  color: rgba(255,255,255,0.72);
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--white); background: rgba(255,255,255,0.08); }
.nav-links a.active { color: var(--white); }

.nav-actions { display: flex; align-items: center; gap: 0.75rem; }
.nav-phone {
  font-size: 0.82rem; font-weight: 600;
  color: var(--blue-light);
  display: flex; align-items: center; gap: 0.4rem;
}
.nav-phone svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 2; }
.nav-phone:hover { color: var(--white); }

.nav-btn {
  background: var(--blue-mid); color: var(--white);
  padding: 0.55rem 1.25rem; border-radius: 6px;
  font-size: 0.82rem; font-weight: 700;
  transition: background 0.2s, transform 0.15s;
  border: none;
  display: inline-block;
}
.nav-btn:hover { background: var(--blue-dark); transform: translateY(-1px); }

/* Hamburger */
.nav-hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; padding: 4px; cursor: pointer;
}
.nav-hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--white); border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile drawer */
.mobile-drawer {
  display: none; position: fixed;
  top: var(--nav-h); left: 0; right: 0; bottom: 0;
  z-index: 199; background: var(--blue-deep);
  flex-direction: column; padding: 2rem;
  overflow-y: auto;
}
.mobile-drawer.open { display: flex; }
.mobile-drawer a {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem; font-weight: 600; color: var(--white);
  padding: 0.85rem 0; border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: color 0.2s;
}
.mobile-drawer a:hover { color: var(--blue-light); }
.mobile-drawer .drawer-cta {
  margin-top: 2rem;
  background: var(--blue-mid); color: var(--white);
  padding: 1rem 2rem; border-radius: 8px; text-align: center;
  font-family: 'Outfit', sans-serif; font-size: 1rem; font-weight: 700;
}

/* ── FOOTER ── */
.footer {
  background: var(--blue-deep);
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-top {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 3rem; padding: 5rem 3rem 4rem;
  max-width: 1280px; margin: 0 auto;
  align-items: start;
}
.footer-brand {}
.footer-logo-img {
  height: var(--footer-logo-h); width: auto; display: block;
  margin-top: -50px; margin-bottom: 0.75rem;
}
.footer-brand-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem; font-weight: 700;
  color: var(--white); margin-bottom: 0.75rem;
}
.footer-brand-desc {
  font-size: 0.875rem; color: rgba(255,255,255,0.45);
  line-height: 1.7; font-weight: 300; max-width: 280px;
  margin-bottom: 1.5rem;
}
.footer-contact-item {
  display: flex; align-items: center; gap: 0.6rem;
  font-size: 0.85rem; color: rgba(255,255,255,0.6);
  margin-bottom: 0.6rem;
}
.footer-contact-item svg { width: 14px; height: 14px; stroke: var(--blue-light); fill: none; stroke-width: 2; flex-shrink: 0; }
.footer-contact-item a { color: inherit; transition: color 0.2s; }
.footer-contact-item a:hover { color: var(--white); }

.footer-col h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--blue-light); margin-bottom: 1.25rem;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col ul a {
  font-size: 0.875rem; color: rgba(255,255,255,0.5);
  transition: color 0.2s;
}
.footer-col ul a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 1.5rem 3rem;
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1280px; margin: 0 auto;
  font-size: 0.78rem; color: rgba(255,255,255,0.28);
}
.footer-bottom a { color: inherit; transition: color 0.2s; }
.footer-bottom a:hover { color: rgba(255,255,255,0.55); }

/* ── SHARED COMPONENTS ── */
.section-eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--blue-mid); margin-bottom: 0.9rem;
}
.section-eyebrow::before {
  content: ''; display: block;
  width: 20px; height: 1.5px;
  background: var(--blue-mid);
}

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 700; color: var(--text-dark);
  line-height: 1.1; letter-spacing: -0.02em;
}
.section-title.light { color: var(--white); }

.section-body {
  font-size: 1.05rem; color: var(--text-mid);
  line-height: 1.75; font-weight: 300;
}

/* Button system */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.85rem 1.75rem; border-radius: 7px; border: none;
  font-family: 'Outfit', sans-serif;
  font-size: 0.88rem; font-weight: 700;
  cursor: pointer; transition: all 0.2s var(--ease);
  letter-spacing: 0.02em;
  text-decoration: none;
}
.btn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; flex-shrink: 0; }
.btn-blue { background: var(--blue-dark); color: var(--white); box-shadow: 0 4px 16px rgba(32,69,114,0.3); }
.btn-blue:hover { background: var(--blue-900); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(32,69,114,0.35); }
.btn-mid { background: var(--blue-mid); color: var(--white); box-shadow: 0 4px 16px rgba(93,144,191,0.35); }
.btn-mid:hover { background: var(--blue-dark); transform: translateY(-2px); }
.btn-white { background: var(--white); color: var(--blue-dark); }
.btn-white:hover { background: var(--blue-pale); transform: translateY(-2px); }
.btn-ghost-white { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,0.4); }
.btn-ghost-white:hover { border-color: var(--white); background: rgba(255,255,255,0.1); }
.btn-ghost-blue { background: transparent; color: var(--blue-dark); border: 1.5px solid var(--border); }
.btn-ghost-blue:hover { border-color: var(--blue-mid); background: var(--blue-glass); }
.btn-lg { padding: 1.05rem 2.25rem; font-size: 0.95rem; }
.btn-sm { padding: 0.55rem 1.1rem; font-size: 0.8rem; }

/* Badge */
.badge {
  display: inline-block; padding: 0.3rem 0.75rem;
  border-radius: 99px; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.05em; text-transform: uppercase;
}
.badge-blue { background: var(--blue-muted); color: var(--blue-dark); }
.badge-light { background: rgba(255,255,255,0.12); color: var(--white); }

/* Cards */
.card {
  background: var(--white); border-radius: 12px;
  border: 1px solid var(--border);
  overflow: hidden;
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }

/* Form elements */
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field label {
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-light);
}
.field input, .field select, .field textarea {
  border: 1.5px solid var(--border); border-radius: 7px;
  padding: 0.8rem 1rem; font-family: 'Outfit', sans-serif;
  font-size: 0.9rem; color: var(--text-dark); outline: none; /* outline replaced by box-shadow on :focus below */
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-muted); }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--blue-mid);
  box-shadow: 0 0 0 3px rgba(93,144,191,0.15);
}
.field select { appearance: none; cursor: pointer; }
.field textarea { resize: vertical; min-height: 110px; }

/* Animations */
.fade-up {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.75s var(--ease-out), transform 0.75s var(--ease-out);
}
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up.delay-1 { transition-delay: 0.1s; }
.fade-up.delay-2 { transition-delay: 0.2s; }
.fade-up.delay-3 { transition-delay: 0.3s; }
.fade-up.delay-4 { transition-delay: 0.4s; }

/* Page wrapper */
.page-wrap { padding-top: var(--nav-h); min-height: 100vh; }

/* Inner page hero */
.page-hero {
  background: var(--blue-dark);
  padding: 5rem 3rem 4.5rem;
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 80% at 80% 50%, rgba(93,144,191,0.18) 0%, transparent 65%);
}
.page-hero-inner { max-width: 1280px; margin: 0 auto; position: relative; z-index: 1; }
.page-hero h1 { font-family: 'Cormorant Garamond', serif; font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 700; color: var(--white); margin-bottom: 1rem; }
.page-hero p { font-size: 1.05rem; color: rgba(255,255,255,0.62); max-width: 560px; line-height: 1.7; font-weight: 300; }

/* Divider */
.divider { width: 40px; height: 3px; background: var(--blue-mid); border-radius: 2px; margin-bottom: 1.5rem; }

/* ── LEAFLET MAP OVERRIDES ── */
.leaflet-popup-content-wrapper {
  background: var(--blue-deep);
  color: var(--white);
  border-radius: 8px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 0;
}
.leaflet-popup-content { margin: 0.5rem 0.9rem; }
.leaflet-popup-tip-container .leaflet-popup-tip { background: var(--blue-deep); }
.leaflet-popup-close-button { color: rgba(255,255,255,0.45) !important; top: 3px !important; right: 6px !important; }
.leaflet-popup-close-button:hover { color: var(--white) !important; }

/* Contact page map attribution (light tile) */
#contactMap .leaflet-control-attribution {
  background: rgba(255,255,255,0.75);
  font-size: 0.65rem;
  color: var(--text-muted);
  backdrop-filter: blur(4px);
  border-radius: 4px 0 0 0;
}
#contactMap .leaflet-control-attribution a { color: var(--text-light); }

/* Footer map attribution (dark tile) */
#footerMap .leaflet-control-attribution {
  background: rgba(14,28,52,0.65);
  font-size: 0.6rem;
  color: rgba(255,255,255,0.3);
  backdrop-filter: blur(4px);
}
#footerMap .leaflet-control-attribution a { color: rgba(255,255,255,0.3); }

/* Responsive */
@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
}
@media (max-width: 900px) {
  .nav { padding: 0 1.5rem; }
  .nav-links, .nav-phone, .nav-btn { display: none; }
  .nav-hamburger { display: flex; }
  .footer-top { grid-template-columns: 1fr 1fr; padding: 3rem 1.5rem; gap: 2rem; }
  .footer-bottom { padding: 1.25rem 1.5rem; flex-direction: column; gap: 0.5rem; text-align: center; }
  .page-hero { padding: 3.5rem 1.5rem 3rem; }
}
@media (max-width: 600px) {
  .footer-top { grid-template-columns: 1fr; }
}

/* ── ACCESSIBILITY ── */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
:focus-visible {
  outline: 3px solid var(--blue-mid);
  outline-offset: 2px;
}
