/* Feelgood Avenue — site styles (replaces the Duda-generated CSS) */

@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/poppins-400.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/poppins-600.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/poppins-700.woff2") format("woff2"); }

:root {
  --lime: #a4cc64;        /* header + bottom bar */
  --mint: #c2dd98;        /* light sections */
  --navy: #062234;        /* text, dropdown */
  --green: #759348;       /* rules, active buttons */
  --icon-green: #739047;  /* footer icons */
  --faq-title: #181848;
  --faq-plus: #57ff87;
  --line: #e3e3e3;
  --header-h: 58px;
  --gutter: 40px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 16px; color: var(--navy); background: #fff; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h); padding: 0 var(--gutter);
  background: var(--lime);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
}
.logo { display: block; width: 202px; justify-self: start; }
.logo img { width: 202px; height: 58px; object-fit: contain; }

.main-nav ul { list-style: none; margin: 0; padding: 0; }
.main-nav > ul { display: flex; align-items: center; }
.main-nav li { position: relative; }
.main-nav a, .main-nav .nav-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 0 15px; height: 31px;
  font: 400 14px/1 "Poppins", sans-serif; letter-spacing: 0.03em;
  color: var(--navy); text-decoration: none; background: none; border: 0; cursor: pointer;
  position: relative;
}
/* underline effect on hover / current page */
.main-nav > ul > li > a::after, .main-nav > ul > li > .nav-toggle::after {
  content: ""; position: absolute; left: 15px; right: 15px; bottom: 2px; height: 2px;
  background: var(--navy); transform: scaleX(0); transition: transform .2s ease;
}
.main-nav > ul > li > a:hover::after, .main-nav > ul > li > .nav-toggle:hover::after,
.main-nav > ul > li > [aria-current="page"]::after, .main-nav > ul > li.is-current > .nav-toggle::after { transform: scaleX(1); }
.main-nav [aria-current="page"], .main-nav li.is-current > .nav-toggle { font-weight: 700; }
.chevron { width: 10px; height: 10px; transition: transform .2s ease; }

.submenu {
  position: absolute; top: 100%; left: 0; min-width: 180px;
  background: var(--navy); padding: 0; margin-top: 5px;
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s, transform .15s, visibility .15s;
}
.submenu::before { content: ""; position: absolute; left: 0; right: 0; top: -5px; height: 5px; } /* hover bridge */
.has-submenu:hover > .submenu, .has-submenu:focus-within > .submenu, .has-submenu.open > .submenu { opacity: 1; visibility: visible; transform: none; }
.has-submenu:hover .chevron, .has-submenu.open .chevron { transform: rotate(180deg); }
.submenu a { display: flex; height: auto; padding: 15px 30px 15px 15px; color: #fff; white-space: nowrap; }
.submenu a:hover, .submenu a[aria-current="page"] { background: rgba(255,255,255,.08); }

.header-social { justify-self: end; display: flex; gap: 9px; margin-right: 42px; }
.header-social a { display: grid; place-items: center; width: 31px; height: 31px; color: #000; }
.header-social svg { width: 20px; height: 20px; }

.menu-button { display: none; }

/* ---------- Sections ---------- */
.hero {
  position: relative; isolation: isolate;
  height: 84.3vw; max-height: 1152px; min-height: 340px;
  background: #333 url("/assets/img/hero-1920.jpg") center / cover no-repeat;
}
.overlay::before { content: ""; position: absolute; inset: 0; background: #000; opacity: .3; z-index: -1; }

.garden {
  position: relative; isolation: isolate; text-align: center;
  padding: 100px var(--gutter) 260px;
  background: #3b4a2a url("/assets/img/garden-1024.jpg") center / cover no-repeat;
}
.timetable-img { margin: 0 auto; width: 630px; }

.mint { background: var(--mint); }
.section-title { font: 700 50px/1.4 "Poppins", sans-serif; color: var(--navy); margin: 0; }

/* Contact */
.contact { padding: 24.5px var(--gutter) 207px; text-align: center; }
.contact-form { width: 100%; max-width: 778px; margin: 53px auto 0; text-align: left; }
.field { margin-bottom: 23px; }
.field label { display: block; font-size: 16px; line-height: 24px; margin-bottom: 3px; color: var(--navy); }
.field input, .field textarea {
  display: block; width: 100%; padding: 0 10px; height: 30px;
  font: 400 16px "Poppins", sans-serif; color: #000;
  background: transparent; border: 0; border-bottom: 1px solid #000; border-radius: 0;
}
.field textarea { height: 50px; padding: 10px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--green); outline-offset: 2px; }
.send-wrap { text-align: center; margin-top: 23px; }
.send {
  width: 280px; height: 56px; border: 0; border-radius: 4px; background: #fff; cursor: pointer;
  font: 700 16px "Poppins", sans-serif; color: var(--navy);
}
.send:hover { background: #f7f7f7; }
.form-msg { margin: 16px 0 0; text-align: center; }
.form-msg[hidden] { display: none; }

/* FAQ */
.faq { padding: 47.5px var(--gutter); }
.faq-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 485fr 685fr; column-gap: 30px; }
.faq-rule { border: 0; border-top: 4px solid var(--green); margin: 10px 0 22px; }
.accordion { list-style: none; margin: 13px 0 0; padding: 0; }
.accordion li { margin-bottom: 10px; }
.accordion li:last-child { margin-bottom: 0; }
.accordion-title {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 10px 20px 20px; background: none; border: 0; border-bottom: 1px solid var(--line);
  font: 600 16px "Poppins", sans-serif; color: var(--faq-title); text-align: left; cursor: pointer;
}
.plus { position: relative; flex: 0 0 18px; height: 18px; }
.plus::before, .plus::after { content: ""; position: absolute; background: var(--faq-plus); transition: transform .25s ease; }
.plus::before { left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; }
.plus::after { top: 0; bottom: 0; left: 50%; width: 2px; margin-left: -1px; }
.accordion-title[aria-expanded="true"] .plus::after { transform: rotate(90deg); }
.accordion-body { background: #fff; border-bottom: 1px solid #e1e1e1; padding: 18px 20px; }
.accordion-body[hidden] { display: none; }
.accordion-body p { margin: 0; line-height: 1.5; }

/* Video search (filter panel from the original custom widget) */
.filter {
  background: var(--lime); border-collapse: separate; margin: 25px auto; min-width: 340px;
  box-shadow: 0 0 20px rgba(0, 0, 0, .15); text-align: left;
}
.filter td, .filter th { padding: 3px; }
.filter th { text-align: right; font-weight: 700; white-space: nowrap; }
.filter button {
  font: 400 13.33px system-ui, sans-serif; color: #000; background: lightgrey;
  border: 1px solid #767676; border-radius: 2px; padding: 1px 6px; margin: 1px 0; cursor: pointer;
}
.filter button.active { background: var(--green); }
.filter a { color: var(--navy); }
.video-results { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; }
.video-results iframe { width: 340px; max-width: 100%; height: 210px; border: 0; }
.video-results .status { color: #fff; padding: 20px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--lime); padding: 10px var(--gutter) 6px; display: flex; justify-content: center; gap: 19px; }
.site-footer a {
  display: grid; place-items: center; width: 41px; height: 41px; padding: 1px;
  border: 3px solid var(--icon-green); border-radius: 50%; color: var(--icon-green);
}
.site-footer svg { width: 20px; height: 20px; }
.site-footer a:hover { background: rgba(255,255,255,.25); }

/* ---------- Desktop-only parallax (iOS doesn't support fixed backgrounds) ---------- */
@media (min-width: 1025px) and (hover: hover) {
  .hero { background-attachment: fixed; background-position: center top; }
}

/* ---------- Tablet + phone: centred logo + full-screen menu (matches Duda's mobile layout) ---------- */
@media (max-width: 1024px) {
  :root { --gutter: 15px; --header-h: 64px; }
  .site-header { grid-template-columns: 44px 1fr 44px; padding: 0 5px; }
  .logo { grid-column: 2; justify-self: center; width: 197px; }
  .logo img { width: 197px; height: 57px; }
  .header-social { display: none; }
  .menu-button {
    grid-column: 3; display: grid; place-items: center; width: 44px; height: 44px;
    background: none; border: 0; color: var(--navy); cursor: pointer;
  }
  .menu-button svg { width: 26px; height: 26px; }
  .menu-button .icon-close { display: none; }
  body.menu-open .menu-button .icon-open { display: none; }
  body.menu-open .menu-button .icon-close { display: block; }
  body.menu-open { overflow: hidden; }

  .main-nav {
    position: fixed; inset: var(--header-h) 0 0 0; z-index: 99; overflow-y: auto;
    background: var(--mint); padding: 84px 35px 36px;
    display: flex; flex-direction: column; justify-content: space-between;
    opacity: 0; visibility: hidden; transform: translateY(-12px); transition: opacity .2s, transform .2s, visibility .2s;
  }
  body.menu-open .main-nav { opacity: 1; visibility: visible; transform: none; }
  .main-nav > ul { flex-direction: column; align-items: stretch; }
  .main-nav a, .main-nav .nav-toggle {
    width: 100%; height: 55px; padding: 0 10px; justify-content: center;
    font-size: 20px; letter-spacing: 0.03em; color: var(--navy);
  }
  .main-nav [aria-current="page"], .main-nav li.is-current > .nav-toggle { font-weight: 400; }
  .main-nav > ul > li > a::after, .main-nav > ul > li > .nav-toggle::after { display: none; }
  .main-nav > ul > li > a[aria-current="page"] {
    text-decoration: underline; text-decoration-color: var(--lime); text-decoration-thickness: 3px; text-underline-offset: 12px;
  }
  .chevron { width: 14px; height: 14px; margin-left: 6px; }
  .submenu { position: static; opacity: 1; visibility: visible; transform: none; margin: 0; min-width: 0; background: none; display: none; }
  .submenu::before { display: none; }
  .has-submenu.open > .submenu { display: block; }
  .submenu a { height: 46px; font-size: 17px; color: var(--navy); }
  .submenu a:hover, .submenu a[aria-current="page"] { background: rgba(255,255,255,.35); }

  .drawer-extras { display: flex; flex-direction: column; align-items: center; gap: 22px; padding-top: 40px; }
  .drawer-extras .social { display: flex; gap: 22px; }
  .drawer-extras .social a { width: 32px; height: 32px; padding: 0; border-radius: 50%; background: #fff; color: var(--navy); display: grid; place-items: center; }
  .drawer-extras .social svg { width: 17px; height: 17px; }
  .drawer-extras .button {
    width: 250px; height: 58px; padding: 0; justify-content: center;
    background: #fff; color: var(--navy); border-radius: 4px; font-size: 16px; font-weight: 700; letter-spacing: 0;
  }

  .faq-inner { grid-template-columns: 1fr; row-gap: 20px; }
}
@media (min-width: 1025px) { .drawer-extras, .menu-button { display: none; } }

@media (max-width: 767px) {
  .hero { height: 619px; max-height: none; }
  .section-title { font-size: 38px; line-height: 54px; }
  .contact { padding: 0 15px 80px; }
  .contact-form { margin-top: 40px; padding: 0 15px; }
  .send { width: 100%; max-width: 294px; }
  .garden { padding: 50px var(--gutter); }
  .timetable-img { width: 100%; }
  .faq { padding: 40px var(--gutter); }
  .faq-rule { margin-top: 0; }
  .filter { min-width: 0; width: 100%; }
  .filter th, .filter td { display: block; text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* Smaller hero image for smaller screens */
@media (max-width: 1280px) { .hero { background-image: url("/assets/img/hero-1280.jpg"); } }
@media (max-width: 640px) and (max-resolution: 1.5dppx) { .hero { background-image: url("/assets/img/hero-640.jpg"); } }
@media (max-width: 640px) { .garden { background-image: url("/assets/img/garden-640.jpg"); } }

/* Members' video login */
.login { padding-top: 120px; }
.login-card {
  position: relative; max-width: 420px; margin: 0 auto; padding: 32px 28px 28px;
  background: #fff; border-radius: 6px; box-shadow: 0 10px 40px rgba(0,0,0,.25); text-align: left;
}
.login-card h1 { margin: 0 0 8px; font-size: 26px; font-weight: 700; color: var(--navy); }
.login-card p { margin: 0 0 22px; line-height: 1.5; }
.login-form label { display: block; margin-bottom: 6px; font-weight: 600; }
.login-form input[type=password] {
  display: block; width: 100%; height: 46px; padding: 0 12px; margin-bottom: 18px;
  font: 400 16px "Poppins", sans-serif; color: var(--navy);
  border: 1px solid #c9d3bd; border-radius: 4px; background: #fff;
}
.login-form input[type=password]:focus { outline: 2px solid var(--green); outline-offset: 1px; border-color: var(--green); }
.login-error { color: #b3261e; margin: -8px 0 16px !important; font-size: 14px; }
.login-button {
  width: 100%; height: 50px; border: 0; border-radius: 4px; cursor: pointer;
  background: var(--lime); color: var(--navy); font: 700 16px "Poppins", sans-serif;
}
.login-button:hover { background: #98c255; }
@media (max-width: 767px) { .login { padding-top: 60px; } .login-card { padding: 26px 20px 22px; } }
