/*
Theme Name: Gavin's Greens
Description: Custom theme for Gavin's Greens microgreens, with WooCommerce support.
Version: 1.0.0
Requires PHP: 7.4
Text Domain: gavinsgreens
*/
  :root {
    --green-900: #1f3a24;
    --green-700: #2f5d36;
    --green-500: #4f8a4f;
    --green-100: #e8f0e1;
    --gold: #b39a5a;
    --cream: #faf8f2;
    --ink: #1d2420;
    --muted: #5d6a60;
    --radius: 14px;
  }
  * { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body {
    margin: 0;
    font-family: Inter, system-ui, sans-serif;
    color: var(--ink);
    background: var(--cream);
    line-height: 1.6;
  }
  img { max-width: 100%; display: block; }
  a { color: var(--green-700); }
  .wrap { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
  h1, h2, h3 { font-family: Fraunces, Georgia, serif; line-height: 1.15; margin: 0 0 .5em; }
  h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); color: var(--green-900); }
  section { padding: 80px 0; }
  .eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 600; color: var(--gold); margin-bottom: .6em; }

  /* Header */
  header {
    position: sticky; top: 0; z-index: 10;
    background: rgba(250, 248, 242, .92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid #e6e1d3;
  }
  .nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
  .brand { font-family: "Pinyon Script", cursive; font-size: 2rem; color: var(--ink); text-decoration: none; }
  .nav ul { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
  .nav ul a { text-decoration: none; color: var(--ink); font-weight: 500; font-size: .95rem; }
  .nav ul a:hover { color: var(--green-500); }
  .nav .cta { background: var(--green-700); color: #fff; padding: 9px 18px; border-radius: 999px; }
  .nav .cta:hover { background: var(--green-900); color: #fff; }
  .menu-btn { display: none; background: none; border: 0; font-size: 1.6rem; cursor: pointer; color: var(--ink); }

  /* Hero */
  .hero {
    background:
      radial-gradient(circle at 80% 20%, rgba(179,154,90,.18), transparent 45%),
      linear-gradient(160deg, var(--green-100), var(--cream) 70%);
    padding: 100px 0 90px;
  }
  .hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
  .hero h1 { font-size: clamp(2.4rem, 6vw, 4rem); color: var(--green-900); }
  .hero p.lead { font-size: 1.15rem; color: var(--muted); max-width: 34em; }
  .btns { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
  .btn { display: inline-block; padding: 14px 26px; border-radius: 999px; font-weight: 600; text-decoration: none; border: 2px solid var(--green-700); }
  .btn.primary { background: var(--green-700); color: #fff; }
  .btn.primary:hover { background: var(--green-900); border-color: var(--green-900); }
  .btn.ghost { color: var(--green-700); }
  .btn.ghost:hover { background: var(--green-100); }
  .logo-badge {
    aspect-ratio: 1; max-width: 380px; margin-left: auto;
    border-radius: 50%;
    border: 3px solid var(--gold);
    background: #fff;
    display: grid; place-items: center; text-align: center;
    box-shadow: 0 20px 50px rgba(31,58,36,.12);
  }
  .logo-badge { overflow: hidden; border: 0; }
  .logo-badge img { width: 100%; height: 100%; object-fit: contain; }
  .badges { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 30px; color: var(--muted); font-size: .92rem; }
  .badges div::before { content: "✓ "; color: var(--green-500); font-weight: 700; }

  /* About */
  .about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
  .photo {
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--green-500), var(--green-900));
    color: rgba(255,255,255,.85);
    display: grid; place-items: center; text-align: center;
    font-size: .9rem; padding: 20px;
    min-height: 200px;
  }
  .photo.tall { min-height: 420px; }
  .photo img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }

  /* Products */
  #products { background: #fff; }
  .grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 22px; margin-top: 36px; }
  .card {
    background: var(--cream); border: 1px solid #ebe6d8; border-radius: var(--radius);
    padding: 24px; display: flex; flex-direction: column;
  }
  .card .dot { width: 44px; height: 44px; border-radius: 50%; margin-bottom: 14px; }
  .card h3 { font-size: 1.25rem; color: var(--green-900); }
  .card p { margin: 0 0 14px; color: var(--muted); font-size: .95rem; flex: 1; }
  .tag { font-size: .78rem; font-weight: 600; color: var(--green-700); background: var(--green-100); padding: 4px 10px; border-radius: 999px; align-self: flex-start; }
  .note { margin-top: 26px; color: var(--muted); font-size: .95rem; }

  /* How it works */
  .steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 36px; counter-reset: s; }
  .step { background: #fff; border-radius: var(--radius); padding: 28px; border: 1px solid #ebe6d8; }
  .step::before {
    counter-increment: s; content: counter(s);
    display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
    background: var(--green-700); color: #fff; font-weight: 700; margin-bottom: 14px;
  }
  .step h3 { font-size: 1.2rem; }
  .step p { margin: 0; color: var(--muted); }

  /* Delivery */
  #delivery { background: var(--green-900); color: #e9efe4; }
  #delivery h2 { color: #fff; }
  .delivery-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 30px; }
  .hours { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); padding: 28px; }
  .hours table { width: 100%; border-collapse: collapse; }
  .hours td { padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
  .hours td:last-child { text-align: right; color: #fff; font-weight: 500; }
  .hours tr:last-child td { border-bottom: 0; }
  .delivery-list { list-style: none; padding: 0; margin: 0; }
  .delivery-list li { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
  .delivery-list strong { color: #fff; display: block; }

  /* Gallery */
  .gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 36px; }
  .gallery img { aspect-ratio: 1; width: 100%; object-fit: cover; border-radius: var(--radius); }

  /* Contact */
  #contact { background: #fff; }
  .contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; }
  .contact-info p { margin: 0 0 18px; }
  .contact-info strong { display: block; color: var(--green-900); }
  form { display: grid; gap: 14px; }
  .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  label { font-size: .88rem; font-weight: 600; display: block; margin-bottom: 6px; }
  input, select, textarea {
    width: 100%; padding: 12px 14px; font: inherit;
    border: 1px solid #d9d4c5; border-radius: 10px; background: var(--cream);
  }
  input:focus, select:focus, textarea:focus { outline: 2px solid var(--green-500); border-color: transparent; }
  textarea { min-height: 120px; resize: vertical; }
  button.btn { cursor: pointer; font: inherit; font-weight: 600; justify-self: start; }

  footer { background: var(--ink); color: #b9c2bb; padding: 36px 0; font-size: .9rem; }
  footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
  footer a { color: #fff; }

  @media (max-width: 860px) {
    section { padding: 60px 0; }
    .hero { padding: 60px 0; }
    .hero-grid, .about-grid, .delivery-grid, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
    .logo-badge { margin: 0 auto; max-width: 280px; }
    .steps { grid-template-columns: 1fr; }
    .gallery { grid-template-columns: repeat(2, 1fr); }
    .photo.tall { min-height: 280px; }
    .menu-btn { display: block; }
    .nav ul {
      display: none; position: absolute; top: 68px; left: 0; right: 0;
      flex-direction: column; gap: 0; background: var(--cream); border-bottom: 1px solid #e6e1d3;
    }
    .nav ul.open { display: flex; }
    .nav ul li a { display: block; padding: 14px 20px; }
    .nav .cta { border-radius: 0; }
    .row { grid-template-columns: 1fr; }
  }

/* ---- Store additions ---- */
.card .card-img { margin: -24px -24px 16px; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; }
.card .card-img img { width: 100%; height: 100%; object-fit: cover; }
.card .card-img.blank { display: grid; place-items: center; background: linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 55%, #1f3a24)); }
.card .card-img.blank svg { width: 45%; opacity: .85; }
.card .price { font-family: Fraunces, Georgia, serif; font-size: 1.3rem; color: var(--green-900); margin-bottom: 10px; }
.stock { font-size: .78rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; align-self: flex-start; margin-bottom: 14px; }
.stock.in { color: var(--green-700); background: var(--green-100); }
.stock.order { color: #7a5b12; background: #f6ecd2; }
.card .add { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.card .add .btn { padding: 10px 18px; font-size: .92rem; }
.card .add .added_to_cart { font-size: .88rem; font-weight: 600; }
.subhead { margin-top: 56px; font-size: 1.4rem; color: var(--green-900); }
.cart-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: 4px; border-radius: 999px; background: var(--gold); color: #fff; font-size: .72rem; font-weight: 700; }
.free-note { background: var(--green-100); border-radius: 10px; padding: 12px 16px; margin: 0 0 20px; color: var(--green-900); font-weight: 500; }

/* Inner pages: cart, checkout, account, single product */
.page-wrap { padding: 56px 0 80px; min-height: 60vh; }
.page-wrap h1.page-title { font-size: clamp(2rem, 5vw, 2.8rem); color: var(--green-900); }
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button,
.wc-block-components-button:not(.is-link), .wp-element-button {
  background: var(--green-700) !important; color: #fff !important; border-radius: 999px !important; font-weight: 600 !important;
}
.woocommerce a.button:hover, .woocommerce button.button:hover,
.wc-block-components-button:not(.is-link):hover { background: var(--green-900) !important; }
.woocommerce div.product .product_title { font-family: Fraunces, Georgia, serif; color: var(--green-900); }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--green-900); font-family: Fraunces, Georgia, serif; font-size: 1.6rem; }
.woocommerce-message, .woocommerce-info { border-top-color: var(--green-500) !important; }
.woocommerce-message::before, .woocommerce-info::before { color: var(--green-500) !important; }
