/*
Theme Name: Habibi Custom Homes
Theme URI: https://habibicustomhomes.com
Author: Habibi Custom Homes
Author URI: https://habibicustomhomes.com
Description: Custom WordPress theme for Habibi Custom Homes — general contractor serving Bothell, Kenmore, and King County, WA. Built for the native block editor with no page-builder dependencies.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: habibi-homes
Tags: custom-logo, custom-menu, featured-images, full-width-template, one-column, two-columns
*/


/* ==========================================================================
   1. CSS CUSTOM PROPERTIES — Brand Tokens
   
   All brand colors, fonts, and spacing live here. To change the brand 
   appearance site-wide, edit these values only.
   ========================================================================== */

:root {
  /* Brand Colors — pulled from the Habibi Custom Homes logo */
  --gold:          #C8A951;
  --gold-light:    #E5BF5C;
  --gold-dark:     #A8893D;
  --gold-subtle:   rgba(200, 169, 81, 0.1);

  --black:         #1A1A1A;
  --charcoal:      #2D2D2D;
  --gray-dark:     #4A4A4A;
  --gray:          #6B6B6B;
  --gray-light:    #E5E5E5;
  --off-white:     #F7F6F3;
  --white:         #FFFFFF;

  /* Semantic colors */
  --color-text:       var(--charcoal);
  --color-heading:    var(--black);
  --color-accent:     var(--gold);
  --color-accent-hover: var(--gold-dark);
  --color-bg:         var(--white);
  --color-bg-alt:     var(--off-white);
  --color-bg-dark:    var(--black);

  /* Typography — DM Serif Display for headings, Inter for body */
  --font-heading: 'DM Serif Display', Georgia, 'Times New Roman', serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Type Scale — modular scale based on 1rem = 16px */
  --text-xs:    0.75rem;    /* 12px */
  --text-sm:    0.875rem;   /* 14px */
  --text-base:  1rem;       /* 16px */
  --text-md:    1.125rem;   /* 18px */
  --text-lg:    1.25rem;    /* 20px */
  --text-xl:    1.5rem;     /* 24px */
  --text-2xl:   2rem;       /* 32px */
  --text-3xl:   2.5rem;     /* 40px */
  --text-4xl:   3.25rem;    /* 52px */

  /* Spacing */
  --space-xs:   0.5rem;
  --space-sm:   1rem;
  --space-md:   1.5rem;
  --space-lg:   2rem;
  --space-xl:   3rem;
  --space-2xl:  4rem;
  --space-3xl:  6rem;
  --space-4xl:  8rem;

  /* Layout */
  --container-max:   1200px;
  --container-narrow: 800px;
  --header-height:   120px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;

  /* Borders */
  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  12px;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md:  0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg:  0 8px 30px rgba(0, 0, 0, 0.12);
}


/* ==========================================================================
   2. RESET & BASE
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-accent-hover);
}

/* Visible focus styles for keyboard navigation */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}


/* ==========================================================================
   3. TYPOGRAPHY
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-heading);
  font-weight: 400;  /* DM Serif Display is designed at 400 */
  line-height: 1.2;
}

h1 { font-size: var(--text-4xl); margin-bottom: var(--space-md); }
h2 { font-size: var(--text-3xl); margin-bottom: var(--space-md); }
h3 { font-size: var(--text-2xl); margin-bottom: var(--space-sm); }
h4 { font-size: var(--text-xl);  margin-bottom: var(--space-sm); }
h5 { font-size: var(--text-lg);  margin-bottom: var(--space-xs); }
h6 { font-size: var(--text-md);  margin-bottom: var(--space-xs); }

p {
  margin-bottom: var(--space-sm);
}

p:last-child {
  margin-bottom: 0;
}

.text-sm    { font-size: var(--text-sm); }
.text-md    { font-size: var(--text-md); }
.text-lg    { font-size: var(--text-lg); }
.text-xl    { font-size: var(--text-xl); }

/* Eyebrow / label text — used above section headings */
.eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: var(--space-xs);
}

/* Section heading with gold accent bar — 
   the signature visual element carried over from the printed materials */
.section-heading {
  position: relative;
  padding-bottom: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.section-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--gold);
}

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

.section-heading--center::after {
  left: 50%;
  transform: translateX(-50%);
}


/* ==========================================================================
   4. LAYOUT
   ========================================================================== */

/* Main content container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-md);
  padding-right: var(--space-md);
}

.container--narrow {
  max-width: var(--container-narrow);
}

/* Section spacing — consistent vertical rhythm between page sections */
.section {
  padding-top: var(--space-3xl);
  padding-bottom: var(--space-3xl);
}

.section--sm {
  padding-top: var(--space-2xl);
  padding-bottom: var(--space-2xl);
}

/* Alternate background sections */
.section--alt {
  background-color: var(--color-bg-alt);
}

.section--dark {
  background-color: var(--color-bg-dark);
  color: var(--white);
}

.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: var(--white);
}

.section--dark .eyebrow {
  color: var(--gold-light);
}

.section--dark .section-heading::after {
  background: var(--gold-light);
}

/* Grid system — simple CSS Grid for card layouts */
.grid {
  display: grid;
  gap: var(--space-lg);
}

.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* Stack grids on smaller screens */
@media (max-width: 768px) {
  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .grid--3,
  .grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}


/* ==========================================================================
   5. COMPONENTS
   ========================================================================== */

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  line-height: 1;
  padding: 0.9em 2em;
  border-radius: var(--radius-sm);
  transition: all var(--transition-base);
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
}

/* Primary button — gold background */
.btn--primary {
  background-color: var(--gold);
  color: var(--black);
  border-color: var(--gold);
}

.btn--primary:hover {
  background-color: var(--gold-dark);
  border-color: var(--gold-dark);
  color: var(--black);
}

/* Secondary button — outlined */
.btn--secondary {
  background-color: transparent;
  color: var(--gold);
  border-color: var(--gold);
}

.btn--secondary:hover {
  background-color: var(--gold);
  color: var(--black);
}

/* White outlined button — for use on dark backgrounds */
.btn--white {
  background-color: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn--white:hover {
  background-color: var(--white);
  color: var(--black);
}

/* Phone CTA button — for click-to-call */
.btn--phone {
  background-color: var(--gold);
  color: var(--black);
  border-color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.btn--phone:hover {
  background-color: var(--gold-dark);
  border-color: var(--gold-dark);
  color: var(--black);
}

.btn--phone svg {
  width: 18px;
  height: 18px;
}

/* Small button variant */
.btn--sm {
  font-size: var(--text-sm);
  padding: 0.7em 1.5em;
}


/* --- Cards --- */
.card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}

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

.card__image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.card__body {
  padding: var(--space-md);
}

.card__title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  color: var(--color-heading);
  margin-bottom: var(--space-xs);
}

.card__text {
  font-size: var(--text-sm);
  color: var(--gray);
  line-height: 1.6;
}

/* Service card — icon + title + description */
.service-card {
  background: var(--white);
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-light);
  transition: all var(--transition-base);
  text-align: left;
}

.service-card:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-md);
}

.service-card__icon {
  width: 48px;
  height: 48px;
  margin-bottom: var(--space-sm);
  color: var(--gold);
}

.service-card__title {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  color: var(--color-heading);
  margin-bottom: var(--space-xs);
}

.service-card__text {
  font-size: var(--text-sm);
  color: var(--gray);
  line-height: 1.6;
  margin-bottom: var(--space-sm);
}

.service-card__link {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
}

.service-card__link:hover {
  color: var(--gold-dark);
}


/* --- Trust Bar --- */
.trust-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-lg);
  padding: var(--space-lg) 0;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--gray-dark);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.trust-item svg {
  width: 20px;
  height: 20px;
  color: var(--gold);
  flex-shrink: 0;
}


/* --- CTA Block --- */
.cta-block {
  background-color: var(--black);
  padding: var(--space-3xl) 0;
  text-align: center;
}

.cta-block__heading {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  color: var(--white);
  margin-bottom: var(--space-sm);
}

.cta-block__text {
  font-size: var(--text-md);
  color: var(--gray);
  margin-bottom: var(--space-lg);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-block__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-sm);
}


/* ==========================================================================
   6. HEADER & NAVIGATION
   ========================================================================== */

/* Top utility bar — phone number, hours */
.top-bar {
  background-color: var(--black);
  color: var(--white);
  font-size: var(--text-sm);
  padding: var(--space-xs) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar .container {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: var(--space-md);
}

.top-bar a {
  color: var(--white);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
}

.top-bar a:hover {
  color: var(--gold-light);
}

.top-bar svg {
  width: 14px;
  height: 14px;
}

.top-bar__hours {
  color: rgba(255, 255, 255, 0.7);
}

/* Site header — logo + main navigation */
.site-header {
  background-color: var(--black);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

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

/* Primary navigation */
.primary-nav {
  display: flex;
  align-items: center;
}

.primary-nav ul {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.primary-nav a {
  display: block;
  padding: 0.5em 1em;
  font-size: var(--text-sm);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: color var(--transition-fast);
  position: relative;
}

/* Gold underline on hover and current page */
.primary-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 1em;
  right: 1em;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform var(--transition-base);
}

.primary-nav a:hover::after,
.primary-nav .current-menu-item a::after,
.primary-nav .current_page_item a::after {
  transform: scaleX(1);
}

.primary-nav a:hover {
  color: var(--white);
}

.primary-nav .current-menu-item a,
.primary-nav .current_page_item a {
  color: var(--gold-light);
  font-weight: 600;
}

/* Header CTA — phone button in nav */
.header-cta {
  margin-left: var(--space-sm);
}

/* Mobile menu toggle button */
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.menu-toggle__bar {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--white);
  position: relative;
  transition: background-color var(--transition-fast);
}

.menu-toggle__bar::before,
.menu-toggle__bar::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--white);
  transition: transform var(--transition-base);
}

.menu-toggle__bar::before { top: -7px; }
.menu-toggle__bar::after  { top: 7px; }

/* Animate hamburger to X when menu is open */
.menu-toggle[aria-expanded="true"] .menu-toggle__bar {
  background-color: transparent;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bar::before {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bar::after {
  transform: rotate(-45deg) translate(5px, -5px);
}


/* ==========================================================================
   7. HERO SECTION
   ========================================================================== */

.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  background-color: var(--black);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Dark gradient overlay for text readability */
.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(26, 26, 26, 0.85) 0%,
    rgba(26, 26, 26, 0.6) 50%,
    rgba(26, 26, 26, 0.4) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 650px;
  padding: var(--space-3xl) 0;
}

.hero__tagline {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: var(--space-sm);
}

.hero__title {
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  color: var(--white);
  line-height: 1.1;
  margin-bottom: var(--space-md);
}

/* Gold accent on a key word in the hero title */
.hero__title span {
  color: var(--gold-light);
}

.hero__description {
  font-size: var(--text-md);
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
  margin-bottom: var(--space-lg);
  max-width: 520px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

/* Gold accent line to the left of hero content — 
   signature element from the PDF materials */
.hero__content::before {
  content: '';
  position: absolute;
  left: calc(-1 * var(--space-lg));
  top: var(--space-3xl);
  width: 3px;
  height: 80px;
  background: linear-gradient(180deg, var(--gold-light), var(--gold-dark));
}


/* ==========================================================================
   8. FOOTER
   ========================================================================== */

.site-footer {
  background-color: var(--black);
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--text-sm);
}

.footer-main {
  padding: var(--space-3xl) 0 var(--space-2xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: var(--space-2xl);
}

.footer-brand {
  max-width: 300px;
}

.footer-brand img {
  height: 50px;
  width: auto;
  margin-bottom: var(--space-sm);
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.7;
  margin-bottom: var(--space-sm);
}

.footer-heading {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--white);
  margin-bottom: var(--space-sm);
  padding-bottom: var(--space-xs);
  border-bottom: 2px solid var(--gold);
  display: inline-block;
}

.footer-nav li {
  margin-bottom: 0.6em;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--transition-fast);
}

.footer-nav a:hover {
  color: var(--gold-light);
}

.footer-contact li {
  margin-bottom: 0.8em;
  display: flex;
  align-items: flex-start;
  gap: 0.6em;
}

.footer-contact svg {
  width: 16px;
  height: 16px;
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 3px;
}

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

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

/* Footer bottom bar — copyright + tagline */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: var(--space-md) 0;
}

.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.footer-bottom__copy {
  color: rgba(255, 255, 255, 0.4);
  font-size: var(--text-xs);
}

.footer-bottom__tagline {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
}


/* ==========================================================================
   9. WORDPRESS BLOCK EDITOR — Default block styles
   
   These styles ensure content entered via the block editor looks 
   consistent with the theme design.
   ========================================================================== */

/* Default page content area */
.entry-content {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: var(--space-3xl) var(--space-md);
}

.entry-content > * + * {
  margin-top: var(--space-sm);
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  margin-top: var(--space-xl);
}

.entry-content ul,
.entry-content ol {
  padding-left: var(--space-lg);
}

.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }

.entry-content li {
  margin-bottom: 0.4em;
}

.entry-content blockquote {
  border-left: 3px solid var(--gold);
  padding-left: var(--space-md);
  margin: var(--space-lg) 0;
  font-style: italic;
  color: var(--gray-dark);
}

.entry-content img {
  border-radius: var(--radius-md);
}

/* WordPress alignment classes */
.alignwide {
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
}

.alignfull {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
}

.aligncenter {
  text-align: center;
}


/* ==========================================================================
   10. UTILITIES
   ========================================================================== */

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Two-column layout for About-style pages */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

.split--reverse {
  direction: rtl;
}

.split--reverse > * {
  direction: ltr;
}

.split__image {
  border-radius: var(--radius-md);
  overflow: hidden;
}

.split__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

/* Project grid */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: var(--space-lg);
}


/* ==========================================================================
   11. RESPONSIVE — Mobile-first adjustments
   ========================================================================== */

/* Tablet and below: 1024px */
@media (max-width: 1024px) {
  :root {
    --text-4xl: 2.5rem;
    --text-3xl: 2rem;
    --text-2xl: 1.75rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
  }

  .split {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .split--reverse {
    direction: ltr;
  }
}

/* Mobile: 768px and below */
@media (max-width: 768px) {
  :root {
    --text-4xl: 2rem;
    --text-3xl: 1.75rem;
    --text-2xl: 1.5rem;
    --header-height: 90px;
    --space-3xl: 4rem;
  }

  /* Hide top bar on small screens — phone number moves into nav */
  .top-bar {
    display: none;
  }

  /* Show mobile menu toggle */
  .menu-toggle {
    display: flex;
  }

  /* Mobile navigation — full-screen overlay */
  .primary-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--white);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateX(100%);
    transition: transform var(--transition-base);
    z-index: 999;
  }

  .primary-nav.is-open {
    transform: translateX(0);
  }

  .primary-nav ul {
    flex-direction: column;
    gap: 0;
    text-align: center;
  }

  .primary-nav a {
    font-size: var(--text-lg);
    padding: 0.8em 1em;
  }

  .primary-nav a::after {
    display: none;
  }

  /* Show phone CTA in mobile menu */
  .header-cta {
    display: none;
  }

  .mobile-cta {
    margin-top: var(--space-md);
  }

  /* Hero adjustments */
  .hero {
    min-height: 70vh;
  }

  .hero__content::before {
    display: none;
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn {
    width: 100%;
    justify-content: center;
  }

  /* Footer stacks to single column */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .footer-bottom .container {
    flex-direction: column;
    text-align: center;
  }

  /* CTA block */
  .cta-block__actions {
    flex-direction: column;
    align-items: center;
  }

  .cta-block__actions .btn {
    width: 100%;
    max-width: 320px;
  }

  /* Project grid */
  .project-grid {
    grid-template-columns: 1fr;
  }
}

/* Small mobile: 480px and below */
@media (max-width: 480px) {
  :root {
    --text-4xl: 1.75rem;
    --text-3xl: 1.5rem;
  }

  .site-logo img {
    height: 80px;
  }

  .container {
    padding-left: var(--space-sm);
    padding-right: var(--space-sm);
  }
}


/* ==========================================================================
   12. PAGE HEADERS
   ========================================================================== */

.page-header {
  background-color: var(--black);
  padding: var(--space-3xl) 0 var(--space-2xl);
  color: var(--white);
}

.page-header .eyebrow {
  color: var(--gold-light);
}

.page-header__title {
  color: var(--white);
  margin-bottom: var(--space-xs);
}

.page-header__desc {
  font-size: var(--text-md);
  color: rgba(255, 255, 255, 0.7);
  max-width: 600px;
  margin-bottom: 0;
}


/* ==========================================================================
   13. PLACEHOLDER IMAGES — Used until real photos are uploaded
   ========================================================================== */

.placeholder-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--off-white) 0%, var(--gray-light) 100%);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  color: var(--gray);
  font-size: var(--text-sm);
  font-weight: 500;
}

.placeholder-image svg {
  opacity: 0.4;
}

.placeholder-image--dark {
  background: linear-gradient(135deg, #2d2d2d 0%, #3a3a3a 100%);
  color: var(--gray);
}

.placeholder-image--sm {
  aspect-ratio: 1 / 1;
  font-size: var(--text-xs);
}


/* ==========================================================================
   14. ABOUT PAGE — Values, Process
   ========================================================================== */

.value-card {
  text-align: center;
  padding: var(--space-lg);
}

.value-card__icon {
  color: var(--gold);
  margin-bottom: var(--space-sm);
}

.value-card h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-xs);
}

.value-card p {
  color: var(--gray);
  font-size: var(--text-sm);
  line-height: 1.7;
}

/* Process steps */
.process-step {
  position: relative;
  padding-left: var(--space-xl);
}

.process-step__number {
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  color: var(--gold);
  line-height: 1;
}

.process-step h4 {
  margin-bottom: var(--space-xs);
}

.process-step p {
  font-size: var(--text-sm);
  color: var(--gray);
}

/* Service area city tags */
.service-area-cities {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-xs);
  max-width: 700px;
  margin: 0 auto;
}

.service-area-city {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
  padding: 0.4em 1em;
  border-radius: 100px;
  font-size: var(--text-sm);
  font-weight: 500;
}

@media (max-width: 1024px) {
  .process-grid.grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .process-grid.grid--4 {
    grid-template-columns: 1fr;
  }
}


/* ==========================================================================
   15. SERVICES PAGE
   ========================================================================== */

.service-section__header {
  display: flex;
  gap: var(--space-lg);
  align-items: flex-start;
  margin-bottom: var(--space-xl);
}

.service-section__icon {
  width: 56px;
  height: 56px;
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 4px;
}

.service-section__header p {
  font-size: var(--text-md);
  color: var(--gray-dark);
  max-width: 700px;
}

.service-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

.service-list__item {
  padding: var(--space-md);
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-light);
}

.section--alt .service-list__item {
  background: var(--white);
}

.service-list__item h4 {
  font-size: var(--text-md);
  margin-bottom: var(--space-xs);
}

.service-list__item p {
  font-size: var(--text-sm);
  color: var(--gray);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .service-section__header {
    flex-direction: column;
    gap: var(--space-sm);
  }

  .service-list {
    grid-template-columns: 1fr;
  }
}


/* ==========================================================================
   16. PROJECTS PAGE
   ========================================================================== */

.featured-project {
  position: relative;
}

.featured-project__badge {
  display: inline-block;
  background: var(--gold);
  color: var(--black);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.4em 1em;
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-lg);
}

.featured-project__images {
  margin-bottom: var(--space-xl);
}

.featured-project__main-image {
  aspect-ratio: 16 / 9;
  margin-bottom: var(--space-sm);
}

.featured-project__thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-sm);
}

.featured-project__details h2 {
  margin-bottom: var(--space-xs);
}

.featured-project__type {
  font-size: var(--text-sm);
  color: var(--gold);
  font-weight: 600;
  margin-bottom: var(--space-lg);
}

.featured-project__meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
  padding: var(--space-md);
  background: var(--off-white);
  border-radius: var(--radius-md);
}

.featured-project__meta-label {
  display: block;
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray);
  margin-bottom: 0.3em;
}

.featured-project__meta-value {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-heading);
}

.featured-project__details h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-sm);
  margin-top: var(--space-lg);
}

.featured-project__details p {
  color: var(--gray-dark);
  font-size: var(--text-sm);
  line-height: 1.7;
}

@media (max-width: 768px) {
  .featured-project__meta {
    grid-template-columns: 1fr;
  }

  .featured-project__thumbs {
    grid-template-columns: repeat(3, 1fr);
  }
}


/* ==========================================================================
   17. CONTACT PAGE
   ========================================================================== */

.contact-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: var(--space-3xl);
  align-items: start;
}

.contact-form-placeholder {
  background: var(--off-white);
  border: 2px dashed var(--gray-light);
  border-radius: var(--radius-md);
  padding: var(--space-2xl);
  text-align: center;
  color: var(--gray);
}

.contact-form-placeholder p:first-child {
  color: var(--charcoal);
}

.contact-info__block {
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid var(--gray-light);
}

.contact-info__block:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.contact-info__block h3 {
  font-size: var(--text-md);
  margin-bottom: var(--space-xs);
}

.contact-info__block p {
  color: var(--gray-dark);
  font-size: var(--text-sm);
  line-height: 1.7;
}

.contact-phone-link {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
}

.contact-phone-link:hover {
  color: var(--gold-dark);
}

.contact-phone-link svg {
  width: 28px;
  height: 28px;
}

.contact-info__note {
  font-size: var(--text-xs) !important;
  color: var(--gray) !important;
  margin-top: var(--space-xs);
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }
}
