/* ------------------------------------------------------------------
   Fortescue Lake Cottagers’ Association – Global Stylesheet
------------------------------------------------------------------ */

/* 1. Web Font */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;700&display=swap');

/* 2. CSS Reset & Base */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: 'Nunito', sans-serif;
  line-height: 1.7;
  color: #333;
  background-color: #f4f7f6;
}

/* 3. Layout Helpers */
.container {
  width: 90%;
  max-width: 960px;      /* pick 960px or 760px, not both */
  margin: 0 auto;
  padding: 1.25rem 1rem;
}
section {
  margin-bottom: 2.25rem;
}
h1, h2, h3 {
  margin: 1.5rem 0 1.5rem 0;
  line-height: 1.3;
}
p {
  margin: 0 0 1.5rem;
  line-height: 1.6;
  font-size: 1.1rem;
}
ul {
  margin: 0 0 1.25rem 1.25rem;
  padding: 0;
  line-height: 1.6;
  font-size: 1.1rem;
}
li {
  margin-bottom: .9rem;
  line-height: 1.6;
  font-size: 1.0rem;
}
/* divider between sections */
main section:not(:first-of-type)::before {
  content: '';
  display: block;
  height: 1px;
  background: #e6e6e6;
  margin: 2.25rem 0;
}

/* 4. Header */
header {
  position: relative;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-shadow: #333;
  background:
    linear-gradient(
      to bottom,
      rgba(16, 185, 232, 0.1),
      rgba(30, 41, 41, 0)
    ),
    url('../assets/images/loons-1-thom-crop-top.jpg') center/cover no-repeat;
}

nav.slim-bar {
  background-color: #145494;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center; /* center links vertically */
  gap: 4em;            /* space between links */
  padding: 0.4em 0;
}

nav.slim-bar a {
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
  padding: 0.25em 0.5em; /* space inside buttons */
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

nav.slim-bar a:hover,
nav.slim-bar a.active {
  background-color: #1e40af;
}


header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.01);
}

header .container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

h1 {
  font-size: 2.5rem;
  font-weight: 700;
}
h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}


nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}
nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  padding: .25rem .5rem;
}
nav a:hover,
nav a.active {
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

/* 5. Content Cards */
.card {
  background-color: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* Hero lead paragraph */
#welcome .lead {
  font-size: 1.15rem;
}
/* Lake overview list */
#lake-overview ul {
  list-style: disc;
}

/* 6. FAQ */
.faq-list dt {
  font-weight: 700;
  margin-top: 1.25rem;
}
.faq-list dd {
  margin: 0 0 1rem 1.5rem;
  line-height: 1.6;
}

/* 7. Footer */
footer {
  background-color: #145494;
  color: #fff;
  text-align: center;
  padding: 1rem 0;
}
footer p {
  margin: 0;
  font-size: .95rem;
}

/* Welcome section tweaks */
#welcome {
  margin-top: 1.5rem;
}
#welcome h2 {
  font-size: 2rem;
}

/* 8. Buttons */
.btn {
  display: inline-block;      /* valid: inline-block */
  padding: .6rem 1.2rem;
  background: rgb(68, 77, 163);
  color: #fff;
  border-radius: .3rem;
  font-weight: 600;
  text-decoration: none;
}
.btn:hover,
.btn:focus {
  background: #097b34;
}

/* Centered contact buttons */
.contact__buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 2rem 0;
}

/* 9. Hero Grid Layout */
.hero-grid {
  grid-template-columns: 3fr 2fr; /* more space for text */
  gap: 2.5rem;
  display: grid;
  grid-template-rows: auto 1fr;
  grid-template-areas:
    "heading heading"
    "text image";
  align-items: start;
}


.hero-grid h2 {
  grid-area: heading;
  margin: 0;
}
.hero-text h2 {
  margin-bottom: 1.5rem;  /* adjust this value as needed */
}

.hero-text {
  grid-area: text;
}

.hero-image-single {
  display: block;
  width: 100%;              /* full width of container */
  margin: 1rem 0;           /* vertical spacing */
  text-align: left;       /* center figcaption text */
}

.hero-image-single img {
  display: block;
  width: 100%;              /* make image responsive */
  height: auto;             /* maintain aspect ratio */
  border-radius: 8px;       /* optional: soften corners */
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1); /* subtle depth */
}

.hero-image-single figcaption {
  margin-top: .5rem;
  font-style: italic;
  font-size: .9rem;
  color: #555;
  text-align: left;
}

.hero-image {
  grid-area: image;
  max-width: 90%;        /* or whatever size you prefer */
  margin: 1rem 0;         /* only top/bottom spacing */
  justify-self: center;      /* push to the right edge */
  overflow: hidden;
  box-shadow: none;
  float: right
}

.hero-image img {
  display: block;
  width: 100%;              /* fill the figure’s width */
  height: auto;
  object-fit: cover;
  
}

/* always show & italicize caption */
.hero-image figcaption {
  display: block;           /* override visually-hidden if still applied */
  font-style: italic;       /* make it italic */
  font-size: .9rem;
  color: #555;
  text-align: left;
  margin-top: .5rem;
}

/* 11. Mobile Responsiveness */
@media (max-width: 700px) {

  nav.slim-bar {
    gap: 1em;
}
  /* Remove grid on small screens for natural flow */
  .hero-grid {
    display: block;           /* ditch grid entirely */
  }

  .hero-text {
    margin-bottom: 1rem;      /* spacing between text and image */
  }

  .hero-image {
    display: block;           /* ensure it's in the flow */
    clear: both;              /* no weird floating overlap */
    margin: 1rem auto;        /* center images */
    max-width: 100%;          /* don't overflow screen */
  }

  .hero-image img {
    display: block;
    max-width: 100%;          /* responsive images */
    height: auto;
    border-radius: 8px;       /* optional: soften edges */
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1); /* subtle depth */
  }

  main {
    overflow: auto;           /* contain any floats */
  }

  footer {
    clear: both;              /* force footer below content */
  }
}

@media (max-width: 700px) {
  /* Collapse side-by-side layout */
  .side-by-side {
    flex-direction: column; /* stack image and text vertically */
  }

  .side-by-side .inline-image {
    margin: 1rem 0;        /* add spacing above and below image */
    max-width: 80%;        /* scale image for small screens */
  }

  .side-by-side .text {
    width: 100%;           /* make text take full width */
  }
}


/* For small inline images like posters */
.inline-image {
  float: right;             /* push image to the right */
  max-width: 250px;         /* keep image small */
  margin: 0 0 1rem 1rem;    /* spacing from text */
  border-radius: 4px;       /* optional */
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.inline-image img {
  width: 100%;
  height: auto;
}
.inline-image figcaption {
  font-style: italic;
  font-size: 0.85rem;
  color: #666;
  text-align: center;
}

.side-by-side {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.side-by-side .inline-image {
  flex: 0 0 300px; /* fixed poster width */
  margin: 10 rem 10 rem 0; /* right margin for spacing */
}

.side-by-side .text {
  flex: 1; /* let text fill remaining space */
}

.video-wrapper {
  position: relative;
  padding-top: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
}

.video-wrapper iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: 0;
}
