/*
Theme Name: Palmetto Golf Works
Theme URI: https://palmettogolfworks.com
Author: Palmetto Golf Works
Description: One-page homepage for Palmetto Golf Works with custom ball markers, pro shop logos, and a wholesale pricing form. Edit the wording and contact details under Appearance > Customize > Palmetto homepage.
Version: 1.2.4
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: palmetto-golf-works
*/
  :root {
    --green: #1A3927;
    --night: #10251A;
    --gold: #BF9656;
    --gold-soft: #D8BC86;
    --paper: #FBF9F2;
    --ink-soft: #3A5446;
    --display: "Marcellus", Optima, Candara, "Palatino Linotype", serif;
    --body: "EB Garamond", Garamond, "Iowan Old Style", "Palatino Linotype", Georgia, serif;
    --wrap: 1120px;
    --seal: clamp(116px, 27vw, 150px);
    --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .1  0 0 0 0 .22  0 0 0 0 .15  0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23g)'/%3E%3C/svg%3E");
    --grain-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 .95  0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23g)'/%3E%3C/svg%3E");
  }
  *, *::before, *::after { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body {
    margin: 0;
    background: var(--paper) var(--grain);
    color: var(--green);
    font-family: var(--body);
    font-size: 1.1875rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
  }
  img { display: block; max-width: 100%; height: auto; }
  a { color: inherit; }
  h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.14; margin: 0; letter-spacing: .01em; }
  h2 { font-size: clamp(1.9rem, 4.4vw, 2.7rem); text-wrap: balance; }
  p { margin: 0; }
  :focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
  .wrap { width: min(var(--wrap), 100% - 2.5rem); margin-inline: auto; }

  /* Small palmetto flourish above section headings */
  .flourish { display: flex; align-items: center; justify-content: center; gap: .9rem; margin: 0 auto 1.1rem; color: var(--gold); }
  .flourish::before, .flourish::after { content: ""; width: clamp(36px, 8vw, 64px); height: 1px; background: currentColor; opacity: .75; }
  .flourish span {
    width: 18px; height: 23px; background: currentColor;
    -webkit-mask: url("assets/img/emblem-mask.png") center / contain no-repeat;
            mask: url("assets/img/emblem-mask.png") center / contain no-repeat;
  }

  /* Buttons */
  .btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 52px; padding: 0 1.75rem; border-radius: 999px;
    font: 600 1.125rem/1 var(--body); letter-spacing: .01em; text-decoration: none; cursor: pointer;
    border: 1.5px solid transparent; transition: background-color .2s, color .2s, border-color .2s;
  }
  .btn-gold { background: var(--gold); color: var(--night); }
  .btn-gold:hover { background: var(--gold-soft); }
  .btn[disabled] { opacity: .7; cursor: default; }

  /* Hero: full green opening, like stepping into the clubhouse */
  .hero {
    position: relative;
    min-height: 92vh; min-height: min(92svh, 860px);
    display: flex; flex-direction: column; justify-content: center;
    text-align: center;
    background: var(--green) var(--grain-light); color: var(--paper);
    padding: clamp(3rem, 9vw, 5rem) 0 calc(clamp(2.5rem, 7vw, 4rem) + var(--seal) * .5);
    box-shadow: inset 0 -7px 0 var(--green), inset 0 -8px 0 rgba(191,150,86,.55);
  }
  .hero-logo { width: min(280px, 64vw); margin: 0 auto clamp(1.75rem, 4.5vw, 2.75rem); }
  .hero h1 { max-width: 30ch; margin-inline: auto; text-wrap: balance; font-size: clamp(1.85rem, 5vw, 3rem); }

  /* Charleston seal, resting on the bottom edge of the green opening like a ball marker */
  .seal {
    position: absolute; left: 50%; bottom: 0; z-index: 1; width: var(--seal);
    transform: translate(-50%, 50%);
    filter: drop-shadow(0 8px 14px rgba(16,37,26,.22));
  }
  .seal svg { display: block; width: 100%; height: auto; }
  .seal-text { font-family: var(--display); font-size: 13.5px; fill: var(--green); }

  /* About */
  .about { padding: calc(var(--seal) * .5 + clamp(2.75rem, 7vw, 4.25rem)) 0 0; text-align: center; }
  .about h2 { max-width: 20ch; margin-inline: auto; }
  .about-copy p { max-width: 34rem; margin: 1.25rem auto 0; font-size: clamp(1.25rem, 2.4vw, 1.4rem); line-height: 1.6; color: var(--ink-soft); }

  /* Partner clubs */
  .shops { padding: clamp(4rem, 10vw, 6.5rem) 0; text-align: center; }
  .shop-list {
    --edge: max(1.25rem, calc((100% - var(--wrap)) / 2));
    list-style: none; margin: clamp(2rem, 5vw, 3rem) 0 0;
    display: flex; gap: clamp(1rem, 3vw, 1.75rem);
    overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x proximity; scroll-padding-inline: var(--edge);
    padding: .25rem var(--edge) 1.25rem;
    scrollbar-width: thin; scrollbar-color: rgba(26,57,39,.35) transparent;
  }
  .shop-list:focus-visible { outline-offset: -2px; }
  .shop {
    flex: 0 0 auto; width: clamp(140px, 40vw, 200px); scroll-snap-align: start;
    position: relative; aspect-ratio: 1; border-radius: 50%; background: #fff;
    box-shadow: inset 0 0 0 2px var(--green), inset 0 0 0 7px #fff, inset 0 0 0 8px var(--green), 0 6px 16px -10px rgba(16,37,26,.35);
  }
  .shop img { position: absolute; top: 17%; left: 17%; width: 66%; height: 66%; object-fit: contain; }
  .shop.wide img { left: 10%; width: 80%; }
  .shop.tall img { top: 11%; height: 78%; }
  .shops-cta { margin-top: 1.5rem; color: var(--ink-soft); font-style: italic; }
  .shops-cta a { color: var(--green); font-style: normal; font-weight: 600; text-underline-offset: 3px; }

  /* Wholesale */
  .wholesale { background: var(--green) var(--grain-light); color: var(--paper); padding: clamp(4rem, 10vw, 6.5rem) 0; }
  .wholesale-inner { max-width: 44rem; margin: 0 auto; text-align: center; }
  .wholesale-inner > p { margin-top: 1rem; color: #CBD6CE; }
  .inquiry { position: relative; margin-top: 2.25rem; display: grid; gap: 1rem; text-align: left; }
  @media (min-width: 680px) { .inquiry { grid-template-columns: 1.2fr 1fr auto; align-items: end; } }
  .field label { display: block; font-size: 1.0625rem; color: #CBD6CE; margin-bottom: .35rem; }
  .field .opt { font-style: italic; color: #9FB3A6; }
  .field input {
    width: 100%; min-height: 52px; padding: 0 1rem; border-radius: 10px;
    border: 1.5px solid rgba(252,251,247,.25); background: rgba(0,0,0,.2); color: var(--paper);
    font: 400 1.125rem var(--body);
  }
  .field input::placeholder { color: #8FA597; font-style: italic; }
  .field input:focus { outline: none; border-color: var(--gold); }
  .field input[aria-invalid="true"] { border-color: #E8A08A; }
  .status { min-height: 1.6em; margin-top: 1rem; text-align: center; color: var(--gold-soft); }
  .status.error { color: #F1B7A5; }
  .direct { margin-top: 1.5rem; font-size: 1.0625rem; font-style: italic; color: #9FB3A6; text-align: center; }
  .direct a { color: var(--paper); font-style: normal; text-underline-offset: 3px; }
  .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

  /* Footer */
  footer { background: var(--night) var(--grain-light); color: #B9C7BE; padding: 3rem 0 2.5rem; font-size: 1.0625rem; }
  .foot { display: grid; gap: 1.75rem; }
  @media (min-width: 760px) { .foot { grid-template-columns: 1.4fr 1fr; align-items: end; } }
  .foot-name { font-family: var(--display); color: var(--gold-soft); font-size: 1.5rem; }
  .foot-tagline { margin-top: .4rem; font-style: italic; }
  .foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .35rem; }
  .foot a { color: var(--paper); text-decoration: none; }
  .foot a:hover { text-decoration: underline; text-underline-offset: 3px; }
  .foot .ig-link { display: inline-flex; align-items: center; gap: .5rem; }
  .foot .ig-link img { width: 18px; height: 18px; }
  .legal { margin-top: 2.25rem; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,.1); font-size: .9375rem; color: #8FA597; }

  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
  }
