/* ===================================================
   EDNIE FLOWER BULBS — Main Stylesheet
   =================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600&family=Raleway:wght@300;400;500;600;700&display=swap');

/* --- CSS Variables --- */
:root {
  --color-bg:       #F7F2EA;
  --color-cream:    #FDF8F0;
  --color-dark:     #181818;
  --color-green:    #1E3A28;
  --color-green-lt: #2C5238;
  --color-red:      #B01020;
  --color-red-lt:   #D01828;
  --color-gold:     #ffe19e;
  --color-text:     #2A2A2A;
  --color-muted:    #555555;   /* was #666 — bumped for WCAG AA margin */
  --font-serif:     'Cormorant Garamond', Georgia, serif;
  --font-sans:      'Raleway', sans-serif;
  --nav-h:          76px;
  --section-pad:    90px;
  --radius:         4px;
  --shadow:         0 4px 24px rgba(0,0,0,.12);
  --shadow-lg:      0 12px 48px rgba(0,0,0,.2);
  --transition:     all .35s cubic-bezier(.4,0,.2,1);
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }

ul { list-style: none; }


/* ===================================================
   NAVIGATION
   =================================================== */

.nav.scrolled {
  background: rgba(20, 28, 22, 0.97);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 20px rgba(0,0,0,.35);
}

.nav__logo img {
  height: 44px;
  width: auto;
  object-fit: contain;
  transition: opacity .35s ease;
}

.nav__logo--red { position: absolute; opacity: 0; }
.nav__logo--wh  { position: relative; opacity: 1; }

.nav.scrolled .nav__logo--red { opacity: 1; }
.nav.scrolled .nav__logo--wh  { opacity: 0; }

.nav__logo {
  position: relative;
  display: flex;
  align-items: center;
}

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  background: linear-gradient(to bottom, rgba(10,18,12,.75) 0%, rgba(10,18,12,.0) 100%);
  transition: var(--transition);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav__links a {
  font-family: var(--font-sans);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #ffffff;
  transition: var(--transition);
  position: relative;
}

.nav__links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 1px;
  background: var(--color-gold);
  transition: width .3s ease;
}

.nav__links a:hover { color: #ffffff; }
.nav__links a:hover::after { width: 100%; }

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-red);
  color: #fff !important;
  padding: 10px 22px;
  border-radius: var(--radius);
  font-size: .78rem !important;
  font-weight: 700 !important;
  letter-spacing: .1em !important;
  text-transform: uppercase !important;
  transition: var(--transition) !important;
  border: 2px solid var(--color-red);
}

.nav__cta::after { display: none !important; }
.nav__cta:hover { background: var(--color-red-lt); border-color: var(--color-red-lt); transform: translateY(-1px); }
.nav__cta svg { flex-shrink: 0; }

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.nav__hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: var(--transition);
}

/* Mobile nav */
.nav__mobile {
  display: none;
  position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  background: rgba(20, 28, 22, 0.98);
  padding: 24px 32px 32px;
  flex-direction: column;
  gap: 20px;
  z-index: 999;
  border-top: 1px solid rgba(255,255,255,.08);
}
.nav__mobile a {
  font-family: var(--font-sans);
  font-size: .9rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #ffffff;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.nav__mobile.open { display: flex; }

/* ===================================================
   HERO SLIDER
   =================================================== */

.hero {
  position: relative;
  width: 100%;
  height: 70vh;
  min-height: 480px;
  max-height: 780px;
  overflow: hidden;
}

.hero__slider {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s cubic-bezier(.4,0,.2,1);
  will-change: opacity;
}

.hero__slide.active { opacity: 1; }

.hero__slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10,18,12,.35) 0%,
    rgba(10,18,12,.45) 50%,
    rgba(10,18,12,.65) 100%
  );
}

.hero__slide--1 { background-image: url('../img/slider_1.jpg'); }
.hero__slide--2 { background-image: url('../img/slider_2.jpg'); }
.hero__slide--3 { background-image: url('../img/slider_3.jpg'); }
.hero__slide--4 { background-image: url('../img/slider_4.jpg'); }

/* Hero overlay content */
.hero__content {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 24px;
  padding-top: var(--nav-h);
}

.hero__eyebrow {
  font-family: var(--font-sans);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 18px;
  opacity: 0;
  animation: fadeUp .8s .4s ease forwards;
}

.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 600;
  color: #fff;
  line-height: 1.15;
  max-width: 820px;
  text-shadow: 0 2px 20px rgba(0,0,0,.4);
  opacity: 0;
  animation: fadeUp .8s .65s ease forwards;
}

.hero__title em {
  font-style: italic;
  color: rgba(255,255,255,.88);
}

.hero__sub {
  font-family: var(--font-sans);
  font-size: .9rem;
  font-weight: 400;
  color: rgba(255,255,255,.95);
  letter-spacing: .06em;
  margin-top: 20px;
  opacity: 0;
  animation: fadeUp .8s .85s ease forwards;
}

.hero__actions {
  display: flex;
  gap: 16px;
  margin-top: 36px;
  opacity: 0;
  animation: fadeUp .8s 1.05s ease forwards;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 30px;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
}

.btn--primary {
  background: var(--color-red);
  color: #fff;
  border-color: var(--color-red);
}
.btn--primary:hover { background: var(--color-red-lt); border-color: var(--color-red-lt); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(176,16,32,.4); }

.btn--outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.55);
}
.btn--outline:hover { background: rgba(255,255,255,.1); border-color: #fff; transform: translateY(-2px); }

/* Slider controls */
.hero__arrows {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 24px 28px;
  pointer-events: none;
}

.hero__dots {
  display: flex;
  gap: 10px;
  pointer-events: all;
}

.hero__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.35);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: var(--transition);
}
.hero__dot.active {
  background: #fff;
  transform: scale(1.3);
}

.hero__arrow {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.3);
  color: #fff;
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  pointer-events: all;
  flex-shrink: 0;
}
.hero__arrow:hover { background: rgba(255,255,255,.25); border-color: #fff; }
.hero__arrow svg { pointer-events: none; }

.hero__arrows-inner {
  position: absolute;
  inset: 0;
  bottom: 28px;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 0 24px;
  pointer-events: none;
}

/* ===================================================
   SECTION COMMONS
   =================================================== */

.section { padding: var(--section-pad) 0; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
}

.section-label {
  font-family: var(--font-sans);
  font-size: .78rem;          /* was .72rem — bumped for WCAG small-text threshold */
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--color-red);
  margin-bottom: 12px;
  display: block;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.5vw, 2.9rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-green);
  margin-bottom: 20px;
}

.divider {
  width: 48px; height: 3px;
  background: var(--color-gold);
  margin-bottom: 28px;
  border-radius: 2px;
}

/* ===================================================
   ABOUT SECTION
   =================================================== */

.about { background: var(--color-cream); }

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.about__img-wrap {
  position: relative;
}

.about__img-wrap::before {
  content: '';
  position: absolute;
  top: -16px; left: -16px;
  right: 16px; bottom: 16px;
  border: 2px solid var(--color-gold);
  border-radius: var(--radius);
  z-index: 0;
}

.about__img-wrap img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.about__badge {
  position: absolute;
  bottom: -20px; right: -20px;
  z-index: 2;
  background: var(--color-green);
  color: #fff;
  padding: 20px 24px;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow);
}

.about__badge strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1;
  color: var(--color-gold);
}

.about__badge span {
  font-family: var(--font-sans);
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  opacity: .85;
}

.about__text p {
  color: var(--color-muted);
  font-size: .95rem;
  line-height: 1.85;
  margin-bottom: 18px;
}

.about__features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 32px;
}

.about__feature {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.about__feature-icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(30, 58, 40, .08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-green);
}

.about__feature-text strong {
  display: block;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--color-green);
  margin-bottom: 2px;
}

.about__feature-text span {
  font-size: .82rem;
  color: var(--color-muted);
}

/* ===================================================
   CATALOG SECTION
   =================================================== */

.catalog {
  position: relative;
  padding: var(--section-pad) 0;
  background-color: var(--color-dark);
  background-image: url('../img/bckg_footer.jpg');
  background-size: cover;
  background-position: center top;
  background-attachment: fixed;
}

.catalog::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,18,12,.88) 0%, rgba(18,10,10,.85) 100%);
}

.catalog .container { position: relative; z-index: 1; }

.catalog .section-label { color: var(--color-gold); }
.catalog .section-title { color: #fff; }
.catalog .divider { background: var(--color-red); }

.catalog__intro {
  color: rgba(255,255,255,.90);
  font-size: .9rem;
  max-width: 560px;
  margin-bottom: 48px;
  line-height: 1.8;
}

.catalog__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.catalog__card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  padding: 16px 18px;
  transition: var(--transition);
  text-decoration: none;
  color: #fff;
}

.catalog__card:hover {
  background: rgba(255,255,255,.12);
  border-color: var(--color-gold);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,.3);
}

.catalog__card:hover .catalog__card-icon { background: var(--color-red); }

.catalog__card-icon {
  width: 40px; height: 40px;
  border-radius: var(--radius);
  background: rgba(176,16,32,.6);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
}

.catalog__card-body { flex: 1; min-width: 0; }

.catalog__card-title {
  font-family: var(--font-sans);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .03em;
  line-height: 1.3;
  color: #fff;
}

.catalog__card-sub {
  font-size: .75rem;           /* was .72rem — bumped for WCAG threshold */
  color: rgba(255,255,255,.82); /* was .45 — confirmed contrast failure */
  margin-top: 3px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ===================================================
   CONTACT SECTION
   =================================================== */

.contact { background: var(--color-bg); }

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact__map {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  height: 480px;
  background: #e8e4dc;
}

.contact__map iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.contact__info { padding-top: 8px; }

.contact__item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 28px;
}

.contact__item-icon {
  width: 44px; height: 44px;
  background: var(--color-green);
  color: #fff;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact__item-text strong {
  display: block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--color-green);
  margin-bottom: 4px;
}

.contact__item-text span,
.contact__item-text a {
  font-size: .92rem;
  color: var(--color-muted);
  line-height: 1.6;
}

.contact__item-text a:hover { color: var(--color-red); }

.contact__hours {
  margin-top: 36px;
  border-top: 1px solid rgba(0,0,0,.08);
  padding-top: 28px;
}

.contact__hours-title {
  font-family: var(--font-sans);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--color-green);
  margin-bottom: 16px;
}

.hours-table {
  width: 100%;
  border-collapse: collapse;
}

.hours-table tr { border-bottom: 1px solid rgba(0,0,0,.05); }
.hours-table tr:last-child { border-bottom: none; }
.hours-table td {
  padding: 7px 0;
  font-size: .88rem;
  color: var(--color-muted);
}
.hours-table td:first-child {
  font-weight: 600;
  color: var(--color-text);
  width: 40%;
}

.contact__store-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 32px;
  background: var(--color-red);
  color: #fff;
  padding: 12px 26px;
  border-radius: var(--radius);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  transition: var(--transition);
}
.contact__store-link:hover { background: var(--color-red-lt); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(176,16,32,.35); }

/* ===================================================
   FOOTER
   =================================================== */

.footer {
  background: var(--color-dark);
  padding: 56px 0 32px;
  color: rgba(255,255,255,.82);
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  flex-wrap: wrap;
}

.footer__brand {}

.footer__logo {
  height: 90px;
  width: auto;
  margin-bottom: 16px;
}

.footer__tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1rem;
  color: rgba(255,255,255,.80);
  line-height: 1.5;
}

.footer__nav h4 {
  font-family: var(--font-sans);
  font-size: .78rem;          /* was .72rem — bumped for WCAG threshold */
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 16px;
}

.footer__nav ul { display: flex; flex-direction: column; gap: 10px; }

.footer__nav a {
  font-size: .85rem;
  color: rgba(255,255,255,.82);
  transition: var(--transition);
}
.footer__nav a:hover { color: var(--color-gold); }

.footer__bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .78rem;
  color: rgba(255,255,255,.65); /* was .30 — confirmed contrast failure */
  flex-wrap: wrap;
  gap: 12px;
}

.footer__bottom a { color: rgba(255,255,255,.78); } /* was .45 — confirmed contrast failure */
.footer__bottom a:hover { color: var(--color-gold); }

/* ===================================================
   ANIMATIONS
   =================================================== */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===================================================
   RESPONSIVE
   =================================================== */

@media (max-width: 1024px) {
  .container { padding: 0 32px; }

  .about__grid { gap: 48px; }
  .contact__grid { gap: 40px; }
}

@media (max-width: 768px) {
  :root { --section-pad: 64px; --nav-h: 68px; }

  .nav { padding: 0 24px; }
  .nav__links { display: none; }
  .nav__hamburger { display: flex; }

  .container { padding: 0 24px; }

  .hero { height: 75vh; }
  .hero__title { font-size: clamp(1.8rem, 6vw, 2.8rem); }
  .hero__actions { flex-direction: column; align-items: center; gap: 12px; }

  .about__grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }
  .about__img-wrap::before { display: none; }
  .about__img-wrap img { height: 300px; }
  .about__badge { right: 16px; bottom: -16px; padding: 14px 18px; }
  .about__badge strong { font-size: 1.8rem; }
  .about__features { grid-template-columns: 1fr; }

  .catalog__grid { grid-template-columns: 1fr 1fr; }

  .contact__grid { grid-template-columns: 1fr; }
  .contact__map { height: 300px; }

  .footer__inner { flex-direction: column; gap: 32px; }
  .footer__bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .catalog__grid { grid-template-columns: 1fr; }
  .hero__actions .btn { width: 100%; justify-content: center; }
}


/* ===================================================
   LIGHT THEME — Nav & Footer
   ---------------------------------------------------
   To activate: add class "theme-light" to <body>
   Default (no class) = dark theme
   All colour values here already pass WCAG AA.
   =================================================== */

/* ── NAV: scrolled / sticky state ───────────────── */
body.theme-light .nav.scrolled {
  background: rgba(253, 248, 240, 0.97);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, .08);
}

body.theme-light .nav.scrolled .nav__links a {
  color: var(--color-green);   /* #1E3A28 on cream = 9.8:1 ✓ */
}
body.theme-light .nav.scrolled .nav__links a:hover {
  color: var(--color-dark);
}
body.theme-light .nav.scrolled .nav__links a::after {
  background: var(--color-red);
}

body.theme-light .nav.scrolled .nav__hamburger span {
  background: var(--color-green);
}

/* ── MOBILE NAV ──────────────────────────────────── */
body.theme-light .nav__mobile {
  background: rgba(253, 248, 240, 0.98);
  border-top: 1px solid rgba(0, 0, 0, .07);
}
body.theme-light .nav__mobile a {
  color: var(--color-green);   /* #1E3A28 on cream = 9.8:1 ✓ */
  border-bottom-color: rgba(0, 0, 0, .06);
}
body.theme-light .nav__mobile a:hover {
  color: var(--color-red);
}

/* ── FOOTER ─────────────────────────────────────── */
body.theme-light .footer {
  background: #EEE8DC;
  color: var(--color-text);    /* #2A2A2A on #EEE8DC = 10.5:1 ✓ */
}
body.theme-light .footer__inner {
  border-bottom-color: rgba(0, 0, 0, .10);
}
body.theme-light .footer__tagline {
  color: #555555;              /* on #EEE8DC = 6.6:1 ✓ */
}
body.theme-light .footer__nav h4 {
  color: var(--color-green);   /* #1E3A28 on #EEE8DC = 9.8:1 ✓ */
}
body.theme-light .footer__nav a {
  color: #555555;              /* on #EEE8DC = 6.6:1 ✓ */
}
body.theme-light .footer__nav a:hover {
  color: var(--color-red);
}
body.theme-light .footer__bottom {
  color: #666666;              /* on #EEE8DC = 5.3:1 ✓ */
}
body.theme-light .footer__bottom a {
  color: #555555;              /* on #EEE8DC = 6.6:1 ✓ */
}
body.theme-light .footer__bottom a:hover {
  color: var(--color-red);
}
body.theme-light .footer span[style] {
  color: #555555 !important;
}
