/* ===========================
   SIERRA NETS — STATIC SITE
   =========================== */

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

:root {
  --navy:    #1a2e3b;
  --teal:    #2e7d8c;
  --teal-lt: #3a9eb0;
  --sand:    #f5f0e8;
  --white:   #ffffff;
  --text:    #2c2c2c;
  --text-lt: #555555;
  --border:  #d0c8b8;
  --font-head: 'Playfair Display', Georgia, serif;
  --font-body: 'Lato', 'Helvetica Neue', Arial, sans-serif;
  --transition: 0.25s ease;
  --nav-h: 64px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  font-size: 16px;
}

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

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

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

/* --- Header / Nav --- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition);
}
.site-header.scrolled {
  background: rgba(15, 30, 40, 0.92);
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end; /* nav right-aligned, no logo shown */
}

/* Logo hidden — original site has no visible logo in header */
.site-logo { display: none; }

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 0;
}
.main-nav a {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--white);
  text-decoration: none;
  padding: 8px 18px;
  border: 1px solid transparent;
  transition: border-color var(--transition), background var(--transition);
}
.main-nav a:hover,
.main-nav a.active {
  border-color: var(--white);
  text-decoration: none;
  color: var(--white);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: url('images/hero-bg.jpg') center center / cover no-repeat;
  background-color: var(--navy); /* fallback */
  color: var(--white);
  overflow: hidden;
}

.hero-overlay {
  display: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 640px;
  padding: 0 24px;
}

.hero-title {
  font-family: var(--font-head);
  font-size: clamp(3.08rem, 7.7vw, 5.5rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #1a237e;
  text-shadow: 0 1px 6px rgba(255,255,255,0.3);
  margin-bottom: 0;
}

.hero-subtitle {
  font-size: clamp(1.2rem, 3vw, 1.5rem);  /* 1.0–1.25rem × 1.20 */
  font-weight: 400;
  color: var(--white);
  text-shadow: 0 1px 6px rgba(0,0,0,0.5);
  margin-top: 2.5rem;
  margin-bottom: 2.5rem;
}

.hero-scroll {
  display: inline-block;
  background: #4caf50; /* green button matching original */
  color: var(--white);
  font-size: 1.14rem;  /* 0.95rem × 1.20 */
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 4px;
  text-decoration: none;
  transition: background var(--transition), transform var(--transition);
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
.hero-scroll:hover {
  background: #43a047;
  transform: translateY(-1px);
  text-decoration: none;
  color: var(--white);
}

/* --- Sections --- */

/* All sections: sand background, white box around content */
.section,
.section--alt,
.section--contact {
  padding: 60px 0;
  background: var(--sand);
  color: var(--text);
}

/* White content box — sand shows equally above and below */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 48px 56px 48px;
  background: var(--white);
}

/* Section headings — all centered */
.section-heading {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 400;
  color: var(--navy);
  margin-bottom: 1.6rem;
  text-align: center;
}

/* Our Nets heading: centered */
.section-heading--rule {
  text-align: center;
  margin-bottom: 2rem;
}
.section-heading--rule::after {
  display: none;
}

/* Body text */
.section-body p {
  margin-bottom: 1.3rem;
  font-size: 1rem;
  color: var(--text-lt);
  line-height: 1.75;
}
.section-body p:last-child { margin-bottom: 0; }

.signature {
  font-style: italic;
  font-weight: 700;
  color: var(--navy) !important;
}
.signature--name {
  font-family: 'Caveat', cursive;
  font-size: 1.5rem !important;
  font-weight: 600;
  font-style: normal;
}

/* Sand gap between white content box and full-width photo */
.section-gap {
  height: 60px;
}

/* Section photo — full-width image band between sections */
.section-photo {
  width: 100%;
  position: relative;
  overflow: hidden;
  max-height: 480px;
}
.section-photo img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  object-position: center;
  display: block;
}
.section-photo figcaption {
  position: absolute;
  bottom: 8px;
  left: 12px;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.85);
  text-shadow: 0 1px 4px rgba(0,0,0,0.7);
}

/* --- Specs Grid (Our Nets) --- */
/* Heading and cards are inside the white container */
.section--alt .container {
  background: var(--white);
  padding: 48px 56px;
}

.specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.spec-card {
  background: var(--white);
  border: 1.5px solid var(--navy);  /* navy outline to set off from white bg */
  border-radius: 4px;
  padding: 24px 22px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.spec-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
  transform: translateY(-2px);
}
.spec-card h3 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--teal);
  margin-bottom: 0.7rem;
}
.spec-card p {
  font-size: 0.92rem;
  color: var(--text-lt);
  line-height: 1.65;
}

/* --- Contact Grid --- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px 40px;
}
.contact-item h3 {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--teal);
  margin-bottom: 0.5rem;
}
.contact-item p {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-lt);
}
.contact-item a {
  color: var(--teal);
  text-decoration: none;
}
.contact-item a:hover {
  color: var(--teal-lt);
  text-decoration: underline;
}

/* --- Footer --- */
.site-footer {
  background: var(--sand);
  border-top: 1px solid var(--border);
  color: var(--text-lt);
  text-align: center;
  font-size: 0.8rem;
  padding: 20px 24px;
}

/* ===========================
   RESPONSIVE
   =========================== */

/* --- Tablet (≤ 900px) --- */
@media (max-width: 900px) {
  .specs-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .container,
  .section--alt .container {
    padding: 40px 36px;
  }
}

/* --- Mobile (≤ 650px) --- */
@media (max-width: 650px) {
  /* Nav */
  .nav-toggle { display: flex; }

  .main-nav {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--navy);
    padding: 16px 24px 24px;
    border-top: 1px solid rgba(255,255,255,0.1);
  }
  .main-nav.open { display: block; }
  .main-nav ul {
    flex-direction: column;
    gap: 0;
  }
  .main-nav a {
    display: block;
    padding: 12px 0;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }

  /* Sections */
  .section,
  .section--alt,
  .section--contact { padding: 32px 0; }

  .container,
  .section--alt .container { padding: 28px 20px; }

  .section-gap { height: 32px; }

  /* Photos */
  .section-photo img { height: 200px; }
  .section-photo { max-height: 200px; }

  /* Grids — single column */
  .specs-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

/* --- Landscape mobile (short screens) --- */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    min-height: 100svh;
    align-items: flex-start;
    padding-top: calc(var(--nav-h) + 24px);
  }
  .hero-content { padding-bottom: 24px; }
}
