/*
Theme Name: Twenty Twenty-Four – Spick & Span
Theme URI: https://spickandspanwindowcleaning.com
Description: Modernized migration of legacy styling into Twenty Twenty-Four.
Author: Spick & Span
Template: twentytwentyfour
Version: 2.3
*/

/************************************
 GLOBAL RESET & SAFETY
************************************/
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  overflow-x: hidden;
}

img,
iframe,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

table {
  width: 100%;
  border-collapse: collapse;
}

/************************************
 TYPOGRAPHY
************************************/
body {
  font-family: 'Roboto', sans-serif;
  color: #333;
  line-height: 1.6;
}

h1, h2, h3 {
  line-height: 1.3;
}

/************************************
 CORE LAYOUT SYSTEM
************************************/
.site-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 4rem 0;
  scroll-margin-top: 120px;
}

.section--light {
  background: #f9f9f9;
}

.text-center {
  text-align: center;
}

/************************************
 HEADER & TOP BAR
************************************/
.top-bar,
.site-header-main {
  position: sticky;
  top: 0;
  z-index: 9999;
  background: #fff;
  width: 100%;
}

.site-header-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  border-bottom: 1px solid #e0e0e0;
}

.top-bar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 20px;
  padding: 8px 20px;
}

/************************************
 NAVIGATION
************************************/
.primary-menu a,
.main-navigation a {
  color: #000;
  font-weight: 500;
  text-decoration: none;
}

.primary-menu a:hover,
.main-navigation a:hover {
  color: #666;
}

.primary-menu .current-menu-item > a {
  font-weight: 700;
}

/************************************
 LOGO
************************************/
.custom-logo {
  max-width: 240px;
  height: auto;
}

/************************************
 CTA BUTTONS (GLOBAL)
************************************/
.cta-button {
  display: inline-block;
  background-color: #28a745;
  color: #fff;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.cta-button:hover {
  background-color: #218838;
  transform: translateY(-2px);
}

/************************************
 HERO
************************************/
.hero-section {
  background: #f5f5f5;
}

.hero-section .site-container {
  text-align: center;
  padding: 5rem 0;
}

.hero-section h1 {
  font-size: 2.6rem;
  margin-bottom: 1rem;
}

.hero-section p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
}

/************************************
 FLEX + CARD SYSTEM
************************************/
.flex-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
}

/* Core card */
.card {
  background: #fff;
  padding: 24px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  flex: 1 1 260px;
  max-width: 320px;

  /* IMPORTANT */
  display: flex;
  flex-direction: column;
}

/* Text fills space */
.card p {
  flex-grow: 1;
}

/* BUTTON ALIGNMENT FIX */
.card .cta-button {
  margin-top: auto;
}

/************************************
 SERVICES PAGE
************************************/
.services-intro {
  text-align: center;
  max-width: 700px;
  margin: 1.5rem auto 3rem;
  font-size: 18px;
}

/************************************
 MEDIA / VIDEO
************************************/
.video-wrapper {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: 12px;
  overflow: hidden;
}

.video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/************************************
 CONTENT LINKS
************************************/
.site-container a:not(.cta-button) {
  color: #28a745;
  font-weight: 500;
  text-decoration: none;
}

.site-container a:not(.cta-button):hover {
  text-decoration: underline;
}

/************************************
 LOCATION PAGES (REUSABLE)
************************************/
.location-page {
  background: #f9f9f9;
}

.location-page .site-container {
  max-width: 900px;
}

.location-page ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 32px;
}

.location-page ul li {
  padding-left: 26px;
  margin-bottom: 10px;
  position: relative;
}

.location-page ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #28a745;
  font-weight: bold;
}

.location-page p {
  max-width: 70ch;
}

/************************************
 RESPONSIVE
************************************/
@media (max-width: 768px) {
  .section {
    padding: 2.5rem 0;
  }

  .hero-section h1 {
    font-size: 2.1rem;
  }

  .card {
    max-width: 100%;
  }
}
/* ===============================
   LOCATION PAGE IMAGE OPTIMISATION
   =============================== */

/* Ensure all location images scale correctly */
.location-page img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Hero image container */
.location-hero__media {
  max-width: 320px;
  flex-shrink: 0;
}

/* Hero image styling */
.location-hero__media img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  object-fit: cover;
}

/* Improve spacing and stacking on mobile */
@media (max-width: 768px) {
  .location-hero__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .location-hero__media {
    max-width: 100%;
    margin-bottom: 20px;
  }
}

/* Prevent layout shift while images load */
.location-hero__media img {
  aspect-ratio: 4 / 3;
}

.flex-container > .flex-1 {
  flex: 1;
}

.flex-container > .flex-2 {
  flex: 2;
}

.card + .card {
  margin-top: 20px;
}

.text-center {
  text-align: center;
}
/* ===============================
   LOCATION PAGE STANDARD LAYOUT
   =============================== */

.flex-container {
  display: flex;
  gap: 30px;
  align-items: flex-start;
}

.flex-container > .flex-1 {
  flex: 1;
}

.flex-container > .flex-2 {
  flex: 2;
}

/* Cards (testimonials, reviews) */
.card {
  background: #fff;
  padding: 20px;
  border-radius: 4px;
}

.card + .card {
  margin-top: 20px;
}

/* Centered CTA sections */
.section .text-center,
.section--light .text-center {
  text-align: center;
}

/* Mobile stacking */
@media (max-width: 768px) {
  .flex-container {
    flex-direction: column;
  }
}





