/* ============================================================
   Cedar Innovatives — main.css
   Component styles: Header, Footer, Hero, Cards, Sections
   ============================================================ */

/* ============================================================
   HEADER — TOP BAR
   ============================================================ */
.header-topbar {
  background: var(--navy-dark);
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.header-topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-topbar__text {
  font-size: 11px;
  color: rgba(245, 243, 239, 0.55);
  letter-spacing: 0.5px;
}

.header-topbar__contact {
  display: flex;
  gap: 20px;
}

.header-topbar__contact a {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: rgba(245, 243, 239, 0.6);
  transition: color 0.2s;
}

.header-topbar__contact a:hover {
  color: var(--green);
}

/* ============================================================
   HEADER — MAIN NAV BAR
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--navy);
  border-bottom: 3px solid white;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
  transition: box-shadow 0.3s;
}

.site-header.scrolled {
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.header-main {
  background: var(--navy);
}

.header-main .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}

/* ── LOGO ── */
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
}

.site-logo__img {
  height: 44px;
  width: auto;
  display: block;
}

.site-logo img {
  height: 44px;
  width: auto;
}

.site-logo__icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  font-style: italic;
  flex-shrink: 0;
}

.site-logo__brand {
  color: var(--cream);
  font-family: var(--font-display);   /* Playfair Display — same as page headings */
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 700;
  font-style: normal;
  letter-spacing: 0.3px;
  white-space: nowrap;
  line-height: 1;
  text-shadow: 0 1px 4px rgba(0,0,0,0.25);
}

/* Legacy text classes (kept for compat) */
.site-logo__text { display: none; }
.site-logo__name { display: none; }
.site-logo__sub  { display: none; }

/* ── DESKTOP NAV ── */
.header-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list li a {
  display: block;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  color: var(--cream);
  letter-spacing: 0.3px;
  transition: all 0.2s;
  font-family: var(--font-body);
}

.nav-list li a:hover,
.nav-list li.current-menu-item > a,
.nav-list li.current_page_item > a {
  background: var(--white);
  color: var(--navy);
}

.header-whatsapp-btn {
  margin-left: 8px;
  padding: 9px 18px;
  font-size: 13px;
  flex-shrink: 0;
}

/* ── MOBILE HAMBURGER ── */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
  border-radius: 4px;
}

.hamburger-line {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--cream);
  border-radius: 2px;
  transition: all 0.3s;
}

/* Hamburger → X animation */
.mobile-menu-toggle.is-open .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.mobile-menu-toggle.is-open .hamburger-line:nth-child(2) {
  opacity: 0;
}
.mobile-menu-toggle.is-open .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--navy);
  color: var(--cream);
}

.footer-main {
  padding: 64px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
}

.footer-col__heading {
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 18px;
  font-family: var(--font-body);
  font-weight: 700;
}

/* Brand col */
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  text-decoration: none;
}

.footer-logo img {
  height: 36px;
  width: auto;
  filter: brightness(0) invert(1);
}

.footer-logo__icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  font-style: italic;
}

.footer-logo__name {
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--cream);
  letter-spacing: 1px;
}

.footer-brand__desc {
  font-size: 13px;
  line-height: 1.7;
  color: rgba(245, 243, 239, 0.6);
  max-width: 280px;
  margin-bottom: 20px;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social__link {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--cream);
  transition: all 0.2s;
  text-decoration: none;
}

.footer-social__link:hover {
  background: var(--green);
  color: var(--white);
}

/* Links col */
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  font-size: 13px;
  color: rgba(245, 243, 239, 0.65);
  transition: color 0.2s;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--green);
}

/* Contact col */
.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: rgba(245, 243, 239, 0.65);
  margin-bottom: 12px;
  line-height: 1.5;
}

.footer-contact li svg {
  flex-shrink: 0;
  margin-top: 1px;
  stroke: var(--green);
}

.footer-contact a {
  color: rgba(245, 243, 239, 0.65);
  transition: color 0.2s;
}

.footer-contact a:hover {
  color: var(--green);
}

.footer-whatsapp-btn {
  width: 100%;
  justify-content: center;
  font-size: 13px;
  padding: 11px 18px;
}

/* Footer bottom */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px 0;
}

.footer-bottom .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom__copy {
  font-size: 12px;
  color: rgba(245, 243, 239, 0.4);
}

.footer-bottom__links {
  display: flex;
  gap: 20px;
}

.footer-bottom__links a {
  font-size: 12px;
  color: rgba(245, 243, 239, 0.4);
  transition: color 0.2s;
}

.footer-bottom__links a:hover {
  color: var(--green);
}

/* ============================================================
   HOME HERO SECTION
   ============================================================ */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, #1a3a6a 100%);
  padding: 90px 24px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(45deg, transparent 30%, rgba(0, 103, 79, 0.1) 100%);
  pointer-events: none;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* Hero text side */
.hero__content {
  max-width: 560px;
}

.hero__eyebrow {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 14px;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(38px, 5vw, 52px);
  color: var(--cream);
  line-height: 1.12;
  margin-bottom: 20px;
}

.hero__title span {
  color: var(--green);
}

/* Subtitle line: "Cedar Coaching Center • Cedar Printing & Signage"
   Needs explicit color — without it, inherits dark body-text and is invisible on navy bg */
.hero__subhead {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 1.5px;
  color: rgba(245, 243, 239, 0.55);
  margin-bottom: 16px;
}

.hero__desc {
  font-size: 16px;
  color: rgba(245, 243, 239, 0.72);
  line-height: 1.75;
  max-width: 480px;
  margin-bottom: 32px;
}

.hero__buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}

.hero__stats {
  display: flex;
  gap: 36px;
}

.hero__stat-number {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  color: var(--green);
  line-height: 1;
  display: block;
}

.hero__stat-label {
  font-size: 11px;
  color: rgba(245, 243, 239, 0.5);
  letter-spacing: 1px;
  margin-top: 4px;
  display: block;
}

/* Hero image side */
.hero__image {
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── Hero Slider ──────────────────────────────────────── */
.hero__slider {
  position: relative;
}

.hero__slider-track {
  width: 100%;
  height: 100%;
  position: relative;
}

.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.9s ease-in-out;
  pointer-events: none;
}

.hero__slide.is-active {
  opacity: 1;
  z-index: 1;
  pointer-events: auto;
  /* Keep first slide in flow so container has height */
  position: relative;
}

/* All non-active slides stack on top via absolute */
.hero__slide:not(.is-active) {
  position: absolute;
}

.hero__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Dot indicators */
.hero__slider-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 7px;
  z-index: 10;
}

.hero__slider-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  cursor: pointer;
  padding: 0;
  transition: background 0.25s, transform 0.25s;
  flex-shrink: 0;
}

.hero__slider-dot.is-active {
  background: #fff;
  transform: scale(1.35);
}

.hero__slider-dot:hover {
  background: rgba(255, 255, 255, 0.8);
}

/* Bottom gradient so dots are readable on any image */
.hero__slider::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(to top, rgba(0,0,0,0.35) 0%, transparent 100%);
  z-index: 5;
  pointer-events: none;
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}

.hero__image-placeholder {
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-xl);
  border: 2px dashed rgba(255, 255, 255, 0.14);
  aspect-ratio: 16 / 9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.3);
}

.hero__image-placeholder span {
  font-size: 13px;
  letter-spacing: 1px;
}

/* ============================================================
   SERVICES OVERVIEW — HOME PAGE
   ============================================================ */
.services-overview {
  padding: var(--section-pad);
  background: var(--white);
}

/* Tab switcher */
.services-tabs {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-bottom: 32px;
  background: var(--cream);
  padding: 6px;
  border-radius: var(--radius-md);
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.services-tab-btn {
  flex: 1;
  padding: 11px 14px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: var(--body-text);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-body);
}

.services-tab-btn.is-active {
  background: var(--navy);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}

/* Unified cards layout */
.services-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  border: 1px solid var(--light-gray);
  cursor: pointer;
  transition: all 0.3s;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.service-card__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--green-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.service-card__title {
  font-family: var(--font-heading);
  font-size: 20px;
  color: var(--navy);
  margin-bottom: 12px;
}

.service-card__desc {
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 16px;
}

/* Tab panel layout */
.services-panel {
  display: none;
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: 40px;
  border: 1px solid var(--light-gray);
}

.services-panel.is-active {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.services-panel__title {
  font-family: var(--font-heading);
  font-size: 28px;
  color: var(--navy);
  margin-bottom: 14px;
}

.services-panel__desc {
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 20px;
}

.services-panel__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.services-panel__list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--navy);
}

.services-panel__list li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}

/* Braille callout inside panel */
.braille-callout {
  margin-top: 20px;
  padding: 14px 16px;
  background: linear-gradient(135deg, rgba(0, 103, 79, 0.08), rgba(0, 103, 79, 0.04));
  border-radius: var(--radius-md);
  border: 1px solid rgba(0, 103, 79, 0.18);
  display: flex;
  align-items: center;
  gap: 12px;
}

.braille-callout__text strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
}

.braille-callout__text span {
  font-size: 12px;
  color: var(--body-text);
}

/* ============================================================
   BRAILLE USP BANNER
   ============================================================ */
.braille-usp {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  padding: var(--section-pad-sm);
}

.braille-usp .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.braille-usp__content {
  display: flex;
  align-items: center;
  gap: 20px;
}

.braille-usp__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.braille-usp__title {
  font-family: var(--font-heading);
  font-size: 24px;
  color: var(--white);
  margin-bottom: 4px;
}

.braille-usp__desc {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
}

/* ============================================================
   TESTIMONIALS PREVIEW — HOME PAGE
   ============================================================ */
.testimonials-preview {
  padding: var(--section-pad);
  background: var(--cream);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid var(--light-gray);
  position: relative;
}

.testimonial-card__quote {
  position: absolute;
  top: 16px;
  right: 20px;
}

.testimonial-card__stars {
  margin-bottom: 12px;
}

.testimonial-card__text {
  font-size: 14px;
  line-height: 1.75;
  font-style: italic;
  margin-bottom: 18px;
  color: var(--body-text);
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-card__avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--navy-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  flex-shrink: 0;
  font-family: var(--font-heading);
}

.testimonial-card__name {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  display: block;
}

.testimonial-card__role {
  font-size: 12px;
  color: var(--body-text);
}

.testimonial-card__service-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  color: var(--green);
  background: var(--green-light);
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: 0.5px;
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
  padding: var(--section-pad);
  background: var(--white);
  text-align: center;
}

.cta-section h2 {
  margin-bottom: 14px;
}

.cta-section p {
  font-size: 16px;
  max-width: 580px;
  margin: 0 auto 32px;
}

.cta-section .btn-group {
  justify-content: center;
}

/* ============================================================
   ABOUT PAGE — STATS GRID
   ============================================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 32px;
}

.stat-item {
  padding: 18px;
  background: var(--cream);
  border-radius: var(--radius-md);
  text-align: left;
}

.stat-item__number {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--green);
  display: block;
  line-height: 1;
  margin-bottom: 4px;
}

.stat-item__label {
  font-size: 12px;
  color: var(--body-text);
}

/* Vision / Mission cards */
.vision-mission {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.vision-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px;
  border-left: 4px solid var(--green);
}

.vision-card h3 {
  font-family: var(--font-heading);
  font-size: 22px;
  color: var(--navy);
  margin-bottom: 14px;
}

/* ============================================================
   SERVICES PAGE
   ============================================================ */
.services-filter {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.services-filter-btn {
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  border: none;
  background: var(--cream);
  color: var(--navy);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-body);
}

.services-filter-btn.is-active,
.services-filter-btn:hover {
  background: var(--navy);
  color: var(--white);
}

.services-detail-panel {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.services-detail-panel.is-active {
  display: grid;
}

.services-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}

.services-list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--cream);
  border-radius: var(--radius-md);
  border: 1px solid var(--light-gray);
  font-size: 14px;
  font-weight: 500;
  color: var(--navy);
}

.services-list-item__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}

.services-usp-badge {
  margin-left: auto;
  font-size: 9px;
  font-weight: 700;
  background: var(--green);
  color: var(--white);
  padding: 2px 8px;
  border-radius: 10px;
  letter-spacing: 0.5px;
}

/* Quote widget */
.quote-widget {
  background: var(--navy);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.quote-widget h4 {
  margin-bottom: 10px;
}

.quote-widget p {
  font-size: 13px;
  color: rgba(245, 243, 239, 0.7);
  margin-bottom: 16px;
}

/* ============================================================
   PORTFOLIO PAGE
   ============================================================ */
.portfolio-filter {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.portfolio-filter-btn {
  padding: 8px 20px;
  border-radius: 20px;
  border: none;
  background: var(--cream);
  color: var(--navy);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-transform: capitalize;
  font-family: var(--font-body);
}

.portfolio-filter-btn.is-active,
.portfolio-filter-btn:hover {
  background: var(--navy);
  color: var(--white);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.portfolio-item {
  background: var(--cream);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--light-gray);
  cursor: pointer;
  transition: all 0.3s;
}

.portfolio-item:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-md);
}

.portfolio-item.is-hidden {
  display: none;
}

.portfolio-item__image {
  height: 200px;
  overflow: hidden;
}

.portfolio-item__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.portfolio-item:hover .portfolio-item__image img {
  transform: scale(1.05);
}

.portfolio-item__image-placeholder {
  height: 200px;
  background: linear-gradient(135deg, var(--navy-light), var(--green-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--body-text);
  opacity: 0.5;
}

.portfolio-item__info {
  padding: 16px;
}

.portfolio-item__category {
  font-size: 10px;
  font-weight: 700;
  color: var(--green);
  letter-spacing: 1px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 6px;
}

.portfolio-item__title {
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 4px;
}

.portfolio-item__location {
  font-size: 12px;
  color: var(--body-text);
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-form-section h2 {
  margin-bottom: 24px;
}

/* Inquiry type toggle */
.inquiry-toggle {
  margin-bottom: 24px;
}

.inquiry-toggle label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.inquiry-toggle-btns {
  display: flex;
  gap: 8px;
}

.inquiry-btn {
  flex: 1;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--light-gray);
  background: var(--cream);
  color: var(--navy);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-body);
}

.inquiry-btn.is-active {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}

/* Contact info card */
.contact-info-card {
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 24px;
}

.contact-info-card h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  color: var(--navy);
  margin-bottom: 20px;
}

.contact-info-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-info-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--light-gray);
}

.contact-info-list li:last-child {
  border-bottom: none;
}

.contact-info-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--green-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  flex-shrink: 0;
}

.contact-info-label {
  font-size: 11px;
  color: var(--body-text);
  letter-spacing: 1px;
  text-transform: uppercase;
  display: block;
}

.contact-info-value {
  font-size: 14px;
  font-weight: 500;
  color: var(--navy);
}

/* Map placeholder */
.map-placeholder {
  background: var(--navy-light);
  border-radius: var(--radius-lg);
  height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--light-gray);
  margin-bottom: 20px;
  overflow: hidden;
}

.map-placeholder iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* WhatsApp CTA block */
.whatsapp-cta-block {
  background: #25D366;
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.2s;
}

.whatsapp-cta-block:hover {
  opacity: 0.9;
}

.whatsapp-cta-block__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  display: block;
}

.whatsapp-cta-block__sub {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
}

/* ============================================================
   BLOG PAGE
   ============================================================ */
.blog-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
  align-items: start;
}

.blog-post-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.blog-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 20px;
  background: var(--cream);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--light-gray);
  cursor: pointer;
  transition: box-shadow 0.2s;
}

.blog-card:hover {
  box-shadow: var(--shadow-md);
}

.blog-card__thumbnail {
  height: 100%;
  min-height: 140px;
  overflow: hidden;
}

.blog-card__thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-card__thumbnail-placeholder {
  height: 100%;
  min-height: 140px;
  background: linear-gradient(135deg, var(--navy-light), var(--green-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--body-text);
  opacity: 0.5;
}

.blog-card__content {
  padding: 20px 20px 20px 0;
}

.blog-card__meta {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}

.blog-card__category {
  font-size: 10px;
  font-weight: 700;
  color: var(--green);
  background: var(--green-light);
  padding: 2px 8px;
  border-radius: 10px;
}

.blog-card__date {
  font-size: 11px;
  color: var(--body-text);
}

.blog-card__title {
  font-size: 17px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.4;
  margin-bottom: 8px;
  font-family: var(--font-heading);
}

.blog-card__excerpt {
  font-size: 13px;
  color: var(--body-text);
  line-height: 1.6;
}

/* Blog sidebar */
.blog-sidebar {
  position: sticky;
  top: 90px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar-widget {
  background: var(--cream);
  border-radius: var(--radius-md);
  padding: 24px;
  border: 1px solid var(--light-gray);
}

.sidebar-widget h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 16px;
}

.sidebar-categories li {
  padding: 8px 0;
  border-bottom: 1px solid var(--light-gray);
  font-size: 13px;
  color: var(--body-text);
  cursor: pointer;
  transition: color 0.2s;
}

.sidebar-categories li:last-child {
  border-bottom: none;
}

.sidebar-categories li:hover {
  color: var(--green);
}

/* Newsletter widget */
.sidebar-newsletter {
  background: var(--navy);
  border-radius: var(--radius-md);
  padding: 24px;
}

.sidebar-newsletter h4 {
  color: var(--cream);
  margin-bottom: 8px;
}

.sidebar-newsletter p {
  font-size: 12px;
  color: rgba(245, 243, 239, 0.6);
  margin-bottom: 16px;
}

.newsletter-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  color: var(--cream);
  font-size: 13px;
  font-family: var(--font-body);
  margin-bottom: 10px;
  outline: none;
}

.newsletter-input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.newsletter-input:focus {
  border-color: var(--green);
}

/* ============================================================
   CLIENTS TICKER
   ============================================================ */
.clients-ticker {
  padding: 28px 0;
  background: var(--cream);
  border-top: 1px solid var(--light-gray);
  border-bottom: 1px solid var(--light-gray);
  overflow: hidden;
}

.ticker-label {
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--body-text);
  margin-bottom: 16px;
  opacity: 0.6;
}

.ticker-track {
  display: flex;
  gap: 48px;
  animation: ticker-scroll 30s linear infinite;
  white-space: nowrap;
  width: max-content; /* Required for seamless infinite scroll loop */
}

.ticker-track span {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  opacity: 0.5;
  flex-shrink: 0;
}

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================================
   SINGLE BLOG POST
   ============================================================ */
.single-post-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 48px;
  align-items: start;
}

.post-content {
  background: var(--white);
}

.post-content h1 {
  font-family: var(--font-display);
  font-size: clamp(26px, 4vw, 38px);
  color: var(--navy);
  margin-bottom: 16px;
}

.post-content .post-meta {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--light-gray);
}

.post-content .entry-content {
  font-size: 16px;
  line-height: 1.85;
  color: var(--dark-text);
}

.post-content .entry-content h2,
.post-content .entry-content h3 {
  margin-top: 32px;
  margin-bottom: 14px;
}

.post-content .entry-content p {
  margin-bottom: 18px;
}

/* ============================================================
   404 PAGE
   ============================================================ */
.error-404 {
  text-align: center;
  padding: 100px 24px;
}

.error-404__code {
  font-family: var(--font-display);
  font-size: 120px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
  opacity: 0.1;
  margin-bottom: -40px;
}

.error-404 h1 {
  font-family: var(--font-heading);
  font-size: 32px;
  color: var(--navy);
  margin-bottom: 14px;
}

.error-404 p {
  max-width: 400px;
  margin: 0 auto 32px;
}

/* ============================================================
   BLOG PAGE — Additional styles
   ============================================================ */

/* Blog card read-more link */
.blog-card__readmore {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--green);
  transition: gap 0.2s;
}

.blog-card__readmore:hover {
  gap: 10px;
}

/* Blog card category + date meta row */
.blog-card__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.blog-card__cat {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--green);
  background: var(--green-light);
  padding: 2px 10px;
  border-radius: 20px;
}

.blog-card__date {
  font-size: 12px;
  color: var(--body-text);
  opacity: 0.7;
}

/* Blog empty state */
.blog-empty {
  text-align: center;
  padding: 80px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  color: var(--body-text);
  opacity: 0.6;
}

.blog-empty h3 {
  font-size: 22px;
  color: var(--navy);
  opacity: 1;
}

.blog-empty p {
  max-width: 360px;
  margin: 0 auto;
}

/* Blog pagination */
.blog-pagination {
  margin-top: 48px;
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.blog-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  background: var(--cream);
  border: 1px solid var(--light-gray);
  transition: all 0.2s;
}

.blog-pagination .page-numbers:hover,
.blog-pagination .page-numbers.current {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}

.blog-pagination .page-numbers.prev,
.blog-pagination .page-numbers.next {
  width: auto;
  padding: 0 16px;
}

/* Sidebar widget heading (using __title modifier) */
.sidebar-widget__title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--green);
}

/* Sidebar categories */
.sidebar-categories {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.sidebar-categories li a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  font-size: 13px;
  color: var(--body-text);
  border-bottom: 1px solid var(--light-gray);
  transition: color 0.2s;
}

.sidebar-categories li:last-child a {
  border-bottom: none;
}

.sidebar-categories li a:hover {
  color: var(--green);
}

.sidebar-cat-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  background: var(--navy-light);
  color: var(--navy);
  font-size: 11px;
  font-weight: 700;
  border-radius: 20px;
}

/* Sidebar recent posts */
.sidebar-recent {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sidebar-recent li a {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  transition: opacity 0.2s;
}

.sidebar-recent li a:hover {
  opacity: 0.75;
}

.sidebar-recent__thumb {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
}

.sidebar-recent__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sidebar-recent__info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-recent__title {
  font-size: 13px;
  font-weight: 600;
  color: var(--dark-text);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sidebar-recent__date {
  font-size: 11px;
  color: var(--body-text);
  opacity: 0.6;
}

/* Newsletter / CTA sidebar widget variant */
.sidebar-widget--newsletter {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--cream);
}

.sidebar-widget--newsletter .sidebar-widget__title {
  color: var(--cream);
  border-bottom-color: var(--green);
}

.sidebar-widget--newsletter p {
  color: rgba(245, 243, 239, 0.65);
  font-size: 13px;
  margin-bottom: 16px;
}

.sidebar-widget--cta {
  background: var(--green-light);
  border-color: var(--green);
}

.sidebar-widget--cta h3 {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.sidebar-widget--cta p {
  font-size: 13px;
  margin-bottom: 16px;
}

/* ============================================================
   SINGLE POST — Additional styles
   ============================================================ */

.single-post-hero {
  padding: 56px 24px;
}

.single-post-hero .container {
  max-width: 860px;
}

.single-post-hero__meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.single-post-hero__meta time,
.single-post-hero__read-time {
  font-size: 13px;
  color: rgba(245, 243, 239, 0.65);
}

.single-post-hero__excerpt {
  font-size: 17px;
  color: rgba(245, 243, 239, 0.7);
  margin-top: 14px;
  line-height: 1.7;
  max-width: 720px;
}

.single-post-featured-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 40px;
}

.single-post-featured-image img {
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: cover;
}

/* Entry content typography */
.entry-content {
  font-size: 16px;
  line-height: 1.85;
  color: var(--dark-text);
}

.entry-content h2 {
  font-family: var(--font-heading);
  font-size: clamp(20px, 3vw, 26px);
  color: var(--navy);
  margin: 36px 0 14px;
}

.entry-content h3 {
  font-family: var(--font-heading);
  font-size: clamp(17px, 2vw, 21px);
  color: var(--navy);
  margin: 28px 0 12px;
}

.entry-content p {
  margin-bottom: 20px;
}

.entry-content ul,
.entry-content ol {
  list-style: initial;
  padding-left: 24px;
  margin-bottom: 20px;
}

.entry-content li {
  margin-bottom: 8px;
}

.entry-content a {
  color: var(--green);
  text-decoration: underline;
}

.entry-content blockquote {
  border-left: 4px solid var(--green);
  padding: 16px 20px;
  margin: 28px 0;
  background: var(--green-light);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.entry-content blockquote p {
  margin-bottom: 0;
  font-style: italic;
  color: var(--navy);
}

.entry-content img {
  border-radius: var(--radius-md);
  margin: 16px 0;
}

/* Post tags */
.single-post-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--light-gray);
}

.single-post-tags > span {
  font-size: 13px;
  font-weight: 600;
  color: var(--body-text);
}

/* Author card */
.single-post-author {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 28px;
  background: var(--cream);
  border-radius: var(--radius-md);
  margin-top: 36px;
  border: 1px solid var(--light-gray);
}

.single-post-author__avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--navy-light);
}

.single-post-author__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.single-post-author__info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.single-post-author__label {
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--body-text);
  opacity: 0.6;
}

.single-post-author__name {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
}

/* Post navigation */
.single-post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--light-gray);
}

.single-post-nav__item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px;
  background: var(--cream);
  border-radius: var(--radius-md);
  border: 1px solid var(--light-gray);
  transition: all 0.2s;
}

.single-post-nav__item:hover {
  border-color: var(--green);
  background: var(--green-light);
}

.single-post-nav__item--next {
  text-align: right;
}

.single-post-nav__label {
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--green);
  font-weight: 600;
}

.single-post-nav__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Single post content area */
.single-post-content {
  min-width: 0;
}

/* ============================================================
   404 PAGE — New layout styles
   ============================================================ */

.error-404-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  align-items: center;
  padding: 60px 0;
}

.error-404-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.error-404-number {
  font-family: var(--font-display);
  font-size: clamp(120px, 15vw, 180px);
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(135deg, var(--navy) 0%, var(--green) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  user-select: none;
}

.error-404-dots {
  display: grid;
  grid-template-columns: repeat(3, 12px);
  gap: 10px;
  margin-top: 20px;
  opacity: 0.25;
}

.error-404-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--navy);
}

.error-404-dots span:nth-child(even) {
  background: var(--green);
}

.error-404-content .eyebrow {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 14px;
}

.error-404-content h1 {
  font-size: clamp(28px, 4vw, 40px);
  color: var(--navy);
  margin-bottom: 16px;
  line-height: 1.2;
}

.error-404-content > p {
  font-size: 16px;
  line-height: 1.75;
  margin-bottom: 28px;
  max-width: 480px;
}

.error-404-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 0;
}

.error-404-search {
  margin-bottom: 24px;
}

.error-404-search .search-form {
  display: flex;
  gap: 8px;
}

.error-404-search .search-field {
  flex: 1;
  padding: 11px 16px;
  border: 1.5px solid var(--light-gray);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--dark-text);
  outline: none;
  transition: border-color 0.2s;
}

.error-404-search .search-field:focus {
  border-color: var(--green);
}

.error-404-search .search-submit {
  padding: 11px 20px;
  background: var(--navy);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.error-404-search .search-submit:hover {
  background: var(--navy-dark);
}

.error-404-pages ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.error-404-pages ul li a {
  font-size: 13px;
  color: var(--green);
  font-weight: 600;
  padding: 4px 12px;
  background: var(--green-light);
  border-radius: 20px;
  transition: background 0.2s;
}

.error-404-pages ul li a:hover {
  background: var(--green);
  color: var(--white);
}

/* ============================================================
   SERVICE PHOTO GRID
   Used in: front-page.php service panels + page-services.php
   Replaces .img-placeholder when photos are uploaded via ACF
   ============================================================ */
/* ── SERVICE HERO SLIDER (replaces old photo grid) ── */
.svc-hero-slider {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--navy-dark);
  margin-bottom: 24px;
  box-shadow: var(--shadow-md);
}

.svc-hero-slider__track {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
}

.svc-hero-slider__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.75s ease-in-out;
  z-index: 0;
}

.svc-hero-slider__slide.is-active {
  opacity: 1;
  z-index: 1;
  /* stays position: absolute — track height comes from aspect-ratio */
}

.svc-hero-slider__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.svc-hero-slider__dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 10;
}

.svc-hero-slider__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: 1.5px solid rgba(255,255,255,0.65);
  cursor: pointer;
  padding: 0;
  transition: background 0.25s, transform 0.25s;
}

.svc-hero-slider__dot.is-active {
  background: #fff;
  transform: scale(1.3);
}

/* Legacy grid kept for compat */
.service-photo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.service-photo-grid__item {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  height: 180px;
  background: var(--cream);
}

.service-photo-grid__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
  display: block;
}

.service-photo-grid__item:hover img {
  transform: scale(1.07);
}

/* Single wide image when only 1 photo is uploaded */
.service-photo-grid__item:first-child:last-child {
  grid-column: 1 / -1;
  height: 260px;
}

/* ============================================================
   ABOUT PAGE PHOTO STACK
   Used in: page-about.php — main photo + optional 2×2 gallery
   ============================================================ */
.about-photo-stack {
  display: grid;
  gap: 12px;
}

.about-photo-stack__main {
  border-radius: 16px;
  overflow: hidden;
  background: var(--cream);
}

.about-photo-stack__main img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.about-photo-stack__main:hover img {
  transform: scale(1.03);
}

.about-photo-stack__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.about-photo-stack__grid img {
  border-radius: 10px;
  height: 120px;
  object-fit: cover;
  width: 100%;
  display: block;
  transition: transform 0.35s ease;
}

.about-photo-stack__grid img:hover {
  transform: scale(1.04);
}

/* ============================================================
   TESTIMONIAL AVATAR PHOTO (circular)
   When reviewer_photo ACF field is filled, shows photo
   Falls back to initials letter when no photo
   ============================================================ */
.testimonial-card__avatar img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

/* ============================================================
   IMG PLACEHOLDER UPGRADE
   Better visual indicator when photos haven't been uploaded yet
   ============================================================ */
.img-placeholder {
  background: linear-gradient(135deg, var(--navy-light, #e8eaf0) 0%, var(--cream) 100%);
  border: 2px dashed var(--light-gray);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--body-text);
  font-size: 13px;
  text-align: center;
  padding: 24px;
}

.img-placeholder svg {
  opacity: 0.35;
}

/* ============================================================
   RESPONSIVE — Photo grids on mobile
   ============================================================ */
@media (max-width: 480px) {
  .service-photo-grid {
    grid-template-columns: 1fr;
  }

  .service-photo-grid__item {
    height: 220px;
  }

  .about-photo-stack__main img {
    height: 280px;
  }

  .about-photo-stack__grid {
    grid-template-columns: 1fr 1fr;
  }

  .about-photo-stack__grid img {
    height: 100px;
  }
}

/* ============================================================
   FLOATING WHATSAPP BUTTON
   Fixed bottom-right, visible on all pages
   ============================================================ */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 24px;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 18px rgba(37, 211, 102, 0.45);
  z-index: 9998;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.6);
  color: #fff;
}

/* Pulse ring animation */
.whatsapp-float__pulse {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.4);
  animation: wa-pulse 2.4s ease-out infinite;
  pointer-events: none;
}

@keyframes wa-pulse {
  0%   { transform: scale(1);   opacity: 0.75; }
  70%  { transform: scale(1.65); opacity: 0; }
  100% { transform: scale(1.65); opacity: 0; }
}

/* Tooltip on hover */
.whatsapp-float__tooltip {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  background: #1a1a2e;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  padding: 6px 12px;
  border-radius: 6px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.whatsapp-float__tooltip::after {
  content: '';
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-left-color: #1a1a2e;
}

.whatsapp-float:hover .whatsapp-float__tooltip {
  opacity: 1;
}

/* ============================================================
   SCROLL REVEAL SYSTEM
   Pure CSS + IntersectionObserver (zero library overhead)
   ============================================================ */

/* Hidden start state — elements animate in when .is-visible added by JS */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.58s ease, transform 0.58s ease;
  will-change: transform, opacity;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delay variants — add data-delay="1/2/3" to child elements */
.reveal[data-delay="1"] { transition-delay: 0.12s; }
.reveal[data-delay="2"] { transition-delay: 0.22s; }
.reveal[data-delay="3"] { transition-delay: 0.32s; }
.reveal[data-delay="4"] { transition-delay: 0.42s; }

/* Slide-in from left variant */
.reveal--left {
  transform: translateX(-28px);
}
.reveal--left.is-visible {
  transform: translateX(0);
}

/* Accessibility: immediately show for users who prefer no motion */
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal--left {
    opacity: 1;
    transform: none;
    transition: none;
    will-change: auto;
  }
}

/* ============================================================
   CONTACT FORM — Improved layout & styles
   ============================================================ */

/* Intro text under heading */
.contact-form-intro {
  font-size: 14px;
  color: var(--body-text);
  margin-bottom: 22px;
  line-height: 1.6;
}

/* Email + Phone side by side */
.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 560px) {
  .form-grid-2 {
    grid-template-columns: 1fr;
  }
}

/* Form inputs */
.contact-form .form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-form .form-row label {
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.2px;
}

.contact-form .form-row input,
.contact-form .form-row select,
.contact-form .form-row textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--light-gray);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: var(--font-body);
  color: var(--dark-text);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-form .form-row input:focus,
.contact-form .form-row select:focus,
.contact-form .form-row textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(0, 103, 79, 0.12);
  outline: none;
}

.contact-form .form-row textarea {
  resize: vertical;
  min-height: 120px;
}

/* Required asterisk */
.form-required {
  color: #ef4444;
  margin-left: 2px;
}

/* Full-width button */
.btn--full {
  width: 100%;
  justify-content: center;
}

/* WhatsApp hint below submit button */
.form-privacy-note {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 13px;
  color: var(--body-text);
}

.form-privacy-note a {
  color: var(--green);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Success / Error notices */
.contact-notice {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.5;
}

.contact-notice--success {
  background: #e6f2ee;
  border-left: 4px solid var(--green);
  color: #00674f;
}

.contact-notice--error {
  background: #fef2f2;
  border-left: 4px solid #ef4444;
  color: #dc2626;
}

/* Contact info column spacing */
.contact-info-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ============================================================
   TESTIMONIALS PAGE — REVIEWS CTA BOX
   Replaces inline-style Google Reviews block for responsive control
   ============================================================ */
.reviews-cta {
  text-align: center;
  margin-top: 48px;
  padding: 36px 32px;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--light-gray);
}

.reviews-cta__rating {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 14px;
}

.reviews-cta__score {
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
}

.reviews-cta__title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}

.reviews-cta__desc {
  font-size: 15px;
  color: var(--body-text);
  margin-bottom: 22px;
}

/* ============================================================
   TESTIMONIAL CARD — TOP ROW (stars + badge side by side)
   Replaces inline-style flex div inside each card
   ============================================================ */
.testimonial-card__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 8px;
}

/* ============================================================
   FIX: CUSTOM LOGO — constrain size regardless of upload dims
   WordPress wraps custom logo in <a class="custom-logo-link">
   The img gets inline width/height from WordPress — override them.
   ============================================================ */
.custom-logo-link {
  display: flex;
  align-items: center;
  line-height: 0;
}

.custom-logo {
  height: 44px !important;
  width: auto !important;
  max-height: 44px !important;
  max-width: 180px !important;
  object-fit: contain;
  display: block;
}

/* Footer logo — when using the same logo as header, reduce size and invert to white */
.footer-logo .custom-logo {
  height: 34px !important;
  max-height: 34px !important;
  max-width: 150px !important;
  filter: brightness(0) invert(1); /* make the logo white for dark footer bg */
}

/* Footer logo — custom white/light logo uploaded separately via Customizer */
.footer-logo-custom {
  height: 34px;
  width: auto;
  max-height: 34px;
  max-width: 150px;
  object-fit: contain;
  display: block;
  filter: none; /* use as-is — it's already white/light */
}

/* ============================================================
   FIX: FLOATING WHATSAPP BUTTON — SVG fill + stacking context
   Ensures icon always appears white regardless of SVG structure
   ============================================================ */
.whatsapp-float svg {
  fill: #ffffff;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.whatsapp-float {
  isolation: isolate; /* prevent stacking context issues from parent transforms */
}

/* ============================================================
   FIX: CONTACT FORM — card container + row spacing
   ============================================================ */

/* Give the form section a visible card appearance */
.contact-form-section {
  background: var(--white);
  border: 1.5px solid var(--light-gray);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: 0 2px 16px rgba(18, 35, 72, 0.06);
}

/* Space out all form rows (label + input pairs) */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Ensure form-row stretches full width */
.contact-form > .form-row,
.contact-form > .form-grid-2,
.contact-form > #field-coaching-grade {
  width: 100%;
}

/* Section heading inside form card */
.contact-form-section > h2 {
  font-size: clamp(20px, 3vw, 26px);
  margin-bottom: 6px;
}

/* Subtle divider below heading */
.contact-form-section > .contact-form-intro {
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--light-gray);
}

/* ══════════════════════════════════════════════════════════
   DARK MODE TOGGLE — smooth pill slider
   ══════════════════════════════════════════════════════════ */

/* ── PAGE HERO SUBNAV (Services page subtitle links) ── */
.page-hero__subnav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 4px;
}

.page-hero__subnav-btn {
  background: none;
  border: none;
  color: rgba(245, 243, 239, 0.75);
  font-size: 15px;
  font-family: var(--font-body);
  font-weight: 500;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
  letter-spacing: 0.3px;
}

.page-hero__subnav-btn:hover {
  color: #fff;
  background: rgba(0, 103, 79, 0.35);
}

.page-hero__subnav span[aria-hidden] {
  color: rgba(245, 243, 239, 0.4);
  font-size: 15px;
}

/* ══════════════════════════════════════════════════════════
   DARK MODE — COMPREHENSIVE OVERRIDES
   All sections, cards, text, borders for [data-theme="dark"]
   ══════════════════════════════════════════════════════════ */

/* ── Core page + typography ── */
[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5,
[data-theme="dark"] h6 {
  color: var(--text-head);
}

/* ── Section backgrounds ── */
[data-theme="dark"] .section,
[data-theme="dark"] .section--cream {
  background: var(--page-bg);
}

[data-theme="dark"] .section--navy,
[data-theme="dark"] .section--green {
  /* keep navy/green sections as-is */
}

/* ── Cards ── */
[data-theme="dark"] .service-card,
[data-theme="dark"] .portfolio-item,
[data-theme="dark"] .blog-card,
[data-theme="dark"] .about-value-card,
[data-theme="dark"] .stat-card,
[data-theme="dark"] .info-card,
[data-theme="dark"] .services-detail-panel,
[data-theme="dark"] .sidebar-widget,
[data-theme="dark"] .sidebar-categories,
[data-theme="dark"] .blog-pagination .page-numbers {
  background: var(--surface-card);
  border-color: var(--border-col);
}

[data-theme="dark"] .service-card:hover,
[data-theme="dark"] .portfolio-item:hover,
[data-theme="dark"] .blog-card:hover {
  background: var(--surface);
  border-color: rgba(0, 103, 79, 0.5);
}

/* ── Testimonials ── */
[data-theme="dark"] .testimonial-card {
  background: var(--surface-card);
  border-color: var(--border-col);
}

[data-theme="dark"] .testimonial-card__rating {
  color: var(--accent);
}

/* ── Services panels ── */
[data-theme="dark"] .services-filter-btn {
  background: var(--surface-card);
  border-color: var(--border-col);
  color: var(--text-head);
}

[data-theme="dark"] .services-filter-btn.is-active,
[data-theme="dark"] .services-filter-btn:hover {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
}

[data-theme="dark"] .services-list-item {
  border-color: var(--border-col);
  color: var(--text-body-val);
}

[data-theme="dark"] .braille-callout {
  background: var(--surface);
  border-color: var(--border-col);
}

/* ── Portfolio ── */
[data-theme="dark"] .portfolio-filter-btn {
  background: var(--surface-card);
  border-color: var(--border-col);
  color: var(--text-head);
}

[data-theme="dark"] .portfolio-filter-btn.is-active,
[data-theme="dark"] .portfolio-filter-btn:hover {
  background: var(--green);
  color: var(--white);
}

[data-theme="dark"] .portfolio-item__meta {
  background: var(--surface-card);
}

[data-theme="dark"] .portfolio-item__title,
[data-theme="dark"] .portfolio-item__client {
  color: var(--text-head);
}

/* ── About page ── */
[data-theme="dark"] .about-stats-section,
[data-theme="dark"] .about-story-section,
[data-theme="dark"] .about-values-section {
  background: var(--page-bg);
}

[data-theme="dark"] .about-stat-number,
[data-theme="dark"] .hero__stat-number {
  color: var(--green);
}

/* ── Contact page ── */
[data-theme="dark"] .contact-form-section {
  background: var(--surface-card);
  border-color: var(--border-col);
}

[data-theme="dark"] .wpcf7 input[type="text"],
[data-theme="dark"] .wpcf7 input[type="email"],
[data-theme="dark"] .wpcf7 input[type="tel"],
[data-theme="dark"] .wpcf7 textarea,
[data-theme="dark"] .wpcf7 select,
[data-theme="dark"] input[type="text"],
[data-theme="dark"] input[type="email"],
[data-theme="dark"] input[type="tel"],
[data-theme="dark"] textarea,
[data-theme="dark"] select {
  background: var(--surface);
  border-color: var(--border-col);
  color: var(--text-head);
}

[data-theme="dark"] input::placeholder,
[data-theme="dark"] textarea::placeholder {
  color: rgba(155, 168, 192, 0.6);
}

/* ── Blog ── */
[data-theme="dark"] .blog-card__category,
[data-theme="dark"] .blog-card__date {
  color: var(--text-body-val);
}

[data-theme="dark"] .blog-card__title {
  color: var(--text-head);
}

[data-theme="dark"] .single-post-content {
  color: var(--text-body-val);
}

[data-theme="dark"] .single-post-content h2,
[data-theme="dark"] .single-post-content h3 {
  color: var(--text-head);
}

[data-theme="dark"] .post-tags a,
[data-theme="dark"] .sidebar-categories li a {
  color: var(--text-body-val);
}

[data-theme="dark"] .sidebar-recent li {
  border-color: var(--border-col);
}

/* ── Services overview (home) tabs ── */
[data-theme="dark"] .services-tab-btn {
  background: var(--surface-card);
  color: var(--text-head);
}

[data-theme="dark"] .services-tab-btn.is-active {
  background: var(--navy);
  color: var(--cream);
}

/* ── Stats & counters ── */
[data-theme="dark"] .hero__stat-number {
  color: var(--green);
}

[data-theme="dark"] .hero__stat-label {
  color: var(--text-body-val);
}

/* ── Dividers & misc ── */
[data-theme="dark"] .divider {
  background: var(--green);
}

[data-theme="dark"] .eyebrow {
  color: var(--green);
}

[data-theme="dark"] .section-header p {
  color: var(--text-body-val);
}

/* ── Service photo grid ── */
[data-theme="dark"] .service-photo-grid__item {
  border-color: var(--border-col);
}

/* ── Page hero (remains navy — already dark) ── */
[data-theme="dark"] .page-hero {
  /* stays navy gradient, no change needed */
}

/* ── WhatsApp float ── */
[data-theme="dark"] .whatsapp-float {
  /* green button, no change */
}

/* ── CTA sections ── */
[data-theme="dark"] .cta-section {
  background: var(--surface-alt);
}

/* ── 404 ── */
[data-theme="dark"] .error-404 {
  background: var(--page-bg);
  color: var(--text-head);
}

/* ── Inquiry toggle ── */
[data-theme="dark"] .inquiry-toggle label {
  background: var(--surface-card);
  border-color: var(--border-col);
  color: var(--text-head);
}

[data-theme="dark"] .inquiry-toggle input:checked + label {
  background: var(--navy);
  color: var(--cream);
}

/* ── Badge ── */
[data-theme="dark"] .badge--navy-light {
  background: var(--surface);
  color: var(--text-head);
}

/* ── Mobile nav in dark mode ── */
[data-theme="dark"] .header-nav.is-open {
  background: var(--surface-alt);
}

/* ── Transition smoothing for all common elements ── */
[data-theme="dark"] *,
[data-theme="dark"] *::before,
[data-theme="dark"] *::after {
  transition-property: background-color, border-color, color;
  transition-duration: 0.25s;
  transition-timing-function: ease;
}

/* ──────────────────────────────────────────────────────────
   DARK MODE TEXT COLOR FIXES
   Override hardcoded light colors (rgba(245,243,239) and white)
   to use proper dark mode text colors
────────────────────────────────────────────────────────── */

/* Header topbar text */
[data-theme="dark"] .header-topbar__text {
  color: rgba(155, 168, 192, 0.8);
}

/* Header contact links and buttons */
[data-theme="dark"] .header-topbar__contact a {
  color: var(--text-body-val);
}

/* Hero section text colors */
[data-theme="dark"] .hero__eyebrow {
  color: var(--green);
}

[data-theme="dark"] .hero__title {
  color: var(--text-head);
}

[data-theme="dark"] .hero__subhead {
  color: var(--text-body-val);
}

[data-theme="dark"] .hero__desc {
  color: var(--text-body-val);
}

/* Stats */
[data-theme="dark"] .hero__stat-label {
  color: rgba(155, 168, 192, 0.8);
}

[data-theme="dark"] .hero__stat-number {
  color: var(--text-head);
}

/* Section headers */
[data-theme="dark"] .section-header .eyebrow {
  color: var(--green);
}

[data-theme="dark"] .section-header h2 {
  color: var(--text-head);
}

[data-theme="dark"] .section-header p {
  color: var(--text-body-val);
}

/* Cards and testimonials */
[data-theme="dark"] .testimonial-card__text {
  color: var(--text-body-val);
}

[data-theme="dark"] .testimonial-card__name {
  color: var(--text-head);
}

[data-theme="dark"] .testimonial-card__role {
  color: rgba(155, 168, 192, 0.75);
}

/* Portfolio and services cards */
[data-theme="dark"] .portfolio-card__title {
  color: var(--text-head);
}

[data-theme="dark"] .portfolio-card__meta {
  color: var(--text-body-val);
}

[data-theme="dark"] .service-card__title {
  color: var(--text-head);
}

[data-theme="dark"] .service-card__text {
  color: var(--text-body-val);
}

/* Blog posts */
[data-theme="dark"] .post-card__title {
  color: var(--text-head);
}

[data-theme="dark"] .post-card__excerpt {
  color: var(--text-body-val);
}

[data-theme="dark"] .post-card__meta {
  color: rgba(155, 168, 192, 0.7);
}

/* Footer text */
[data-theme="dark"] .footer-col__title {
  color: var(--text-head);
}

[data-theme="dark"] .footer-col a {
  color: var(--text-body-val);
}

[data-theme="dark"] .footer-col a:hover {
  color: var(--green);
}

[data-theme="dark"] .footer-bottom__text {
  color: rgba(155, 168, 192, 0.6);
}

/* Generic light text that needs dark mode override */
[data-theme="dark"] .eyebrow,
[data-theme="dark"] .label,
[data-theme="dark"] .caption {
  color: var(--text-body-val);
}

/* Links */
[data-theme="dark"] a {
  transition: color 0.2s ease;
}

[data-theme="dark"] a:hover {
  color: var(--green);
}
