/* ============================================================
   Buttons — Ashbury Gardening (child theme)
   Purpose: single source of truth for CTA styles
   ============================================================ */

/* ------------------------------------------------------------
   Seasonal Color Palettes (Refined Grey-Blue Summer Matrix)
   These match the elegant typography of the Seasonal Insights dropcaps.
   ------------------------------------------------------------ */
:root {
  /* Default / Spring: Keep fresh, or set to match Spring dropcaps */
  --gold-frame:    #d4af37;   /* Clear Bright Gold Frame */
  --band-top:      #6b8e23;   /* Olive / Drab Green */
  --band-middle:   #3b5e2b;   /* Deep Sage / Forest (Houses Text) */
  --band-bottom:   #c29d38;   /* Light Gold-Green */
  --ghost-bg:      #ffffff;
}

body.season-summer {
  /* SUMMER EDITION: Anchored precisely to your #6a7ea0 Grey-Blue dropcap */
  --gold-frame:    #cca462;   /* Antique Gold Frame */
  --band-top:      #8ca2c4;   /* Muted Silver-Blue (Sky band) */
  --band-middle:   #6a7ea0;   /* YOUR DROPCAP COLOUR: Balanced Grey-Blue (Houses Text) */
  --band-bottom:   #4d5f7c;   /* Inky Slate Blue (Shadow band) */
  --ghost-bg:      #ffffff;
}

body.season-autumn {
  /* Autumn: Rich copper-tinged greens and deep ochres */
  --gold-frame:    #c59b27;   /* Harvest Gold Frame */
  --band-top:      #4a5d3c;   /* Smoky, Earthy Green */
  --band-middle:   #24381d;   /* Darkest Spruce Green (Houses Text) */
  --band-bottom:   #aa7c11;   /* Rich Ochre / Bronze */
  --ghost-bg:      #ffffff;
}

body.season-winter {
  /* Winter: Silvery, slate-undertone greens and muted champagne frames */
  --gold-frame:    #b5a27f;   /* Champagne / Muted Gold Frame */
  --band-top:      #5c6b5d;   /* Silvery Sage Green */
  --band-middle:   #2b362c;   /* Ivy / Black-Green (Houses Text) */
  --band-bottom:   #8fa382;   /* Soft Pale Lichen */
  --ghost-bg:      #ffffff;
}


body.season-autumn {
  /* Autumn: Rich copper-tinged greens and deep ochres */
  --gold-frame:    #c59b27;   /* Harvest Gold Frame */
  --band-top:      #4a5d3c;   /* Smoky, Earthy Green */
  --band-middle:   #24381d;   /* Darkest Spruce Green (Houses Text) */
  --band-bottom:   #aa7c11;   /* Rich Ochre / Bronze */
  --ghost-bg:      #ffffff;
}

body.season-winter {
  /* Winter: Silvery, slate-undertone greens and muted champagne frames */
  --gold-frame:    #b5a27f;   /* Champagne / Muted Gold Frame */
  --band-top:      #5c6b5d;   /* Silvery Sage Green */
  --band-middle:   #2b362c;   /* Ivy / Black-Green (Houses Text) */
  --band-bottom:   #8fa382;   /* Soft Pale Lichen */
  --ghost-bg:      #ffffff;
}

/* =========================================================
   Base button style
   ========================================================= */

a.btn,
a.button,
.btn,
.button,
.wp-block-button__link,
input[type="submit"],
button[type="submit"]{
  -webkit-appearance: none;
  appearance: none;
  
  /* Flexbox configuration keeps the words dead-centre at middle height */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  
  padding: 0 24px;   
  height: 52px;       /* Fixed height layout ensures the three bands scale perfectly to 17.3px each */
  box-sizing: border-box;

  /* The Narrow Gold Frame */
  border: 1.5px solid var(--gold-frame);
  border-radius: 0;   /* Keeping your signature square corners */

  font-family: "Lato", system-ui, -apple-system, "Segoe UI", "Helvetica Neue",
               Helvetica, "Noto Sans", "Liberation Sans", Arial, sans-serif;
  font-weight: 600;
  font-size: 14px;
  line-height: 1;     /* Prevent line height from fighting with flexbox centring */

  text-decoration: none;
  cursor: pointer;

   /* Default State: Smoothly blending with custom 40/40/20 proportions */
  background-color: transparent; 
  background-image: linear-gradient(to bottom, 
    var(--band-top) 0%, 
    var(--band-middle) 40%, 
    var(--band-middle) 80%, 
    var(--band-bottom) 100%
  );
  background-repeat: no-repeat;
  background-size: 100% 100%;


  transition: filter .15s ease, transform .02s ease-in-out;
}

/* Hover/active response */
a.btn:hover,
a.button:hover,
.btn:hover,
.button:hover,
.wp-block-button__link:hover,
input[type="submit"]:hover,
button[type="submit"]:hover{
  filter: brightness(1.12); /* Uniform, beautiful brightening across all three bands */
  color: #ffffff;
}

a.btn:active,
a.button:active,
.btn:active,
.button:active,
.wp-block-button__link:active,
input[type="submit"]:active,
button[type="submit"]:active{
  transform: translateY(1px);
}

/* Keyboard focus */
a.btn:focus-visible,
a.button:focus-visible,
.btn:focus-visible,
.button:focus-visible,
.wp-block-button__link:focus-visible,
input[type="submit"]:focus-visible,
button[type="submit"]:focus-visible{
  outline: 2px solid #000;
  outline-offset: 2px;
}

/* Utility: small size layout adjustments */
.btn--sm{
  padding: 0 16px;
  font-size: 0.9em;
  height: 38px;
}

/* Mobile responsive tap targets */
@media (max-width: 768px){
  a.btn,
  a.button,
  .btn,
  .button,
  .wp-block-button__link,
  input[type="submit"],
  button[type="submit"]{
    padding: 0 24px;
    font-size: 15px;
    height: 48px; /* Perfectly scales on smaller responsive screens */
  }

  .btn--sm{
    padding: 0 16px;
    font-size: 0.95em;
    height: 40px;
  }
}

/* =========================================================
   Variants (explicit classes)
   ========================================================= */

/* Primary solid — soft summer gradient */
.btn-primary,
.button.primary,
a.btn-primary,
a.button.primary,
.wp-block-button.is-style-primary .wp-block-button__link{
  border-color: var(--gold-frame);
  background-image: linear-gradient(to bottom, 
    var(--band-top) 0%,
    var(--band-middle) 68%,
    var(--band-bottom) 100%
  );
  color: #ffffff;
}

/* Ghost / Outline Variant ("See how I work") */
.btn-ghost,
.btn-secondary,
.button.secondary,
a.btn-ghost,
a.btn-secondary,
a.button.secondary,
.wp-block-button.is-style-outline .wp-block-button__link{
  background-color: var(--ghost-bg);
  background-image: none; /* Strip out the striped gradient layer for ghost buttons */
  border-color: var(--band-middle); /* Outlined cleanly using the season's primary text color */
  color: var(--band-middle);
  text-shadow: none;
}

.btn-ghost:hover,
.btn-secondary:hover,
.button.secondary:hover,
a.btn-ghost:hover,
a.btn-secondary:hover,
a.button.secondary:hover,
.wp-block-button.is-style-outline .wp-block-button__link:hover{
  background-image: none;
  background-color: var(--band-middle); /* Fills cleanly on hover */
  border-color: var(--band-middle);
  color: #ffffff;
}

/* Link-style (deprecated) — kept safely for backward compatibility */
.btn-link,
a.btn-link{
  background-color: #ffffff;
  background-image: none;
  border: 1px solid var(--band-middle);
  color: var(--band-middle);
  text-decoration: none;
  border-radius: 0;
  padding: 10px 16px;
  line-height: 1.2;
}

.btn-link:hover,
a.btn-link:hover{
  background-color: var(--band-middle);
  border-color: var(--band-middle);
  color: #ffffff;
}

/* =========================================================
   Inline CTA (this is NOT a button)
   Prevent “button rules” from leaking onto normal links
   ========================================================= */

.inline-cta{
  color: #2f4657;
}

.inline-cta a,
.inline-cta a:link,
.inline-cta a:visited{
  color: var(--band-middle);
  background: transparent;
  text-decoration: none;
  border-bottom: 1px solid rgba(59, 94, 43, 0.35);
  padding-bottom: 1px;
}

.inline-cta a:hover,
.inline-cta a:focus{
  color: var(--band-top);
  border-bottom-color: currentColor;
  background: transparent;
  outline: none;
}

.inline-cta a[href^="tel:"]{
  white-space: nowrap;
}

/* =========================================================
   Hero CTA row (layout only)
   ========================================================= */

.hero-actions{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 18px;
}

.hero-actions > a,
.entry-content .hero-actions > a,
.hero-actions > .wp-block-button > .wp-block-button__link{
  display: inline-flex;
  width: auto;
  max-width: none;
  flex: 0 0 auto;
  white-space: nowrap;
}

@media (max-width: 560px){
  .hero-actions{
    flex-direction: column;
    align-items: flex-start;
  }
}

/* =========================================================
   Crisp button text (avoid fuzzy shadows/filters)
   ========================================================= */

.hero-actions .btn,
.hero-actions .btn *,
a.btn,
.btn,
.wp-block-button__link,
input[type="submit"],
button[type="submit"]{
  text-shadow: none !important;
  filter: none !important;
  -webkit-text-stroke: 0 !important;
  text-rendering: auto !important;
  -webkit-font-smoothing: auto !important;
  -moz-osx-font-smoothing: auto !important;
}

/* =========================================================
   Final override: primary CTA smooth summer gradient
   ========================================================= */

.hero-actions .btn.btn-primary,
a.btn.btn-primary,
.btn.btn-primary,
a.btn-primary,
.btn-primary {
  background-color: transparent !important;
  background-image: linear-gradient(
    to bottom,
    var(--band-top) 0%,
    var(--band-middle) 68%,
    var(--band-bottom) 100%
  ) !important;
  background-repeat: no-repeat !important;
  background-size: 100% 100% !important;

  border-color: var(--gold-frame) !important;
  color: #ffffff !important;

  /* Lift the text slightly above dead centre */
  align-items: center !important;
  padding-top: 0 !important;
  padding-bottom: 6px !important;
  line-height: 1 !important;

  /* Softer inner bevel / engraved edge just inside the gold frame */
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.20),
    inset 0 -1px 0 rgba(0, 0, 0, 0.14),
    inset 1px 0 0 rgba(255, 255, 255, 0.10),
    inset -1px 0 0 rgba(0, 0, 0, 0.10) !important;
}

/* =========================================================
   Final override: ghost CTA soft blue-grey companion
   ========================================================= */

.hero-actions .btn.btn-ghost,
a.btn.btn-ghost,
.btn.btn-ghost,
a.btn-ghost,
.btn-ghost {
  background-color: transparent !important;
  background-image: linear-gradient(
  to bottom,
  #edf1f3 0%,
  #e3e8eb 55%,
  #d8e0e5 100%
) !importan
  background-repeat: no-repeat !important;
  background-size: 100% 100% !important;

border: 1px solid #91a0aa !important;
  color: #4d5f7c !important;

  align-items: center !important;
  padding-top: 0 !important;
  padding-bottom: 4px !important;
  line-height: 1 !important;

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 -1px 0 rgba(0, 0, 0, 0.06) !important;
}

.hero-actions .btn.btn-ghost:hover,
a.btn.btn-ghost:hover,
.btn.btn-ghost:hover,
a.btn-ghost:hover,
.btn-ghost:hover {
  background-image: linear-gradient(
    to bottom,
    #607789 0%,
    #4d6575 55%,
    #3f5666 100%
  ) !important;

  border-color: #607789 !important;
  color: #ffffff !important;
}
/* =========================================================
   Ashbury permanent primary CTA
   ========================================================= */

.hero-actions .btn.btn-primary,
a.btn.btn-primary,
.btn.btn-primary,
a.btn-primary,
.btn-primary {
  background-color: #2f4657 !important;
  background-image: linear-gradient(
    to bottom,
    #536979 0%,
    #405766 50%,
    #2f4657 100%
  ) !important;

  border-color: #607789 !important;
  color: #ffffff !important;
}

/* Reverse gradient on hover */
.hero-actions .btn.btn-primary:hover,
a.btn.btn-primary:hover,
.btn.btn-primary:hover,
a.btn-primary:hover,
.btn-primary:hover {
  background-image: linear-gradient(
    to bottom,
    #2f4657 0%,
    #405766 50%,
    #536979 100%
  ) !important;

  filter: none !important;
}