/*
Theme Name: Rhondana's Boston Terriers
Theme URI: https://rhondanasbostonterriers.com/
Author: Rhondana Ladner
Description: A warm, responsive WordPress theme for Rhondana's Boston Terriers and Art.
Version: 1.0.10
Requires at least: 6.4
Tested up to: 7.1
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: rhondanas-boston-terriers
Tags: custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, accessibility-ready, blog
*/

:root {
  --rbt-navy: #172a46;
  --rbt-ivory: #fbf8f1;
  --rbt-peach: #e9a078;
  --rbt-light-peach: #f7dfcf;
  --rbt-gold: #d9a441;
  --rbt-gray: #454545;
  --rbt-black: #111111;
  --rbt-link: #0645ad;
  --rbt-visited: #17365d;
  --rbt-on-navy: #fff8ec;
  --rbt-radius: 14px;
  --rbt-shadow: 0 8px 22px rgba(23, 42, 70, 0.12);
  --rbt-content: 1180px;
  --rbt-banner-pad: clamp(16px, 1.5vw, 24px);
  --rbt-end-size: clamp(170px, 15vw, 228px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--rbt-ivory);
  color: var(--rbt-black);
  font-family: Garamond, "EB Garamond", "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
a { color: var(--rbt-link); text-decoration: none; }
a:visited { color: var(--rbt-visited); }
a:hover, a:focus-visible { text-decoration: underline; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--rbt-gold); outline-offset: 3px; }

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.screen-reader-text:focus {
  top: 8px; left: 8px; z-index: 100000; width: auto; height: auto;
  padding: 12px 16px; clip: auto; background: var(--rbt-ivory); color: var(--rbt-navy);
}

.brand-banner { background: var(--rbt-navy); color: var(--rbt-on-navy); }
.brand-inner {
  width: 100%; margin: 0 auto;
  min-height: clamp(205px, 18vw, 260px);
  padding: var(--rbt-banner-pad);
  display: grid;
  grid-template-columns: var(--rbt-end-size) minmax(0, 1fr) var(--rbt-end-size);
  align-items: center;
  gap: clamp(20px, 3vw, 54px);
}
.brand-logo-wrap,
.featured-boston {
  width: var(--rbt-end-size);
  height: var(--rbt-end-size);
  display: flex;
  align-items: center;
  justify-content: center;
}
.brand-logo {
  width: 100%; height: 100%; object-fit: contain;
}
.brand-copy { min-width: 0; text-align: center; }
.brand-title {
  margin: 0;
  color: var(--rbt-on-navy);
  font-size: clamp(2rem, 3.7vw, 4.1rem);
  font-weight: 500;
  line-height: 1.05;
  text-wrap: balance;
}
.brand-title a, .brand-title a:visited { color: var(--rbt-on-navy); text-decoration: none; }
.brand-tagline {
  margin: 0.4rem 0 0;
  color: var(--rbt-gold);
  font-size: clamp(1rem, 2vw, 1.75rem);
  font-style: italic;
  line-height: 1.2;
}
.featured-boston { flex-direction: column; position: relative; }
.featured-boston::before {
  content: ""; position: absolute; z-index: 0;
  inset: 4% -6% 12%; border-radius: 50%;
  background: radial-gradient(ellipse, rgba(255, 248, 236, 0.15), rgba(80, 106, 138, 0.07) 44%, transparent 72%);
  pointer-events: none;
}
.featured-boston img {
  position: relative; z-index: 1;
  width: 100%; height: calc(100% - 2rem); object-fit: contain;
  transform: translateX(clamp(9px, 1.2vw, 16px)) scale(1.12);
  transform-origin: right bottom;
}
.featured-name {
  position: relative; z-index: 1;
  margin: 0.05rem 0 0; color: var(--rbt-gold);
  font-size: clamp(1rem, 1.5vw, 1.35rem); font-style: italic; line-height: 1.2;
}

.site-navigation { background: var(--rbt-ivory); border-bottom: 1px solid var(--rbt-peach); }
.menu-toggle {
  display: none; margin: 0 auto; padding: 0.8rem 1rem;
  border: 0; background: transparent; color: var(--rbt-navy); font-weight: 700;
}
.menu-toggle-icon { display: inline-block; margin-right: 0.45rem; }
.primary-menu,
.primary-menu ul { margin: 0; padding: 0; list-style: none; }
.primary-menu {
  max-width: var(--rbt-content); margin: 0 auto;
  display: flex; align-items: stretch; justify-content: center; flex-wrap: wrap;
}
.primary-menu > li { position: relative; }
.primary-menu a {
  display: flex; align-items: center; min-height: 52px; padding: 0.7rem 1rem;
  color: var(--rbt-navy); font-weight: 600; line-height: 1.2;
}
.primary-menu > li > a::after {
  content: ""; position: absolute; left: 1rem; right: 1rem; bottom: 0;
  height: 2px; background: transparent;
}
.primary-menu > li:hover > a::after,
.primary-menu > li:focus-within > a::after,
.primary-menu > .current-menu-item > a::after,
.primary-menu > .current-menu-ancestor > a::after { background: var(--rbt-peach); }
.primary-menu .menu-item-has-children > a::before {
  content: "⌄"; order: 2; margin-left: 0.45rem; color: var(--rbt-peach); font-size: 0.9em;
}
.primary-menu .sub-menu {
  position: absolute; z-index: 1000; top: 100%; left: 0; min-width: 240px;
  padding: 0.35rem 0; background: var(--rbt-ivory);
  border: 1px solid var(--rbt-peach); border-radius: 0 0 10px 10px;
  box-shadow: var(--rbt-shadow); opacity: 0; visibility: hidden;
  transform: translateY(-5px); transition: opacity 140ms ease, transform 140ms ease, visibility 140ms;
}
.primary-menu li:hover > .sub-menu,
.primary-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.primary-menu .sub-menu a { min-height: 46px; padding: 0.7rem 1rem; border-left: 4px solid transparent; }
.primary-menu .sub-menu a:hover,
.primary-menu .sub-menu a:focus-visible,
.primary-menu .sub-menu .current-menu-item > a {
  background: var(--rbt-light-peach); border-left-color: var(--rbt-navy); text-decoration: none;
}
.submenu-toggle { display: none; }

.site-main { min-height: 45vh; }
.content-wrap { width: min(calc(100% - 36px), var(--rbt-content)); margin: 0 auto; padding: clamp(2rem, 5vw, 4.5rem) 0; }
.page-header, .entry-header { margin-bottom: 1.5rem; }
.page-title, .entry-title {
  margin: 0; color: var(--rbt-navy); font-size: clamp(1.85rem, 3.4vw, 3rem); line-height: 1.15;
}
.entry-title a { color: inherit; }
.entry-meta { color: var(--rbt-gray); font-size: 0.95rem; }
.entry-content > * { max-width: 780px; }
.entry-content > .alignwide { max-width: 1080px; }
.entry-content > .alignfull { max-width: none; }
.entry-content h2, .entry-content h3, .entry-content h4 { color: var(--rbt-navy); line-height: 1.25; }
.entry-content blockquote { margin-left: 0; padding-left: 1.25rem; border-left: 4px solid var(--rbt-peach); }

.rbt-section-nav {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.7rem;
  max-width: 100%; margin: -0.35rem 0 1.4rem; padding: 0; background: transparent; border: 0;
}
.rbt-section-nav ul {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.2rem 0.65rem; margin: 0; padding: 0; list-style: none;
}
.rbt-section-nav li { display: flex; align-items: center; gap: 0.65rem; margin: 0; }
.rbt-section-nav li:not(:last-child)::after { content: "·"; color: var(--rbt-peach); font-weight: 700; }
.rbt-section-nav a,
.rbt-section-nav a:visited {
  display: block; padding: 0.25rem 0; border: 0; border-radius: 5px;
  background: transparent; color: var(--rbt-navy); font-size: 0.95rem; font-weight: 600; line-height: 1.25; text-decoration: none;
}
.rbt-section-nav a:hover,
.rbt-section-nav a:focus-visible { background: var(--rbt-light-peach); color: var(--rbt-navy); }
.rbt-section-nav .is-current a {
  padding: 0.32rem 0.55rem; background: var(--rbt-navy); color: var(--rbt-on-navy);
}

.home-intro { display: grid; grid-template-columns: 1fr minmax(280px, 0.9fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.home-intro h1 { margin: 0 0 1rem; color: var(--rbt-navy); font-size: clamp(2.4rem, 5vw, 4.4rem); line-height: 1.05; }
.home-intro p { font-size: 1.15rem; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 2.5rem; }
.feature-card,
.post-card {
  padding: 1.5rem; background: rgba(255,255,255,0.36);
  border: 1px solid var(--rbt-peach); border-radius: var(--rbt-radius);
}
.feature-card h2, .post-card h2 { margin-top: 0; color: var(--rbt-navy); }
.feature-icon { color: var(--rbt-peach); font-size: 2rem; line-height: 1; }
.posts-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }

.rbt-note,
.wp-block-group.is-style-rbt-note,
.wp-block-quote.is-style-rbt-note {
  width: fit-content; max-width: min(100%, 780px); padding: 1rem 1.25rem;
  background: var(--rbt-light-peach); border: 1px solid var(--rbt-peach);
  border-radius: var(--rbt-radius); color: var(--rbt-black); font-style: italic;
}
.rbt-note > :first-child { margin-top: 0; }
.rbt-note > :last-child { margin-bottom: 0; }
.paw-divider {
  height: 1px;
  margin: 2rem 0;
  background: rgba(233,160,120,0.65);
}
table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; background: rgba(255,255,255,0.3); }
th, td { padding: 0.75rem 0.9rem; border: 1px solid var(--rbt-peach); text-align: left; }
th { background: var(--rbt-light-peach); color: var(--rbt-navy); }

.post-thumbnail { margin-bottom: 1.25rem; border-radius: var(--rbt-radius); overflow: hidden; }
.navigation.pagination { margin-top: 2rem; }
.nav-links { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.page-numbers { padding: 0.45rem 0.75rem; border: 1px solid var(--rbt-peach); border-radius: 8px; }
.page-numbers.current { background: var(--rbt-navy); color: var(--rbt-on-navy); }

.comment-list { padding-left: 1.25rem; }
.comment-body { margin-bottom: 1rem; padding: 1rem; border: 1px solid var(--rbt-peach); border-radius: var(--rbt-radius); }
input[type="text"], input[type="email"], input[type="url"], input[type="search"], textarea, select {
  width: 100%; max-width: 620px; padding: 0.7rem 0.8rem;
  border: 1px solid var(--rbt-peach); border-radius: 8px; background: #fff; color: var(--rbt-black);
}
input[type="submit"], .wp-block-button__link, .button {
  display: inline-block; padding: 0.7rem 1.1rem; border: 1px solid var(--rbt-gold);
  border-radius: 8px; background: var(--rbt-navy); color: var(--rbt-on-navy); text-decoration: none;
}
input[type="submit"]:hover, .wp-block-button__link:hover, .button:hover { background: #203a60; text-decoration: none; }

.site-footer { background: var(--rbt-navy); color: var(--rbt-on-navy); text-align: center; }
.footer-inner { width: min(calc(100% - 36px), var(--rbt-content)); margin: 0 auto; padding: 2rem 0 1.5rem; }
.footer-contact { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.35rem 1.35rem; }
.footer-contact p { margin: 0; }
.site-footer a, .site-footer a:visited { color: var(--rbt-gold); }
.footer-menu { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.75rem 1.25rem; list-style: none; padding: 0; margin: 1rem 0 0; }
.footer-terms { margin: 1rem 0 0; }
.footer-terms-label { color: var(--rbt-on-navy); }
.footer-mark { width: 160px; margin: 1.35rem auto 0; border-top: 1px solid var(--rbt-gold); }
.site-info { margin-top: 0.8rem; font-size: 0.86rem; opacity: 0.84; }

@media (max-width: 1040px) {
  :root { --rbt-end-size: clamp(150px, 18vw, 190px); }
  .brand-title { font-size: clamp(1.8rem, 3.8vw, 3rem); }
  .primary-menu a { padding-left: 0.7rem; padding-right: 0.7rem; }
}

@media (max-width: 780px) {
  :root { --rbt-end-size: clamp(112px, 34vw, 150px); }
  .brand-inner {
    grid-template-columns: 1fr 1fr; min-height: 0; gap: 8px 20px;
  }
  .brand-logo-wrap { justify-self: start; }
  .featured-boston { justify-self: end; }
  .brand-copy { grid-column: 1 / -1; grid-row: 2; padding: 0.3rem 0 0.2rem; }
  .brand-title { font-size: clamp(1.65rem, 8vw, 2.4rem); }
  .brand-tagline { font-size: clamp(0.95rem, 4.6vw, 1.2rem); }
  .menu-toggle { display: block; width: 100%; }
  .menu-primary-container { display: none; border-top: 1px solid var(--rbt-peach); }
  .site-navigation.is-open .menu-primary-container { display: block; }
  .primary-menu { display: block; }
  .primary-menu li { position: relative; border-bottom: 1px solid rgba(233,160,120,0.5); }
  .primary-menu a { min-height: 50px; padding-right: 3.5rem; }
  .primary-menu > li > a::after, .primary-menu .menu-item-has-children > a::before { display: none; }
  .primary-menu .sub-menu {
    position: static; display: block; min-width: 0; padding: 0 0 0.35rem;
    border: 0; border-radius: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none;
  }
  .site-navigation.js-menu-ready .primary-menu .sub-menu { display: none; }
  .site-navigation.js-menu-ready .primary-menu .sub-menu.is-open { display: block; }
  .primary-menu .sub-menu a { min-height: 46px; padding-left: 1.75rem; }
  .submenu-toggle {
    display: grid; place-items: center; position: absolute; z-index: 2; top: 7px; right: 0.55rem; width: 38px; height: 36px;
    border: 1px solid var(--rbt-peach); border-radius: 5px; background: #fff3df; color: var(--rbt-navy); font-size: 1.45rem; font-weight: 700; line-height: 1;
  }
  .submenu-toggle:focus-visible { outline: 3px solid var(--rbt-link); outline-offset: 2px; }
  .rbt-section-nav { margin-top: -0.4rem; }
  .rbt-section-nav a { min-height: 0; }
  .home-intro, .feature-grid, .posts-grid { grid-template-columns: 1fr; }
  .footer-contact { flex-direction: column; }
}

@media (max-width: 420px) {
  body { font-size: 17px; }
  :root { --rbt-banner-pad: 14px; --rbt-end-size: 112px; }
  .brand-title { font-size: 1.55rem; }
  .brand-tagline { font-size: 0.95rem; }
}

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