/* ==========================================================================
   JHV ROOFING — Design System & Styles
   A complete, production-ready CSS design system for a premium local
   roofing contractor website. Mobile-first, accessible, performant.
   ========================================================================== */

/* ==========================================================================
   1. CSS Custom Properties
   ========================================================================== */

:root {
  /* Colors — Brand */
  --color-primary: #1B2A3D;
  --color-primary-light: #2A3F5A;
  --color-accent: #D4A853;
  --color-accent-hover: #C49843;
  --color-accent-light: rgba(212, 168, 83, 0.1);

  /* Colors — Backgrounds */
  --color-bg: #F8F6F3;
  --color-bg-alt: #F0EDE8;
  --color-bg-dark: #111820;
  --color-bg-dark-lighter: #1A2332;

  /* Colors — Text */
  --color-text: #2D3436;
  --color-text-light: #636E72;
  --color-text-on-dark: #B8C4D0;
  --color-white: #FFFFFF;

  /* Colors — Utility */
  --color-star: #FBBC04;
  --color-success: #27AE60;
  --color-error: #E74C3C;
  --color-border: #E0DDD8;
  --color-border-dark: #2A3545;

  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --fs-hero: clamp(2.75rem, 6vw, 4.5rem);
  --fs-h2: clamp(1.75rem, 3.5vw, 2.5rem);
  --fs-h3: clamp(1.2rem, 2vw, 1.4rem);
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --fs-xs: 0.75rem;

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

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

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 12px 48px rgba(0, 0, 0, 0.16);

  /* Easing & Transitions */
  --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-fast: 0.2s var(--ease-out);
  --transition-normal: 0.3s var(--ease-out);
  --transition-slow: 0.5s var(--ease-out);
}


/* ==========================================================================
   2. Reset & Base
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

ul,
ol {
  list-style: none;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  background: none;
  border: none;
  cursor: pointer;
}

fieldset {
  border: none;
}

table {
  border-collapse: collapse;
}

/* Custom Scrollbar — WebKit */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--color-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--color-primary-light);
  border-radius: var(--radius-full);
  border: 2px solid var(--color-bg);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary);
}

/* Custom Scrollbar — Firefox */
html {
  scrollbar-width: thin;
  scrollbar-color: var(--color-primary-light) var(--color-bg);
}

/* Selection */
::selection {
  background: var(--color-accent);
  color: var(--color-primary);
}

::-moz-selection {
  background: var(--color-accent);
  color: var(--color-primary);
}

/* Container */
.container {
  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);
}


/* ==========================================================================
   3. Typography
   ========================================================================== */

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 {
  font-size: var(--fs-hero);
  font-weight: 800;
}

h2 {
  font-size: var(--fs-h2);
  font-weight: 700;
}

h3 {
  font-size: var(--fs-h3);
  font-weight: 700;
}

h4 {
  font-size: 1.125rem;
  font-weight: 600;
}

p {
  font-family: var(--font-body);
  line-height: 1.6;
}

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

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

strong {
  font-weight: 700;
}

small {
  font-size: var(--fs-small);
}


/* ==========================================================================
   4. Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: var(--fs-small);
  text-decoration: none;
  transition: all var(--transition-normal);
  cursor: pointer;
  border: none;
  line-height: 1.4;
  justify-content: center;
  white-space: nowrap;
}

.btn:hover {
  text-decoration: none;
}

/* Primary — dark bg, white text */
.btn--primary {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.btn--primary:hover {
  background-color: var(--color-primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: var(--color-white);
}

/* Accent — gold bg, dark text */
.btn--accent {
  background-color: var(--color-accent);
  color: var(--color-primary);
}

.btn--accent:hover {
  background-color: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: var(--color-primary);
}

/* Secondary — outlined, dark border */
.btn--secondary {
  background-color: transparent;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
}

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

/* Outline White — for dark backgrounds */
.btn--outline-white {
  background-color: transparent;
  border: 2px solid rgba(255, 255, 255, 0.6);
  color: var(--color-white);
}

.btn--outline-white:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: var(--color-white);
  color: var(--color-white);
}

/* Size Variants */
.btn--sm {
  padding: 0.5rem 1rem;
  font-size: var(--fs-xs);
}

.btn--lg {
  padding: 1rem 2rem;
  font-size: var(--fs-body);
}

.btn--full {
  width: 100%;
}

/* Button Icons */
.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}


/* ==========================================================================
   5. Header
   ========================================================================== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: box-shadow var(--transition-normal),
              border-color var(--transition-normal);
  border-bottom: 1px solid transparent;
}

.header--scrolled {
  box-shadow: var(--shadow-sm);
  border-bottom-color: var(--color-border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding: 0 var(--space-md);
  height: 100%;
}

.header__logo {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--color-primary);
  text-decoration: none;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.header__logo:hover {
  text-decoration: none;
  color: var(--color-primary);
}

.header__nav {
  display: flex;
  gap: var(--space-lg);
  align-items: center;
}

.header__nav-link {
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--color-text-light);
  text-decoration: none;
  position: relative;
  transition: color var(--transition-fast);
  padding: 0.25rem 0;
}

.header__nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width var(--transition-normal);
}

.header__nav-link:hover {
  color: var(--color-primary);
  text-decoration: none;
}

.header__nav-link:hover::after {
  width: 100%;
}

.header__nav-link--active {
  color: var(--color-primary);
}

.header__nav-link--active::after {
  width: 100%;
}

.header__cta {
  flex-shrink: 0;
}

.header__cta--mobile {
  display: none;
}

@media (max-width: 900px) {
  .header__cta--desktop {
    display: none;
  }
  .header__cta--mobile {
    display: inline-flex;
  }
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
  transition: transform var(--transition-normal),
              opacity var(--transition-fast);
  transform-origin: center;
}

.hamburger--active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger--active span:nth-child(2) {
  opacity: 0;
}

.hamburger--active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}


/* ==========================================================================
   6. Mobile Menu
   ========================================================================== */

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  visibility: hidden;
}

.mobile-menu--open {
  pointer-events: all;
  visibility: visible;
}

.mobile-menu__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.mobile-menu--open .mobile-menu__overlay {
  opacity: 1;
}

.mobile-menu__panel {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: min(320px, 85vw);
  background: var(--color-white);
  padding: var(--space-xl) var(--space-lg);
  transform: translateX(100%);
  transition: transform 0.4s var(--ease-out);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

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

.mobile-menu__close {
  align-self: flex-end;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--color-text-light);
  transition: color var(--transition-fast);
}

.mobile-menu__close:hover {
  color: var(--color-primary);
}

.mobile-menu__nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.mobile-menu__link {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
  padding: var(--space-xs) 0;
  border-bottom: 1px solid var(--color-border);
  transition: color var(--transition-fast);
}

.mobile-menu__link:hover {
  color: var(--color-accent);
  text-decoration: none;
}

.mobile-menu__cta {
  margin-top: var(--space-lg);
}

.mobile-menu__cta .btn {
  width: 100%;
}


/* ==========================================================================
   7. Hero Section
   ========================================================================== */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: url('../assets/images/hero-bg.png') center / cover no-repeat;
  padding: calc(var(--header-height) + var(--space-2xl)) 0 var(--space-xl);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(17, 24, 32, 0.88) 0%,
    rgba(27, 42, 61, 0.75) 50%,
    rgba(17, 24, 32, 0.85) 100%
  );
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: var(--container-max);
  width: 100%;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: var(--space-2xl);
  padding: var(--space-3xl) var(--space-md);
  text-align: left;
}

@media (max-width: 900px) {
  .hero__content {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.hero__illustration {
  display: flex;
  justify-content: center;
}

.hero__custom-illustration {
  position: relative;
  width: 100%;
  max-width: 750px; /* Increased size on desktop */
  isolation: isolate;
  border-radius: 20px;
  border: 2px solid rgba(242, 211, 138, 0.4);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
  overflow: hidden;
  animation: fadeInUp 1s var(--ease-out) 0.4s both, floatAnim 6s ease-in-out 1.4s infinite;
}

@keyframes floatAnim {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.hero__brush-bg {
  position: absolute;
  top: -15%; left: -15%; right: -15%; bottom: -15%;
  z-index: 0;
  /* Vibrant yellow and dark blue watercolor/paint brush style */
  background: 
    radial-gradient(circle at 50% 90%, rgba(242, 211, 138, 0.95) 0%, transparent 60%), /* Added yellow at bottom */
    radial-gradient(circle at 40% 40%, rgba(242, 211, 138, 0.95) 0%, transparent 60%),
    radial-gradient(circle at 70% 60%, rgba(26, 37, 47, 0.98) 0%, transparent 65%),
    radial-gradient(circle at 60% 30%, rgba(212, 168, 83, 0.9) 0%, transparent 55%),
    radial-gradient(circle at 30% 70%, rgba(44, 62, 80, 0.95) 0%, transparent 70%);
  filter: blur(18px) contrast(1.2);
  opacity: 1;
}

.hero__custom-img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  /* Multiply blend mode converts the white background of the image into the vibrant brush background! */
  mix-blend-mode: multiply;
  /* Enhance the image itself */
  filter: contrast(1.15) saturate(1.1);
  display: block;
}


/* Hero Badge */
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(212, 168, 83, 0.15);
  color: var(--color-accent);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-size: var(--fs-small);
  font-weight: 600;
  margin-bottom: var(--space-lg);
  border: 1px solid rgba(212, 168, 83, 0.3);
  animation: fadeInUp 0.7s var(--ease-out) both;
}

.hero__badge svg {
  width: 16px;
  height: 16px;
  animation: pulse 2s ease-in-out infinite;
}

/* Hero Title */
.hero__title {
  font-family: var(--font-heading);
  font-size: var(--fs-hero);
  font-weight: 800;
  color: var(--color-white);
  line-height: 1.1;
  margin-bottom: var(--space-md);
  letter-spacing: -0.03em;
  animation: fadeInUp 0.7s var(--ease-out) 0.1s both;
}

/* Hero Subtitle & Typewriter Text */
.typewriter-text {
  display: inline-block;
  color: var(--color-accent);
  font-weight: 700;
  white-space: pre;
  border-right: 2px solid var(--color-accent);
  padding-right: 2px;
  animation: blink 0.75s step-end infinite;
}

@keyframes blink {
  50% { border-color: transparent; }
}

.hero__subtitle {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
  margin-bottom: var(--space-xl);
  max-width: 560px;
  animation: fadeInUp 0.7s var(--ease-out) 0.2s both;
}

@media (max-width: 900px) {
  .hero__subtitle {
    margin-left: auto;
    margin-right: auto;
  }
}

/* Hero CTAs */
.hero__ctas {
  display: flex;
  gap: var(--space-sm);
  justify-content: flex-start;
  flex-wrap: wrap;
  animation: fadeInUp 0.7s var(--ease-out) 0.3s both;
}

@media (max-width: 900px) {
  .hero__ctas {
    justify-content: center;
  }
}


/* ==========================================================================
   8. Section Pattern
   ========================================================================== */

.section {
  padding: var(--space-3xl) 0;
}

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

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

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

.section--dark .section__subtitle {
  color: var(--color-text-on-dark);
}

.section__header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--space-2xl);
}

.section__label {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-accent);
  margin-bottom: var(--space-sm);
}

.section__title {
  font-family: var(--font-heading);
  font-size: var(--fs-h2);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.2;
  margin-bottom: var(--space-sm);
}

.section__subtitle {
  font-size: 1.0625rem;
  color: var(--color-text-light);
  line-height: 1.6;
}


/* ==========================================================================
   9. Services Grid
   ========================================================================== */

.services__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

.service-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl) var(--space-lg);
  transition: transform var(--transition-normal),
              box-shadow var(--transition-normal),
              border-color var(--transition-normal);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-accent);
}

.service-card__icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--color-accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
}

.service-card__icon svg {
  width: 28px;
  height: 28px;
  color: var(--color-accent);
}

.service-card__title {
  font-family: var(--font-heading);
  font-size: var(--fs-h3);
  font-weight: 700;
  margin-bottom: var(--space-xs);
  color: var(--color-primary);
}

.service-card__text {
  font-size: var(--fs-small);
  color: var(--color-text-light);
  line-height: 1.6;
}


/* ==========================================================================
   10. Why Choose Us Grid
   ========================================================================== */

.why-us__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

.why-us-card {
  background: var(--color-bg-dark-lighter);
  border: 1px solid var(--color-border-dark);
  border-radius: var(--radius-lg);
  padding: var(--space-xl) var(--space-lg);
  transition: border-color var(--transition-normal),
              transform var(--transition-normal);
}

.why-us-card:hover {
  border-color: var(--color-accent);
  transform: translateY(-4px);
}

.why-us-card__icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: rgba(212, 168, 83, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
}

.why-us-card__icon svg {
  width: 28px;
  height: 28px;
  color: var(--color-accent);
}

.why-us-card__title {
  color: var(--color-white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--fs-h3);
  margin-bottom: var(--space-xs);
}

.why-us-card__text {
  color: var(--color-text-on-dark);
  font-size: var(--fs-small);
  line-height: 1.6;
}


/* ==========================================================================
   11. Reviews
   ========================================================================== */

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

.review-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  position: relative;
  transition: box-shadow var(--transition-normal),
              transform var(--transition-normal);
  overflow: hidden;
}

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

/* Decorative quotation mark */
.review-card::before {
  content: '\201C';
  position: absolute;
  top: 12px;
  right: 20px;
  font-size: 4rem;
  color: var(--color-accent);
  font-family: Georgia, 'Times New Roman', serif;
  line-height: 1;
  opacity: 0.15;
  pointer-events: none;
}

.review-card__header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.review-card__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: var(--fs-small);
  flex-shrink: 0;
}

.review-card__info {
  display: flex;
  flex-direction: column;
}

.review-card__name {
  font-weight: 600;
  color: var(--color-primary);
  font-size: var(--fs-small);
}

.review-card__date {
  font-size: var(--fs-xs);
  color: var(--color-text-light);
}

.review-card__stars {
  display: flex;
  gap: 2px;
  margin-bottom: var(--space-sm);
}

.review-card__stars svg,
.review-card__stars .star {
  width: 18px;
  height: 18px;
  color: var(--color-star);
  fill: var(--color-star);
}

.review-card__text {
  font-size: var(--fs-small);
  color: var(--color-text);
  line-height: 1.7;
  margin-bottom: var(--space-md);
}

.review-card__meta {
  font-size: var(--fs-xs);
  color: var(--color-text-light);
  margin-bottom: var(--space-sm);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

.review-card__meta-item {
  background: var(--color-bg-alt);
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-full);
  font-weight: 500;
}

.review-card__link {
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--color-accent);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: color var(--transition-fast),
              gap var(--transition-normal);
}

.review-card__link:hover {
  color: var(--color-accent-hover);
  gap: 0.5rem;
  text-decoration: none;
}

.review-card__link svg {
  width: 14px;
  height: 14px;
}

.reviews__cta {
  text-align: center;
  margin-top: var(--space-xl);
}



/* ==========================================================================
   12. Service Area
   ========================================================================== */

.service-area__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.service-area__text .section__label {
  display: inline-block;
}

.service-area__text h2 {
  text-align: left;
}

.service-area__text p {
  margin: var(--space-md) 0 var(--space-lg);
  color: var(--color-text-light);
  line-height: 1.7;
}

.service-area__map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 3;
}

.service-area__map iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}


/* ==========================================================================
   13. Contact Section
   ========================================================================== */

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-2xl);
  align-items: start;
}

.contact__info h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
}

.contact__info > p {
  color: var(--color-text-light);
  line-height: 1.7;
  margin-bottom: var(--space-xl);
}

.contact__details {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.contact__detail {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
}

.contact__detail svg {
  width: 24px;
  height: 24px;
  color: var(--color-accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.contact__detail strong {
  display: block;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 2px;
  font-size: var(--fs-small);
}

.contact__detail a,
.contact__detail span {
  color: var(--color-text-light);
  font-size: var(--fs-small);
  text-decoration: none;
}

.contact__detail a:hover {
  color: var(--color-accent);
  text-decoration: none;
}

/* Contact Form */
.contact__form-wrapper {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
}

.contact__form {
  display: block;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-group__label {
  display: block;
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: var(--space-xs);
}

.form-group__input,
.form-group__select,
.form-group__textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  color: var(--color-text);
  background: var(--color-white);
  transition: border-color var(--transition-fast),
              box-shadow var(--transition-fast);
}

.form-group__input:focus,
.form-group__select:focus,
.form-group__textarea:focus {
  border-color: var(--color-accent);
  outline: none;
  box-shadow: 0 0 0 3px var(--color-accent-light);
}

.form-group__input::placeholder,
.form-group__textarea::placeholder {
  color: var(--color-text-light);
  opacity: 0.6;
}

/* Input Error State */
.form-group__input--error,
.form-group__select--error,
.form-group__textarea--error {
  border-color: var(--color-error);
}

.form-group__input--error:focus,
.form-group__select--error:focus,
.form-group__textarea--error:focus {
  box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.15);
  border-color: var(--color-error);
}

/* Textarea */
.form-group__textarea {
  resize: vertical;
  min-height: 100px;
}

/* Custom Select */
.form-group__select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23636E72' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-position: right 1rem center;
  background-repeat: no-repeat;
  padding-right: 2.5rem;
  cursor: pointer;
}

/* Error Message */
.form-group__error {
  display: none;
  font-size: var(--fs-xs);
  color: var(--color-error);
  margin-top: 4px;
}

.form-group__input--error ~ .form-group__error,
.form-group__select--error ~ .form-group__error,
.form-group__textarea--error ~ .form-group__error {
  display: block;
}

/* Spam Honeypot */
.form-group--spam {
  background: var(--color-bg-alt);
  padding: var(--space-md);
  border-radius: var(--radius-sm);
  border: 1px dashed var(--color-border);
}

/* Privacy Notice */
.form-privacy {
  font-size: var(--fs-xs);
  color: var(--color-text-light);
  margin-bottom: var(--space-md);
  text-align: center;
  line-height: 1.5;
}

.form-privacy a {
  color: var(--color-accent);
  text-decoration: none;
}

.form-privacy a:hover {
  text-decoration: underline;
}

/* Submit Button */
.form-submit {
  width: 100%;
}

/* Success State */
.form-success {
  display: none;
  text-align: center;
  padding: var(--space-xl);
}

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

.form-success svg {
  width: 64px;
  height: 64px;
  color: var(--color-success);
  margin: 0 auto var(--space-md);
}

.form-success h3 {
  color: var(--color-primary);
  margin-bottom: var(--space-xs);
}

.form-success p {
  color: var(--color-text-light);
}


/* ==========================================================================
   14. Footer
   ========================================================================== */

.footer {
  background: var(--color-bg-dark);
  color: var(--color-text-on-dark);
  padding-top: var(--space-2xl);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: var(--space-xl);
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.footer__logo {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--color-white);
  text-decoration: none;
  display: inline-block;
  margin-bottom: var(--space-sm);
}

.footer__logo:hover {
  color: var(--color-white);
  text-decoration: none;
}

.footer__brand p {
  font-size: var(--fs-small);
  color: var(--color-text-on-dark);
  line-height: 1.6;
}

.footer__links h4,
.footer__contact h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-white);
  font-size: 1rem;
  margin-bottom: var(--space-md);
}

.footer__links a,
.footer__contact a,
.footer__contact span {
  display: block;
  font-size: var(--fs-small);
  color: var(--color-text-on-dark);
  text-decoration: none;
  margin-bottom: var(--space-xs);
  transition: color var(--transition-fast);
}

.footer__links a:hover,
.footer__contact a:hover {
  color: var(--color-accent);
  text-decoration: none;
}

.footer__bottom {
  border-top: 1px solid var(--color-border-dark);
  margin-top: var(--space-xl);
  padding: var(--space-md) 0;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-md);
  padding-right: var(--space-md);
}

.footer__bottom p {
  font-size: var(--fs-xs);
  color: var(--color-text-on-dark);
  text-align: center;
  opacity: 0.7;
}


/* ==========================================================================
   15. Mobile CTA Bar
   ========================================================================== */

.mobile-cta-bar {
  display: none;
}

.mobile-cta-bar__btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: var(--fs-small);
  text-decoration: none;
  color: var(--color-primary);
  background: var(--color-bg);
  transition: background-color var(--transition-fast);
}

.mobile-cta-bar__btn:hover {
  text-decoration: none;
}

.mobile-cta-bar__btn--accent {
  background: var(--color-accent);
  color: var(--color-primary);
}

.mobile-cta-bar__btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}


/* ==========================================================================
   16. Back to Top
   ========================================================================== */

.back-to-top {
  position: fixed;
  bottom: var(--space-lg);
  right: var(--space-lg);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity var(--transition-normal),
              visibility var(--transition-normal),
              transform var(--transition-normal),
              background-color var(--transition-fast),
              bottom var(--transition-normal);
  z-index: 997;
  box-shadow: var(--shadow-md);
}

.back-to-top--visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--color-accent);
  transform: translateY(-2px) scale(1.05);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
}


/* ==========================================================================
   17. Scroll Reveal
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out),
              transform 0.7s var(--ease-out);
}

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

.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

.reveal-delay-4 {
  transition-delay: 0.4s;
}


/* ==========================================================================
   18. Animations
   ========================================================================== */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(212, 168, 83, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(212, 168, 83, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(212, 168, 83, 0);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% center;
  }
  100% {
    background-position: 200% center;
  }
}


/* ==========================================================================
   19. Responsive — 1024px
   ========================================================================== */

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

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


/* ==========================================================================
   20. Responsive — 900px
   ========================================================================== */

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


/* ==========================================================================
   21. Responsive — 768px
   ========================================================================== */

@media (max-width: 768px) {
  /* Header — Hide nav and CTA, show hamburger */
  .header__nav {
    display: none;
  }

  .header__cta {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  /* Section padding reduce */
  .section {
    padding: var(--space-2xl) 0;
  }

  /* Service area stacks */
  .service-area__content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .service-area__text h2 {
    text-align: center;
  }

  .service-area__text p {
    text-align: center;
  }

  /* Contact stacks */
  .contact__grid {
    grid-template-columns: 1fr;
  }

  /* Footer stacks */
  .footer__inner {
    grid-template-columns: 1fr 1fr;
  }

  /* Mobile CTA Bar — Show */
  .mobile-cta-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 998;
    background: var(--color-white);
    border-top: 1px solid var(--color-border);
    padding: var(--space-xs);
    gap: var(--space-xs);
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
    transform: translateY(100%);
    transition: transform var(--transition-normal);
  }

  .mobile-cta-bar--visible {
    transform: translateY(0);
  }

  /* Back to top — Adjust when CTA bar visible */
  .back-to-top--visible {
    bottom: 80px;
  }

  /* Add body padding for fixed mobile bar */
  body {
    padding-bottom: 64px;
  }
}


/* ==========================================================================
   22. Responsive — 600px
   ========================================================================== */

@media (max-width: 600px) {
  .services__grid {
    grid-template-columns: 1fr;
  }

  .why-us__grid {
    grid-template-columns: 1fr;
  }

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

  .hero {
    min-height: 600px;
  }

  .hero__content {
    padding: var(--space-2xl) var(--space-md);
  }
}


/* ==========================================================================
   23. Responsive — 480px
   ========================================================================== */

@media (max-width: 480px) {
  /* Hero CTAs stack */
  .hero__ctas {
    flex-direction: column;
    align-items: stretch;
  }

  /* Form row stacks */
  .form-row {
    grid-template-columns: 1fr;
  }

  /* Footer stacks fully */
  .footer__inner {
    grid-template-columns: 1fr;
  }

  /* Reduce section padding further */
  .section {
    padding: var(--space-xl) 0;
  }

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

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

  .header__inner {
    padding: 0 var(--space-sm);
  }
}


/* ==========================================================================
   24. Accessibility
   ========================================================================== */

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .hero__badge,
  .hero__title,
  .hero__subtitle,
  .hero__ctas {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* Focus-Visible Outlines */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.btn:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

.header__nav-link:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
  border-radius: 2px;
}

.form-group__input:focus-visible,
.form-group__select:focus-visible,
.form-group__textarea:focus-visible {
  outline: none; /* Handled by custom box-shadow focus styles */
}

.mobile-menu__link:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
}

.back-to-top:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

/* Skip to Content (add <a class="skip-link" href="#main">) */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-md);
  z-index: 10000;
  padding: var(--space-xs) var(--space-sm);
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: var(--radius-sm);
  font-size: var(--fs-small);
  font-weight: 600;
  text-decoration: none;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: var(--space-xs);
  color: var(--color-white);
}

/* Screen reader only utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}


/* ==========================================================================
   25. Print Styles
   ========================================================================== */

@media print {
  /* Hide interactive / non-essential elements */
  .header,
  .hamburger,
  .mobile-menu,
  .mobile-cta-bar,
  .back-to-top,
  .contact__form,
  .hero__ctas,
  .reviews__cta,
  .btn,
  .footer {
    display: none !important;
  }

  /* Reset backgrounds & colors for ink savings */
  body {
    background: white;
    color: #000;
    font-size: 12pt;
    line-height: 1.5;
  }

  .section,
  .section--alt,
  .section--dark {
    background: white !important;
    color: #000 !important;
    padding: 1rem 0;
  }

  .section--dark .section__title,
  .section--dark .section__subtitle {
    color: #000 !important;
  }

  .section__title,
  .why-us-card__title {
    color: #000 !important;
  }

  .why-us-card,
  .service-card,
  .review-card {
    border: 1px solid #ccc;
    box-shadow: none;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .why-us-card {
    background: white !important;
  }

  .why-us-card__text,
  .section__subtitle {
    color: #333 !important;
  }

  .hero {
    min-height: auto;
    background: none !important;
    padding: 2rem 0;
  }

  .hero__overlay {
    display: none;
  }

  .hero__title {
    color: #000;
  }

  .hero__subtitle {
    color: #333;
  }

  /* Links show URL */
  a[href]::after {
    content: ' (' attr(href) ')';
    font-size: 0.8em;
    color: #666;
  }

  /* Remove transforms and shadows */
  * {
    box-shadow: none !important;
    text-shadow: none !important;
    transform: none !important;
  }

  /* Page break controls */
  h2,
  h3 {
    page-break-after: avoid;
  }

  img {
    max-width: 100% !important;
    page-break-inside: avoid;
  }
}


/* ==========================================================================
   26. Utility Classes
   ========================================================================== */

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

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

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }

.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
/* ==========================================================================
   Privacy Policy Page
   ========================================================================== */
.page-privacy {
  background-color: var(--color-bg);
}

.page-hero {
  background: url('../assets/images/hero-bg.png') center / cover no-repeat;
  position: relative;
  overflow: hidden;
  color: var(--color-white);
  padding: calc(var(--space-2xl) + var(--header-height)) var(--space-md) var(--space-3xl);
  text-align: center;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(17, 24, 32, 0.88) 0%,
    rgba(27, 42, 61, 0.75) 50%,
    rgba(17, 24, 32, 0.85) 100%
  );
  z-index: 1;
}

.page-hero .container {
  position: relative;
  z-index: 2;
}

.page-hero__title {
  font-family: var(--font-heading);
  font-size: var(--fs-hero);
  margin-bottom: var(--space-sm);
  color: var(--color-white);
}

.page-hero__subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.15rem;
}

.privacy-container {
  padding: var(--space-3xl) 0 var(--space-3xl);
  max-width: 800px;
  margin: 0 auto;
  width: 90%;
}

.privacy-card {
  background: var(--color-white);
  padding: var(--space-2xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
}

.privacy-card h2 {
  font-family: var(--font-heading);
  font-size: var(--fs-h3);
  color: var(--color-primary);
  margin-top: var(--space-xl);
  margin-bottom: var(--space-sm);
}

.privacy-card p, .privacy-card ul {
  margin-bottom: var(--space-md);
  color: var(--color-text);
  line-height: 1.8;
  font-size: 1rem;
}

.privacy-card ul {
  padding-left: var(--space-lg);
}

.privacy-card li {
  margin-bottom: var(--space-xs);
}

.privacy-card .last-updated {
  font-size: var(--fs-small);
  color: var(--color-text-light);
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--color-border);
}

.privacy-card a {
  color: var(--color-accent);
  text-decoration: underline;
  font-weight: 500;
}

@media (max-width: 600px) {
  .privacy-card {
    padding: var(--space-lg);
  }
  .page-hero__title {
    font-size: var(--fs-h3);
  }
  .privacy-card h2 {
    font-size: 1.1rem;
  }
  .privacy-card p, .privacy-card ul {
    font-size: 0.9rem;
  }
}
