/*
Theme Name: Texan Bulldogs
Theme URI: https://texanbulldogs.com/
Author: Texan Bulldogs
Description: A refined, warm, Texas-inspired theme for the Texan Bulldogs breeding program.
Version: 1.0.0
Requires at least: 6.6
Requires PHP: 8.0
Text Domain: texan-bulldogs
*/

:root {
  --tb-ink: #211f1c;
  --tb-ink-soft: #4b4740;
  --tb-cream: #f7f2e9;
  --tb-cream-deep: #eee4d5;
  --tb-white: #fffdf9;
  --tb-sand: #d8c7ad;
  --tb-bronze: #9a704b;
  --tb-gold: #c3a064;
  --tb-rust: #8f5c43;
  --tb-sage: #7d8373;
  --tb-border: rgba(33, 31, 28, 0.14);
  --tb-shadow: 0 24px 70px rgba(42, 33, 25, 0.12);
  --tb-radius: 26px;
  --tb-wrap: min(1180px, calc(100% - 40px));
  --tb-serif: Georgia, "Times New Roman", serif;
  --tb-sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--tb-ink);
  background: var(--tb-cream);
  font-family: var(--tb-sans);
  font-size: 17px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { color: var(--tb-rust); }
button, input, textarea, select { font: inherit; }

.tb-wrap { width: var(--tb-wrap); margin-inline: auto; }
.tb-skip-link {
  position: fixed; left: 16px; top: -80px; z-index: 9999;
  padding: 10px 16px; background: var(--tb-ink); color: #fff;
}
.tb-skip-link:focus { top: 16px; }
.tb-kicker {
  margin: 0 0 12px; color: var(--tb-rust); font-size: .75rem;
  font-weight: 800; letter-spacing: .18em; text-transform: uppercase;
}
h1, h2, h3, h4 {
  margin: 0 0 .55em; font-family: var(--tb-serif); font-weight: 500;
  line-height: 1.08; letter-spacing: -.025em;
}
h1 { font-size: clamp(3rem, 7vw, 6.8rem); }
h2 { font-size: clamp(2.2rem, 4.5vw, 4.25rem); }
h3 { font-size: clamp(1.45rem, 2.5vw, 2.1rem); }
p { margin: 0 0 1.2em; }

.tb-topbar {
  padding: 9px 0; background: var(--tb-ink); color: rgba(255,255,255,.86);
  font-size: .76rem; font-weight: 700; letter-spacing: .11em; text-transform: uppercase;
}
.tb-topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.tb-topbar a { color: #fff; text-decoration: none; }
.tb-site-header {
  position: sticky; top: 0; z-index: 1000; background: rgba(247,242,233,.94);
  border-bottom: 1px solid var(--tb-border); backdrop-filter: blur(18px);
}
.admin-bar .tb-site-header { top: 32px; }
.tb-header-inner { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.tb-brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.tb-brand img { width: 48px; height: 48px; }
.tb-brand-wordmark { display: flex; flex-direction: column; line-height: 1; }
.tb-brand-wordmark strong { font: 600 1.35rem/1 var(--tb-serif); letter-spacing: .03em; }
.tb-brand-wordmark span { margin-top: 6px; font-size: .62rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--tb-rust); }
.tb-nav { display: flex; align-items: center; gap: 28px; }
.tb-nav ul { list-style: none; display: flex; align-items: center; gap: 24px; margin: 0; padding: 0; }
.tb-nav a { text-decoration: none; font-size: .82rem; font-weight: 750; letter-spacing: .055em; text-transform: uppercase; }
.tb-nav .current-menu-item > a, .tb-nav a:hover { color: var(--tb-rust); }
.tb-menu-toggle { display: none; border: 0; background: transparent; padding: 10px; cursor: pointer; }
.tb-menu-toggle span { display: block; width: 26px; height: 2px; margin: 5px 0; background: var(--tb-ink); }

.tb-button, .wp-block-button__link {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px;
  padding: 14px 24px; border: 1px solid var(--tb-ink); border-radius: 999px;
  background: var(--tb-ink); color: #fff; text-decoration: none; font-size: .78rem;
  font-weight: 800; letter-spacing: .08em; text-transform: uppercase; transition: .2s ease;
}
.tb-button:hover, .wp-block-button__link:hover { transform: translateY(-2px); background: var(--tb-rust); border-color: var(--tb-rust); color: #fff; }
.tb-button--light { background: var(--tb-white); color: var(--tb-ink); border-color: rgba(255,255,255,.8); }
.tb-button--outline { background: transparent; color: var(--tb-ink); }
.tb-button--small { min-height: 42px; padding: 10px 18px; }
.tb-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.tb-hero { position: relative; overflow: hidden; min-height: 760px; display: grid; align-items: center; background: var(--tb-cream-deep); }
.tb-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 75% 20%, rgba(195,160,100,.35), transparent 33%), linear-gradient(120deg, rgba(255,255,255,.75), transparent 52%); pointer-events: none; }
.tb-hero-grid { position: relative; display: grid; grid-template-columns: 1.02fr .98fr; gap: 66px; align-items: center; padding: 86px 0 96px; }
.tb-hero-copy { max-width: 680px; }
.tb-hero-copy h1 em { display: block; color: var(--tb-rust); font-weight: 400; }
.tb-hero-copy > p:not(.tb-kicker) { max-width: 620px; font-size: clamp(1.05rem, 1.7vw, 1.27rem); color: var(--tb-ink-soft); }
.tb-hero-media { position: relative; min-height: 570px; border-radius: 50% 50% 28px 28px; overflow: hidden; background: #d5c3a9; box-shadow: var(--tb-shadow); }
.tb-hero-media img { width: 100%; height: 100%; min-height: 570px; object-fit: cover; }
.tb-hero-placeholder { position: absolute; inset: 0; display: grid; place-items: center; padding: 60px; background: linear-gradient(145deg, #d6c3a6, #a88464); }
.tb-hero-placeholder::before, .tb-hero-placeholder::after { content: ""; position: absolute; border: 1px solid rgba(255,255,255,.35); border-radius: inherit; }
.tb-hero-placeholder::before { inset: 18px; }
.tb-hero-placeholder::after { inset: 36px; }
.tb-hero-placeholder img { position: relative; z-index: 1; width: min(260px, 62%); min-height: 0; opacity: .92; object-fit: contain; filter: drop-shadow(0 16px 20px rgba(33,31,28,.18)); }
.tb-hero-seal { position: absolute; left: -38px; bottom: 46px; width: 126px; height: 126px; display: grid; place-items: center; border-radius: 50%; background: var(--tb-ink); color: #fff; border: 6px solid var(--tb-cream); text-align: center; font: 600 .86rem/1.35 var(--tb-serif); letter-spacing: .08em; text-transform: uppercase; }

.tb-trust-strip { background: var(--tb-white); border-block: 1px solid var(--tb-border); }
.tb-trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.tb-trust-item { padding: 27px 34px; text-align: center; border-right: 1px solid var(--tb-border); }
.tb-trust-item:last-child { border-right: 0; }
.tb-trust-item strong { display: block; font-family: var(--tb-serif); font-size: 1.25rem; }
.tb-trust-item span { color: var(--tb-ink-soft); font-size: .82rem; }

.tb-section { padding: clamp(76px, 9vw, 132px) 0; }
.tb-section--white { background: var(--tb-white); }
.tb-section--dark { background: var(--tb-ink); color: #fff; }
.tb-section--sand { background: var(--tb-cream-deep); }
.tb-section-head { max-width: 780px; margin-bottom: 52px; }
.tb-section-head p:last-child { color: var(--tb-ink-soft); font-size: 1.1rem; }
.tb-section--dark .tb-section-head p:last-child { color: rgba(255,255,255,.7); }
.tb-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 100px); align-items: center; }
.tb-card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.tb-card { border: 1px solid var(--tb-border); border-radius: var(--tb-radius); padding: 34px; background: var(--tb-white); box-shadow: 0 16px 45px rgba(42,33,25,.06); }
.tb-card p:last-child { margin-bottom: 0; }
.tb-card-number { width: 46px; height: 46px; display: grid; place-items: center; margin-bottom: 26px; border-radius: 50%; background: var(--tb-cream-deep); color: var(--tb-rust); font-weight: 850; }
.tb-dog-card { position: relative; overflow: hidden; min-height: 420px; display: flex; align-items: flex-end; border-radius: var(--tb-radius); background: linear-gradient(145deg, #b99978, #5b4838); color: #fff; box-shadow: var(--tb-shadow); }
.tb-dog-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 35%, rgba(22,19,17,.88)); }
.tb-dog-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tb-dog-card-content { position: relative; z-index: 1; width: 100%; padding: 38px; }
.tb-dog-card-content h3 { font-size: 2.45rem; }
.tb-dog-card-content p { margin: 0; color: rgba(255,255,255,.76); }
.tb-dog-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }

.tb-feature-list { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 13px; }
.tb-feature-list li { position: relative; padding-left: 31px; }
.tb-feature-list li::before { content: "★"; position: absolute; left: 0; color: var(--tb-gold); font-size: .82rem; }
.tb-quote { padding: 34px 0 34px 36px; border-left: 2px solid var(--tb-gold); font: 400 clamp(1.45rem, 2.8vw, 2.25rem)/1.35 var(--tb-serif); }
.tb-quote cite { display: block; margin-top: 14px; font: 750 .75rem/1.5 var(--tb-sans); letter-spacing: .13em; text-transform: uppercase; }

.tb-page-hero { padding: clamp(82px, 11vw, 150px) 0 clamp(58px, 8vw, 104px); background: var(--tb-cream-deep); border-bottom: 1px solid var(--tb-border); }
.tb-page-hero-inner { max-width: 900px; }
.tb-page-hero h1 { font-size: clamp(3.1rem, 7vw, 6rem); }
.tb-page-hero p { max-width: 720px; color: var(--tb-ink-soft); font-size: 1.16rem; }
.tb-page-content { padding: clamp(64px, 9vw, 118px) 0; }
.tb-prose { max-width: 860px; }
.tb-prose > *:first-child { margin-top: 0; }
.tb-prose h2 { margin-top: 1.3em; }
.tb-prose h3 { margin-top: 1.6em; }
.tb-prose p, .tb-prose li { color: var(--tb-ink-soft); }
.tb-prose .tb-card-grid, .tb-prose .tb-dog-grid, .tb-prose .tb-wide { width: min(1180px, calc(100vw - 40px)); max-width: none; }
.tb-info-band { margin: 44px 0; padding: 34px; border-radius: var(--tb-radius); background: var(--tb-cream-deep); }
.tb-stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 36px 0; }
.tb-stat { padding: 24px; border-radius: 18px; background: var(--tb-white); border: 1px solid var(--tb-border); }
.tb-stat strong { display: block; font-family: var(--tb-serif); font-size: 1.42rem; }
.tb-stat span { color: var(--tb-ink-soft); font-size: .86rem; }

.tb-faq { border-top: 1px solid var(--tb-border); }
.tb-faq details { border-bottom: 1px solid var(--tb-border); }
.tb-faq summary { position: relative; padding: 24px 50px 24px 0; cursor: pointer; list-style: none; font: 600 1.25rem/1.3 var(--tb-serif); }
.tb-faq summary::-webkit-details-marker { display: none; }
.tb-faq summary::after { content: "+"; position: absolute; right: 4px; top: 20px; color: var(--tb-rust); font: 400 1.7rem/1 var(--tb-sans); }
.tb-faq details[open] summary::after { content: "−"; }
.tb-faq details > div { padding: 0 40px 24px 0; color: var(--tb-ink-soft); }

.tb-social-panel { display: grid; grid-template-columns: 1.15fr .85fr; gap: 28px; align-items: stretch; }
.tb-social-copy { padding: clamp(38px, 6vw, 74px); border-radius: var(--tb-radius); background: var(--tb-rust); color: #fff; }
.tb-social-copy .tb-kicker { color: rgba(255,255,255,.72); }
.tb-social-links { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 30px; }
.tb-social-link { padding: 22px; border: 1px solid rgba(255,255,255,.35); border-radius: 18px; text-decoration: none; }
.tb-social-link strong { display: block; font-family: var(--tb-serif); font-size: 1.4rem; }
.tb-social-link span { color: rgba(255,255,255,.74); font-size: .82rem; }
.tb-social-mark { min-height: 340px; display: grid; place-items: center; border-radius: var(--tb-radius); background: var(--tb-cream-deep); }
.tb-social-mark img { width: min(260px, 70%); }

.tb-contact-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: 60px; align-items: start; }
.tb-contact-form { padding: 36px; border-radius: var(--tb-radius); background: var(--tb-white); border: 1px solid var(--tb-border); box-shadow: var(--tb-shadow); }
.tb-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.tb-field { margin-bottom: 18px; }
.tb-field label { display: block; margin-bottom: 7px; font-size: .78rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.tb-field input, .tb-field textarea, .tb-field select { width: 100%; padding: 14px 16px; border: 1px solid var(--tb-border); border-radius: 12px; background: #fff; color: var(--tb-ink); }
.tb-field input:focus, .tb-field textarea:focus, .tb-field select:focus { outline: 2px solid rgba(154,112,75,.28); border-color: var(--tb-bronze); }
.tb-field textarea { min-height: 160px; resize: vertical; }
.tb-honeypot { position: absolute !important; left: -9999px !important; }
.tb-form-note { color: var(--tb-ink-soft); font-size: .82rem; }
.tb-alert { margin-bottom: 24px; padding: 16px 18px; border-radius: 12px; }
.tb-alert--success { background: #e7efe4; color: #31512c; }
.tb-alert--error { background: #f6e4df; color: #74392d; }

.tb-cta { padding: clamp(70px, 9vw, 112px) 0; background: var(--tb-ink); color: #fff; }
.tb-cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 40px; }
.tb-cta-copy { max-width: 750px; }
.tb-cta-copy p { color: rgba(255,255,255,.7); }
.tb-site-footer { padding: 72px 0 28px; background: #171512; color: rgba(255,255,255,.75); }
.tb-footer-grid { display: grid; grid-template-columns: 1.4fr .7fr .8fr; gap: 50px; }
.tb-footer-brand .tb-brand { color: #fff; }
.tb-footer-brand p { max-width: 460px; margin-top: 22px; }
.tb-footer-title { margin-bottom: 18px; color: #fff; font: 600 .78rem/1.2 var(--tb-sans); letter-spacing: .14em; text-transform: uppercase; }
.tb-footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.tb-footer-links a { text-decoration: none; }
.tb-footer-bottom { margin-top: 58px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); display: flex; justify-content: space-between; gap: 24px; font-size: .78rem; }

@media (max-width: 980px) {
  .tb-menu-toggle { display: block; }
  .tb-nav { position: fixed; inset: 0 0 0 18%; z-index: 1001; display: block; padding: 120px 36px 40px; background: var(--tb-cream); transform: translateX(105%); transition: transform .25s ease; box-shadow: -20px 0 60px rgba(0,0,0,.15); }
  .menu-open .tb-nav { transform: translateX(0); }
  .tb-nav ul { display: grid; gap: 20px; }
  .tb-nav a { font: 500 1.8rem/1.1 var(--tb-serif); text-transform: none; letter-spacing: 0; }
  .tb-nav .tb-button { margin-top: 22px; font: 800 .78rem/1 var(--tb-sans); text-transform: uppercase; }
  .tb-hero-grid, .tb-two-col, .tb-social-panel, .tb-contact-grid { grid-template-columns: 1fr; }
  .tb-hero { min-height: 0; }
  .tb-hero-media { min-height: 460px; }
  .tb-hero-media img { min-height: 460px; }
  .tb-card-grid { grid-template-columns: 1fr; }
  .tb-footer-grid { grid-template-columns: 1.3fr 1fr; }
  .tb-footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  :root { --tb-wrap: min(100% - 28px, 1180px); }
  body { font-size: 16px; }
  .admin-bar .tb-site-header { top: 46px; }
  .tb-topbar-inner span:first-child { display: none; }
  .tb-topbar-inner { justify-content: center; }
  .tb-header-inner { min-height: 74px; }
  .tb-brand img { width: 42px; height: 42px; }
  .tb-brand-wordmark strong { font-size: 1.15rem; }
  .tb-hero-grid { padding: 64px 0 72px; gap: 48px; }
  .tb-hero-media { min-height: 390px; }
  .tb-hero-media img { min-height: 390px; }
  .tb-hero-seal { left: 18px; bottom: 18px; width: 100px; height: 100px; font-size: .7rem; }
  .tb-trust-grid { grid-template-columns: 1fr; }
  .tb-trust-item { border-right: 0; border-bottom: 1px solid var(--tb-border); }
  .tb-trust-item:last-child { border-bottom: 0; }
  .tb-dog-grid, .tb-stat-grid, .tb-field-row, .tb-social-links { grid-template-columns: 1fr; }
  .tb-cta-inner, .tb-footer-bottom { align-items: flex-start; flex-direction: column; }
  .tb-footer-grid { grid-template-columns: 1fr; }
  .tb-footer-brand { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

