:root {
  --green: #0d4d3a;
  --green-dark: #083426;
  --gold: #d1a546;
  --gold-dark: #b48c3c;
  --offwhite: #f7f5f2;
  --white: #ffffff;
  --text-dark: #111111;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--offwhite);
  color: var(--text-dark);
}

a {
  color: inherit;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

/* Top CTA bar */

.top-cta-bar {
  background: var(--white);
}

.top-cta-inner {
  padding-top: 0.4rem;
  padding-bottom: 0.4rem;
}

.header-cta {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  justify-content: flex-end;
  white-space: nowrap;
}

.header-cta .phone {
  color: var(--green-dark);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}

.btn-cta {
  background: var(--gold);
  color: var(--green-dark);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  border: none;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-block;
}

.btn-cta:hover {
  background: var(--gold-dark);
}

/* Main header row */

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.65rem 0;
}

.logo {
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-dark);
  text-decoration: none;
  font-size: 0.95rem;
}

/* Main nav structure (desktop default) */

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex: 1;
}

.nav-item {
  position: relative;
}

/* Use <details> for dropdowns */
.nav-details {
  position: relative;
}

.nav-details > summary {
  list-style: none;
}

.nav-details > summary::-webkit-details-marker {
  display: none;
}

.nav-link {
  cursor: pointer;
  text-decoration: none;
  color: var(--green);
  font-weight: 500;
  font-size: 0.92rem;
}

.nav-link:hover {
  text-decoration: underline;
}

/* Hero */

.hero {
  padding: 3rem 0 2.5rem;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero h1 {
  font-size: 2.15rem;
  margin: 0 0 1rem;
  color: var(--green-dark);
}

.hero p {
  max-width: 650px;
  line-height: 1.6;
  margin: 0;
}

/* Hero button */

.btn-hero {
  display: inline-block;
  margin-top: 1.2rem;
  background: var(--green-dark);
  color: #fff;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border-radius: 0.4rem;
  text-decoration: none;
  transition: 0.15s ease;
}

.btn-hero:hover {
  background: var(--green);
  color: #fff;
}

/* Contact */

.contact {
  padding: 2.5rem 0 3rem;
}

.contact h1 {
  color: var(--green-dark);
}

.contact-form {
  max-width: 600px;
  margin-top: 1.5rem;
}

.field-group {
  margin-bottom: 1rem;
}

.field-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.field-group input,
.field-group textarea {
  width: 100%;
  padding: 0.55rem;
  border-radius: 4px;
  border: 1px solid rgba(0, 0, 0, 0.2);
  font-size: 0.95rem;
}

/* Footer */

.site-footer {
  padding: 1.75rem 0 2.25rem;
  font-size: 0.9rem;
  color: #555;
}

/* Generic page layout */

.page {
  padding: 2.5rem 0 3rem;
}

.page-header {
  margin-bottom: 1.5rem;
}

.page-header h1 {
  margin: 0 0 0.5rem;
  color: var(--green-dark);
}

.page-header p {
  margin: 0;
  max-width: 700px;
  line-height: 1.6;
}

.page-content {
  max-width: 800px;
  line-height: 1.7;
}

/* Simple two-column layout (for future use) */

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.2fr);
  gap: 2rem;
}

@media (max-width: 800px) {
  .two-column {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Areas we serve */

.service-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0 0;
}

.service-chip {
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  font-size: 0.82rem;
  background: #fff;
}

/* === NAV DROPDOWN (DESKTOP) === */

.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: #ffffff;
  border-radius: 0.5rem;
  padding: 0.4rem 0;
  min-width: 220px;
  display: none;

  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
  z-index: 999;
}

/* Show dropdown on hover or when <details> is open */
.nav-details[open] > .nav-dropdown,
.nav-details:hover > .nav-dropdown {
  display: block;
}

.nav-dropdown-link {
  display: block;
  padding: 0.45rem 0.9rem;
  text-decoration: none;
  color: #222;
  font-size: 0.9rem;
  white-space: nowrap;
}

.nav-dropdown-link:hover {
  background: rgba(0, 0, 0, 0.04);
}

/* === HAMBURGER (MOBILE TOGGLE) === */

/* Hide the actual checkbox; we only use it for :checked state */
.nav-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.hamburger {
  display: none; /* shown only on small screens via media query */
  width: 38px;
  height: 30px;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  margin-left: auto;

  padding: 0.4rem;
  border-radius: 0.6rem;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: var(--white);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.hamburger span {
  display: block;
  width: 100%;
  height: 3px;
  border-radius: 2px;
  background: var(--green-dark);
}

.hamburger:hover {
  background: #f3f1ec;
}

/* === MOBILE LAYOUT & NAV BEHAVIOR === */

@media (max-width: 800px) {
  /* Give header a bit more horizontal padding */
  .site-header .container {
    padding: 0 1.25rem;
  }

  /* Top CTA bar layout on mobile */
  .top-cta-inner {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }

  .header-cta {
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
  }

  .header-inner {
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
  }

  .hamburger {
    display: flex;
  }

  /* Stack nav, hidden by default */
  .main-nav {
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    margin-top: 0.75rem;
    margin-bottom: 0.5rem;
  }

  /* When nav is toggled on */
  #nav-toggle:checked ~ .main-nav {
    display: flex;
  }

  /* Top-level nav items as full-width bars */
  .nav-details {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  }

  .nav-link {
    display: block;
    padding: 0.9rem 1rem;
    background: var(--gold);
    color: #ffffff;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
  }

  .nav-details[open] > .nav-link {
    background: #ffffff;
    color: var(--green-dark);
  }

  /* Dropdowns on mobile: stacked directly under their parent */
  .nav-dropdown {
    position: static;
    box-shadow: none;
    padding: 0;
    background: #ffffff;
    border-radius: 0;
  }

  .nav-details:not([open]) > .nav-dropdown {
    display: none;
  }

  .nav-details[open] > .nav-dropdown {
    display: block;
  }

  .nav-dropdown-link {
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    font-size: 0.9rem;
    color: var(--green-dark);
    white-space: normal;
  }

  .nav-dropdown-link:last-child {
    border-bottom: none;
  }

  /* Hero tweaks on mobile */
  .hero {
    padding-top: 2rem;
  }

  .hero h1 {
    font-size: 1.8rem;
  }
}
