/*
Theme Name: Fondy 2026
Theme URI: https://www.fondytennis.com/
Description: Lightweight visual restyle child theme of Twenty Twenty-Three for Fondy Tennis. Navy / lime / white sports look with self-hosted condensed headings. Keeps existing pages, menus, and content; activate Vertex or Twenty Twenty-Three to roll back.
Author: Fondy Tennis
Template: twentytwentythree
Version: 1.2.8
Requires at least: 6.1
Tested up to: 6.7
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: fondy-2026
Tags: block-themes, full-site-editing, custom-colors, custom-logo, one-column
*/


/* Fondy 2026 — polished to match mockup */

.fondy-site-header {
  background: #ffffff;
  border-bottom: 1px solid rgba(11, 31, 58, 0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}

.fondy-logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.fondy-logo-link .fondy-logo-svg,
.fondy-logo-link svg {
  height: 66px;
  width: auto;
  display: block;
}

.fondy-site-header .wp-block-navigation a {
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #0B1F3A;
}

.fondy-site-header .wp-block-navigation a:hover {
  color: #8DC63F;
}

/* Hero */
.fondy-hero {
  position: relative;
  display: block;
  min-height: 500px;
  height: clamp(480px, 42vw, 520px);
  background: #0A1A33;
  color: #ffffff;
  overflow: hidden;
}

.fondy-hero__media {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 40%;
  width: auto;
  z-index: 1;
  overflow: hidden;
}

.fondy-hero__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 42% 38%;
  max-width: none;
  min-width: 100%;
  min-height: 100%;
  position: absolute;
  inset: 0;
  z-index: 0;
}

.fondy-hero__fade {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    #0A1A33 0%,
    #0A1A33 12%,
    rgba(10, 26, 51, 0.88) 24%,
    rgba(10, 26, 51, 0.5) 34%,
    rgba(10, 26, 51, 0.18) 40%,
    rgba(10, 26, 51, 0) 46%
  );
}

.fondy-hero__copy {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  width: min(50%, 580px);
  height: 100%;
  padding: clamp(2rem, 4vw, 3.25rem) clamp(1.75rem, 4.5vw, 3.75rem);
  background: transparent;
  box-sizing: border-box;
}


.fondy-hero__text-stack {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: max-content;
  max-width: 100%;
}
.fondy-hero__year-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  margin: 0 0 0.1rem;
}

.fondy-hero__year-row .fondy-hero__line {
  flex: 1;
  height: 2.5px;
  background: #8DC63F;
  border-radius: 2px;
}

.fondy-hero__year {
  margin: 0;
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-weight: 700;
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  letter-spacing: 0.14em;
  color: #ffffff;
  white-space: nowrap;
}

.fondy-hero__title {
  margin: 0;
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-weight: 900;
  font-size: clamp(4.2rem, 14vw, 10.5rem); /* ~168px at desktop */
  line-height: 0.88;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #ffffff;
  white-space: nowrap;
}

.fondy-hero__tagline {
  margin: 0.85rem 0 0.2rem;
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-weight: 600;
  font-size: clamp(1rem, 2vw, 1.35rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8DC63F;
}


.fondy-placeholder-badge {
  position: absolute;
  right: 0.6rem;
  bottom: 0.6rem;
  z-index: 3;
  background: rgba(11, 31, 58, 0.55);
  color: rgba(200, 232, 106, 0.85);
  font-size: 0.55rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.18rem 0.4rem;
  border-radius: 3px;
  font-family: "Barlow Condensed", sans-serif;
}

.fondy-notice {
  background: #0A1A33;
  color: #ffffff;
  padding: 1.5rem 1.25rem;
  border-left: 4px solid #8DC63F;
  border-radius: 0 8px 8px 0;
}

.fondy-notice strong { color: #8DC63F; }

.fondy-card {
  background: #ffffff;
  border: 1px solid rgba(11, 31, 58, 0.1);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 8px 24px rgba(11, 31, 58, 0.06);
  height: 100%;
}

.fondy-card h3 {
  font-family: "Barlow Condensed", Impact, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #0B1F3A;
  margin-top: 0;
}

.fondy-card a.fondy-card-link {
  display: inline-flex;
  margin-top: 0.75rem;
  color: #8DC63F;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-family: "Barlow Condensed", Impact, sans-serif;
  text-decoration: none;
}

.fondy-sticky-contact {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  background: #0B1F3A;
  color: #ffffff;
  padding: 0.75rem 1rem;
  text-align: center;
  font-family: "Barlow Condensed", Impact, sans-serif;
  letter-spacing: 0.04em;
}

.fondy-sticky-contact a {
  color: #8DC63F;
  text-decoration: none;
  font-weight: 700;
}

.fondy-site-footer {
  background: #0A1A33;
  color: rgba(255, 255, 255, 0.85);
  padding: 2.5rem 1.25rem;
}

.fondy-site-footer a { color: #8DC63F; }

.wp-element-button,
.wp-block-button__link {
  border-radius: 999px !important;
  font-family: "Barlow Condensed", Impact, sans-serif !important;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

h1, h2, h3, .wp-block-post-title {
  font-family: "Barlow Condensed", Impact, sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #0B1F3A;
}

@media (max-width: 900px) {
  .fondy-logo-link .fondy-logo-svg,
  .fondy-logo-link svg { height: 50px; }


  .fondy-hero {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 0;
  }

  .fondy-hero__copy {
    width: 100%;
    height: auto;
    padding: 2rem 1.25rem 1.25rem;
    background: #0A1A33;
  }

  .fondy-hero__title {
    font-size: clamp(3.4rem, 18vw, 5.5rem);
  }

  .fondy-hero__year-row { width: 100%; max-width: 16ch; }

  .fondy-hero__media {
    position: relative;
    inset: auto;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    width: 100%;
    height: 280px;
    min-height: 280px;
  }

  .fondy-hero__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 40% 35%;
    max-width: none;
    min-width: 100%;
    min-height: 100%;
  }

  .fondy-hero__fade {
    background: linear-gradient(
      180deg,
      #0A1A33 0%,
      rgba(10, 26, 51, 0.75) 18%,
      rgba(10, 26, 51, 0.25) 40%,
      rgba(10, 26, 51, 0) 58%
    );
  }
}

/* 1.2.0: site-logo slot */
.fondy-site-header .wp-block-site-logo img{height:64px;width:auto;max-width:200px}
.fondy-logo-fallback{display:inline-flex}
.fondy-logo-fallback svg{height:64px;width:auto}
@media (max-width:900px){.fondy-site-header .wp-block-site-logo img,.fondy-logo-fallback svg{height:50px;max-width:140px}}
/* 1.1.0: stack content card grids (incl. inline-styled grids in post content) */
.wp-block-post-content [style*="grid-template-columns"] > *{min-width:0}
@media (max-width:760px){
 .wp-block-post-content [style*="grid-template-columns"]{grid-template-columns:1fr !important}
 .wp-block-post-content .wp-block-columns{flex-wrap:wrap !important}
 .wp-block-post-content .wp-block-column{flex-basis:100% !important}
}
html,body{overflow-wrap:anywhere}

/* 1.2.0: real hero photo, right half, light fade */
.fondy-hero__media{left:50%}
.fondy-hero__media picture{position:absolute;inset:0}
.fondy-hero__media img{object-position:30% 30%}
.fondy-hero__fade{background:linear-gradient(90deg,#0A1A33 0%,rgba(10,26,51,.6) 8%,rgba(10,26,51,.15) 18%,rgba(10,26,51,0) 26%)}
.fondy-placeholder-badge{display:none}
@media (max-width:900px){
 .fondy-hero__media{left:auto;height:300px;min-height:300px}
 .fondy-hero__media img{object-position:28% 20%}
 .fondy-hero__fade{background:linear-gradient(180deg,#0A1A33 0%,rgba(10,26,51,.35) 10%,rgba(10,26,51,0) 22%)}
}

/* 1.2.1: text on navy groups */
.has-navy-background-color, .has-navy-deep-background-color,
.wp-block-post-content [style*="background:#123044"], .wp-block-post-content [style*="background: #123044"],
.wp-block-post-content [style*="background:#0A1A33"], .wp-block-post-content [style*="background:#0a1a33"],
.wp-block-post-content [style*="background:#0B1F3A"], .wp-block-post-content [style*="background:#0b1f3a"],
.wp-block-post-content [style*="background-color:#0"], .wp-block-post-content [style*="background-color:#1"]{color:#fff}
.has-navy-background-color :is(h1,h2,h3,h4,h5,h6), .has-navy-deep-background-color :is(h1,h2,h3,h4,h5,h6),
.wp-block-post-content [style*="background:#123044"] :is(h1,h2,h3,h4,h5,h6), .wp-block-post-content [style*="background: #123044"] :is(h1,h2,h3,h4,h5,h6),
.wp-block-post-content [style*="background:#0"] :is(h1,h2,h3,h4,h5,h6), .wp-block-post-content [style*="background-color:#0"] :is(h1,h2,h3,h4,h5,h6),
.wp-block-post-content [style*="background-color:#1"] :is(h1,h2,h3,h4,h5,h6){color:#8DC63F !important}
.has-navy-background-color a, .has-navy-deep-background-color a,
.wp-block-post-content [style*="background:#123044"] a, .wp-block-post-content [style*="background:#0"] a{color:#C8E86A}
/* 1.2.1: display font on every title/heading, beats inline font settings */
.wp-block-post-title, h1, h2, h3, h4, h5, h6,
.wp-block-post-content :is(h1,h2,h3,h4,h5,h6), .wp-block-post-content :is(h1,h2,h3,h4,h5,h6) *{font-family:"Barlow Condensed", Impact, sans-serif !important}
/* 1.2.1: sticky footer */
.wp-site-blocks{min-height:100vh;min-height:100dvh;display:flex;flex-direction:column}
.wp-site-blocks > main, .wp-site-blocks > .wp-block-group:has(> .wp-block-post-content), .wp-site-blocks > :where(main){flex:1 0 auto}
.wp-site-blocks > footer, .wp-site-blocks > .wp-block-template-part:last-child{margin-top:auto}
.fondy-phone-pending{opacity:.85}

/* 1.2.3: page title matches H2s */
.wp-block-post-title, h1.wp-block-post-title{font-weight:700 !important;letter-spacing:0.04em !important;font-stretch:normal}
/* 1.2.3: home page: old pale-mint content hero becomes a compact season notice under the theme hero */
.home .wp-block-post-content section[style*="#e8f5f1"]{background:#fff !important;border:1px solid rgba(11,31,58,.08);border-left:6px solid #8DC63F;border-radius:12px !important;padding:1.25rem 1.5rem !important}
.home .wp-block-post-content section[style*="#e8f5f1"] > p:first-child,
.home .wp-block-post-content section[style*="#e8f5f1"] > h1{display:none}
.home .wp-block-post-content section[style*="#e8f5f1"] > p{margin:.4rem 0}

/* 1.2.5: text/call links */
.fondy-contact-links{display:flex;flex-direction:column;gap:.35rem;margin-bottom:.5rem}
.fondy-contact-links a{display:inline-flex;align-items:center;min-height:44px;color:#8DC63F;font-weight:600;text-decoration:underline;text-underline-offset:3px}
.fondy-contact-links a:hover,.fondy-contact-links a:focus-visible{color:#ffffff}

/* 1.2.7: Classic Seam header lockup (light header) */
.fondy-site-header .wp-block-site-logo img,.fondy-logo-fallback svg{height:60px;width:auto;max-width:240px;object-fit:contain}
@media (max-width:900px){.fondy-site-header .wp-block-site-logo img,.fondy-logo-fallback svg{height:46px;max-width:180px}}
