/* ==========================================================================
   DIVINE HOMES - EXTERIORS
   Design System & Master Stylesheet
   Color Palette & Identity inspired by Divine Homes Brand & Official Logo
   ========================================================================== */

/* --------------------------------------------------------------------------
   Google Fonts Import
   -------------------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600;700;800&family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,400&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

/* --------------------------------------------------------------------------
   Design Tokens & CSS Variables
   -------------------------------------------------------------------------- */
:root {
  /* Brand Gold Palette (Sourced directly from Divine Homes Logo) */
  --gold-300: #F3DEB5;
  --gold-400: #E5C58A;
  --gold-500: #D8B576;
  --gold-600: #C49F5D;
  --gold-700: #9E7B3B;
  --gold-800: #755925;
  --gold-glow: rgba(216, 181, 118, 0.25);
  --gold-subtle: rgba(216, 181, 118, 0.12);
  --gold-border: rgba(216, 181, 118, 0.22);

  /* Rich Espresso & Charcoal Darks (Logo Background Texture) */
  --dark-950: #0E0D0C;
  --dark-900: #141312;
  --dark-850: #191816;
  --dark-800: #201E1B;
  --dark-750: #262421;
  --dark-700: #2F2C28;
  --dark-600: #423F3A;

  /* Editorial Light Surfaces (Warm Alabaster / Sandstone) */
  --light-50: #FCFAF6;
  --light-100: #F6F3EB;
  --light-200: #ECE6D8;
  --light-300: #DCD4C3;
  --light-400: #C2B8A3;

  /* Typography Colors */
  --text-white: #FAF9F6;
  --text-body: #D1CBC0;
  --text-muted: #9C9488;
  --text-dark-primary: #191714;
  --text-dark-secondary: #4A443B;
  --text-dark-muted: #736C61;

  /* Functional Accents */
  --accent-success: #3E8E56;
  --accent-blue-slate: #3F5161;

  /* Fonts */
  --font-serif-brand: 'Cinzel', 'Playfair Display', Georgia, serif;
  --font-serif-heading: 'Playfair Display', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Layout & Containers */
  --container-max: 1260px;
  --container-wide: 1380px;
  --header-height: 84px;

  /* Transitions & Shadows */
  --transition-fast: 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.6);
  --shadow-gold: 0 10px 30px rgba(216, 181, 118, 0.18);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;
  --radius-full: 9999px;
}

/* --------------------------------------------------------------------------
   Reset & Baseline
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--dark-950);
  color: var(--text-body);
}

body {
  font-family: var(--font-sans);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  background-color: var(--dark-950);
}

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

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

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

/* --------------------------------------------------------------------------
   Typography Hierarchy
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif-heading);
  color: var(--text-white);
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 3.8rem);
}

h2 {
  font-size: clamp(2rem, 3.6vw, 2.75rem);
}

h3 {
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
}

h4 {
  font-size: 1.2rem;
  letter-spacing: 0.02em;
}

p {
  margin-bottom: 1.25rem;
}

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

.brand-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-serif-brand);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-400);
  margin-bottom: 1rem;
}

.brand-eyebrow::before,
.brand-eyebrow::after {
  content: "";
  display: inline-block;
  width: 24px;
  height: 1px;
  background-color: var(--gold-500);
}

.brand-eyebrow.no-flourish::before,
.brand-eyebrow.no-flourish::after {
  display: none;
}

.text-gold {
  color: var(--gold-400);
}

.lead-text {
  font-size: 1.15rem;
  line-height: 1.75;
  color: var(--text-body);
}

/* --------------------------------------------------------------------------
   Layout Containers
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

.container-wide {
  width: 100%;
  max-width: var(--container-wide);
  margin-left: auto;
  margin-right: auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

.section-padding {
  padding-top: 6rem;
  padding-bottom: 6rem;
}

.section-padding-lg {
  padding-top: 7.5rem;
  padding-bottom: 7.5rem;
}

.section-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 3.75rem auto;
}

.section-header.text-left {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}

.section-header h2 {
  margin-bottom: 1.1rem;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   Buttons & Interactive Elements
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.9rem 1.85rem;
  min-height: 44px;
  touch-action: manipulation;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-smooth);
  border: 1px solid transparent;
  text-transform: uppercase;
}

.btn-primary {
  background-color: var(--gold-500);
  color: var(--dark-950);
  border-color: var(--gold-500);
  box-shadow: 0 4px 15px rgba(216, 181, 118, 0.2);
}

.btn-primary:hover {
  background-color: var(--gold-400);
  border-color: var(--gold-400);
  color: var(--dark-950);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-white);
  border-color: var(--gold-border);
}

.btn-secondary:hover {
  background-color: var(--gold-subtle);
  border-color: var(--gold-500);
  color: var(--gold-300);
  transform: translateY(-2px);
}

.btn-outline-gold {
  background-color: transparent;
  color: var(--gold-400);
  border-color: var(--gold-500);
}

.btn-outline-gold:hover {
  background-color: var(--gold-500);
  color: var(--dark-950);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.65rem 1.25rem;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
}

.btn-icon-right svg {
  transition: transform var(--transition-fast);
}

.btn:hover .btn-icon-right svg {
  transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   Header & Navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  background-color: rgba(14, 13, 12, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(216, 181, 118, 0.12);
  transition: all var(--transition-smooth);
}

.site-header.scrolled {
  background-color: rgba(14, 13, 12, 0.96);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  height: 74px;
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* Brand Logo */
.brand-logo-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}

.logo-badge {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--gold-border);
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
  flex-shrink: 0;
  transition: border-color var(--transition-fast);
}

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

.brand-text-block {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-serif-brand);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--gold-400);
  line-height: 1.1;
  text-transform: uppercase;
}

.brand-tagline {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 2px;
}

/* Desktop Navigation */
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 2.2rem;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-body);
  letter-spacing: 0.03em;
  position: relative;
  padding: 0.4rem 0;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 1.5px;
  background-color: var(--gold-500);
  transition: width var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
  color: var(--gold-300);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Header Action Group */
.header-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.header-phone-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-white);
  padding: 0.5rem 0.8rem;
  border-radius: var(--radius-sm);
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all var(--transition-fast);
}

.header-phone-link:hover {
  color: var(--gold-400);
  border-color: var(--gold-border);
  background-color: var(--gold-subtle);
}

.header-phone-link svg {
  color: var(--gold-400);
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-sm);
  color: var(--text-white);
  cursor: pointer;
  padding: 0;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  touch-action: manipulation;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.mobile-nav-toggle:hover,
.mobile-nav-toggle:focus-visible {
  color: var(--gold-400);
  border-color: var(--gold-border);
  background: rgba(216, 181, 118, 0.1);
  outline: none;
}

.mobile-nav-toggle.is-active,
.mobile-nav-toggle[aria-expanded="true"] {
  color: var(--gold-400);
  border-color: var(--gold-400);
  background: rgba(216, 181, 118, 0.15);
}

.mobile-nav-toggle svg line {
  transition: transform var(--transition-fast), opacity var(--transition-fast);
  transform-origin: center;
}

.mobile-nav-toggle.is-active svg line:nth-child(1),
.mobile-nav-toggle[aria-expanded="true"] svg line:nth-child(1) {
  opacity: 0;
}

.mobile-nav-toggle.is-active svg line:nth-child(2),
.mobile-nav-toggle[aria-expanded="true"] svg line:nth-child(2) {
  transform: translateY(6px) rotate(45deg);
}

.mobile-nav-toggle.is-active svg line:nth-child(3),
.mobile-nav-toggle[aria-expanded="true"] svg line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Mobile Nav Drawer */
.mobile-drawer {
  position: fixed;
  top: var(--header-height);
  left: 0;
  width: 100%;
  height: calc(100vh - var(--header-height));
  height: calc(100dvh - var(--header-height));
  background-color: rgba(14, 13, 12, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform: translateX(100%);
  transition: transform var(--transition-smooth);
  z-index: 999;
  border-top: 1px solid var(--gold-border);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-drawer.open {
  transform: translateX(0);
}

.mobile-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-nav-link {
  font-family: var(--font-serif-heading);
  font-size: 1.4rem;
  color: var(--text-white);
  padding: 0.85rem 0.25rem;
  min-height: 48px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  touch-action: manipulation;
}

.mobile-nav-link.active,
.mobile-nav-link:hover {
  color: var(--gold-400);
}

.mobile-drawer-footer {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--gold-border);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.hero-section {
  position: relative;
  min-height: 100vh;
  padding-top: calc(var(--header-height) + 3rem);
  padding-bottom: 4rem;
  display: flex;
  align-items: center;
  background-color: var(--dark-950);
  background-image: 
    radial-gradient(circle at 85% 20%, rgba(216, 181, 118, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 15% 80%, rgba(32, 30, 27, 0.5) 0%, transparent 50%);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-badge-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.license-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  background: rgba(216, 181, 118, 0.09);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-full);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--gold-400);
  text-transform: uppercase;
}

.license-pill-icon {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--gold-400);
  box-shadow: 0 0 8px var(--gold-400);
}

.hero-content h1 {
  margin-bottom: 1.4rem;
  color: var(--text-white);
  font-weight: 600;
}

.hero-content h1 span {
  color: var(--gold-400);
  font-style: italic;
  font-family: var(--font-serif-heading);
}

.hero-description {
  font-size: 1.15rem;
  line-height: 1.75;
  color: var(--text-body);
  margin-bottom: 2.2rem;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.hero-trust-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.trust-item {
  display: flex;
  flex-direction: column;
}

.trust-num {
  font-family: var(--font-serif-brand);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gold-400);
  line-height: 1.2;
}

.trust-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.35;
  margin-top: 0.25rem;
}

/* Hero Visual Showcase */
.hero-showcase {
  position: relative;
}

.showcase-frame {
  position: relative;
  border-radius: var(--radius-md);
  padding: 0.75rem;
  background-color: var(--dark-850);
  border: 1px solid var(--gold-border);
  box-shadow: var(--shadow-lg), 0 0 50px rgba(0, 0, 0, 0.8);
}

.showcase-main-image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: calc(var(--radius-md) - 4px);
  overflow: hidden;
  background-color: var(--dark-900);
}

.showcase-main-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.showcase-overlay-tag {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  right: 1.25rem;
  padding: 1rem 1.25rem;
  background: rgba(14, 13, 12, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(216, 181, 118, 0.25);
  border-radius: var(--radius-sm);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.overlay-info h4 {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-white);
  margin-bottom: 2px;
}

.overlay-info span {
  font-size: 0.75rem;
  color: var(--gold-400);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.showcase-badge-pill {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--dark-950);
  background-color: var(--gold-400);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Hero Thumbnail Switcher */
.hero-thumbnails-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.65rem;
  margin-top: 1rem;
}

.hero-thumb-btn {
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  overflow: hidden;
  padding: 0;
  background: transparent;
  cursor: pointer;
  aspect-ratio: 1 / 1;
  min-width: 44px;
  min-height: 44px;
  touch-action: manipulation;
  position: relative;
  transition: all var(--transition-fast);
  opacity: 0.6;
}

.hero-thumb-btn:hover {
  opacity: 0.9;
  border-color: var(--gold-600);
}

.hero-thumb-btn.active {
  opacity: 1;
  border-color: var(--gold-400);
  box-shadow: 0 0 12px rgba(216, 181, 118, 0.35);
}

.hero-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --------------------------------------------------------------------------
   Authority & Verification Bar
   -------------------------------------------------------------------------- */
.authority-bar {
  background-color: var(--dark-900);
  border-top: 1px solid rgba(216, 181, 118, 0.15);
  border-bottom: 1px solid rgba(216, 181, 118, 0.15);
  padding: 1.5rem 0;
}

.authority-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  align-items: center;
}

.authority-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.authority-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background-color: var(--dark-800);
  border: 1px solid var(--gold-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-400);
  flex-shrink: 0;
}

.authority-details strong {
  display: block;
  font-size: 0.9rem;
  color: var(--text-white);
  font-weight: 600;
  line-height: 1.25;
}

.authority-details span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   Featured Projects Gallery (Centerpiece)
   -------------------------------------------------------------------------- */
.projects-section {
  background-color: var(--dark-950);
  position: relative;
}

.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  margin-bottom: 3rem;
}

.filter-btn {
  background: var(--dark-850);
  color: var(--text-body);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.65rem 1.25rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  cursor: pointer;
  touch-action: manipulation;
  transition: all var(--transition-fast);
}

.filter-btn:hover {
  border-color: var(--gold-border);
  color: var(--gold-300);
  background-color: var(--dark-800);
}

.filter-btn.active {
  background-color: var(--gold-500);
  color: var(--dark-950);
  border-color: var(--gold-500);
}

/* Custom Gallery Grid */
.gallery-custom-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.75rem;
}

.project-card {
  background-color: var(--dark-850);
  border-radius: var(--radius-md);
  border: 1px solid rgba(216, 181, 118, 0.14);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-smooth);
  position: relative;
}

.project-card:hover {
  border-color: var(--gold-500);
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg), 0 0 24px rgba(216, 181, 118, 0.12);
}

/* Layout allocations */
.project-card.featured-wide {
  grid-column: span 7;
}

.project-card.featured-tall {
  grid-column: span 5;
}

.project-card.standard-half {
  grid-column: span 6;
}

.project-card-image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background-color: var(--dark-900);
  cursor: pointer;
}

.project-card.featured-wide .project-card-image-wrap {
  aspect-ratio: 16 / 11;
}

.project-card.featured-tall .project-card-image-wrap {
  aspect-ratio: 1 / 1;
}

.project-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.project-card:hover .project-card-image {
  transform: scale(1.04);
}

.project-zoom-trigger {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(14, 13, 12, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--gold-border);
  color: var(--gold-400);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.85);
  transition: all var(--transition-fast);
}

.project-card:hover .project-zoom-trigger {
  opacity: 1;
  transform: scale(1);
}

.project-card-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.75rem;
}

.tag-badge {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--gold-400);
  border: 1px solid rgba(216, 181, 118, 0.18);
}

.project-card-body h3 {
  font-size: 1.35rem;
  margin-bottom: 0.65rem;
  color: var(--text-white);
}

.project-card-body p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.project-meta-list {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-body);
}

.craftsmanship-note {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--gold-400);
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   Services Section (Refined Architectural Layout)
   -------------------------------------------------------------------------- */
.services-section {
  background-color: var(--dark-900);
  position: relative;
  border-top: 1px solid rgba(216, 181, 118, 0.12);
  border-bottom: 1px solid rgba(216, 181, 118, 0.12);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.service-item-card {
  background: var(--dark-850);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-md);
  padding: 2.25rem;
  position: relative;
  transition: all var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.service-item-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 48px;
  height: 2px;
  background-color: var(--gold-500);
  transition: width var(--transition-smooth);
}

.service-item-card:hover {
  background: var(--dark-800);
  border-color: var(--gold-border);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.service-item-card:hover::before {
  width: 100%;
}

.service-num-badge {
  font-family: var(--font-serif-brand);
  font-size: 0.88rem;
  color: var(--gold-500);
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 1.25rem;
}

.service-item-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.85rem;
  color: var(--text-white);
}

.service-item-card p {
  font-size: 0.94rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.service-features-list {
  list-style: none;
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.service-features-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.84rem;
  color: var(--text-body);
}

.service-features-list li svg {
  color: var(--gold-400);
  flex-shrink: 0;
  margin-top: 2px;
}

/* --------------------------------------------------------------------------
   Craftsmanship & Weatherproofing Standards
   -------------------------------------------------------------------------- */
.standards-section {
  background-color: var(--dark-950);
  position: relative;
}

.standards-layout {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 4.5rem;
  align-items: center;
}

.standards-imagery {
  position: relative;
}

.standards-image-card {
  border-radius: var(--radius-md);
  border: 1px solid var(--gold-border);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
  background-color: var(--dark-850);
  padding: 0.65rem;
}

.standards-image-card img {
  border-radius: calc(var(--radius-md) - 4px);
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.standards-floating-badge {
  position: absolute;
  bottom: -1.5rem;
  right: -1.5rem;
  background: var(--dark-850);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-lg);
  max-width: 260px;
}

.floating-badge-title {
  font-family: var(--font-serif-brand);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold-400);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.floating-badge-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin: 0;
}

.standards-text-content h2 {
  margin-bottom: 1.25rem;
}

.standards-text-content p {
  color: var(--text-body);
  margin-bottom: 2rem;
}

.standards-cards-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.standard-card {
  display: flex;
  gap: 1.25rem;
  padding: 1.25rem;
  background: var(--dark-900);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition-fast);
}

.standard-card:hover {
  border-color: var(--gold-border);
}

.standard-card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--gold-subtle);
  border: 1px solid var(--gold-border);
  color: var(--gold-400);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.standard-card-text h4 {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-white);
  margin-bottom: 0.25rem;
}

.standard-card-text p {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}

/* --------------------------------------------------------------------------
   About Section
   -------------------------------------------------------------------------- */
.about-section {
  background-color: var(--dark-900);
  border-top: 1px solid rgba(216, 181, 118, 0.12);
  border-bottom: 1px solid rgba(216, 181, 118, 0.12);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 4.5rem;
  align-items: center;
}

.about-text h2 {
  margin-bottom: 1.25rem;
}

.about-text p {
  font-size: 1rem;
  color: var(--text-body);
  margin-bottom: 1.25rem;
}

.about-credentials-box {
  background: var(--dark-850);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  margin-top: 2rem;
}

.credentials-header {
  font-family: var(--font-serif-brand);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-400);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.credentials-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.cred-item strong {
  display: block;
  font-size: 0.85rem;
  color: var(--text-white);
}

.cred-item span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.about-image-composition {
  position: relative;
}

.about-main-img-card {
  border-radius: var(--radius-md);
  border: 1px solid var(--gold-border);
  padding: 0.75rem;
  background: var(--dark-850);
  box-shadow: var(--shadow-lg);
}

.about-main-img-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: calc(var(--radius-md) - 4px);
}

.about-service-area-card {
  margin-top: 1.25rem;
  background: var(--dark-800);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 1.25rem 1.5rem;
}

.about-service-area-card h4 {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold-400);
  margin-bottom: 0.5rem;
}

.area-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.area-pill {
  font-size: 0.74rem;
  color: var(--text-body);
  background: rgba(255, 255, 255, 0.04);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* --------------------------------------------------------------------------
   Contact & Estimate Request Section
   -------------------------------------------------------------------------- */
.estimate-section {
  background-color: var(--dark-950);
  position: relative;
}

.estimate-grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 4rem;
  align-items: flex-start;
}

.estimate-info h2 {
  margin-bottom: 1.25rem;
}

.estimate-info p {
  color: var(--text-body);
  margin-bottom: 2rem;
}

.contact-direct-cards {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.direct-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.35rem;
  background: var(--dark-900);
  border: 1px solid rgba(216, 181, 118, 0.15);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.direct-card:hover {
  border-color: var(--gold-500);
  background: var(--dark-850);
  transform: translateX(4px);
}

.direct-card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--gold-subtle);
  border: 1px solid var(--gold-border);
  color: var(--gold-400);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.direct-card-text span {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 2px;
}

.direct-card-text strong {
  display: block;
  font-size: 1.05rem;
  color: var(--text-white);
}

/* Estimate Form Container */
.estimate-form-container {
  background: var(--dark-900);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-md);
  padding: 2.75rem;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.form-header-bar {
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.form-header-bar h3 {
  font-size: 1.45rem;
  color: var(--text-white);
  margin-bottom: 0.35rem;
}

.form-header-bar p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.35rem;
}

.form-group.full-width {
  grid-column: span 2;
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-white);
  margin-bottom: 0.45rem;
  text-transform: uppercase;
}

.form-control {
  width: 100%;
  padding: 0.85rem 1.1rem;
  background-color: var(--dark-850);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  color: var(--text-white);
  font-size: 1rem; /* 16px min prevents iOS Safari auto-zoom */
  transition: all var(--transition-fast);
}

.form-control.input-error {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.25) !important;
}

.form-control:focus {
  outline: none;
  border-color: var(--gold-400);
  background-color: var(--dark-800);
  box-shadow: 0 0 0 3px rgba(216, 181, 118, 0.15);
}

.form-control::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

/* Service Checkboxes */
.checkbox-options-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
  margin-top: 0.35rem;
}

.checkbox-chip {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 0.85rem;
  background-color: var(--dark-850);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  user-select: none;
}

.checkbox-chip:hover {
  border-color: var(--gold-border);
  background-color: var(--dark-800);
}

.checkbox-chip input[type="checkbox"] {
  accent-color: var(--gold-500);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.checkbox-chip span {
  font-size: 0.84rem;
  color: var(--text-body);
}

.form-submit-row {
  margin-top: 1.75rem;
}

.form-submit-row .btn {
  width: 100%;
  padding: 1.05rem;
  font-size: 0.95rem;
}

.form-footer-guarantee {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.form-footer-guarantee svg {
  color: var(--gold-400);
}

/* Form success message */
.form-success-banner {
  display: none;
  background-color: rgba(62, 142, 86, 0.15);
  border: 1px solid var(--accent-success);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  text-align: center;
  margin-top: 1rem;
}

.form-success-banner.visible {
  display: block;
}

.form-success-banner h4 {
  color: #72D58E;
  margin-bottom: 0.4rem;
}

.form-success-banner p {
  color: var(--text-white);
  font-size: 0.9rem;
  margin: 0;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background-color: var(--dark-950);
  border-top: 1px solid rgba(216, 181, 118, 0.2);
  padding-top: 5rem;
  padding-bottom: 2.5rem;
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.25fr;
  gap: 3.5rem;
  margin-bottom: 4rem;
}

.footer-brand-col p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-top: 1.25rem;
  line-height: 1.65;
  max-width: 340px;
}

.footer-license-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
  padding: 0.45rem 0.9rem;
  background: var(--dark-850);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  color: var(--gold-300);
  font-weight: 600;
}

.footer-col h4 {
  font-family: var(--font-serif-brand);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-400);
  margin-bottom: 1.5rem;
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.footer-links-list a {
  color: var(--text-body);
  font-size: 0.9rem;
}

.footer-links-list a:hover {
  color: var(--gold-300);
  padding-left: 4px;
}

.footer-contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-body);
}

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

.social-button-row {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.social-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--dark-850);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-white);
  transition: all var(--transition-fast);
}

.social-btn:hover {
  background: var(--gold-500);
  border-color: var(--gold-500);
  color: var(--dark-950);
  transform: translateY(-2px);
}

.footer-bottom-bar {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

/* --------------------------------------------------------------------------
   Interactive Modal (Estimate & Project Lightbox)
   -------------------------------------------------------------------------- */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(8, 7, 6, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-smooth);
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-dialog {
  background: var(--dark-900);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-md);
  max-width: 860px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-lg), 0 0 60px rgba(0, 0, 0, 0.8);
  transform: scale(0.95);
  transition: transform var(--transition-smooth);
}

.modal-backdrop.open .modal-dialog {
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 50%;
  background: var(--dark-800);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--text-white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  touch-action: manipulation;
  transition: all var(--transition-fast);
}

.modal-close-btn:hover,
.modal-close-btn:focus-visible {
  background: var(--gold-500);
  color: var(--dark-950);
  border-color: var(--gold-500);
  outline: none;
}

/* Lightbox Specific */
.lightbox-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

.lightbox-img-wrap {
  position: relative;
  width: 100%;
  max-height: 65vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--dark-950);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 1.25rem;
}

.lightbox-img-wrap img {
  max-height: 65vh;
  width: auto;
  object-fit: contain;
}

.lightbox-details h3 {
  font-size: 1.35rem;
  color: var(--text-white);
  margin-bottom: 0.5rem;
}

.lightbox-details p {
  color: var(--text-body);
  font-size: 0.95rem;
  margin: 0;
}

/* --------------------------------------------------------------------------
   Responsive Breakpoints
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero-content {
    max-width: 720px;
  }

  .authority-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

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

  .standards-layout,
  .about-grid,
  .estimate-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .footer-top-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }
}

@media (max-width: 840px) {
  .desktop-nav,
  .header-phone-link {
    display: none;
  }

  .mobile-nav-toggle {
    display: inline-flex;
  }

  .gallery-custom-grid {
    grid-template-columns: 1fr;
  }

  .project-card.featured-wide,
  .project-card.featured-tall,
  .project-card.standard-half {
    grid-column: span 1;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-group.full-width {
    grid-column: span 1;
  }

  .checkbox-options-grid {
    grid-template-columns: 1fr;
  }

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

  .footer-top-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom-bar {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

@media (max-width: 600px) {
  .brand-tagline {
    display: none;
  }

  .brand-name {
    font-size: 1.05rem;
  }

  .logo-badge {
    width: 38px;
    height: 38px;
  }

  .header-actions {
    gap: 0.65rem;
  }

  .header-actions .btn-sm {
    padding: 0.5rem 0.85rem;
    font-size: 0.78rem;
    min-height: 38px;
  }

  .showcase-overlay-tag {
    position: relative;
    bottom: auto;
    left: auto;
    right: auto;
    margin-top: 0.75rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .gallery-filters {
    gap: 0.5rem;
    margin-bottom: 2rem;
  }

  .filter-btn {
    padding: 0.55rem 0.95rem;
    font-size: 0.78rem;
  }
}

@media (max-width: 540px) {
  .container,
  .container-wide {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .hero-trust-points {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .authority-grid {
    grid-template-columns: 1fr;
  }

  .estimate-form-container {
    padding: 1.75rem 1.25rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }
}

@media (max-width: 440px) {
  .header-actions .btn-sm {
    padding: 0.45rem 0.65rem;
    font-size: 0.74rem;
  }

  .hero-thumbnails-row {
    gap: 0.45rem;
  }

  .hero-thumb-btn {
    min-width: 40px;
    min-height: 40px;
  }
}
