/*
Theme Name: Bottles in Bloom
Theme URI: https://bottlesinbloomstudio.com
Author: Bottles in Bloom Studio
Author URI: https://bottlesinbloomstudio.com
Description: An elegant black-and-white floral studio theme for Bottles in Bloom — custom flower arrangements set atop full bottles of wine, olive oil and spirits. Includes a home page with hero, about, gallery, testimonials, and Contact Form 7 hooks for the order form and customer kind-words submissions.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bottles-in-bloom
Tags: one-column, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, blog, portfolio
*/

/* ============ Tokens ============ */
:root {
  --bg: #fdfdfd;
  --fg: #1a1a1a;
  --muted: #6b6b6b;
  --border: #e6e3de;
  --cream: #f7f4ef;
  --ribbon: #0a0a0a;
  --tracking-luxe: 0.28em;
  --font-display: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --font-script: "Great Vibes", "Allura", cursive;
  --font-sans: "Inter", "Helvetica Neue", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.01em;
  margin: 0;
}

p { margin: 0; }

.eyebrow {
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: var(--tracking-luxe);
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--muted);
}
.script { font-family: var(--font-script); font-weight: 400; }

.hairline {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--fg), transparent);
  opacity: 0.35;
  border: 0;
  margin: 0;
}

.btn-ink, .btn-outline-ink {
  display: inline-block;
  padding: 0.95rem 2.25rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  font-weight: 500;
  border: 1px solid var(--fg);
  transition: all 0.3s ease;
  cursor: pointer;
}
.btn-ink { background: var(--fg); color: var(--bg); }
.btn-ink:hover { background: transparent; color: var(--fg); }
.btn-outline-ink { background: transparent; color: var(--fg); }
.btn-outline-ink:hover { background: var(--fg); color: var(--bg); }

/* ============ Layout ============ */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.container-narrow { max-width: 880px; margin: 0 auto; padding: 0 1.5rem; }
.container-form { max-width: 760px; margin: 0 auto; padding: 0 1.5rem; }

/* ============ Nav ============ */
.site-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 30;
  padding: 1.75rem 1.5rem;
}
.site-header .nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
}
.site-header nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: 2.5rem;
}
.site-header nav a {
  text-transform: uppercase;
  letter-spacing: var(--tracking-luxe);
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--fg);
  transition: opacity 0.2s;
}
.site-header nav a:hover { opacity: 0.6; }
.site-header .nav-cta {
  padding: 0.6rem 1.25rem;
  font-size: 0.65rem !important;
}
@media (max-width: 768px) {
  .site-header nav ul, .site-header .nav-cta { display: none; }
}

/* ============ Hero ============ */
.hero {
  min-height: 100vh;
  padding: 8rem 1.5rem 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero .logo-wrap { width: 100%; max-width: 900px; display: flex; justify-content: center; }
.hero .logo-wrap img { width: 100%; max-width: 760px; }

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  max-width: 1200px;
  width: 100%;
  margin-top: 3rem;
}
@media (min-width: 768px) {
  .hero-grid { grid-template-columns: 1fr 1fr; gap: 4rem; margin-top: 5rem; }
}
.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  margin-top: 1.5rem;
  line-height: 1.05;
}
.hero h1 .script { font-size: clamp(3.5rem, 9vw, 7rem); display: block; }
.hero p.lead {
  font-size: 1.1rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 28rem;
  margin: 0;
}
.hero .actions { margin-top: 2.5rem; display: flex; flex-wrap: wrap; gap: 1rem; }
.hero .bottle-img { max-width: 28rem; margin: 0 auto; }
.hero-text { order: 2; }
.hero-image { order: 1; }
@media (min-width: 768px) {
  .hero-text { order: 1; } .hero-image { order: 2; }
}

/* ============ Occasions strip ============ */
.occasions {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 2.5rem 1.5rem;
}
.occasions .row {
  max-width: 1100px; margin: 0 auto;
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 1rem 3rem;
}
.occasions .sep { opacity: 0.3; }

/* ============ Sections ============ */
section.section {
  padding: 7rem 1.5rem;
}
section.section.dark {
  background: var(--fg);
  color: var(--bg);
}
section.section.cream { background: var(--cream); }

.section-head { text-align: center; margin-bottom: 4rem; }
.section-head h2 {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  margin-top: 0.75rem;
}
.section-head h2 .script { font-size: clamp(2.75rem, 6vw, 4.5rem); }
.section-head .hairline { width: 6rem; margin: 2rem auto; }
.section-head p {
  font-size: 1.1rem;
  color: var(--muted);
  line-height: 1.8;
  max-width: 42rem;
  margin: 0 auto;
}
section.section.dark .section-head p { color: #c8c8c8; }
section.section.dark .eyebrow { color: #bfbfbf; }

/* ============ Gallery ============ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
@media (min-width: 768px) { .gallery-grid { grid-template-columns: repeat(4, 1fr); } }
.gallery-item figure { margin: 0; }
.gallery-item .img-wrap {
  aspect-ratio: 3/4;
  background: #fff;
  overflow: hidden;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
}
.gallery-item .img-wrap img {
  width: 100%; height: 100%; object-fit: contain;
  transition: transform 0.7s ease;
}
.gallery-item:hover .img-wrap img { transform: scale(1.05); }
.gallery-item figcaption { text-align: center; margin-top: 1rem; }
.gallery-placeholder { text-align: center; padding: 0 1.5rem; }

/* ============ Testimonials ============ */
.t-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
@media (min-width: 768px) { .t-grid { grid-template-columns: repeat(3, 1fr); } }
.t-card { text-align: center; }
.t-card .stars { letter-spacing: 0.4em; margin-bottom: 1.25rem; }
.t-card blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.7;
  margin: 0;
}
.t-card .who { margin-top: 1.5rem; }
.t-card .who .hairline { width: 3rem; margin: 0 auto 0.75rem; }

.kind-words {
  margin-top: 6rem;
  padding-top: 4rem;
  border-top: 1px solid var(--border);
}

/* ============ Forms (Contact Form 7) ============ */
.form-card {
  background: var(--bg);
  color: var(--fg);
  padding: 3rem 2rem;
}
@media (min-width: 768px) { .form-card { padding: 3.5rem; } }

.wpcf7 label {
  display: block;
  text-transform: uppercase;
  letter-spacing: var(--tracking-luxe);
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 0.25rem;
}
.wpcf7-form-control-wrap { display: block; }
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="date"],
.wpcf7 input[type="number"],
.wpcf7 select,
.wpcf7 textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 0;
  font-size: 0.95rem;
  color: var(--fg);
  outline: none;
  transition: border-color 0.2s;
  font-family: var(--font-sans);
  border-radius: 0;
}
.wpcf7 input:focus,
.wpcf7 select:focus,
.wpcf7 textarea:focus {
  border-bottom-color: var(--fg);
}
.wpcf7 textarea { min-height: 110px; resize: vertical; }
.wpcf7 select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M1 1l4 4 4-4' stroke='%23000' fill='none'/></svg>");
  background-repeat: no-repeat;
  background-position: right 0.25rem center;
  padding-right: 1.5rem;
}
.wpcf7 .field-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem 2rem;
}
@media (min-width: 640px) { .wpcf7 .field-grid { grid-template-columns: 1fr 1fr; } }
.wpcf7 .field-grid .full { grid-column: 1 / -1; }
.wpcf7 .submit-row { text-align: center; padding-top: 1.5rem; }
.wpcf7 input[type="submit"] {
  background: var(--fg);
  color: var(--bg);
  padding: 0.95rem 2.25rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  font-weight: 500;
  border: 1px solid var(--fg);
  transition: all 0.3s ease;
  cursor: pointer;
  font-family: var(--font-sans);
  border-radius: 0;
}
.wpcf7 input[type="submit"]:hover { background: transparent; color: var(--fg); }
.wpcf7 .alcohol-note { font-size: 0.75rem; color: var(--muted); margin-top: 0.4rem; }
.wpcf7-response-output {
  border: 1px solid var(--border) !important;
  padding: 0.75rem 1rem !important;
  margin: 1.5rem 0 0 !important;
  font-size: 0.85rem;
}

/* dark form card */
.section.dark .form-wrap {
  background: var(--bg);
  color: var(--fg);
  padding: 2.5rem;
}
@media (min-width: 768px) { .section.dark .form-wrap { padding: 3.5rem; } }

/* ============ Footer ============ */
.site-footer {
  background: var(--fg);
  color: var(--bg);
  padding: 4rem 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center;
}
.site-footer .brand { font-family: var(--font-script); font-size: 3rem; color: #fff; }
.site-footer .tag { color: #b8b8b8; margin-top: 0.25rem; }
.site-footer nav { margin-top: 2rem; }
.site-footer nav ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem 2.5rem;
}
.site-footer nav a {
  text-transform: uppercase;
  letter-spacing: var(--tracking-luxe);
  font-size: 0.7rem;
  color: #cfcfcf;
}
.site-footer .legal { color: #8a8a8a; font-size: 0.75rem; margin-top: 2.5rem; }

/* ---- Native forms ---- */
.bib-form { display: block; }
.bib-form-narrow { max-width: 640px; margin: 0 auto; }
.bib-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem 2rem; }
@media (min-width: 720px) { .bib-grid { grid-template-columns: 1fr 1fr; } }
.bib-grid > div { display: block; margin-bottom: 0.25rem; }
.bib-col-2 { grid-column: 1 / -1; }
.bib-form input[type=text],
.bib-form input[type=email],
.bib-form input[type=tel],
.bib-form input[type=date],
.bib-form input:not([type]),
.bib-form select,
.bib-form textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(0,0,0,0.25);
  padding: 0.5rem 0;
  font: inherit;
  color: inherit;
  border-radius: 0;
  outline: none;
}
.bib-form textarea { min-height: 6rem; resize: vertical; }
.bib-form label.eyebrow { display:block; margin-bottom: 0.35rem; }
.bib-help { font-size: 0.75rem; opacity: 0.7; margin-top: 0.35rem; }
.bib-submit { padding-top: 1.5rem; text-align: center; }
.bib-hp { position: absolute; left: -10000px; height: 0; width: 0; overflow: hidden; }
.bib-alert { padding: 0.9rem 1.1rem; margin-bottom: 1.5rem; border: 1px solid; font-size: 0.95rem; }
.bib-alert-ok { border-color: #2c5e2c; color: #2c5e2c; background: #f1f7f1; }
.bib-alert-err { border-color: #8a2a2a; color: #8a2a2a; background: #fbf1f1; }

/* Star rating (CSS-only, click-to-set) */
.bib-stars { display: inline-flex; flex-direction: row-reverse; font-size: 1.75rem; gap: 0.15rem; }
.bib-stars input { position: absolute; opacity: 0; pointer-events: none; }
.bib-stars label { cursor: pointer; color: rgba(0,0,0,0.2); transition: color 0.15s; }
.bib-stars label:hover,
.bib-stars label:hover ~ label,
.bib-stars input:checked ~ label { color: #1a1a1a; }

/* Dark section overrides */
.section.dark .bib-form input,
.section.dark .bib-form select,
.section.dark .bib-form textarea {
  border-bottom-color: rgba(0,0,0,0.25);
}
.form-card .bib-form,
.form-wrap .bib-form { color: #1a1a1a; }
