/* Baldy's Fresh and Frozen Seafood - site stylesheet */

:root {
  --teal: #2cccc4;
  --teal-dark: #0a4743;
  --teal-mid: #066f68;
  --cyan: #01d2c9;
  --blue: #478ac9;
  --white: #ffffff;
  --text: #1a1a1a;
  --text-soft: #3a3a3a;
  --max-width: 1100px;
}

* { box-sizing: border-box; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Open Sans", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: Roboto, -apple-system, "Segoe UI", Arial, sans-serif;
  line-height: 1.25;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); color: var(--blue); }
h2 { font-size: clamp(1.35rem, 3vw, 1.8rem); color: var(--blue); }
h3 { font-size: 1.2rem; color: var(--teal-dark); }

p { margin: 0 0 1em; }

a { color: var(--teal-mid); text-decoration: underline; }
a:hover, a:focus { color: var(--blue); }

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

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Header ---------- */

.site-header {
  background: var(--teal-dark);
  color: var(--white);
}

.header-bar {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.9rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  color: var(--white);
  font-family: Roboto, Arial, sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  letter-spacing: 0.01em;
}
.brand:hover, .brand:focus { color: var(--teal); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 4px;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: var(--white);
}

.site-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
}

.site-nav a {
  display: block;
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.6rem 0.85rem;
  border-radius: 4px;
}
.site-nav a:hover,
.site-nav a:focus {
  background: rgba(255,255,255,0.15);
  color: var(--white);
}
.site-nav a[aria-current="page"] {
  background: var(--teal);
  color: var(--teal-dark);
}

.weather-widget {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem 1rem;
  display: flex;
  justify-content: center;
}
.weather-widget iframe {
  border: 0;
  border-radius: 6px;
  background: var(--white);
}

/* ---------- Sections ---------- */

.section {
  padding: 2.75rem 1.25rem;
}
.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}
.section--white { background: var(--white); color: var(--text); }
.section--teal { background: var(--teal); color: var(--teal-dark); }
.section--teal h1, .section--teal h2 { color: var(--teal-dark); }
.section--dark { background: var(--teal-dark); color: var(--white); }
.section--dark h1, .section--dark h2 { color: var(--white); }
.section--cyan { background: var(--cyan); color: #06302c; }
.section--cyan h2 { color: #06302c; }

.section--center { text-align: center; }
.section--center .section-inner { display: flex; flex-direction: column; align-items: center; }

.lede {
  font-size: 1.1rem;
  max-width: 60em;
}

/* ---------- Hero ---------- */

.hero-figure {
  margin: 0;
  text-align: center;
}
.hero-figure img {
  border-radius: 6px;
  margin: 0 auto;
}
.hero-figure figcaption {
  margin-top: 0.75rem;
  font-weight: 700;
  color: var(--teal-dark);
}

/* ---------- Two-up / photo grid layouts ---------- */

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

.photo-stack {
  display: grid;
  gap: 1rem;
}
.photo-stack figure { margin: 0; }
.photo-stack img { border-radius: 6px; width: 100%; }

.contact-rows {
  display: grid;
  gap: 2rem;
}
.contact-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: center;
}
.contact-row img { border-radius: 6px; width: 100%; }
.contact-row h3 { text-align: center; }

/* ---------- Gallery (Enquiries page) ---------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  width: 100%;
}
.gallery-item {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 0;
}
.gallery-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  margin: 0;
  padding: 0.6rem 0.75rem;
  background: linear-gradient(0deg, rgba(0,0,0,0.65), rgba(0,0,0,0));
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 700;
}

/* ---------- Weather image strip ---------- */

.weather-photo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
}
.weather-photo-grid img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 6px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  background: var(--teal-mid);
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  padding: 0.7rem 1.4rem;
  border-radius: 4px;
  margin: 0.35rem 0;
}
.btn:hover, .btn:focus { background: var(--teal-dark); color: var(--white); }

/* ---------- Map embed ---------- */

.map-embed {
  position: relative;
  width: 100%;
  padding-bottom: 45%;
  border-radius: 6px;
  overflow: hidden;
  background: #eee;
}
.map-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--teal-dark);
  color: var(--white);
  text-align: center;
  padding: 1.75rem 1.25rem;
}
.site-footer p { margin: 0 0 0.4em; font-size: 0.9rem; }
.site-footer p:last-child { margin-bottom: 0; }

/* ---------- Responsive ---------- */

@media (max-width: 760px) {
  .grid-2,
  .contact-row {
    grid-template-columns: 1fr;
  }
  .weather-photo-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .nav-toggle { display: flex; }
  .site-nav {
    display: none;
    width: 100%;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul {
    flex-direction: column;
    gap: 0;
    padding-bottom: 0.5rem;
  }
  .site-nav a { padding: 0.75rem 0.25rem; }
  .header-bar { flex-wrap: wrap; }
}

@media (max-width: 480px) {
  .weather-photo-grid { grid-template-columns: repeat(2, 1fr); }
  .weather-widget iframe { width: 100%; max-width: 310px; }
}
