/*
Theme Name: Bloom Florist
Theme URI: https://bloomflorist.co
Description: Premium Hong Kong florist — warm, editorial, anti-slop
Version: 2.0.0
Author: Hermes
Text Domain: bloomflorist
*/

/* Hallmark · pre-emit critique: P5 H5 E5 S4 R5 V4 */

/* ══════════════════════════════════════════════
   TOKENS — warm botanical luxury
   ══════════════════════════════════════════════ */
:root {
  --color-paper: #FCFAF7;
  --color-paper-warm: #F8F3EC;
  --color-paper-dark: #F0EAE0;

  --color-ink: #1a1a1a;
  --color-ink-2: #3d3833;
  --color-muted: #8c8279;

  /* Deep violet — elegant, distinctive */
  --color-accent: #5B2D8E;
  --color-accent-light: #7B4FB5;
  --color-accent-glow: rgba(91,45,142,0.08);

  --color-rule: #e8e4df;
  --color-rule-strong: #d4cfc8;

  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;

  --header-h: 72px;
  --content-max: 1160px;
  --content-narrow: 680px;
  --content-padding: clamp(1rem, 5vw, 2.5rem);
}

/* ══════════════════════════════════════════════
   RESET
   ══════════════════════════════════════════════ */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{overflow-x:clip;scroll-behavior:smooth;-webkit-font-smoothing:antialiased}
body{
  overflow-x:clip;
  font-family:var(--font-body);
  font-size:1rem;
  line-height:1.7;
  color:var(--color-ink);
  background:var(--color-paper);
}
img{max-width:100%;height:auto;display:block}
a{color:inherit;text-decoration:none}
ul,ol{list-style:none}

/* ══════════════════════════════════════════════
   TYPOGRAPHY
   ══════════════════════════════════════════════ */
h1,h2,h3,h4,h5,h6{
  font-family:var(--font-display);
  font-weight:400;
  font-style:normal;
  line-height:1.15;
  color:var(--color-ink);
  letter-spacing:-0.01em;
}
h1{font-size:clamp(2.5rem,5.5vw,4.5rem);letter-spacing:-0.02em}
h2{font-size:clamp(1.75rem,3.5vw,2.75rem)}
h3{font-size:clamp(1.125rem,2vw,1.5rem)}
h4{font-size:1rem;font-family:var(--font-body);font-weight:600;letter-spacing:0.06em;text-transform:uppercase}
p{margin-bottom:var(--space-sm)}
p:last-child{margin-bottom:0}

/* ══════════════════════════════════════════════
   HEADER
   ══════════════════════════════════════════════ */
.site-header{
  position:fixed;top:0;left:0;right:0;z-index:100;
  height:var(--header-h);
  display:flex;align-items:center;
  padding:0 var(--content-padding);
  transition:background .35s,box-shadow .35s,-webkit-backdrop-filter .35s;
  background:transparent;
}
.site-header.scrolled,
body:not(.is-front-page) .site-header,
body:not(.home) .site-header{
  background:rgba(252,250,247,0.92);
  box-shadow:0 1px 0 var(--color-rule);
  -webkit-backdrop-filter:blur(16px);
  backdrop-filter:blur(16px);
}
.header-inner{
  width:100%;max-width:var(--content-max);margin:0 auto;
  display:flex;align-items:center;justify-content:space-between;
}
.site-branding a{display:flex;align-items:center}
.site-logo{height:44px;width:auto;display:block}

.main-nav{display:flex;gap:2rem;align-items:center}
.main-nav ul{display:flex;gap:2rem;align-items:center;list-style:none;margin:0;padding:0}
.main-nav li{list-style:none;margin:0;padding:0}
.main-nav a{
  font-size:.8125rem;font-weight:500;
  color:var(--color-ink-2);
  letter-spacing:0.04em;text-transform:uppercase;
  transition:color .2s;
}
.main-nav a:hover{color:var(--color-accent)}

.nav-cta{
  display:inline-flex;align-items:center;
  padding:.55rem 1.35rem;
  background:var(--color-accent);
  color:#fff!important;
  border-radius:var(--radius-sm);
  font-weight:600;font-size:.75rem;
  letter-spacing:.06em;text-transform:uppercase;
  transition:background .2s,transform .2s;
}
.nav-cta:hover{background:var(--color-accent-light);transform:translateY(-1px)}

.menu-toggle{display:none;background:none;border:none;cursor:pointer;padding:.25rem;color:var(--color-ink)}

/* ══════════════════════════════════════════════
   HERO — dramatic, warm, editorial
   ══════════════════════════════════════════════ */
.hero{
  position:relative;
  min-height:100vh;
  display:flex;align-items:flex-end;
  overflow:hidden;
  background:var(--color-ink);
}
.hero-image{
  position:absolute;inset:0;
  width:100%;height:100%;
  object-fit:cover;
  object-position:center 40%;
}
.hero-overlay{
  position:absolute;inset:0;
  background:linear-gradient(
    to bottom,
    rgba(0,0,0,0.15) 0%,
    rgba(0,0,0,0.05) 30%,
    rgba(0,0,0,0.35) 70%,
    rgba(0,0,0,0.7) 100%
  );
}
.hero-body{
  position:relative;z-index:2;
  max-width:var(--content-max);
  margin:0 auto;
  padding:0 var(--content-padding) clamp(3rem,8vh,6rem);
  width:100%;
}
.hero-body h1{
  color:#fff;
  font-size:clamp(2.25rem,5vw,4rem);
  max-width:620px;
  margin-bottom:var(--space-md);
  text-shadow:0 2px 8px rgba(0,0,0,0.3);
}
.hero-body p{
  color:rgba(255,255,255,0.85);
  font-size:clamp(1rem,1.5vw,1.15rem);
  max-width:480px;
  margin-bottom:var(--space-lg);
}
.hero-cta{
  display:inline-flex;align-items:center;gap:.5rem;
  padding:.85rem 2rem;
  background:var(--color-accent);
  color:#fff;
  border-radius:var(--radius-sm);
  font-weight:600;font-size:.875rem;
  letter-spacing:.04em;text-transform:uppercase;
  transition:background .25s,transform .25s;
}
.hero-cta:hover{background:var(--color-accent-light);transform:translateY(-2px)}

/* ══════════════════════════════════════════════
   SECTIONS
   ══════════════════════════════════════════════ */
.section{padding:var(--space-2xl) var(--content-padding)}
.section-alt{background:var(--color-paper-warm)}

.section-header{text-align:center;margin-bottom:var(--space-xl)}
.section-label{
  display:inline-block;
  font-size:.6875rem;font-weight:700;
  letter-spacing:.12em;text-transform:uppercase;
  color:var(--color-accent-light);
  margin-bottom:var(--space-sm);
}
.section-header h2{margin-bottom:var(--space-sm)}
.section-header p{color:var(--color-muted);max-width:480px;margin:0 auto;font-size:.9375rem}
.section-divider{
  width:40px;height:2px;
  background:var(--color-accent);
  margin:.75rem auto;
}

/* ══════════════════════════════════════════════
   PRODUCT GRID — 3-col, elevated cards
   ══════════════════════════════════════════════ */
.product-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:var(--space-lg);
  max-width:var(--content-max);
  margin:0 auto;
}
.product-card{
  background:#fff;
  border:1px solid var(--color-rule);
  border-radius:var(--radius-md);
  overflow:hidden;
  transition:box-shadow .35s,transform .35s;
}
.product-card:hover{
  box-shadow:0 8px 40px rgba(0,0,0,.08);
  transform:translateY(-4px);
}
.product-card-image{
  aspect-ratio:4/5;
  overflow:hidden;
  background:var(--color-paper-warm);
}
.product-card-image img{
  width:100%;height:100%;object-fit:cover;
  transition:transform .5s;
}
.product-card:hover .product-card-image img{transform:scale(1.06)}
.product-card-body{
  padding:var(--space-md);
  text-align:center;
}
.product-card-body h3{
  font-size:1.0625rem;font-weight:400;
  margin-bottom:.2rem;
}
.product-card-price{
  font-size:.875rem;color:var(--color-muted);font-weight:500;
}
.product-card-placeholder{
  aspect-ratio:4/5;
  background:var(--color-paper-warm);
  display:flex;align-items:center;justify-content:center;
  color:var(--color-rule-strong);
}

/* ══════════════════════════════════════════════
   ARTICLES FEATURE — magazine editorial layout
   ══════════════════════════════════════════════ */
.articles-feature{
  display:grid;
  grid-template-columns:1.2fr 1fr;
  gap:var(--space-lg);
  max-width:var(--content-max);
  margin:0 auto;
}
.article-lead{
  border-radius:var(--radius-md);
  overflow:hidden;
  transition:box-shadow .35s,transform .35s;
}
.article-lead:hover{box-shadow:0 12px 48px rgba(0,0,0,.1);transform:translateY(-3px)}
.article-lead-image{
  position:relative;
  aspect-ratio:16/10;
  overflow:hidden;
  background:var(--color-paper-dark);
}
.article-lead-image img{
  width:100%;height:100%;object-fit:cover;
  transition:transform .6s;
}
.article-lead:hover .article-lead-image img{transform:scale(1.04)}
.article-lead-overlay{
  position:absolute;inset:0;
  background:linear-gradient(to top,rgba(0,0,0,0.7) 0%,rgba(0,0,0,0.1) 50%,rgba(0,0,0,0) 100%);
}
.article-lead-text{
  position:absolute;bottom:0;left:0;right:0;
  padding:var(--space-lg);
  color:#fff;
}
.article-lead-date{
  display:block;
  font-size:.6875rem;font-weight:600;
  letter-spacing:.08em;text-transform:uppercase;
  color:rgba(255,255,255,.7);
  margin-bottom:.5rem;
}
.article-lead-text h3{
  font-size:clamp(1.125rem,2vw,1.5rem);
  font-weight:400;line-height:1.3;
  color:#fff;
}

.articles-side{
  display:flex;flex-direction:column;
  gap:var(--space-md);
}
.article-side-card{
  display:flex;gap:var(--space-md);
  background:#fff;
  border:1px solid var(--color-rule);
  border-radius:var(--radius-md);
  overflow:hidden;
  transition:box-shadow .3s,transform .3s;
}
.article-side-card:hover{
  box-shadow:0 4px 20px rgba(0,0,0,.06);
  transform:translateX(3px);
}
.article-side-image{
  flex-shrink:0;
  width:100px;height:100px;
  overflow:hidden;
  background:var(--color-paper-warm);
}
.article-side-image img{
  width:100%;height:100%;object-fit:cover;
  transition:transform .4s;
}
.article-side-card:hover .article-side-image img{transform:scale(1.08)}
.article-side-text{
  padding:var(--space-sm) var(--space-sm) var(--space-sm) 0;
  display:flex;flex-direction:column;
  justify-content:center;
  min-width:0;
}
.article-side-date{
  font-size:.6875rem;font-weight:600;
  letter-spacing:.06em;text-transform:uppercase;
  color:var(--color-accent-light);
  margin-bottom:.2rem;
}
.article-side-text h4{
  font-family:var(--font-body);
  font-size:.875rem;font-weight:500;text-transform:none;letter-spacing:0;
  line-height:1.35;
  color:var(--color-ink);
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;
  overflow:hidden;
}

/* ══════════════════════════════════════════════
   JOURNAL GRID — used on /journal/ page
   ══════════════════════════════════════════════ */
.journal-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:var(--space-lg);
  max-width:var(--content-max);
  margin:0 auto;
}
.journal-card{
  background:#fff;
  border:1px solid var(--color-rule);
  border-radius:var(--radius-md);
  overflow:hidden;
  transition:box-shadow .35s;
}
.journal-card:hover{box-shadow:0 8px 40px rgba(0,0,0,.06)}
.journal-card-image{
  aspect-ratio:16/10;
  overflow:hidden;
  background:var(--color-paper-warm);
}
.journal-card-image img{width:100%;height:100%;object-fit:cover;transition:transform .5s}
.journal-card:hover .journal-card-image img{transform:scale(1.04)}
.journal-card-body{padding:var(--space-md)}
.journal-card-body h3{font-size:1.0625rem;font-weight:400;line-height:1.35;margin-bottom:.5rem}
.journal-card-meta{font-size:.75rem;color:var(--color-muted);padding-top:var(--space-sm);border-top:1px solid var(--color-rule)}

/* ══════════════════════════════════════════════
   ABOUT
   ══════════════════════════════════════════════ */
.about-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:var(--space-2xl);
  align-items:center;
  max-width:var(--content-max);
  margin:0 auto;
}
.about-image{
  aspect-ratio:4/5;
  border-radius:var(--radius-md);
  overflow:hidden;
  background:var(--color-paper-dark);
}
.about-image img{width:100%;height:100%;object-fit:cover}
.about-content .section-label{text-align:left}
.about-content .section-divider{margin:.75rem 0 1.5rem}
.about-content h2{margin-bottom:var(--space-md)}
.about-content p{color:var(--color-ink-2);font-size:1.0625rem}

/* ══════════════════════════════════════════════
   FOOTER — SOTA: generous, editorial, botanical
   ══════════════════════════════════════════════ */
.site-footer{
  background:var(--color-ink);
  color:rgba(255,255,255,.6);
  position:relative;
}
.footer-accent-bar{
  height:4px;
  background:linear-gradient(90deg,var(--color-accent),var(--color-accent-light),var(--color-accent));
}
.footer-grid{
  display:grid;
  grid-template-columns:1.5fr 1fr 1fr 1.2fr;
  gap:var(--space-xl);
  max-width:var(--content-max);
  margin:0 auto;
  padding:var(--space-2xl) var(--content-padding) var(--space-xl);
}
.footer-col--brand{}

.footer-logo{margin-bottom:var(--space-md)}
.footer-logo-img{height:40px;width:auto;filter:brightness(0)invert(1);opacity:.85}
.footer-tagline{
  font-size:.8125rem;line-height:1.7;
  color:rgba(255,255,255,.45);
  margin-bottom:var(--space-md);
  max-width:320px;
}
.footer-social{display:flex;gap:.75rem}
.footer-social a{
  display:flex;align-items:center;justify-content:center;
  width:36px;height:36px;
  border-radius:50%;
  border:1px solid rgba(255,255,255,.1);
  color:rgba(255,255,255,.4);
  transition:all .25s;
}
.footer-social a:hover{
  border-color:var(--color-accent-light);
  color:var(--color-accent-light);
  background:rgba(255,255,255,.05);
}

.footer-col h4{
  font-family:var(--font-body);
  font-size:.6875rem;font-weight:700;
  letter-spacing:.1em;text-transform:uppercase;
  color:rgba(255,255,255,.35);
  margin-bottom:var(--space-md);
}
.footer-col ul{display:flex;flex-direction:column;gap:.4rem}
.footer-col ul li a{
  font-size:.8125rem;color:rgba(255,255,255,.5);
  transition:color .2s;
}
.footer-col ul li a:hover{color:#fff}

.footer-contact li{
  display:flex;gap:.5rem;align-items:flex-start;
  font-size:.8125rem;color:rgba(255,255,255,.5);
  line-height:1.6;
}
.footer-contact li i{flex-shrink:0;margin-top:2px;color:rgba(255,255,255,.35)}

.footer-bottom{
  border-top:1px solid rgba(255,255,255,.06);
  padding:var(--space-md) var(--content-padding);
}
.footer-bottom-inner{
  max-width:var(--content-max);margin:0 auto;
  display:flex;justify-content:space-between;
  align-items:center;
  font-size:.6875rem;color:rgba(255,255,255,.3);
}
.footer-bottom-links{display:flex;gap:.5rem;align-items:center}
.footer-bottom-links a{color:rgba(255,255,255,.35);transition:color .2s}
.footer-bottom-links a:hover{color:rgba(255,255,255,.6)}
.footer-dot{color:rgba(255,255,255,.15)}

/* ══════════════════════════════════════════════
   FAQ ACCORDION — animated, editorial
   ══════════════════════════════════════════════ */
.faq-grid{
  max-width:var(--content-narrow);
  margin:0 auto;
  display:flex;flex-direction:column;
  gap:1px;
  background:var(--color-rule);
  border:1px solid var(--color-rule);
  border-radius:var(--radius-md);
  overflow:hidden;
}
.faq-item{background:#fff}
.faq-question{
  display:flex;justify-content:space-between;align-items:center;
  padding:var(--space-md);
  cursor:pointer;
  font-family:var(--font-body);font-size:.9375rem;font-weight:500;
  color:var(--color-ink);
  list-style:none;
  user-select:none;
}
.faq-question::-webkit-details-marker{display:none}
.faq-question::marker{display:none;content:""}
.faq-chevron{
  flex-shrink:0;width:18px;height:18px;
  color:var(--color-muted);
  transition:transform .3s;
}
.faq-item[open] .faq-chevron{transform:rotate(180deg)}
.faq-answer{
  padding:0 var(--space-md) var(--space-md);
  font-size:.875rem;line-height:1.7;
  color:var(--color-ink-2);
}
.faq-answer p{margin-bottom:0}

/* ══════════════════════════════════════════════
   FEATURES GRID — SEO / Why Choose Us
   ══════════════════════════════════════════════ */
.features-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:var(--space-lg);
  max-width:var(--content-max);
  margin:0 auto;
}
.feature-card{
  background:#fff;
  border:1px solid var(--color-rule);
  border-radius:var(--radius-md);
  padding:var(--space-lg);
  transition:box-shadow .35s,transform .35s;
}
.feature-card:hover{
  box-shadow:0 8px 40px rgba(0,0,0,.06);
  transform:translateY(-2px);
}
.feature-icon{
  width:52px;height:52px;
  display:flex;align-items:center;justify-content:center;
  border-radius:var(--radius-sm);
  background:var(--color-accent-glow);
  color:var(--color-accent);
  margin-bottom:var(--space-md);
}
.feature-card h3{
  font-size:1rem;font-weight:400;
  margin-bottom:.4rem;
}
.feature-card p{
  font-size:.8125rem;color:var(--color-muted);
  line-height:1.6;
  margin-bottom:0;
}

/* ══════════════════════════════════════════════
   SINGLE POST
   ══════════════════════════════════════════════ */
.post-hero{
  padding:calc(var(--header-h) + var(--space-2xl)) var(--content-padding) var(--space-xl);
  text-align:center;
  max-width:var(--content-narrow);
  margin:0 auto;
}
.post-hero h1{margin-bottom:var(--space-md)}
.post-meta{font-size:.8125rem;color:var(--color-muted)}
.post-content{
  max-width:var(--content-narrow);margin:0 auto;
  padding:0 var(--content-padding) var(--space-2xl);
  font-size:1.0625rem;line-height:1.85;
}
.post-content h2{margin:var(--space-xl) 0 var(--space-md)}
.post-content h3{margin:var(--space-lg) 0 var(--space-sm)}
.post-content p{margin-bottom:var(--space-md)}
.post-content img{border-radius:var(--radius-md);margin:var(--space-lg) 0}

/* ══════════════════════════════════════════════
   WOOCOMMERCE
   ══════════════════════════════════════════════ */
.woocommerce-page .site-main{
  max-width:var(--content-max);
  margin:calc(var(--header-h) + var(--space-xl)) auto var(--space-2xl);
  padding:0 var(--content-padding);
}
/* WC product loop grid */
.woocommerce-page .site-main{padding-top:var(--space-md)}
.woocommerce ul.products{
  display:grid!important;
  grid-template-columns:repeat(3,1fr);
  gap:var(--space-lg);
  margin:0!important;
  padding:0!important;
  list-style:none!important;
}
.woocommerce ul.products::before,
.woocommerce ul.products::after{display:none!important}
.woocommerce ul.products li.product{
  float:none!important;width:100%!important;margin:0!important;padding:0!important;
  background:#fff;
  border:1px solid var(--color-rule);
  border-radius:var(--radius-md);
  overflow:hidden;
  transition:box-shadow .35s,transform .35s;
  list-style:none!important;
}
.woocommerce ul.products li.product:hover{
  box-shadow:0 8px 40px rgba(0,0,0,.08);
  transform:translateY(-4px);
}
.woocommerce ul.products li.product a img{
  aspect-ratio:4/5;object-fit:cover;width:100%;margin:0;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title{
  font-family:var(--font-display)!important;
  font-size:1.0625rem!important;font-weight:400!important;
  padding:var(--space-md) var(--space-md) 0!important;
  color:var(--color-ink)!important;
}
.woocommerce ul.products li.product .price{
  color:var(--color-muted)!important;font-size:.875rem!important;font-weight:500!important;
  padding:0 var(--space-md) var(--space-md)!important;
  margin-bottom:0!important;
}
.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product .added_to_cart,
.woocommerce ul.products li.product .add_to_cart_button{display:none!important}
/* Hide variant notice text only */
.woocommerce ul.products li.product > .woocommerce-loop-product__title + p,
.woocommerce ul.products li.product > p:not(.price),
.woocommerce ul.products li.product > script + p,
.woocommerce ul.products li.product > a + p,
.woocommerce ul.products li.product > a + div,
.woocommerce ul.products li.product > a + span{display:none!important}
/* Hide any text after the link */
.woocommerce ul.products li.product{font-size:0}
.woocommerce ul.products li.product a,
.woocommerce ul.products li.product a *,
.woocommerce ul.products li.product .price,
.woocommerce ul.products li.product h2,
.woocommerce ul.products li.product h3,
.woocommerce ul.products li.product img{font-size:initial}

/* WC single product */
.single-product .product{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:var(--space-xl);
  align-items:start;
}
.single-product .product .woocommerce-product-gallery{width:100%!important;float:none!important}
.single-product .product .summary{width:100%!important;float:none!important}
.single-product .product_title{
  font-family:var(--font-display);
  font-size:clamp(1.75rem,3vw,2.5rem);
  font-weight:400;
}
.single-product .price{font-size:1.25rem;color:var(--color-ink);font-weight:500}

/* ══════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════ */
@media(max-width:900px){
  .product-grid,.journal-grid,.woocommerce ul.products{grid-template-columns:repeat(2,1fr)}
  .features-grid{grid-template-columns:repeat(2,1fr)}
  .articles-feature{grid-template-columns:1fr}
  .articles-side{display:grid;grid-template-columns:repeat(3,1fr)}
  .article-side-card{flex-direction:column}
  .article-side-image{width:100%;height:auto;aspect-ratio:16/10}
  .footer-grid{grid-template-columns:1fr 1fr}
  .about-grid{grid-template-columns:1fr;gap:var(--space-xl)}
  .single-product .product{grid-template-columns:1fr}
  .footer-bottom-inner{flex-direction:column;gap:.5rem;text-align:center}
}
@media(max-width:640px){
  :root{--space-2xl:3.5rem;--space-xl:2.5rem}
  .product-grid,.journal-grid,.woocommerce ul.products{grid-template-columns:1fr}
  .features-grid{grid-template-columns:1fr}
  .articles-side{grid-template-columns:1fr}
  .article-side-card{flex-direction:row}
  .article-side-image{width:80px;height:80px;aspect-ratio:auto}
  .footer-grid{grid-template-columns:1fr;gap:var(--space-lg)}
  .hero-body h1{font-size:clamp(1.75rem,7vw,2.5rem)}
  .hero{min-height:85vh}
  .main-nav{display:none}
  .menu-toggle{display:block}
  .main-nav.mobile-open{
    display:flex;flex-direction:column;
    position:absolute;top:var(--header-h);left:0;right:0;
    background:rgba(252,250,247,.98);
    padding:var(--space-md);
    border-bottom:1px solid var(--color-rule);
    box-shadow:0 8px 32px rgba(0,0,0,.08);
  }
}
