:root {
  --primary-dark: #2c2c2c;
  --paper-bg: #f4f1ea;
  --accent-blue: #3a5f78;
  --white: #ffffff;
  --text-grey: #4a4a4a;
  --hero-art-height: clamp(220px, 32vh, 420px);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px; /* prevents anchor jump from hiding titles */
}

body {
  font-family: "Open Sans", sans-serif;
  background-color: var(--paper-bg);
  color: var(--primary-dark);
  margin: 0;
  line-height: 1.6;
}

h1,
h2,
h3 {
  font-family: "Montserrat", sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0;
}

a {
  text-decoration: none;
  color: inherit;
}

.btn {
  display: inline-block;
  background-color: var(--accent-blue);
  color: var(--white);
  padding: 12px 24px;
  font-weight: 700;
  border-radius: 4px;
  border: none;
  cursor: pointer;
}

.btn:hover {
  background-color: #2a465a;
}

.btn-full {
  width: 100%;
}

.section {
  padding: 60px 5%;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 40px;
}

/* Header */
header {
  background: rgba(244, 241, 234, 0.92); /* soft translucent paper */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  padding: 14px 5%;

  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;

  position: sticky;
  top: 0;
  z-index: 1000;

  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

header > * {
  max-width: 1200px;
}

.logo {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.5px;
  display: flex;
  gap: 10px;
  align-items: center;
  white-space: nowrap;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 18px;
  padding: 0;
  margin: 0;
  align-items: center;
}

nav a {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--primary-dark);
  padding: 10px 10px;
  border-radius: 999px;
  transition: background 160ms ease, transform 160ms ease;
}

nav a:hover {
  background: rgba(58, 95, 120, 0.1);
  transform: translateY(-1px);
}

/* Make the CTA look like a real header button */
nav a.btn {
  padding: 10px 16px;
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(58, 95, 120, 0.25);
}

nav a.btn:hover {
  background-color: #2a465a;
}


/* Hero */
.hero {
  position: relative;
  min-height: 75vh;

  /* remove the old background-image on .hero */
  background-color: var(--paper-bg);

  padding: 60px 20px 0;
  overflow: hidden; /* keeps art layer tidy */
  display: block;   /* no longer need flex here */
}

/* Beach art layer (bottom only) */
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;

  height: var(--hero-art-height);

  background-image: url("assets/beach.svg");
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: 100% auto;

  pointer-events: none;
  z-index: 0;
}

/* Top headline MUST stay above the SVG area */
.hero-top {
  position: relative;
  z-index: 1;

  max-width: 900px;
  margin: 0 auto;
  text-align: center;

  /* this is the key: reserves space so text never drops into the art area */
  padding-bottom: calc(var(--hero-art-height) + 24px);
}

/* Bottom trust indicators MUST live in the bottom quarter */
.hero-bottom {
  position: absolute;
  left: 0;
  right: 0;

  /* lock it into the bottom 25% band */
  top: 75%;
  bottom: 24px;

  z-index: 1;

  display: flex;
  justify-content: center;
  align-items: flex-end; /* sit on the bottom of that band */
  gap: 40px;

  white-space: nowrap; /* desktop: single line */
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;

  color: var(--white);
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* keep each badge unbroken */
.hero-bottom span {
  flex: 0 0 auto;
  white-space: nowrap;
  font-size: 2rem;
  text-shadow: 2px 4px 4px rgba(46, 91, 173, 0.6);
}


/* hide scrollbar (nice-to-have) */
.hero-bottom::-webkit-scrollbar {
  display: none;
}
.hero-bottom {
  scrollbar-width: none;
}

.hero-bottom span {
  flex: 0 0 auto;
  font-size: 2rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 1);
}
@media (max-width: 720px) {
  :root {
    /* a bit taller art on mobile so it still looks good */
    --hero-art-height: clamp(240px, 40vh, 520px);
  }

  .hero {
    min-height: auto;
    padding: 44px 16px 0;
  }

  /* allow exactly “wrap behavior” (it may become 2 lines) */
  .hero-bottom {
    flex-wrap: wrap;          /* allow one wrap */
    justify-content: center;
    gap: clamp(10px, 3vw, 22px);
    row-gap: 10px;

    /* make it hard to ever need 3 lines */
    font-size: clamp(0.85rem, 2.6vw, 1rem);
    letter-spacing: clamp(0.02em, 0.25vw, 0.08em);

    overflow-x: visible;      /* no horizontal scroll once wrapping is allowed */
    white-space: normal;      /* wrapping between items */
    padding: 0 10px;
  }

  .hero-bottom span {
    font-size: inherit;
  }
}


/* Trust Bar */
.trust-bar {
  background: var(--primary-dark);
  color: var(--white);
  display: flex;
  justify-content: center;
  gap: 40px;
  padding: 35px 20px;
  flex-wrap: wrap;
}

.trust-item {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.service-card {
  background: var(--white);
  padding: 30px;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
}

.service-card h3 {
  color: var(--accent-blue);
  margin-bottom: 15px;
}

.service-card ul {
  list-style: none;
  padding: 0;
}

.service-card li {
  border-left: 3px solid var(--accent-blue);
  padding-left: 10px;
  margin-bottom: 8px;
}

/* Work Section (text-based) */
.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.work-card {
  background: #f0f0f0;
  padding: 30px;
  border-radius: 6px;
  font-weight: 600;
  color: #555;
}

/* About helper */
.about-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

/* Contact */
.contact-section {
  background: #e8e6df;
}

.contact-container {
  max-width: 600px;
  margin: 0 auto;
  background: var(--white);
  padding: 30px;
  border-radius: 8px;
}

.emergency-box {
  background: #f9f9f9;
  padding: 15px;
  border-radius: 6px;
  margin-bottom: 20px;
}

form label {
  display: block;
  font-weight: 600;
  margin-bottom: 5px;
}

form input,
form select,
form textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border-radius: 4px;
  border: 1px solid #ccc;
  box-sizing: border-box;
}

/* Footer */
footer {
  background: var(--primary-dark);
  color: #888;
  text-align: center;
  padding: 40px 20px;
  font-size: 0.9rem;
}

footer strong {
  color: var(--white);
}

/* =========================
   Mobile tweaks (desktop unchanged)
   ========================= */
@media (max-width: 720px) {
  body {
    overflow-x: hidden;
  }

  header {
    padding: 12px 5%;
    flex-wrap: wrap;
  }

  .logo {
    font-size: 1rem;
  }

  /* NAV — never wraps (scrolls instead) */
  nav ul {
    width: 100%;
    flex-wrap: nowrap; /* key */
    justify-content: flex-end; /* or center */
    gap: 10px;

    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  nav ul::-webkit-scrollbar {
    display: none;
  }
  nav li {
    flex: 0 0 auto;
  }

  nav a {
    padding: 10px 14px;
    font-size: 0.9rem;
  }

  /* Keep CTA inline (do NOT make it full-width) */
  nav a.btn {
    width: auto;
    text-align: center;
    padding: 10px 16px;
  }

  .hero {
    min-height: auto;
    padding: 44px 16px 24px;
    background-size: 140% auto;
  }

  .hero-top h1 {
    font-size: 1.85rem;
  }

  .hero-top h2 {
    font-size: 1.25rem;
  }

  /* HERO BOTTOM: one line + fluid sizing */
  .hero-bottom {
    gap: clamp(15px, 3vw, 26px);
    font-size: clamp(0.8rem, 2.3vw, 1rem);
    letter-spacing: clamp(0.02em, 0.25vw, 0.08em);
  }

  .hero-bottom span {
    font-size: inherit; /* remove the 2rem lock on mobile */
  }

  .section {
    padding: 44px 5%;
  }

  .section-title {
    font-size: 1.6rem;
    margin-bottom: 26px;
  }

  .service-card {
    padding: 22px;
  }

  .contact-container {
    padding: 22px;
  }

  form input,
  form select,
  form textarea {
    font-size: 16px; /* prevents iOS zoom on focus */
  }

  footer {
    padding: 30px 16px;
  }
}

/* Extra-small phones */
@media (max-width: 380px) {
  .hero-top h1 {
    font-size: 1.65rem;
  }
}
