/*
Theme Name: SA Theme
Theme URI: https://searchabove.co.uk
Author: Search Above
Author URI: https://searchabove.co.uk
Description: Search Above starter theme. Bootstrap 5.3.8 and Slick Carousel bundled locally, self-hosted Poppins, custom nav walker. Used as the base for every new client build.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Tested up to: 6.6
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sa-theme
*/

/* ==========================================================================
   Base — brand tokens as CSS custom properties.
   Bootstrap handles layout/grid/components; this file only carries brand
   colour, type, and small overrides that don't belong in Bootstrap's own
   files. Keep Bootstrap's CSS untouched so it stays easy to update.
   ========================================================================== */

:root {
  --sa-black: #0B0B0C;
  --sa-yellow: #FFD21F;
  --sa-cream: #FAF9F5;
  --sa-white: #FFFFFF;

  --sa-font-body: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --sa-font-display: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Map onto Bootstrap's own variables so components (buttons, links,
     focus rings, etc.) inherit brand colour without overriding Bootstrap
     class-by-class. */
  --bs-primary: var(--sa-black);
  --bs-primary-rgb: 11, 11, 12;
  --bs-secondary: var(--sa-yellow);
  --bs-secondary-rgb: 255, 210, 31;
  --bs-body-font-family: var(--sa-font-body);
  --bs-body-color: var(--sa-black);
  --bs-body-bg: var(--sa-cream);
  --bs-link-color: var(--sa-black);
  --bs-link-hover-color: #000;
}

body {
  font-family: var(--sa-font-body);
  background: var(--sa-cream);
  color: var(--sa-black);
  max-width: 100%;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--sa-font-display);
  font-weight: 500;
}

a {
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

/* Skip link, hidden until focused */
.skip-link {
  position: absolute;
  left: 12px;
  top: 0;
  background: var(--sa-yellow);
  color: var(--sa-black);
  padding: 12px 20px;
  font-weight: 600;
  z-index: 999;
  transform: translateY(-150%);
  transition: transform 0.2s ease;
}
.skip-link:focus {
  transform: translateY(12px);
}

/* WordPress core alignment classes (required) */
.alignleft   { float: left; margin: 0 1.5em 1.5em 0; }
.alignright  { float: right; margin: 0 0 1.5em 1.5em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption  { max-width: 100%; }
.wp-caption-text { font-size: 0.85em; color: #6b6b6b; }
.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}
.screen-reader-text:focus {
  position: static !important;
  width: auto; height: auto;
  clip: auto;
}

/* Gold-dot wordmark helper, matches the logo mark */
.sa-dot { color: var(--sa-yellow); }

/* ==========================================================================
   Nav walker — multi-level dropdown support.
   Desktop: Bootstrap's own .dropdown / .dropend classes handle positioning,
   no extra CSS needed. Below the navbar breakpoint the menu collapses into
   an off-canvas list, where a sideways-opening .dropend panel makes no
   sense — force every level to stack normally instead.
   ========================================================================== */
@media (max-width: 991.98px) {
  .navbar-collapse .dropdown-menu {
    position: static;
    float: none;
    width: 100%;
    margin-left: 1rem;
    border: none;
    box-shadow: none;
    background: transparent;
  }
  .navbar-collapse .dropend > .dropdown-toggle::after {
    transform: rotate(90deg);
  }
}

.navbar .nav-link.active {
  color: var(--sa-black);
  font-weight: 600;
}

/* ==========================================================================
   Site header — colours lifted from the logo (uploads/2026/08/logo.png):
   navy #424A63, gold #C9B66A. The logo file itself is a solid navy panel
   (not transparent), so it already reads as a "badge" sitting on the white
   bar; header CSS below just gives it room and echoes the same two colours
   in the nav and CTA.
   ========================================================================== */
:root {
  --sa-header-navy: #424A63;
  --sa-header-gold: #C9B66A;
}

.sa-topbar {
  background-color: #363c52;
  color: #fff;
  font-size: 0.85rem;
  padding: 8px 0;
}

.sa-topbar-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.sa-topbar-item:hover,
.sa-topbar-item:focus {
  color: var(--sa-header-gold);
}

.sa-topbar-item svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.site-header {
  background-color: var(--sa-header-navy);
}

@media (min-width: 992px) {
  .site-header .navbar-brand {
    margin-right: 2.5rem;
  }
}

.site-header .navbar-brand .custom-logo {
  height: 48px;
  width: auto;
}

@media (min-width: 992px) {
  .site-header .navbar-brand .custom-logo {
    height: 72px;
  }
}

.site-header .navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  transition: color 0.15s ease;
}

.site-header .navbar-nav .nav-link:hover,
.site-header .navbar-nav .nav-link:focus {
  color: #fff;
}

.site-header .navbar-nav .nav-link.active {
  color: #fff;
  font-weight: 600;
}

.site-header .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.4);
}

.site-header .navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25);
}

.site-header .navbar-toggler-icon {
  --bs-navbar-toggler-icon-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Full-screen mobile nav — below the .navbar-expand-lg breakpoint, the
   Bootstrap collapse becomes a fixed full-viewport overlay instead of an
   inline dropdown. Uses Bootstrap's own collapse JS/classes, just repainted
   with CSS; body scroll is locked via the "sa-nav-open" class in theme.js. */
@media (max-width: 991.98px) {
  .site-header .navbar-brand {
    position: relative;
    z-index: 1046;
  }

  .site-header .navbar-toggler {
    position: relative;
    z-index: 1046;
  }

  .site-header .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
    --bs-navbar-toggler-icon-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M6 6l18 18M24 6L6 24'/%3e%3c/svg%3e");
  }

  /* .collapsing gets the same fullscreen treatment as .show, and the
     height transition Bootstrap normally animates is switched off, so the
     panel snaps straight to fullscreen instead of visibly growing/sliding
     down first. */
  .site-header .navbar-collapse.show,
  .site-header .navbar-collapse.collapsing {
    position: fixed;
    inset: 0;
    z-index: 1045;
    width: 100vw;
    height: 100vh !important;
    margin: 0;
    padding: 6rem 1.5rem 2rem;
    background-color: var(--sa-header-navy);
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    transition: none;
  }

  .site-header .navbar-collapse.show .navbar-nav,
  .site-header .navbar-collapse.collapsing .navbar-nav {
    position: relative;
    z-index: 1;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    margin: 0 !important;
    align-items: stretch !important;
    gap: 0 !important;
  }

  .site-header .navbar-collapse.show .nav-item,
  .site-header .navbar-collapse.collapsing .nav-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    opacity: 0;
    transform: translateY(14px);
    animation: sa-mobile-nav-item-in 0.45s ease forwards;
  }

  .site-header .navbar-collapse.show .nav-item:first-child,
  .site-header .navbar-collapse.collapsing .nav-item:first-child {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }

  .site-header .navbar-collapse.show .nav-item:nth-child(1),
  .site-header .navbar-collapse.collapsing .nav-item:nth-child(1) { animation-delay: 0.05s; }
  .site-header .navbar-collapse.show .nav-item:nth-child(2),
  .site-header .navbar-collapse.collapsing .nav-item:nth-child(2) { animation-delay: 0.1s; }
  .site-header .navbar-collapse.show .nav-item:nth-child(3),
  .site-header .navbar-collapse.collapsing .nav-item:nth-child(3) { animation-delay: 0.15s; }
  .site-header .navbar-collapse.show .nav-item:nth-child(4),
  .site-header .navbar-collapse.collapsing .nav-item:nth-child(4) { animation-delay: 0.2s; }
  .site-header .navbar-collapse.show .nav-item:nth-child(5),
  .site-header .navbar-collapse.collapsing .nav-item:nth-child(5) { animation-delay: 0.25s; }
  .site-header .navbar-collapse.show .nav-item:nth-child(6),
  .site-header .navbar-collapse.collapsing .nav-item:nth-child(6) { animation-delay: 0.3s; }
  .site-header .navbar-collapse.show .nav-item:nth-child(7),
  .site-header .navbar-collapse.collapsing .nav-item:nth-child(7) { animation-delay: 0.35s; }

  .site-header .navbar-collapse.show .nav-link,
  .site-header .navbar-collapse.collapsing .nav-link {
    display: block;
    padding: 1.1rem 0.25rem !important;
    text-align: center;
    font-size: 1.35rem;
    font-weight: 500;
    position: relative;
  }

  .site-header .navbar-collapse.show .nav-link.active,
  .site-header .navbar-collapse.collapsing .nav-link.active {
    color: var(--sa-header-gold);
  }

  .site-header .navbar-collapse.show .nav-link::after,
  .site-header .navbar-collapse.collapsing .nav-link::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0.55rem;
    width: 0;
    height: 2px;
    background-color: var(--sa-header-gold);
    transform: translateX(-50%);
    transition: width 0.2s ease;
  }

  .site-header .navbar-collapse.show .nav-link:active::after,
  .site-header .navbar-collapse.collapsing .nav-link:active::after {
    width: 32px;
  }

  .sa-mobile-nav-footer {
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
    padding-top: 1.5rem;
    text-align: center;
    opacity: 0;
    animation: sa-mobile-nav-item-in 0.45s ease forwards;
    animation-delay: 0.4s;
  }

  .sa-mobile-nav-contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
  }

  .sa-mobile-nav-contact a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
  }

  .sa-mobile-nav-contact svg {
    width: 16px;
    height: 16px;
    color: var(--sa-header-gold);
  }

  .sa-mobile-nav-social {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #fff;
  }

  .sa-mobile-nav-social svg {
    width: 17px;
    height: 17px;
  }
}

@keyframes sa-mobile-nav-item-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 991.98px) and (prefers-reduced-motion: reduce) {
  .site-header .navbar-collapse.show .nav-item,
  .site-header .navbar-collapse.collapsing .nav-item,
  .sa-mobile-nav-footer {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

body.sa-nav-open {
  overflow: hidden;
}

body.sa-nav-open .sa-whatsapp-button {
  display: none;
}

/* ==========================================================================
   Homepage template (page-templates/template-home.php) — alternating
   white/light-grey sections in the style referenced from romankitchens.co.uk.
   ========================================================================== */
:root {
  --sa-grey-light: #F3F2EE;
}

@media (min-width: 992px) {
  .py-lg-6 {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }
}

.sa-eyebrow {
  display: inline-block;
  color: var(--sa-header-gold);
  letter-spacing: 0.08em;
}

.sa-hero {
  position: relative;
  overflow: hidden;
  background-color: #fff;
}

.sa-hero > .container {
  position: relative;
  z-index: 1;
}

.sa-hero-heading {
  font-weight: 600;
  color: var(--sa-header-navy);
}

.sa-hero-lead {
  color: #5B5E6B;
}

.sa-hero-lead p:last-child {
  margin-bottom: 0;
}

.btn-sa-cta {
  background-color: #fff;
  border: 2px solid var(--sa-black);
  color: var(--sa-black);
  border-radius: 50px;
  padding: 0.85rem 2.25rem;
  font-weight: 600;
}

.btn-sa-cta:hover,
.btn-sa-cta:focus {
  background-color: var(--sa-black);
  border-color: var(--sa-black);
  color: #fff;
}

/* Soft light-grey colour wash behind the hero content — no shapes or
   lines, just two large soft glows that slowly drift and breathe, like
   light moving across a wall. Decorative only (aria-hidden), turned off
   for anyone who prefers reduced motion. */
.sa-hero-wash {
  position: absolute;
  inset: -25%;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(ellipse 55% 50% at 25% 30%, rgba(120, 120, 120, 0.22) 0%, rgba(120, 120, 120, 0) 70%),
    radial-gradient(ellipse 50% 45% at 78% 72%, rgba(120, 120, 120, 0.18) 0%, rgba(120, 120, 120, 0) 70%);
  animation: sa-hero-wash-breathe 30s ease-in-out infinite alternate;
}

@keyframes sa-hero-wash-breathe {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 0.75;
  }
  50% {
    transform: translate(3%, -2%) scale(1.06);
    opacity: 1;
  }
  100% {
    transform: translate(-2%, 3%) scale(1);
    opacity: 0.85;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sa-hero-wash {
    animation: none;
  }
}

.sa-hero-image {
  width: 100%;
  height: 100%;
  min-height: 320px;
  max-height: 520px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 12px 40px rgba(11, 11, 12, 0.15);
}

.sa-columns-2 {
  column-count: 1;
}

@media (min-width: 992px) {
  .sa-columns-2 {
    column-count: 2;
    column-gap: 3rem;
  }
}

.sa-columns-2 p {
  break-inside: avoid;
}

.sa-readmore {
  max-width: 64rem;
}

.sa-read-more-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.25rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--sa-header-navy);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: underline;
}

.sa-read-more-toggle:hover,
.sa-read-more-toggle:focus {
  color: var(--sa-header-gold);
}

/* ==========================================================================
   Site footer — styled after the romankitchens.co.uk footer: navy
   background, white text, a labelled column per group, bullet link lists,
   circular social icons, thin divider above a bottom bar.
   ========================================================================== */

.site-footer {
  background-color: var(--sa-header-navy);
  color: rgba(255, 255, 255, 0.85);
}

.sa-footer-logo .custom-logo {
  height: 62px;
  width: auto;
  border-radius: 6px;
}

.sa-footer-heading {
  position: relative;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
}

.sa-footer-heading::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 28px;
  height: 2px;
  background-color: var(--sa-header-gold);
}

.sa-footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.sa-footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.75);
}

.sa-footer-contact a {
  color: rgba(255, 255, 255, 0.75);
}

.sa-footer-contact a:hover {
  color: var(--sa-header-gold);
}

.sa-footer-icon {
  flex: 0 0 auto;
  color: var(--sa-header-gold);
  margin-top: 0.15em;
}

.sa-footer-icon svg {
  width: 18px;
  height: 18px;
}

.sa-footer-links {
  list-style: disc;
  padding-left: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.92rem;
}

.sa-footer-links li::marker {
  color: var(--sa-header-gold);
}

.sa-footer-links a,
.sa-footer-links {
  color: rgba(255, 255, 255, 0.75);
}

.sa-footer-links a:hover {
  color: var(--sa-header-gold);
}

.sa-footer-social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.sa-footer-social svg {
  width: 18px;
  height: 18px;
}

.sa-footer-social:hover {
  background-color: var(--sa-header-gold);
  border-color: var(--sa-header-gold);
  color: var(--sa-header-navy);
}

.sa-footer-divider {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  opacity: 1;
}

.sa-footer-bottom {
  color: rgba(255, 255, 255, 0.6);
}

.sa-footer-bottom a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: underline;
}

.sa-footer-bottom a:hover {
  color: var(--sa-header-gold);
}

/* ==========================================================================
   Homepage hero slider — full-screen fading images (Slick), inserted above
   the hero. Slick's own markup needs explicit heights passed all the way
   down or the fade/height collapses to the image's natural size.
   ========================================================================== */
.sa-hero-slider {
  position: relative;
  overflow: hidden;
  height: 100vh;
  min-height: 520px;
  max-height: 900px;
}

.sa-hero-slider,
.sa-hero-slider .slick-list,
.sa-hero-slider .slick-track,
.sa-hero-slider .slick-slide,
.sa-hero-slider .slick-slide > div {
  height: 100%;
}

.sa-hero-slide {
  position: relative;
  height: 100vh;
  min-height: 520px;
  max-height: 900px;
  background-color: var(--sa-header-navy);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
}

/* Before Slick's JS initialises, slides stack on top of each other —
   pin them so the section still shows the first photo, not empty space. */
.sa-hero-slider:not(.slick-initialized) {
  display: grid;
}

.sa-hero-slider:not(.slick-initialized) .sa-hero-slide {
  grid-area: 1 / 1;
}

.sa-hero-slider:not(.slick-initialized) .sa-hero-slide ~ .sa-hero-slide {
  visibility: hidden;
}

.sa-hero-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 11, 12, 0) 55%, rgba(11, 11, 12, 0.6) 100%);
}

.sa-hero-slide-caption {
  position: relative;
  z-index: 1;
  color: #fff;
  font-weight: 600;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  padding: 0 4rem 3rem 2rem;
}

.sa-hero-slider .slick-prev,
.sa-hero-slider .slick-next {
  z-index: 2;
  width: 44px;
  height: 44px;
}

.sa-hero-slider .slick-prev {
  left: 20px;
}

.sa-hero-slider .slick-next {
  right: 20px;
}

.sa-hero-slider .slick-prev:before,
.sa-hero-slider .slick-next:before {
  color: #fff;
  font-size: 32px;
  opacity: 0.85;
}

.sa-hero-slider .slick-dots {
  bottom: 22px;
}

.sa-hero-slider .slick-dots li button:before {
  color: #fff;
  opacity: 0.5;
  font-size: 10px;
}

.sa-hero-slider .slick-dots li.slick-active button:before {
  opacity: 1;
  color: var(--sa-header-gold);
}

.sa-section-grey {
  background-color: var(--sa-grey-light);
}

.sa-service-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.85rem;
  padding: 1.75rem 1.25rem;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 18px rgba(11, 11, 12, 0.06);
}

.sa-service-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: var(--sa-header-navy);
  color: var(--sa-header-gold);
}

.sa-service-icon svg {
  width: 26px;
  height: 26px;
}

.sa-service-card-label {
  font-size: 0.92rem;
  color: var(--sa-black);
}

.sa-pullquote {
  border-left: 3px solid var(--sa-header-gold);
  padding-left: 1.5rem;
  font-size: 1.15rem;
  font-style: italic;
  color: var(--sa-header-navy);
}

/* ==========================================================================
   Gallery template (page-templates/template-gallery.php) — photo banner,
   ACF-driven grid and a small dependency-free lightbox.
   ========================================================================== */

.sa-page-banner {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 340px;
  background-color: var(--sa-header-navy);
  background-size: cover;
  background-position: center;
}

.sa-page-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 11, 12, 0.3) 0%, rgba(11, 11, 12, 0.62) 100%);
}

.sa-page-banner-content {
  position: relative;
  z-index: 1;
  padding-top: 3rem;
  padding-bottom: 3rem;
  color: #fff;
}

.sa-breadcrumb,
.sa-breadcrumb a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.85rem;
}

.sa-breadcrumb a {
  text-decoration: underline;
}

.sa-breadcrumb p {
  margin: 0 0 0.75rem;
}

.sa-page-banner-title {
  color: #fff;
  font-weight: 600;
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0;
}

.sa-lightbox-gallery .sa-lightbox-item {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  aspect-ratio: 4 / 3;
}

.sa-lightbox-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.sa-lightbox-item:hover img {
  transform: scale(1.05);
}

.sa-lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 11, 12, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease;
  z-index: 2000;
}

.sa-lightbox-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.sa-lightbox-stage img {
  max-width: 90vw;
  max-height: 85vh;
  display: block;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.sa-lightbox-close,
.sa-lightbox-prev,
.sa-lightbox-next {
  position: absolute;
  background: transparent;
  border: 0;
  color: #fff;
  line-height: 1;
  cursor: pointer;
  padding: 0.5rem 1rem;
}

.sa-lightbox-close {
  top: 1rem;
  right: 1rem;
  font-size: 2rem;
}

.sa-lightbox-prev,
.sa-lightbox-next {
  top: 50%;
  transform: translateY(-50%);
  font-size: 2.5rem;
}

.sa-lightbox-prev {
  left: 0.5rem;
}

.sa-lightbox-next {
  right: 0.5rem;
}

body.sa-lightbox-locked {
  overflow: hidden;
}

/* ==========================================================================
   Case Studies — page-templates/template-case-studies.php (card grid) and
   single-case_study.php (detail page). Reuses .sa-page-banner and the
   gallery template's .sa-lightbox-gallery for the extra-photos section.
   ========================================================================== */

.sa-case-study-grid {
  align-items: stretch;
}

.sa-case-study-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background-color: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(11, 11, 12, 0.06);
  text-decoration: none;
  color: var(--sa-black);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.sa-case-study-card:hover,
.sa-case-study-card:focus {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(11, 11, 12, 0.12);
  color: var(--sa-black);
}

.sa-case-study-card-image {
  display: block;
  aspect-ratio: 3 / 2;
  overflow: hidden;
}

.sa-case-study-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.sa-case-study-card:hover .sa-case-study-card-image img {
  transform: scale(1.05);
}

.sa-case-study-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.5rem;
  flex: 1 1 auto;
}

.sa-case-study-card-title {
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--sa-header-navy);
}

.sa-case-study-card-excerpt {
  font-size: 0.92rem;
  color: rgba(11, 11, 12, 0.7);
  flex: 1 1 auto;
}

.sa-case-study-card-link {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--sa-header-gold);
}

.sa-case-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid rgba(11, 11, 12, 0.1);
}

.sa-case-meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.sa-case-meta-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--sa-header-gold);
}


.sa-case-content h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-size: 1.4rem;
  color: var(--sa-header-navy);
}

.sa-case-content h2:first-child {
  margin-top: 0;
}

.sa-case-content > p:first-of-type {
  font-size: 1.15rem;
  color: var(--sa-header-navy);
  font-weight: 500;
}

@media (min-width: 992px) {
  .sa-case-slider-sticky {
    position: sticky;
    top: 100px;
  }
}

.sa-case-slider,
.sa-case-single-image {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(11, 11, 12, 0.15);
}

.sa-case-slide img,
.sa-case-single-image img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
}

.sa-case-slider {
  position: relative;
}

.sa-case-slider:after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 90px;
  background: linear-gradient(to top, rgba(11, 11, 12, 0.45), transparent);
  pointer-events: none;
}

.sa-case-slider .slick-dots {
  bottom: 16px;
  z-index: 2;
}

.sa-case-slider .slick-dots li {
  margin: 0 5px;
}

.sa-case-slider .slick-dots li button:before {
  font-size: 9px;
  color: #fff;
  opacity: 0.7;
}

.sa-case-slider .slick-dots li.slick-active button:before {
  opacity: 1;
  color: var(--sa-header-gold);
}

.sa-case-slider .slick-prev,
.sa-case-slider .slick-next {
  z-index: 3;
  width: 42px;
  height: 42px;
  background: rgba(11, 11, 12, 0.45);
  border-radius: 50%;
  transition: background-color 0.2s ease;
}

.sa-case-slider .slick-prev:hover,
.sa-case-slider .slick-next:hover {
  background: rgba(11, 11, 12, 0.7);
}

.sa-case-slider .slick-prev {
  left: 16px;
}

.sa-case-slider .slick-next {
  right: 16px;
}

.sa-case-slider .slick-prev:before,
.sa-case-slider .slick-next:before {
  font-size: 20px;
  opacity: 1;
}

/* ==========================================================================
   Contact page — page-templates/template-contact.php. Contact details list
   + social row on the left, a Contact Form 7 form (styled to match the
   theme) inside a card on the right.
   ========================================================================== */

.sa-contact-info-card {
  background-color: var(--sa-grey-light);
  border-radius: 10px;
  padding: 2.5rem;
}

.sa-contact-info-heading {
  position: relative;
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--sa-header-navy);
  margin-bottom: 1.5rem;
  padding-bottom: 0.85rem;
}

.sa-contact-info-heading::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 34px;
  height: 3px;
  background-color: var(--sa-header-gold);
}

.sa-contact-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.sa-contact-list li {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.15rem;
}

.sa-contact-list a {
  color: var(--sa-black);
  text-decoration: none;
}

.sa-contact-list a:hover {
  color: var(--sa-header-navy);
  text-decoration: underline;
}

.sa-contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--sa-header-navy);
  color: var(--sa-header-gold);
}

.sa-contact-icon svg {
  width: 22px;
  height: 22px;
}

.sa-contact-social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--sa-header-navy);
  color: var(--sa-header-navy);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.sa-contact-social svg {
  width: 20px;
  height: 20px;
}

.sa-contact-social:hover {
  background-color: var(--sa-header-navy);
  color: var(--sa-header-gold);
}

.sa-contact-divider {
  border-top: 1px solid rgba(11, 11, 12, 0.12);
  opacity: 1;
  margin: 0 0 1.5rem;
}

.sa-contact-areas li {
  background-color: #fff;
  border: 1px solid rgba(11, 11, 12, 0.12);
  border-radius: 50px;
  padding: 0.5rem 1.1rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--sa-header-navy);
}

/* ==========================================================================
   About page — page-templates/template-about.php. Reuses .sa-columns-2,
   .sa-pullquote and .sa-contact-areas from elsewhere in the theme; adds a
   live Google rating strip and a closing CTA band.
   ========================================================================== */

.sa-areas-centered li {
  background-color: var(--sa-grey-light);
}

.sa-rating-strip {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.sa-rating-stars {
  display: flex;
  gap: 0.2rem;
  color: var(--sa-header-gold);
}

.sa-rating-stars svg {
  width: 22px;
  height: 22px;
}

.sa-rating-text {
  font-size: 0.98rem;
  color: var(--sa-black);
}

.sa-rating-text strong {
  color: var(--sa-header-navy);
  margin-right: 0.35rem;
}

.sa-cta-band {
  background-color: var(--sa-header-navy);
  color: #fff;
}

.sa-cta-band h2 {
  color: #fff;
}

.sa-cta-band p {
  color: rgba(255, 255, 255, 0.8);
}

/* ==========================================================================
   Floating WhatsApp button — sitewide, footer.php.
   ========================================================================== */

.sa-whatsapp-button {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1050;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #25D366;
  color: #fff;
  box-shadow: 0 6px 20px rgba(11, 11, 12, 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.sa-whatsapp-button svg {
  width: 32px;
  height: 32px;
}

.sa-whatsapp-button:hover,
.sa-whatsapp-button:focus {
  color: #fff;
  transform: scale(1.08);
  box-shadow: 0 8px 26px rgba(11, 11, 12, 0.32);
}

@media (max-width: 575.98px) {
  .sa-whatsapp-button {
    right: 16px;
    bottom: 16px;
    width: 52px;
    height: 52px;
  }

  .sa-whatsapp-button svg {
    width: 28px;
    height: 28px;
  }
}

.sa-contact-form-card {
  background-color: #fff;
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 4px 18px rgba(11, 11, 12, 0.06);
}

.sa-contact-form-card .wpcf7-form p {
  margin-bottom: 1.25rem;
}

.sa-contact-form-card .wpcf7-form label {
  display: block;
  width: 100%;
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--sa-header-navy);
}

.sa-contact-form-card .wpcf7-form-control {
  display: block;
  width: 100%;
  margin-top: 0.4rem;
  padding: 0.65rem 0.9rem;
  border: 1px solid rgba(11, 11, 12, 0.15);
  border-radius: 6px;
  font-family: var(--sa-font-body);
  font-size: 0.95rem;
  background-color: #fff;
}

.sa-contact-form-card textarea.wpcf7-form-control {
  min-height: 140px;
  resize: vertical;
}

.sa-contact-form-card .wpcf7-form-control:focus {
  outline: none;
  border-color: var(--sa-header-navy);
  box-shadow: 0 0 0 0.15rem rgba(66, 74, 99, 0.15);
}

.sa-contact-form-card .wpcf7-submit {
  background-color: #fff;
  border: 2px solid var(--sa-black);
  color: var(--sa-black);
  border-radius: 50px;
  padding: 0.85rem 2.25rem;
  font-weight: 600;
  margin-top: 0.5rem;
}

.sa-contact-form-card .wpcf7-submit:hover {
  background-color: var(--sa-black);
  border-color: var(--sa-black);
  color: #fff;
}

.sa-contact-form-card .wpcf7-not-valid-tip {
  color: #c0392b;
  font-size: 0.82rem;
  margin-top: 0.3rem;
}

.sa-contact-form-card .wpcf7-response-output {
  margin-top: 1.25rem;
  padding: 0.85rem 1rem;
  border-radius: 6px;
  border: 1px solid rgba(11, 11, 12, 0.15);
  font-size: 0.9rem;
}

.sa-contact-form-card .wpcf7-spinner {
  margin-left: 0.6rem;
}

