/* ============================================
   Hydons Flower Farm — Design System
   ============================================ */

/* --- Custom Properties --- */
:root {
  --color-peach: #EDD5BD;
  --color-peach-light: #F5E6D5;
  --color-warm-white: #FFF8F0;
  --color-brown: #8B6F47;
  --color-brown-dark: #6B5535;
  --color-text: #3D3225;
  --color-text-light: #6B5D4F;
  --color-accent: #7B1930;
  --color-accent-dark: #5E1325;
  --color-white: #FFFFFF;
  --color-border: #E8D5C0;

  --font-body: 'DM Sans', sans-serif;
  --font-display: 'DM Serif Display', serif;

  --max-width: 1200px;
  --nav-height: 80px;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 2px 12px rgba(61, 50, 37, 0.08);
  --shadow-hover: 0 4px 20px rgba(61, 50, 37, 0.14);
  --transition: 0.3s ease;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-warm-white);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-accent-dark);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--color-accent);
  line-height: 1.3;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.2rem; }

p + p {
  margin-top: 1rem;
}

/* --- Layout Utilities --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.section--peach {
  background-color: var(--color-peach-light);
}

.section--white {
  background-color: var(--color-white);
}

.text-center {
  text-align: center;
}

.section__header {
  text-align: center;
  margin-bottom: 48px;
}

.section__header h2 {
  margin-bottom: 12px;
}

.section__header p {
  color: var(--color-text-light);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* --- Header / Navigation --- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-warm-white);
  border-bottom: 1px solid var(--color-border);
  height: var(--nav-height);
  display: flex;
  align-items: center;
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.header__logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  gap: 12px;
}

.header__logo img {
  height: 50px;
  width: auto;
}

.header__logo-text {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--color-accent);
  line-height: 1.2;
}

.footer__logo {
  height: 48px;
  width: auto;
  margin-bottom: 16px;
}

/* --- Featured logo (home page) --- */
.logo-feature {
  text-align: center;
  padding: 24px 24px 0;
}

.logo-feature img {
  max-width: 280px;
  height: auto;
  margin: 0 auto;
}

.nav__list {
  display: flex;
  list-style: none;
  gap: 32px;
  align-items: center;
}

.nav__link {
  color: var(--color-text);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  position: relative;
  padding-bottom: 4px;
  transition: color var(--transition);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width var(--transition);
}

.nav__link:hover,
.nav__link--active {
  color: var(--color-accent);
}

.nav__link:hover::after,
.nav__link--active::after {
  width: 100%;
}

.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  margin: 6px 0;
  transition: var(--transition);
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-peach) 0%, var(--color-peach-light) 100%);
}

.hero--image {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero--image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(61, 50, 37, 0.4);
}

.hero--image .hero__content h1,
.hero--slideshow .hero__content h1 {
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
}

.hero--image .hero__content p,
.hero--image .hero__content .hero__tagline,
.hero--slideshow .hero__content p,
.hero--slideshow .hero__content .hero__tagline {
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.3);
}

/* --- Hero Slideshow (home page) --- */
.hero--slideshow .hero__content {
  color: var(--color-white);
}

.hero--slideshow .hero__content h1,
.hero--slideshow .hero__content p {
  color: var(--color-white);
}

.hero__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.5s ease;
  will-change: opacity, transform;
}

.hero__slide.active {
  opacity: 1;
}

.hero__slide.kb-zoom-in {
  animation: kb-zoom-in 8s ease-in-out forwards;
}
.hero__slide.kb-zoom-out {
  animation: kb-zoom-out 8s ease-in-out forwards;
}
.hero__slide.kb-pan-left {
  animation: kb-pan-left 8s ease-in-out forwards;
}
.hero__slide.kb-pan-right {
  animation: kb-pan-right 8s ease-in-out forwards;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(61, 50, 37, 0.4);
  z-index: 1;
}

@keyframes kb-zoom-in {
  0% { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.08) translate(-0.5%, -0.5%); }
}
@keyframes kb-zoom-out {
  0% { transform: scale(1.08) translate(-0.5%, -0.5%); }
  100% { transform: scale(1) translate(0, 0); }
}
@keyframes kb-pan-left {
  0% { transform: scale(1.05) translate(1%, 0); }
  100% { transform: scale(1.05) translate(-1%, 0); }
}
@keyframes kb-pan-right {
  0% { transform: scale(1.05) translate(-1%, 0); }
  100% { transform: scale(1.05) translate(1%, 0); }
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  padding: 40px 24px;
}

.hero--image .hero__content {
  color: var(--color-white);
}

.hero--image .hero__content h1,
.hero--image .hero__content p {
  color: var(--color-white);
}

.hero__tagline {
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 16px;
  opacity: 0.9;
}

.hero__content h1 {
  margin-bottom: 20px;
}

.hero__content p {
  font-size: 1.15rem;
  margin-bottom: 32px;
  color: var(--color-text-light);
}

.hero--small {
  min-height: 30vh;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
}

.btn--primary {
  background-color: var(--color-accent);
  color: var(--color-white);
}

.btn--primary:hover {
  background-color: var(--color-accent-dark);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn--secondary {
  background-color: transparent;
  color: var(--color-accent);
  border: 2px solid var(--color-accent);
}

.btn--secondary:hover {
  background-color: var(--color-accent);
  color: var(--color-white);
  transform: translateY(-2px);
}

.btn--peach {
  background-color: var(--color-peach);
  color: var(--color-text);
}

.btn--peach:hover {
  background-color: var(--color-brown);
  color: var(--color-white);
  transform: translateY(-2px);
}

.btn--small {
  padding: 10px 24px;
  font-size: 0.9rem;
}

.btn-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

/* --- Cards --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.card {
  background: var(--color-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.card__image {
  width: 100%;
  height: 240px;
  object-fit: cover;
  background-color: var(--color-peach);
}

.card__body {
  padding: 28px;
}

.card__body h3 {
  margin-bottom: 12px;
}

.card__body p {
  color: var(--color-text-light);
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.card__price {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--color-brown);
  margin-bottom: 16px;
}

.card__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--color-text-light);
  margin-bottom: 8px;
}

/* --- Shop-specific --- */
.shop-section {
  padding: 60px 0;
  border-bottom: 1px solid var(--color-border);
}

.shop-section:last-child {
  border-bottom: none;
}

.shop-section__header {
  margin-bottom: 40px;
}

.shop-section__header h2 {
  margin-bottom: 8px;
}

.shop-section__header p {
  color: var(--color-text-light);
  font-size: 1.05rem;
  max-width: 650px;
}

.shop-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.shop-feature--reverse {
  direction: rtl;
}

.shop-feature--reverse > * {
  direction: ltr;
}

.shop-feature__image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: var(--radius);
  background-color: var(--color-peach);
}

.shop-feature__content h3 {
  font-size: 1.8rem;
  margin-bottom: 16px;
}

.shop-feature__content p {
  margin-bottom: 16px;
  color: var(--color-text-light);
}

.shop-feature__details {
  list-style: none;
  margin-bottom: 24px;
}

.shop-feature__details li {
  padding: 6px 0;
  padding-left: 24px;
  position: relative;
  color: var(--color-text-light);
}

.shop-feature__details li::before {
  content: '\2022';
  color: var(--color-accent);
  font-size: 1.4rem;
  position: absolute;
  left: 0;
  top: 4px;
}

/* --- Shop options (multiple items in one section) --- */
.shop-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.shop-option {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 24px;
  text-align: center;
}

.shop-option__name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--color-accent);
  margin-bottom: 8px;
  display: block;
}

.shop-option .card__price {
  margin-bottom: 12px;
}

/* --- PYO date cards --- */
.pyo-dates {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 32px;
}

.pyo-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 24px;
  text-align: center;
  transition: all var(--transition);
}

.pyo-card:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow);
}

.pyo-card__date {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--color-brown);
  margin-bottom: 4px;
}

.pyo-card__time {
  font-size: 0.9rem;
  color: var(--color-text-light);
  margin-bottom: 16px;
}

.pyo-card__price {
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--color-text);
}

/* --- About page --- */
.about-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.about-intro__image {
  width: 100%;
  height: 450px;
  object-fit: cover;
  border-radius: var(--radius);
  background-color: var(--color-peach);
}

.about-intro__content h2 {
  margin-bottom: 16px;
}

.about-intro__content p {
  margin-bottom: 16px;
  color: var(--color-text-light);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.value-card {
  text-align: center;
  padding: 32px 24px;
}

.value-card__icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.value-card h3 {
  margin-bottom: 12px;
}

.value-card p {
  color: var(--color-text-light);
  font-size: 0.95rem;
}

/* --- Volunteering --- */
.volunteer-content {
  max-width: 760px;
  margin: 0 auto;
}

.volunteer-content h2 {
  margin-bottom: 16px;
}

.volunteer-content p {
  margin-bottom: 16px;
  color: var(--color-text-light);
}

.volunteer-roles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.role-card {
  background: var(--color-white);
  border-radius: var(--radius-sm);
  padding: 28px;
  border: 1px solid var(--color-border);
}

.role-card h3 {
  margin-bottom: 8px;
  font-size: 1.2rem;
}

.role-card p {
  color: var(--color-text-light);
  font-size: 0.95rem;
}

/* --- FAQ Accordion --- */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-item__question {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-text);
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: color var(--transition);
}

.faq-item__question:hover {
  color: var(--color-accent);
}

.faq-item__icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition);
}

.faq-item.active .faq-item__icon {
  transform: rotate(45deg);
}

.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.active .faq-item__answer {
  max-height: 300px;
}

.faq-item__answer p {
  padding-bottom: 20px;
  color: var(--color-text-light);
  font-size: 0.95rem;
  line-height: 1.8;
}

/* --- Footer --- */
.footer {
  background-color: var(--color-peach-light);
  color: var(--color-text);
  padding: 60px 0 30px;
  border-top: 1px solid var(--color-border);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}

.footer__brand h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--color-accent);
  margin-bottom: 12px;
}

.footer__brand p {
  color: var(--color-text-light);
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer h4 {
  color: var(--color-text);
  font-size: 1rem;
  margin-bottom: 16px;
}

.footer__links {
  list-style: none;
}

.footer__links li {
  margin-bottom: 10px;
}

.footer__links a {
  color: var(--color-text-light);
  font-size: 0.9rem;
  text-decoration: none;
  transition: color var(--transition);
}

.footer__links a:hover {
  color: var(--color-accent);
}

.footer__social {
  display: flex;
  gap: 16px;
  margin-top: 16px;
}

.footer__social a {
  color: var(--color-text-light);
  font-size: 1.2rem;
  transition: color var(--transition);
}

.footer__social a:hover {
  color: var(--color-accent);
}

.footer__bottom {
  border-top: 1px solid var(--color-border);
  padding-top: 24px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--color-text-light);
}

/* --- CTA Banner --- */
.cta-banner {
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-dark) 100%);
  color: var(--color-white);
  text-align: center;
  padding: 60px 24px;
}

.cta-banner h2 {
  color: var(--color-white);
  margin-bottom: 12px;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 28px;
  font-size: 1.1rem;
}

/* --- Mailing List --- */
.mailing-list {
  background: var(--color-peach-light);
  padding: 48px 0;
  text-align: center;
}

.mailing-list h2 {
  font-family: var(--font-display);
  color: var(--color-text);
  margin-bottom: 8px;
}

.mailing-list p {
  color: var(--color-text-light);
  margin-bottom: 24px;
}

/* --- Responsive --- */
@media (max-width: 992px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .shop-feature {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .shop-feature--reverse {
    direction: ltr;
  }

  .about-intro {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  h1 { font-size: 2.4rem; }
  h2 { font-size: 1.8rem; }
}

@media (max-width: 768px) {
  :root {
    --nav-height: 64px;
  }

  .nav__list {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--color-warm-white);
    flex-direction: column;
    padding: 24px;
    gap: 0;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow);
  }

  .nav__list.active {
    display: flex;
  }

  .nav__list li {
    width: 100%;
  }

  .nav__link {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid var(--color-border);
  }

  .nav__link::after {
    display: none;
  }

  .nav__toggle {
    display: block;
  }

  .nav__toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }

  .nav__toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav__toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .values-grid {
    grid-template-columns: 1fr;
  }

  .volunteer-roles {
    grid-template-columns: 1fr;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero {
    min-height: 50vh;
  }

  .hero--small {
    min-height: 25vh;
  }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }

  .section {
    padding: 48px 0;
  }

  .shop-feature__image {
    height: 280px;
  }
}

@media (max-width: 480px) {
  h1 { font-size: 1.75rem; }

  .btn {
    width: 100%;
    text-align: center;
  }

  .btn-group {
    flex-direction: column;
  }

  .pyo-dates {
    grid-template-columns: 1fr;
  }
}
