/* Poppins is loaded via <link rel="preconnect"> + <link rel="stylesheet"> in each page's <head>. */

:root {
  /* Brand Colors */
  --c-teal: #32dbc4;
  --c-teal-dark: #20bca7;
  --c-teal-light: #e0fbf7;
  --c-navy: #0c3358;
  --c-navy-light: #16497a;
  --c-navy-dark: #061c33;
  --c-yellow: #f2d821;
  --c-yellow-hover: #e0c71a;

  /* Neutrals */
  --c-white: #ffffff;
  --c-gray-50: #f8fafc;
  --c-gray-100: #f1f5f9;
  --c-gray-200: #e2e8f0;
  --c-gray-300: #cbd5e1;
  --c-gray-500: #64748b;
  --c-gray-600: #475569;
  --c-gray-800: #1e293b;

  --font-main: "Poppins", sans-serif;

  /* Layout */
  --container-width: 1200px;
  --header-height: auto;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  
  /* Radii */
  --radius-md: 0.5rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
}

/* Base Resets */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
body {
  font-family: var(--font-main);
  color: var(--c-gray-800);
  background-color: var(--c-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
html { scroll-behavior: smooth; }

/* Required Poppins Utility Classes */
.poppins-thin { font-family: "Poppins", sans-serif; font-weight: 100; font-style: normal; }
.poppins-extralight { font-family: "Poppins", sans-serif; font-weight: 200; font-style: normal; }
.poppins-light { font-family: "Poppins", sans-serif; font-weight: 300; font-style: normal; }
.poppins-regular { font-family: "Poppins", sans-serif; font-weight: 400; font-style: normal; }
.poppins-medium { font-family: "Poppins", sans-serif; font-weight: 500; font-style: normal; }
.poppins-semibold { font-family: "Poppins", sans-serif; font-weight: 600; font-style: normal; }
.poppins-bold { font-family: "Poppins", sans-serif; font-weight: 700; font-style: normal; }
.poppins-extrabold { font-family: "Poppins", sans-serif; font-weight: 800; font-style: normal; }
.poppins-black { font-family: "Poppins", sans-serif; font-weight: 900; font-style: normal; }
.poppins-thin-italic { font-family: "Poppins", sans-serif; font-weight: 100; font-style: italic; }
.poppins-extralight-italic { font-family: "Poppins", sans-serif; font-weight: 200; font-style: italic; }
.poppins-light-italic { font-family: "Poppins", sans-serif; font-weight: 300; font-style: italic; }
.poppins-regular-italic { font-family: "Poppins", sans-serif; font-weight: 400; font-style: italic; }
.poppins-medium-italic { font-family: "Poppins", sans-serif; font-weight: 500; font-style: italic; }
.poppins-semibold-italic { font-family: "Poppins", sans-serif; font-weight: 600; font-style: italic; }
.poppins-bold-italic { font-family: "Poppins", sans-serif; font-weight: 700; font-style: italic; }
.poppins-extrabold-italic { font-family: "Poppins", sans-serif; font-weight: 800; font-style: italic; }
.poppins-black-italic { font-family: "Poppins", sans-serif; font-weight: 900; font-style: italic; }

/* Typography */
h1, h2, h3, h4, h5, h6 { color: var(--c-navy); line-height: 1.2; margin-bottom: 1rem; }
h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
p { margin-bottom: 1.5rem; }
p:last-child { margin-bottom: 0; }
a { color: var(--c-navy); text-decoration: none; transition: color 0.2s, background-color 0.2s; }
ul, ol { padding-left: 1.5rem; margin-bottom: 1.5rem; }
li { margin-bottom: 0.5rem; }
img, video { max-width: 100%; height: auto; display: block; }

/* Accessibility Focus */
:focus-visible { outline: 3px solid var(--c-teal); outline-offset: 2px; }
.skip-link { position: absolute; top: -100px; left: 0; background: var(--c-teal); color: var(--c-navy); padding: 1rem; z-index: 9999; }
.skip-link:focus { top: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border-width: 0; }

/* Layout & Sections */
.container { width: 100%; max-width: var(--container-width); margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }
.section-lg { padding: 8rem 0; }
.section-bg { background-color: var(--c-gray-50); }
.section-navy { background-color: var(--c-navy); color: var(--c-white); }
.section-navy h1, .section-navy h2, .section-navy h3 { color: var(--c-white); }
.section-header { text-align: center; max-width: 800px; margin: 0 auto 3rem; }
.text-center { text-align: center; }

/* Header */
.site-header { position: fixed; top: 0; width: 100%; z-index: 1000; background: var(--c-white); box-shadow: var(--shadow-sm); transition: transform 0.3s ease; }
.top-bar { background-color: var(--c-navy); color: var(--c-white); padding: 0.5rem 0; font-size: 0.875rem; }
.top-bar .container { display: flex; justify-content: space-between; align-items: center; }
.top-bar .tagline { opacity: 0.9; margin: 0; }
.contact-links { display: flex; gap: 1.5rem; }
.contact-links a { color: var(--c-white); display: flex; align-items: center; gap: 0.5rem; }
.contact-links a:hover { color: var(--c-teal); }

.main-header { padding: 1rem 0; }
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.logo-link { display: flex; align-items: center; gap: 1rem; }
.logo-img { width: 72px; height: 72px; object-fit: cover; border-radius: 50%; }
.logo-text { font-size: 1.25rem; line-height: 1.1; color: var(--c-navy); }
.logo-sub { font-size: 0.875rem; color: var(--c-teal-dark); }

.primary-nav { display: flex; align-items: center; gap: 2rem; }
.primary-nav ul { display: flex; gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
.nav-link { font-weight: 500; font-size: 1rem; color: var(--c-gray-600); position: relative; padding: 0.5rem 0; }
.nav-link:hover, .nav-link.active { color: var(--c-navy); }
.nav-link::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background: var(--c-teal); transition: width 0.3s ease; }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.mobile-toggle { display: none; background: transparent; border: none; cursor: pointer; padding: 0.5rem; z-index: 1001; }
.hamburger { display: block; width: 24px; height: 2px; background: var(--c-navy); position: relative; transition: background 0.2s; }
.hamburger::before, .hamburger::after { content: ''; position: absolute; left: 0; width: 100%; height: 2px; background: var(--c-navy); transition: top 0.2s, transform 0.2s; }
.hamburger::before { top: -6px; }
.hamburger::after { top: 6px; }

body.nav-open .mobile-toggle .hamburger { background: transparent; }
body.nav-open .mobile-toggle .hamburger::before { top: 0; transform: rotate(45deg); }
body.nav-open .mobile-toggle .hamburger::after { top: 0; transform: rotate(-45deg); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 0.75rem 1.5rem; border-radius: var(--radius-md); font-size: 1rem; cursor: pointer; transition: all 0.2s; border: 2px solid transparent; text-align: center; gap: 0.5rem; }
.btn-lg { padding: 1rem 2rem; font-size: 1.125rem; }
.btn-primary { background-color: var(--c-teal); color: var(--c-navy); }
.btn-primary:hover { background-color: var(--c-teal-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-secondary { background-color: var(--c-navy); color: var(--c-white); }
.btn-secondary:hover { background-color: var(--c-navy-light); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline { background-color: transparent; border-color: var(--c-white); color: var(--c-white); }
.btn-outline:hover { background-color: var(--c-white); color: var(--c-navy); }
.btn-outline-navy { background-color: transparent; border-color: var(--c-navy); color: var(--c-navy); }
.btn-outline-navy:hover { background-color: var(--c-navy); color: var(--c-white); }

/* Hero Section */
.hero { position: relative; min-height: clamp(34rem, 80vh, 48rem); display: flex; align-items: center; justify-content: center; padding: 10rem 0 5rem; overflow: hidden; background-color: var(--c-navy); }
.hero-video { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.hero-overlay { position: absolute; inset: 0; z-index: 2; background:
    linear-gradient(180deg, rgba(6, 28, 51, 0.72) 0%, rgba(6, 28, 51, 0.34) 38%, rgba(6, 28, 51, 0.82) 100%),
    linear-gradient(90deg, rgba(12, 51, 88, 0.70) 0%, rgba(12, 51, 88, 0.30) 60%, rgba(12, 51, 88, 0.55) 100%); }
.hero-content { position: relative; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 3rem; color: var(--c-white); text-align: left; }
.hero-text { max-width: 700px; }
.hero-content h1 { color: var(--c-white); text-shadow: 0 2px 18px rgba(6, 28, 51, 0.65), 0 1px 3px rgba(6, 28, 51, 0.5); margin-bottom: 1.5rem; }
.hero-sub { font-size: clamp(1.125rem, 2vw, 1.5rem); max-width: 600px; color: rgba(255,255,255,0.95); text-shadow: 0 2px 12px rgba(6, 28, 51, 0.6); margin-bottom: 2.5rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-logo { flex-shrink: 0; width: clamp(192px, 24vw, 336px); height: clamp(192px, 24vw, 336px); border-radius: 50%; object-fit: cover; filter: drop-shadow(0 12px 30px rgba(6, 28, 51, 0.55)); }

.hero-short { min-height: clamp(15rem, 38vh, 22rem); background: var(--c-navy); text-align: center; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 11rem 0 4.5rem; color: var(--c-white); }
.hero-short h1 { color: var(--c-white); margin-bottom: 1rem; }
.hero-short p { font-size: 1.25rem; opacity: 0.9; max-width: 600px; margin: 0 auto; }

/* Features & Services Grids */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; }

.card { background: var(--c-white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform 0.3s, box-shadow 0.3s; height: 100%; display: flex; flex-direction: column; border: 1px solid var(--c-gray-100); }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-xl); }
.card-img { width: 100%; height: 240px; object-fit: cover; }
.card-content { padding: 2rem; flex: 1; display: flex; flex-direction: column; }
.card-title { font-size: 1.25rem; margin-bottom: 1rem; }
.card-desc { color: var(--c-gray-600); flex: 1; margin-bottom: 1.5rem; }
.card-link { color: var(--c-teal-dark); font-weight: 600; display: inline-flex; align-items: center; gap: 0.5rem; }
.card-link:hover { color: var(--c-navy); gap: 0.75rem; }

/* Feature Items */
.feature-item { text-align: center; padding: 2rem; }
.feature-icon { width: 64px; height: 64px; background: var(--c-teal-light); color: var(--c-teal-dark); border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 1.5rem; }
.feature-icon svg { width: 32px; height: 32px; }

/* Review Cards */
.review-card { background: var(--c-white); padding: 2rem; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.stars { color: var(--c-yellow); margin-bottom: 1rem; display: flex; gap: 0.25rem; }
.review-text { font-style: italic; color: var(--c-gray-600); margin-bottom: 1.5rem; }
.review-author { font-weight: 600; color: var(--c-navy); }

/* Service Areas Grid */
.city-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.city-card { padding: 1.5rem; background: var(--c-white); border-radius: var(--radius-md); border-left: 4px solid var(--c-teal); box-shadow: var(--shadow-sm); }
.city-card h3 { margin-bottom: 0.5rem; font-size: 1.125rem; }
.city-card p { font-size: 0.875rem; color: var(--c-gray-600); margin: 0; }

/* Checklist */
.checklist { list-style: none; padding: 0; }
.checklist li { display: flex; gap: 1rem; margin-bottom: 1rem; align-items: flex-start; }
.checklist li::before { content: '✓'; display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; background: var(--c-teal); color: var(--c-navy); font-weight: bold; border-radius: 50%; flex-shrink: 0; }

/* Form */
.form-card { background: var(--c-white); padding: 3rem; border-radius: var(--radius-lg); box-shadow: var(--shadow-xl); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.form-group { margin-bottom: 1.5rem; display: flex; flex-direction: column; }
.form-group.full { grid-column: 1 / -1; }
.form-label { font-weight: 500; margin-bottom: 0.5rem; color: var(--c-navy); }
.form-control { width: 100%; padding: 0.75rem 1rem; border: 1px solid var(--c-gray-300); border-radius: var(--radius-md); font-family: inherit; font-size: 1rem; transition: border-color 0.2s, box-shadow 0.2s; background: var(--c-gray-50); }
.form-control:focus { outline: none; border-color: var(--c-teal); box-shadow: 0 0 0 3px var(--c-teal-light); background: var(--c-white); }
textarea.form-control { resize: vertical; min-height: 120px; }
.form-hint { font-size: 0.875rem; color: var(--c-gray-500); margin-top: 0.25rem; }
.invalid-feedback { display: none; color: #dc2626; font-size: 0.875rem; margin-top: 0.25rem; }
.was-validated .form-control:invalid { border-color: #dc2626; }
.was-validated .form-control:invalid ~ .invalid-feedback { display: block; }

/* FAQ Accordion */
.accordion { display: flex; flex-direction: column; gap: 1rem; max-width: 800px; margin: 0 auto; }
.accordion-item { border: 1px solid var(--c-gray-200); border-radius: var(--radius-md); overflow: hidden; background: var(--c-white); }
.accordion-btn { width: 100%; text-align: left; padding: 1.5rem; background: transparent; border: none; cursor: pointer; font-size: 1.125rem; font-weight: 600; color: var(--c-navy); display: flex; justify-content: space-between; align-items: center; }
.accordion-icon { width: 20px; height: 20px; transition: transform 0.3s; }
.accordion-item.active .accordion-icon { transform: rotate(180deg); }
/* Default state is OPEN so the answers are readable without JavaScript.
   The collapse behaviour only applies once main.js has confirmed it is alive. */
.accordion-content { padding: 0 1.5rem 1.5rem; }
.accordion-icon { display: none; }
.js .accordion-icon { display: block; }
.js .accordion-content { padding: 0 1.5rem; max-height: 0; overflow: hidden; transition: max-height 0.3s ease-out, padding 0.3s ease; }
.js .accordion-item.active .accordion-content { padding-bottom: 1.5rem; max-height: 500px; }

/* Footer */
.site-footer { background-color: var(--c-navy-dark); color: var(--c-gray-300); padding: 5rem 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 3rem; margin-bottom: 3rem; }
.footer-logo { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.footer-logo-img { width: 108px; height: 108px; object-fit: cover; border-radius: 50%; }
.footer-logo .logo-text { color: var(--c-white); }
.footer-brand .tagline { color: var(--c-teal); margin-bottom: 1rem; font-size: 1.125rem; }
.footer-desc { margin-bottom: 1.5rem; }
.footer-contact a { display: block; margin-bottom: 0.5rem; color: var(--c-gray-300); }
.footer-contact a:hover { color: var(--c-teal); }
.footer-social { display: flex; gap: 1rem; margin-top: 0.5rem; }
.footer-social a { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.2); color: var(--c-gray-300); transition: all 0.2s; }
.footer-social a:hover { color: var(--c-navy); background-color: var(--c-teal); border-color: var(--c-teal); }
.footer-links h3, .footer-areas h3 { color: var(--c-white); margin-bottom: 1.5rem; font-size: 1.125rem; }
.footer-links ul { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.75rem; }
.footer-links a { color: var(--c-gray-300); }
.footer-links a:hover { color: var(--c-teal); }
.area-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; list-style: none; padding: 0; margin: 1rem 0; }
.area-list li { margin: 0; }
.view-all-areas { color: var(--c-teal); display: inline-block; margin-top: 0.5rem; }
.view-all-areas:hover { color: var(--c-white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 1.5rem 0; text-align: center; font-size: 0.875rem; }

/* Mobile Sticky CTA */
.mobile-sticky-cta { position: fixed; bottom: 0; left: 0; width: 100%; background: var(--c-white); display: flex; box-shadow: 0 -2px 10px rgba(0,0,0,0.1); z-index: 999; }
.mobile-sticky-cta a { flex: 1; padding: 1rem; text-align: center; border-radius: 0; display: flex; align-items: center; justify-content: center; gap: 0.5rem; }

/* Animations & Reveals */
.js .reveal-up { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.js .reveal-up.is-revealed { opacity: 1; transform: translateY(0); }
.js .reveal-fade { opacity: 0; transition: opacity 1s ease-out; }
.js .reveal-fade.is-revealed { opacity: 1; }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* Responsive */
@media (max-width: 1024px) {
  .hero-content h1 { font-size: 3rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  .hide-mobile { display: none !important; }
  .hide-desktop { display: flex; }
  
  body { padding-bottom: 60px; /* space for sticky cta */ }
  .section { padding: 4rem 0; }
  .hero { padding: 9.5rem 0 3.5rem; text-align: center; }
  .hero-content { text-align: center; flex-direction: column-reverse; align-items: center; gap: 1.5rem; }
  .hero-text { max-width: 100%; }
  .hero-actions { justify-content: center; }
  .hero-logo { width: clamp(144px, 38vw, 216px); height: clamp(144px, 38vw, 216px); }
  
  .top-bar .tagline { display: none; }
  .logo-text { font-size: 1.125rem; }
  .logo-img { width: 60px; height: 60px; }
  
  /* Without JS the hamburger cannot open anything, so the nav stacks inline
     instead of sitting permanently off-canvas. */
  .nav-container { flex-wrap: wrap; row-gap: 0.5rem; }
  .mobile-toggle { display: none; }
  .js .mobile-toggle { display: block; }
  .primary-nav { width: 100%; flex-direction: column; align-items: flex-start; gap: 1rem; padding-top: 0.5rem; }
  .js .primary-nav { position: fixed; top: 0; right: -100%; width: 80%; max-width: 300px; height: 100vh; background: var(--c-white); flex-direction: column; align-items: flex-start; padding: 6rem 2rem 2rem; box-shadow: -5px 0 15px rgba(0,0,0,0.1); transition: right 0.3s ease; gap: 2rem; z-index: 1000; }
  body.nav-open .primary-nav { right: 0; }
  .primary-nav ul { flex-direction: column; width: 100%; gap: 1rem; }
  .nav-link { display: block; font-size: 1.125rem; padding: 0.75rem 0; }
  .nav-cta { width: 100%; margin-top: auto; }
  
  .form-grid { grid-template-columns: 1fr; }
  .form-card { padding: 1.5rem; }
  
  .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

@media (min-width: 769px) {
  .hide-desktop { display: none !important; }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .hero-video { display: none; }
  .hero { background: url('/assets/img/hero-poster.jpg') center/cover no-repeat; }
  * { animation: none !important; transition: none !important; }
  .reveal-up, .reveal-fade { opacity: 1 !important; transform: none !important; }
}

/* Contact form status banner */
.form-alert { display: none; border-radius: var(--radius-md); padding: 1rem 1.25rem; margin-bottom: 1.5rem; border: 1px solid #fca5a5; background: #fef2f2; color: #991b1b; }
.form-alert.is-visible { display: block; }
.form-alert a { color: #991b1b; text-decoration: underline; }

/* Embedded online booking */
.booking-section, #quote-form { scroll-margin-top: 9rem; }
.booking-section .section-header a, .booking-fallback a { color: var(--c-navy); text-decoration: underline; text-underline-offset: 3px; }
.booking-frame { display: block; width: 100%; height: max(900px, 100vh); border: 0; background: var(--c-white); }
.booking-fallback { text-align: center; font-size: 0.875rem; margin-top: 1rem; }
@media (max-width: 768px) {
  .booking-section, #quote-form { scroll-margin-top: 7rem; }
  .booking-frame { height: max(850px, 100dvh); }
}
