/*
Theme Name: AELFFCES
Theme URI: https://aelffces.com
Author: AELFFCES Studio
Author URI: https://aelffces.com
Description: A refined, editorial WordPress + WooCommerce theme for AELFFCES — an English-language store selling everlasting (faux) flowers. Inspired by premium botanical boutiques: generous whitespace, elegant serif display type, thin gold rules, and real-photo product presentation.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: MIT
Text Domain: aelffces
Tags: e-commerce, woocommerce, blog, custom-colors, custom-menu, featured-images, responsive-layout, accessibility-ready
*/

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

:root {
  --forest: #2F5D50;
  --forest-dark: #244A40;
  --sage: #3C6B5C;
  --gold: #B08D57;          /* softer, more luxe gold */
  --gold-soft: #C9A86A;
  --cream: #FBFAF7;         /* lighter, gallery-like background */
  --sand: #F1ECE2;
  --ink: #21201C;          /* warm near-black for text */
  --muted: #7A756C;
  --line: #E4DFD5;
  --white: #FFFFFF;
  --radius: 2px;            /* near-square, refined */
  --shadow: 0 18px 50px rgba(33,32,28,.08);
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;
  --maxw: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 300;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  letter-spacing: .2px;
}
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; color: var(--ink); line-height: 1.15; margin: 0 0 .4em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); letter-spacing: .3px; }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1.1rem; }
a { color: var(--forest); text-decoration: none; transition: color .25s ease, opacity .25s ease; }
a:hover { color: var(--gold); }
img { max-width: 100%; height: auto; display: block; }

.container { width: min(var(--maxw), 90%); margin-inline: auto; }
.section { padding: clamp(3.2rem, 6vw, 5.5rem) 0; }
.section.tight { padding: clamp(2.5rem, 4vw, 3.5rem) 0; }
.section.tight-top { padding: clamp(2.5rem, 4vw, 3.5rem) 0 0; }
.center { text-align: center; }
.eyebrow {
  font-family: var(--sans); text-transform: uppercase; letter-spacing: 4px;
  font-size: .72rem; color: var(--gold); font-weight: 500;
}
.rule { width: 64px; height: 1px; background: var(--gold); border: 0; margin: 1.4rem auto; }
.rule-left { margin-left: 0; }
.muted { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; font-family: var(--sans); font-weight: 400; letter-spacing: 2px;
  text-transform: uppercase; font-size: .78rem;
  padding: 1.05em 2.4em; border: 1px solid transparent; cursor: pointer;
  transition: all .25s ease;
}
.btn-primary { background: var(--forest); color: var(--white); }
.btn-primary:hover { background: var(--forest-dark); color: var(--white); letter-spacing: 2.5px; }
.btn-gold { background: var(--gold); color: var(--white); }
.btn-gold:hover { background: #9c7b48; color: var(--white); }
.btn-outline { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--white); }
.btn-line { background: transparent; border: 0; border-bottom: 1px solid var(--gold); color: var(--forest); padding: 0 0 .3em; border-radius: 0; letter-spacing: 2px; text-transform: uppercase; font-size: .76rem; }
.btn-line:hover { color: var(--gold); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(251,250,247,.9);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 1.4rem 0; gap: 1.5rem; }
.brand img { height: 46px; width: auto; }
.nav ul { list-style: none; display: flex; gap: 2.2rem; margin: 0; padding: 0; }
.nav a { font-weight: 400; font-size: .82rem; letter-spacing: 2px; text-transform: uppercase; }
.header-actions { display: flex; align-items: center; gap: 1.6rem; }
.cart-link { position: relative; font-size: .82rem; letter-spacing: 2px; text-transform: uppercase; font-weight: 400; }
.cart-count { display: inline-grid; place-items: center; min-width: 19px; height: 19px; padding: 0 5px; background: var(--gold); color: var(--white); border-radius: 999px; font-size: .66rem; margin-left: .4rem; letter-spacing: 0; }
.menu-toggle { display: none; background: none; border: 0; font-size: 1.7rem; cursor: pointer; color: var(--forest); }

/* ---------- Top announcement bar ---------- */
.topbar { background: var(--forest); color: #fff; text-align: center; font-family: var(--sans); font-size: .72rem; letter-spacing: 2px; text-transform: uppercase; padding: .55rem 1rem; font-weight: 500; }

/* ---------- Hero (full-bleed, editorial) ---------- */
.hero { position: relative; background: var(--sand); }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; min-height: 30vh; align-items: stretch; }
.hero-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(1rem, 2vw, 1.8rem); }
.hero-copy h1 { margin: .35rem 0 .15rem; }
.hero-copy .lead { font-size: 1.05rem; color: var(--muted); max-width: 28rem; font-weight: 300; }
.hero-cta { display: flex; gap: 1.2rem; flex-wrap: wrap; margin-top: 2.2rem; }
.hero-art { position: relative; overflow: hidden; background: var(--sand); }
.hero-art img { width: 100%; height: 100%; object-fit: cover; }
.trust-row { display: flex; gap: 1.4rem 2.2rem; flex-wrap: wrap; align-items: center; margin-top: 1.6rem; }
.trust-item { display: inline-flex; align-items: center; gap: .65rem; color: var(--ink); font-size: .82rem; letter-spacing: .03em; font-weight: 400; }
.trust-item .ic { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; background: #EAF1ED; color: #2F5D50; display: inline-flex; align-items: center; justify-content: center; }
.trust-item .ic svg { width: 18px; height: 18px; }

/* ---------- Section heading ---------- */
.sec-head { max-width: 46rem; margin: 0 auto clamp(2.5rem,5vw,3.5rem); }
.sec-head.center .rule { margin: 1.2rem auto; }

/* ---------- Collections (large image cards, alternating) ---------- */
.collections { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.coll-card { position: relative; overflow: hidden; background: var(--white); box-shadow: var(--shadow); }
.coll-card img { width: 100%; aspect-ratio: 4/5; object-fit: cover; transition: transform .6s ease; }
.coll-card:hover img { transform: scale(1.04); }
.coll-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.3rem; color: var(--white); background: linear-gradient(to top, rgba(33,32,28,.72), rgba(33,32,28,0)); }
.coll-cap .eyebrow { color: var(--gold-soft); }
.coll-cap h3 { color: var(--white); font-size: 1.5rem; margin: .3rem 0 0; }

/* ---------- Editorial split (Different) ---------- */
.editorial { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,5rem); align-items: center; }
.editorial.reverse .editorial-media { order: 2; }
.editorial-media { overflow: hidden; }
.editorial-media img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.editorial-body h2 { margin-bottom: .6rem; }
.editorial-body p { color: var(--muted); }

/* ---------- Promo band (Aisle) ---------- */
.promo-band { position: relative; color: var(--white); text-align: center; padding: clamp(3rem,6vw,4.5rem) 0; background-image: linear-gradient(rgba(33,32,28,.55), rgba(33,32,28,.55)), url('assets/img/aisle.png'); background-size: cover; background-position: center; }
.promo-band .container { position: relative; border: 1px solid rgba(201,168,106,.5); padding: clamp(1.8rem,4vw,3rem); max-width: 760px; }
.promo-band .eyebrow { color: var(--gold-soft); }
.promo-band h2 { color: var(--white); }
.promo-band p { color: rgba(255,255,255,.82); max-width: 38rem; margin-inline: auto; }
.promo-band .btn-line { color: var(--gold-soft); border-color: var(--gold-soft); margin-top: 1.6rem; }
.promo-band .btn-line:hover { color: var(--white); border-color: var(--white); }

/* ---------- Featured products ---------- */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.6rem 1.2rem; }
.product-card { display: flex; flex-direction: column; }
.product-thumb { position: relative; overflow: hidden; background: var(--white); aspect-ratio: 4/5; }
.product-thumb img, .product-thumb svg { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.product-card:hover .product-thumb img, .product-card:hover .product-thumb svg { transform: scale(1.05); }
.product-badge { position: absolute; top: 1rem; left: 1rem; background: var(--white); color: var(--ink); font-family: var(--sans); font-size: .64rem; letter-spacing: 2px; text-transform: uppercase; padding: .45em 1em; }
.product-body { padding: 1rem .1rem 0; text-align: center; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.product-title { font-family: var(--serif); font-size: 1.15rem; }
.product-title a { color: var(--ink); }
.product-title a:hover { color: var(--gold); }
.product-cat { font-size: .68rem; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); }
.product-price { color: var(--ink); font-size: 1rem; letter-spacing: .5px; }
.product-price del { color: var(--muted); margin-right: .6rem; }
.product-body .btn-line { margin: .4rem auto 0; }

/* ---------- As seen on (press logos text row) ---------- */
.press { text-align: center; padding: 2.5rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.press .eyebrow { display: block; margin-bottom: 1.4rem; }
.press-logos { display: flex; justify-content: center; gap: clamp(2rem,5vw,4rem); flex-wrap: wrap; font-family: var(--serif); font-size: 1.4rem; color: var(--muted); letter-spacing: 1px; }

/* Trust / Where-to-buy strip (replaces fake press logos) */
.press.trust { padding: clamp(3rem, 7vw, 5rem) 0; }
.trust-title { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: .2rem 0 .8rem; }
.trust-sub { max-width: 42rem; margin: 0 auto 1.8rem; color: var(--muted); font-size: 1.02rem; }
.trust-btn { margin-bottom: 2.8rem; }
.trust-badges { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem 1rem; max-width: 880px; margin: 0 auto; }
.badge { display: flex; flex-direction: column; align-items: center; gap: .8rem; text-align: center; }
.badge img { width: 40px; height: 40px; opacity: .85; }
.badge span { font-size: .82rem; letter-spacing: .4px; color: var(--ink); line-height: 1.4; }
@media (max-width: 600px) {
  .trust-badges { grid-template-columns: 1fr 1fr; gap: 1.8rem 1rem; }
  .badge img { width: 32px; height: 32px; }
}

/* ---------- Testimonials ---------- */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.testi { background: var(--white); border: 1px solid var(--line); padding: 2.4rem 2rem; text-align: center; }
.testi .quote-mark { font-family: var(--serif); font-size: 3rem; color: var(--gold); line-height: 1; }
.testi p { font-size: .95rem; color: var(--ink); font-weight: 300; }
.testi .who { font-family: var(--sans); font-size: .72rem; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); margin-top: 1.2rem; }

/* ---------- Journal / blog ---------- */
.journal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.post-card { background: var(--white); }
.post-card .post-media { overflow: hidden; aspect-ratio: 3/2; background: var(--sand); }
.post-card .post-media img, .post-card .post-media svg { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.post-card:hover .post-media img, .post-card:hover .post-media svg { transform: scale(1.04); }
.post-body { padding: 1.5rem 1.4rem 1.8rem; }
.post-meta { font-size: .68rem; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); }
.post-title { font-family: var(--serif); font-size: 1.35rem; margin: .5rem 0; }
.post-title a { color: var(--ink); }
.post-excerpt { color: var(--muted); font-size: .9rem; }

/* ---------- Newsletter ---------- */
.newsletter { background: var(--sand); text-align: center; padding: clamp(3rem,7vw,5rem); }
.newsletter h2 { margin-bottom: .4rem; }
.newsletter p { color: var(--muted); max-width: 38rem; margin-inline: auto; }
.newsletter form { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; margin-top: 1.8rem; }
.newsletter input[type="email"] { padding: 1.05em 1.4em; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); min-width: 300px; font-size: .9rem; font-family: var(--sans); }
.newsletter .note { font-size: .76rem; color: var(--muted); margin-top: 1.2rem; letter-spacing: .5px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.78); padding: 4.5rem 0 2.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2.5rem; }
.site-footer h4 { color: var(--white); font-family: var(--sans); font-size: .76rem; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 1.2rem; }
.site-footer a { color: rgba(255,255,255,.72); font-size: .88rem; }
.site-footer a:hover { color: var(--gold-soft); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .7rem; }
.footer-brand img { height: 50px; margin-bottom: 1.2rem; background: var(--cream); padding: 10px 16px; border-radius: 8px; }
.footer-brand p { font-size: .88rem; max-width: 22rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 3rem; padding-top: 1.8rem; font-size: .78rem; color: rgba(255,255,255,.5); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; letter-spacing: .5px; }

/* ---------- WooCommerce ---------- */
.shop-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.onsale { background: var(--gold); color: var(--white); border-radius: 0; padding: .25em .9em; font-size: .64rem; letter-spacing: 2px; text-transform: uppercase; display: inline-block; }
.woocommerce a.button, .woocommerce button.button { background: var(--forest); color: var(--white); border-radius: var(--radius); letter-spacing: 1px; text-transform: uppercase; font-size: .76rem; font-family: var(--sans); }
.woocommerce a.button:hover, .woocommerce button.button:hover { background: var(--forest-dark); color: var(--white); }
.woocommerce .price { color: var(--ink); }
.woocommerce-message, .woocommerce-info { border-top-color: var(--gold); }

/* ---------- Page / Post ---------- */
.page-header { background: var(--sand); padding: 4rem 0; text-align: center; }
.page-header h1 { margin: 0; }
.entry-content { max-width: 760px; margin-inline: auto; }

/* ---------- Responsive ---------- */
/* Tablet & below: collapse nav into a hamburger, drop grids to 2 cols */
@media (max-width: 980px) {
  .menu-toggle { display: block; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--cream); border-bottom: 1px solid var(--line);
    display: none; box-shadow: 0 14px 34px rgba(33,32,28,.10);
  }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; gap: 0; padding: .4rem 6%; }
  .nav li { padding: .9rem 0; border-bottom: 1px solid var(--line); }
  .nav li:last-child { border-bottom: 0; }
  .header-inner { padding: 1rem 0; }
  .collections, .editorial, .editorial.reverse, .product-grid, .testi-grid, .journal-grid, .footer-grid { grid-template-columns: 1fr 1fr; }
  .editorial.reverse .editorial-media { order: 0; }
}

/* Phone: single-column story blocks, 2-col products, tighter type & spacing */
@media (max-width: 600px) {
  .container { width: 90%; }
  .section { padding: 3.4rem 0; }
  .sec-head { margin-bottom: 2rem; }
  h1 { font-size: clamp(2.4rem, 11vw, 3.2rem); }
  h2 { font-size: clamp(1.7rem, 8vw, 2.4rem); }

  /* Hero: image first as a cover, copy below, tighter */
  .hero-grid { grid-template-columns: 1fr; min-height: auto; }
  .hero-art { order: -1; min-height: 32vh; }
  .hero-copy { padding: 1.2rem 1.3rem 1.6rem; }
  .hero-copy .lead { font-size: 1.04rem; }
  .hero-cta { gap: .8rem; }
  .hero-cta .btn { flex: 1 1 auto; text-align: center; padding: 1em 1.2em; }
  .trust-row { gap: 1rem 1.4rem; margin-top: 1.2rem; }
  .trust-item { font-size: .72rem; gap: .5rem; }
  .trust-item .ic { width: 28px; height: 28px; }
  .trust-item .ic svg { width: 15px; height: 15px; }

  /* Stack story blocks, keep products at 2-up for a real shop feel */
  .editorial, .testi-grid, .journal-grid, .footer-grid { grid-template-columns: 1fr; }
  .collections { grid-template-columns: 1fr 1fr; }
  .product-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }

  .btn { padding: .95em 1.5em; font-size: .72rem; letter-spacing: 1.5px; }
  .topbar { font-size: .6rem; letter-spacing: 1.2px; padding: .45rem .8rem; }
}
