/* --------------------------------
   RESET & BASE
----------------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Lora", serif;
  background-color: #f6eee4;
  color: #2a1f14;
  line-height: 1.6;
}

img,
video {
  max-width: 100%;
  display: block;
}

/* Skip link */
.skip {
  position: absolute;
  left: -999px;
}

.skip:focus {
  color: #fff;
  background-color: #2a1f14;
  text-decoration: none;
  padding: 0.5rem 1rem;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 1000;
}

/* Visually hidden (for accessibility) */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------
   LAYOUT WRAPPER
----------------------------------- */
#wrapper {
  max-width: 1100px;
  margin: 0 auto;
  background-color: #fff;
  min-height: 100vh;
}

/* --------------------------------
   HEADER & BRANDING
----------------------------------- */
header {
  background-color: #2a1f14;
  color: #f6eee4;
  text-align: center;
  padding-bottom: 0.5rem;
}

.brand-bar {
  background-color: #2a1f14;
  height: 180px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.site-logo {
  display: block;
  width: 100%;
  max-width: 400px;
  height: auto;
  margin: 0 auto;
}

.brand-overlay {
  background-color: rgba(42, 31, 20, 0.5);
  padding: 1.5rem;
}

header h1 {
  font-family: "Emblema One", system-ui;
  letter-spacing: 0.06em;
  margin-bottom: 0.3rem;
}

header h3 {
  font-size: 1rem;
}

/* --------------------------------
   NAVIGATION
----------------------------------- */
.nav-bar {
  background-color: #3b2b1c;
}

.nav-bar ul {
  list-style: none;
  text-align: center;
}

.nav-bar li {
  border-top: 1px solid #f6eee4;
}

.nav-bar a {
  display: block;
  padding: 0.6rem;
  color: #f6eee4;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.nav-bar a.active {
  background-color: #f6eee4;
  color: #2a1f14;
}

/* Hamburger row */
.nav-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.4rem 0.8rem;
}

.nav-toggle button {
  border: none;
  background: none;
  color: #f6eee4;
  font-size: 1.5rem;
  cursor: pointer;
}

/* --------------------------------
   MAIN CONTENT & TYPOGRAPHY
----------------------------------- */
main {
  padding: 1.5rem 1.25rem 3rem;
}

main h2 {
  font-size: 1.7rem;
  margin-bottom: 0.75rem;
}

main h3 {
  font-size: 1.2rem;
  margin: 1.5rem 0 0.5rem;
}

p {
  margin-bottom: 0.75rem;
}

ul,
ol {
  margin: 0.5rem 0 1rem 1.5rem;
}

dl {
  margin: 0.75rem 0 1.5rem;
}

dt {
  font-weight: 700;
}

dd {
  margin: 0 0 0.5rem 1rem;
}

/* Section intro / generic hero text */
.section-intro {
  margin-bottom: 1.5rem;
}

/* Page hero block (used on Resources, etc.) */
.page-hero {
  margin-bottom: 2rem;
}

.page-hero h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.page-hero p {
  font-size: 1.05rem;
  margin-bottom: 1.25rem;
  color: #4b392a;
}

/* Highlight box (used on Home, Resources) */
.highlight-box {
  border-left: 4px solid #78593a;
  padding: 0.75rem 1rem;
  background-color: #fdf7ee;
  margin-bottom: 1.25rem;
}

/* --------------------------------
   BLOG: POSTS & TAGLINE
----------------------------------- */
.post {
  background-color: #fff7ec;
  border: 1px solid #f0e4d8;
  border-radius: 10px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 6px rgba(42, 31, 20, 0.06);
}

.post h3 {
  margin-bottom: 0.4rem;
  font-size: 1.4rem;
}

.post-meta {
  font-size: 0.9rem;
  font-style: italic;
  color: #7a6453;
  margin-bottom: 1rem;
}

/* Tagline under "Blog" heading */
.page-tagline {
  font-style: italic;
  font-size: 1rem;
  margin-top: 0.25rem;
  margin-bottom: 1.75rem;
  opacity: 0.8;
}

/* Blog page palm-leaf background */
.blog-page main {
  background-image: url("../images/palm-leaves.png");
  background-repeat: no-repeat;
  background-position: bottom left;
  background-size: 900px auto;
  padding-bottom: 6rem;
}

/* --------------------------------
   RESOURCES PAGE
----------------------------------- */
.jump-links {
  margin-bottom: 1rem;
}

.jump-links a {
  margin-right: 0.75rem;
  font-size: 0.9rem;
}

.resource-nav {
  margin: 1rem 0 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.resource-nav a {
  background-color: #fdf7ee;
  padding: 0.4rem 0.75rem;
  border-radius: 20px;
  font-size: 0.9rem;
  color: #2a1f14;
  text-decoration: none;
  border: 1px solid #deccba;
}

.resource-nav a:hover {
  background-color: #f6eee4;
}

.resource-section {
  margin-bottom: 2rem;
}

.resource-section.card {
  background-color: #fff7ec;
  padding: 1.25rem 1.4rem;
  border-radius: 10px;
  border-left: 4px solid #78593a;
}

.note {
  background-color: #fdf3e3;
  border-left: 4px solid #c49a6c;
  padding: 0.75rem 1rem;
  margin: 1rem 0;
  border-radius: 6px;
  font-size: 0.95rem;
}

.link-list li {
  margin-bottom: 0.6rem;
}

.link-list a {
  color: #78593a;
  font-weight: 600;
  text-decoration: none;
}

.link-list a:hover {
  text-decoration: underline;
}

/* Resources page palm-leaf background */
.resources-page main {
  background-image: url("../images/palm-leaves.png");
  background-repeat: no-repeat;
  background-position: bottom left;
  background-size: 900px auto;
  padding-bottom: 6rem;
}

/* --------------------------------
   GALLERY PAGE
----------------------------------- */
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
}

/* Hover effect */
.gallery-item img {
  border-radius: 8px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gallery-item img:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 10px rgba(42, 31, 20, 0.12);
}

.gallery-item p,
.gallery-item figcaption {
  font-size: 0.95rem;
  margin-top: 0.4rem;
}

/* --------------------------------
   FAQ PAGE
----------------------------------- */
#questions p {
  cursor: pointer;
  padding: 0.5rem 0;
  border-bottom: 1px solid #deccba;
}

#questions p:hover {
  color: #78593a;
}

#answer {
  text-align: center;
  font-weight: bold;
  width: 85%;
  margin: 1.5rem auto 0;
}

#answer h2 {
  display: none;
  margin-bottom: 0.6rem;
}

/* --------------------------------
   CONTACT FORM
----------------------------------- */
form {
  margin-top: 1.25rem;
}

fieldset {
  border: 1px solid #deccba;
  padding: 1rem;
  margin-bottom: 1rem;
}

legend {
  font-weight: bold;
  padding: 0 0.5rem;
}

label {
  display: block;
  margin-top: 0.5rem;
}

input,
select,
textarea {
  width: 100%;
  padding: 0.5rem;
  margin-top: 0.25rem;
  border-radius: 4px;
  border: 1px solid #c9b39b;
  font-family: inherit;
}

input[type="checkbox"],
input[type="radio"] {
  width: auto;
  margin-right: 0.4rem;
}

/* Buttons */
.btn {
  margin: 0.5rem auto 0;
  display: block;
  padding: 0.7rem 1.8rem;
  background-color: #78593a;
  color: #f6eee4;
  font-size: 1rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
}

.btn:hover {
  opacity: 0.85;
}

/* --------------------------------
   FOOTER
----------------------------------- */
footer {
  background-color: #2a1f14;
  color: #f6eee4;
  font-size: 0.85rem;
  padding: 1rem 1.25rem;
}

footer a {
  color: #f3e6d8;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-top {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.social img {
  display: inline-block;
  padding: 4%;
}

/* Back to top link */
.back-to-top {
  text-align: right;
  margin-top: 1.5rem;
}

.back-to-top a {
  font-size: 0.85rem;
}

/* --------------------------------
   HOME PAGE: HERO SPLIT
----------------------------------- */
.home-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 2rem;
}

.hero-text {
  flex: 1;
}

.hero-text h1 {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.hero-intro {
  font-size: 1.05rem;
  color: #4b392a;
  max-width: 95%;
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.hero-image img {
  max-width: 100%;
  height: auto;
}

/* --------------------------------
   ABOUT PAGE ACCENT
----------------------------------- */
.about-accent {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.about-accent img {
  width: 260px;
  height: auto;
  opacity: 0.9;
}

/* Align Back to Top on About Page */
.about-page .back-to-top {
  margin-top: -40px;
  margin-bottom: 60px;
}

/* --------------------------------
   PROGRAMS PAGE LAYOUT
----------------------------------- */
.programs-layout {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
}

.programs-main {
  flex: 1.4;
}

.programs-image {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
}

.programs-image img {
  max-width: 100%;
  height: auto;
}

/* --------------------------------
   PAGE-SPECIFIC PALM LEAF BACKGROUNDS
----------------------------------- */

/* Blog + Resources already above.
   Add gallery, faqs, contact to match. */
.gallery-page main,
.faqs-page main,
.contact-page main {
  background-image: url("../images/palm-leaves.png");
  background-repeat: no-repeat;
  background-position: bottom left;
  background-size: 900px auto;
  padding-bottom: 6rem;
}

/* --------------------------------
   RESPONSIVE BREAKPOINTS
----------------------------------- */

/* Tablet and up */
@media (min-width: 700px) {
  .nav-toggle {
    justify-content: center;
  }

  .nav-toggle button {
    display: none;
  }

  .nav-bar ul {
    display: flex;
    justify-content: center;
  }

  .nav-bar li {
    border-top: none;
  }

  .nav-bar a {
    padding: 0.6rem 1.2rem;
    font-size: 1rem;
  }

  main {
    padding: 2rem 2rem 3rem;
  }

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

  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .footer-top {
    flex-direction: row;
    gap: 1.5rem;
  }

  .copyright {
    max-width: 65%;
  }

  .social {
    max-width: 25%;
    text-align: right;
  }
}

/* Stack home hero & programs on smaller screens */
@media (max-width: 800px) {
  .home-hero {
    flex-direction: column;
    text-align: left;
  }

  .hero-image {
    justify-content: center;
  }
}

/* Stack programs columns on small screens */
@media (max-width: 700px) {
  .programs-layout {
    flex-direction: column;
  }

  .programs-image {
    justify-content: flex-start;
  }
}

/* Desktop and up */
@media (min-width: 1000px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  #wrapper {
    margin: 2rem auto;
  }
}
