/*
Theme Name: Flor De Sol
Theme URI: https://flordesol.flowers
Author: Flor De Sol
Author URI: https://flordesol.flowers
Description: A simple, genuine theme for Flor De Sol cut flower farm in Bellingham, WA.
Version: 1.8
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: flordesol
*/

/* =============================
   ROOT & RESET
============================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --gold: #B5763A;
  --gold-dark: #9E622E;
  --gold-light: #F5EAD8;
  --gold-text: #7A4A1A;
  --text: #1a1a18;
  --text-secondary: #5a5a55;
  --text-tertiary: #6f6f68;
  --border: rgba(0,0,0,0.12);
  --bg: #ffffff;
  --bg-secondary: #f8f7f4;
  --radius: 8px;
  --radius-lg: 12px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --text: #f0ede8;
    --text-secondary: #aaa89f;
    --text-tertiary: #8a8a82;
    --border: rgba(255,255,255,0.12);
    --bg: #1c1b18;
    --bg-secondary: #252420;
    --gold-dark: #d69a5c;   /* #9E622E is too dim on the dark ground */
    --gold-light: #3a2910;
    --gold-text: #e8a86a;
  }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.7;
}

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

a:focus-visible, button:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--gold-dark); outline-offset: 2px;
}

.skip-link:focus {
  position: fixed; top: 8px; left: 8px; width: auto; height: auto;
  clip: auto; background: var(--bg); color: var(--text);
  padding: 8px 16px; border-radius: var(--radius);
  border: 1px solid var(--border); z-index: 200; text-decoration: none;
}

/* =============================
   LAYOUT
============================= */
.site {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* =============================
   NAV
============================= */
.site-header {
  border-bottom: 1px solid var(--border);
  margin-bottom: 4rem;
}

.site-header .inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0 1.25rem;
  max-width: 900px;
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.site-logo {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--text);
  display: inline-flex;
  flex-direction: column;
  line-height: 1.2;
}
.site-logo .logo-name span { color: var(--gold); }
.site-logo .logo-sub {
  font-size: 11px;
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0.05em;
  color: var(--text-tertiary);
  margin-top: 2px;
}

.main-nav { display: flex; flex-wrap: wrap; gap: 4px 8px; justify-content: flex-end; align-items: center; }
.main-nav a {
  font-size: 14px;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 8px 10px;
  border-radius: var(--radius);
  transition: color 0.15s, background 0.15s;
}
.main-nav a:hover { background: var(--bg-secondary); color: var(--text); }

@media (max-width: 500px) {
  .main-nav a { padding: 8px 7px; font-size: 13px; }
}

/* =============================
   HERO
============================= */
.hero { margin-bottom: 4rem; }
.hero-eyebrow {
  font-size: 13px;
  color: var(--gold-dark);   /* #B5763A is 3.7:1 on white; too low for small text */
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.hero h1 {
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 500;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  max-width: 15ch;
}
.hero p {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 540px;
  margin-bottom: 2rem;
}
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* =============================
   BUTTONS
============================= */
.btn-primary {
  background: var(--gold); color: #fff; border: none;
  border-radius: var(--radius); padding: 11px 24px;
  font-size: 15px; font-weight: 500; cursor: pointer;
  text-decoration: none; display: inline-block;
  transition: background 0.15s;
}
.btn-primary:hover { background: var(--gold-dark); color: #fff; }
.btn-primary:active, .submit-btn:active { transform: translateY(1px); }

.btn-secondary {
  background: transparent; color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius); padding: 11px 24px;
  font-size: 15px; font-weight: 500; cursor: pointer;
  text-decoration: none; display: inline-block;
  transition: background 0.15s;
}
.btn-secondary:hover { background: var(--bg-secondary); }

/* =============================
   SECTIONS
============================= */
.section-wrap { margin-bottom: 4rem; }
.section-label {
  font-size: 13px;
  color: var(--gold-dark);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.section-title {
  font-size: 26px;
  font-weight: 500;
  margin-bottom: 0.75rem;
  line-height: 1.25;
}
.section-body {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 580px;
}

/* =============================
   AUDIENCE CARDS
============================= */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 1.5rem;
}
.audience-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}
.audience-card .aud-icon {
  font-size: 24px;
  color: var(--gold);
  margin-bottom: 0.75rem;
  display: block;
}
.audience-card h3 { font-size: 16px; font-weight: 500; margin-bottom: 8px; }
.audience-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }
.tag {
  display: inline-block;
  margin-top: 12px;
  font-size: 12px;
  padding: 4px 12px;
  border-radius: var(--radius);
  background: var(--gold-light);
  color: var(--gold-text);
  font-weight: 500;
}

/* =============================
   AVAILABILITY
============================= */
.avail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 1.25rem;
}
.month-badge {
  font-size: 13px;
  font-weight: 500;
  padding: 5px 14px;
  background: var(--gold-light);
  color: var(--gold-text);
  border-radius: var(--radius);
}
.bloom-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}
.bloom-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
}
.bloom-icon { font-size: 22px; color: var(--gold); margin-bottom: 8px; display: block; }
.bloom-name { font-size: 15px; font-weight: 500; margin-bottom: 4px; }
.bloom-note { font-size: 13px; color: var(--text-secondary); line-height: 1.5; }

/* =============================
   CONTACT FORM
============================= */
.order-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-top: 1.5rem;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 480px) { .field-row { grid-template-columns: 1fr; } }
.field-group { margin-bottom: 14px; }
.field-group label {
  font-size: 13px;
  color: var(--text-secondary);
  display: block;
  margin-bottom: 5px;
}
.field-group input,
.field-group select,
.field-group textarea,
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 select,
.wpcf7 textarea {
  width: 100%;
  font-size: 14px;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-secondary);
  color: var(--text);
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s;
}
.field-group input:focus,
.field-group select:focus,
.field-group textarea:focus { border-color: var(--gold); }
.field-group textarea { resize: vertical; }

.submit-btn,
.wpcf7 input[type="submit"] {
  background: var(--gold);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  width: 100%;
  margin-top: 6px;
  font-family: inherit;
  transition: background 0.15s;
}
.submit-btn:hover,
.wpcf7 input[type="submit"]:hover { background: var(--gold-dark); }

/* =============================
   CONTACT INFO
============================= */
.contact-row { display: flex; gap: 1.5rem; flex-wrap: wrap; margin-top: 1.5rem; }
.contact-item {
  font-size: 14px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}
.contact-item i { font-size: 17px; color: var(--gold); }
.contact-item a { color: var(--text-secondary); text-decoration: none; }
.contact-item a:hover { color: var(--text); text-decoration: underline; }

/* =============================
   FOOTER
============================= */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0 1rem;
  font-size: 13px;
  color: var(--text-tertiary);
  margin-top: 1rem;
}
.site-footer .inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* =============================
   WORDPRESS DEFAULTS
============================= */
.wp-block-image { margin: 1.5rem 0; }
.aligncenter { text-align: center; margin-left: auto; margin-right: auto; }
.screen-reader-text {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0,0,0,0);
}

.main-nav .nav-florist {
  color: var(--gold-text);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 5px 12px;
}
.main-nav .nav-florist:hover { background: var(--gold-light); }

/* =============================
   FRESH FROM THE FIELD
============================= */
.field-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.75rem;
}
.field-card {
  display: block;
  text-decoration: none;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-secondary);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.field-card:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,0.08); }
.field-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.field-card-body { padding: 0.5rem 0.65rem 0.6rem; }
.field-card-title {
  font-size: 13px; font-weight: 500; line-height: 1.3;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.field-card-date { font-size: 11px; color: var(--text-tertiary); margin-top: 1px; }
@media (max-width: 480px) {
  .field-card-body { padding: 0.4rem 0.5rem 0.45rem; }
  .field-card-date { display: none; }
}

.field-pager {
  display: flex; align-items: center; justify-content: center;
  gap: 1rem; margin-top: 1.25rem;
}
.pager-btn {
  font-size: 13px; text-decoration: none; color: var(--gold-text);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 10px 16px; background: var(--bg);
}
.pager-btn:hover { background: var(--gold-light); }
.pager-btn.is-disabled { color: var(--text-tertiary); pointer-events: none; opacity: 0.55; background: transparent; }
.pager-status { font-size: 13px; color: var(--text-secondary); }

/* lightbox styles live inline in front-page.php (kept there so cached
   theme CSS can't break it); no copy here to avoid the two drifting */

/* contact form notices */
.notice-ok { text-align: center; padding: 2rem 1rem; color: #3B6D11; font-size: 16px; }
.notice-ok i { font-size: 36px; display: block; margin-bottom: 10px; }
.notice-err { color: #a62963; font-size: 14px; margin-bottom: 12px; }
@media (prefers-color-scheme: dark) {
  .notice-ok { color: #8fce58; }
  .notice-err { color: #e77aa8; }
}

.post-hero-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  margin: 1rem 0 1.5rem;
}
@media (prefers-reduced-motion: reduce) {
  .field-card { transition: none; }
  .field-card:hover { transform: none; }
}

/* privacy page */
.privacy-body h2 {
  font-size: 17px; margin: 1.6rem 0 0.4rem; color: var(--text);
}
.privacy-body p { margin: 0 0 0.9rem; }
.privacy-body a { color: var(--gold-text); }
.site-footer a { color: inherit; }
