/* ============================================
   EMINENT PATIO COVERS - STYLES
   Brand Colors:
   - Teal:   #3C9B9E
   - Orange: #DF6F25
   - Cream:  #E7D9B6
   ============================================ */

/* ---- CSS VARIABLES ---- */
:root {
  --clr-teal: #3c9b9e;
  --clr-teal-dark: #2e7a7d;
  --clr-teal-light: #4db8bb;
  --clr-orange: #df6f25;
  --clr-orange-dark: #c45e1a;
  --clr-orange-light: #f0893f;
  --clr-cream: #e7d9b6;
  --clr-cream-light: #f5efe0;
  --clr-cream-dark: #d4c59a;

  --clr-dark: #1a1a2e;
  --clr-dark-soft: #2a2a3e;
  --clr-gray-900: #1f2937;
  --clr-gray-800: #2d3748;
  --clr-gray-700: #374151;
  --clr-gray-600: #4b5563;
  --clr-gray-500: #6b7280;
  --clr-gray-400: #9ca3af;
  --clr-gray-300: #d1d5db;
  --clr-gray-200: #e5e7eb;
  --clr-gray-100: #f3f4f6;
  --clr-white: #ffffff;

  --ff-heading: "Montserrat", sans-serif;
  --ff-body: "Open Sans", sans-serif;

  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.25rem;
  --fs-xl: 1.5rem;
  --fs-2xl: 2rem;
  --fs-3xl: 2.5rem;
  --fs-4xl: 3.25rem;
  --fs-5xl: 4rem;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.16);

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--ff-body);
  font-size: var(--fs-base);
  line-height: 1.7;
  color: var(--clr-gray-800);
  background-color: var(--clr-white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul {
  list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--ff-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--clr-gray-900);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- SKIP LINK (WCAG 2.4.1) ---- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 10001;
  background: var(--clr-orange);
  color: var(--clr-white);
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-family: var(--ff-heading);
  font-weight: 700;
  font-size: var(--fs-sm);
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus-visible {
  top: 12px;
}

/* ---- FOCUS INDICATORS (WCAG 2.4.7 / 2.4.11) ---- */
/* Universal default — works on light backgrounds */
:focus-visible {
  outline: 3px solid var(--clr-teal-dark);
  outline-offset: 2px;
}

/* Dark backgrounds (header, hero, footer) — use orange for contrast */
.header :focus-visible,
.hero :focus-visible,
.footer :focus-visible {
  outline-color: var(--clr-orange-light);
}

/* Nav links: mirror :hover on :focus-visible */
.nav-link:focus-visible {
  color: var(--clr-white);
  background: rgba(255, 255, 255, 0.08);
}

/* Header CTA: mirror :hover on :focus-visible */
.header-cta:focus-visible {
  background: var(--clr-orange-dark);
  transform: translateY(-1px);
}

/* Primary buttons: mirror :hover on :focus-visible */
.btn-primary:focus-visible {
  background: var(--clr-orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(223, 111, 37, 0.35);
}

/* Outline buttons: mirror :hover on :focus-visible */
.btn-outline:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--clr-white);
}

/* Carousel buttons: mirror :hover on :focus-visible */
.carousel-btn:focus-visible {
  background: var(--clr-teal);
  color: var(--clr-white);
  border-color: var(--clr-teal);
  box-shadow: var(--shadow-md);
  outline-color: var(--clr-teal-dark);
}

/* Carousel dots: enlarge like active state on focus */
.carousel-dot:focus-visible {
  background: var(--clr-teal);
  outline-color: var(--clr-teal-dark);
}

/* Carousel image wrappers (keyboard-accessible lightbox triggers) */
.carousel-img-wrapper:focus-visible {
  outline-color: var(--clr-teal-dark);
  transform: scale(1.02);
}

/* Footer links: mirror :hover on :focus-visible */
.footer-links a:focus-visible {
  color: var(--clr-teal-light);
}

.footer-contact a:focus-visible {
  color: var(--clr-teal-light);
}

/* Contact detail links */
.contact-detail-item a:focus-visible {
  color: var(--clr-teal-dark);
  text-decoration: underline;
}

/* Lightbox close button */
.lightbox-close:focus-visible {
  background: rgba(255, 255, 255, 0.2);
  outline-color: var(--clr-orange-light);
}

/* Form inputs already have custom :focus — suppress double outline */
.form-group input:focus-visible,
.form-group select:focus-visible,
.form-group textarea:focus-visible {
  outline: none;
}

/* ---- PAGE LOADER ---- */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--clr-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

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

.loader-logo img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  animation: pulse 1.5s ease-in-out infinite;
  margin: auto;
}

.loader-bar {
  width: 100%;
  height: 4px;
  background: var(--clr-gray-700);
  border-radius: var(--radius-full);
  margin-top: 24px;
  overflow: hidden;
}

.loader-bar-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--clr-teal), var(--clr-orange));
  border-radius: var(--radius-full);
  animation: loaderFill 1.5s ease-out forwards;
}

@keyframes loaderFill {
  0% {
    width: 0%;
  }
  50% {
    width: 70%;
  }
  100% {
    width: 100%;
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.8;
  }
}

/* ---- SKELETON LOADER ---- */
.skeleton {
  position: relative;
  overflow: hidden;
  background: var(--clr-gray-200);
}

.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.5),
    transparent
  );
  animation: shimmer 1.5s infinite;
}

.skeleton img {
  opacity: 0;
  transition: opacity 0.4s ease;
}

.skeleton img[src] {
  opacity: 0;
}

[data-skeleton]:not(.skeleton) img {
  opacity: 1;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

/* ---- HEADER ---- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(26, 26, 46, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background var(--transition), box-shadow var(--transition);
}

.header.scrolled {
  background: rgba(26, 26, 46, 0.97);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.header-inner a:first-child {
  margin-right: auto;
}

.header-logo img {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.nav-list {
  display: flex;
  gap: 8px;
  margin-right: 8px;
}

.nav-link {
  font-family: var(--ff-heading);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--clr-gray-300);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color var(--transition), background var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--clr-white);
  background: rgba(255, 255, 255, 0.08);
}

.header-cta {
  font-family: var(--ff-heading);
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--clr-white);
  background: var(--clr-orange);
  padding: 10px 20px;
  border-radius: var(--radius-full);
  transition: background var(--transition), transform var(--transition);
}

.header-cta:hover {
  background: var(--clr-orange-dark);
  transform: translateY(-1px);
}

/* Hamburger */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--clr-white);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

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

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--ff-heading);
  font-weight: 700;
  font-size: var(--fs-base);
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  line-height: 1;
}

.btn-primary {
  background: var(--clr-orange);
  color: var(--clr-white);
  padding: 14px 32px;
}

.btn-primary:hover {
  background: var(--clr-orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(223, 111, 37, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--clr-white);
  border: 2px solid rgba(255, 255, 255, 0.4);
  padding: 12px 28px;
}

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

.btn-lg {
  font-size: var(--fs-md);
  padding: 16px 36px;
}

.btn-submit {
  width: 100%;
  padding: 16px;
  font-size: var(--fs-md);
}

/* ---- HERO ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(26, 26, 46, 0.85) 0%,
    rgba(26, 26, 46, 0.6) 50%,
    rgba(60, 155, 158, 0.3) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: 120px 24px 80px;
}

.hero-badge {
  display: inline-block;
  font-family: var(--ff-heading);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--clr-cream);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(231, 217, 182, 0.3);
  padding: 6px 18px;
  border-radius: var(--radius-full);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 24px;
  backdrop-filter: blur(4px);
}

.hero-title {
  font-size: var(--fs-5xl);
  font-weight: 900;
  color: var(--clr-white);
  line-height: 1.05;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.hero-title-accent {
  background: linear-gradient(
    135deg,
    var(--clr-orange),
    var(--clr-orange-light)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: var(--fs-lg);
  color: rgba(255, 255, 255, 0.8);
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  text-align: center;
  color: rgba(255, 255, 255, 0.85);
  font-size: var(--fs-xs);
  font-family: var(--ff-heading);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.scroll-arrow {
  margin-top: 8px;
  animation: bounceDown 2s infinite;
}

@keyframes bounceDown {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(8px);
  }
  60% {
    transform: translateY(4px);
  }
}

/* ---- SECTION SHARED ---- */
.section-label {
  display: inline-block;
  font-family: var(--ff-heading);
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--clr-teal-dark);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.section-title {
  font-size: var(--fs-3xl);
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.15;
}

.section-desc {
  font-size: var(--fs-md);
  color: var(--clr-gray-600);
  max-width: 560px;
  line-height: 1.7;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header .section-desc {
  margin: 0 auto;
}

.text-accent {
  color: var(--clr-teal);
}

/* ---- ABOUT SECTION ---- */
.about {
  padding: 120px 0;
  background: var(--clr-white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-text {
  font-size: var(--fs-md);
  color: var(--clr-gray-600);
  line-height: 1.8;
  margin-bottom: 36px;
}

.about-features {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.feature-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: var(--clr-gray-100);
  border-radius: var(--radius-md);
  transition: transform var(--transition), box-shadow var(--transition);
}

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

.feature-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--clr-teal), var(--clr-teal-light));
  color: var(--clr-white);
  border-radius: var(--radius-md);
}

.feature-card h3 {
  font-size: var(--fs-base);
  font-weight: 700;
  margin-bottom: 4px;
}

.feature-card p {
  font-size: var(--fs-sm);
  color: var(--clr-gray-600);
  line-height: 1.5;
}

.about-image {
  position: relative;
}

.about-img-wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow-xl);
}

.about-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-badge {
  position: absolute;
  bottom: -16px;
  right: -16px;
  background: var(--clr-orange);
  color: var(--clr-white);
  padding: 16px 24px;
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.about-badge-number {
  display: block;
  font-family: var(--ff-heading);
  font-size: var(--fs-xl);
  font-weight: 900;
}

.about-badge-text {
  display: block;
  font-size: var(--fs-xs);
  font-weight: 600;
  opacity: 0.9;
}

/* ---- GALLERY SECTION ---- */
.gallery {
  padding: 120px 0;
  background: var(--clr-gray-100);
}

.carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
}

.carousel-viewport {
  overflow: hidden;
  border-radius: var(--radius-lg);
  flex: 1;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.carousel-slide {
  flex: 0 0 50%;
  padding: 0 8px;
}

.carousel-img-wrapper {
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  cursor: pointer;
  transition: transform var(--transition);
}

.carousel-img-wrapper:hover {
  transform: scale(1.02);
}

.carousel-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-btn {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--clr-gray-300);
  background: var(--clr-white);
  color: var(--clr-gray-700);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}

.carousel-btn:hover {
  background: var(--clr-teal);
  color: var(--clr-white);
  border-color: var(--clr-teal);
  box-shadow: var(--shadow-md);
}

.carousel-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.carousel-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
}

.carousel-dot {
  position: relative;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: var(--clr-gray-300);
  cursor: pointer;
  transition: all var(--transition);
  padding: 0;
}

/* Expand hit area to 24×24px minimum (WCAG 2.5.8) without changing visual size */
.carousel-dot::before {
  content: '';
  position: absolute;
  inset: -7px;
}

.carousel-dot.active {
  background: var(--clr-teal);
  width: 32px;
  border-radius: var(--radius-full);
}

/* ---- LIGHTBOX ---- */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  cursor: zoom-out;
}

.lightbox-overlay.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-overlay img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.5);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.lightbox-overlay.active img {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: var(--clr-white);
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ---- CONTACT SECTION ---- */
.contact {
  padding: 120px 0;
  background: var(--clr-white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact-desc {
  font-size: var(--fs-md);
  color: var(--clr-gray-600);
  line-height: 1.8;
  margin-bottom: 36px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-detail-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--clr-cream-light);
  color: var(--clr-teal);
  border-radius: var(--radius-md);
}

.contact-detail-item strong {
  display: block;
  font-family: var(--ff-heading);
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--clr-gray-900);
  margin-bottom: 2px;
}

.contact-detail-item p {
  font-size: var(--fs-sm);
  color: var(--clr-gray-600);
  line-height: 1.6;
}

.contact-detail-item a {
  color: var(--clr-teal);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.contact-detail-item a:hover {
  color: var(--clr-teal-dark);
  text-decoration: underline;
}

/* ---- FORM ---- */
.contact-form-wrapper {
  position: relative;
}

.contact-form {
  background: var(--clr-gray-100);
  padding: 40px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--clr-gray-200);
}

.form-title {
  font-size: var(--fs-xl);
  font-weight: 800;
  margin-bottom: 28px;
  color: var(--clr-gray-900);
}

.form-required-note {
  font-size: var(--fs-sm);
  color: var(--clr-gray-600);
  margin-bottom: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-family: var(--ff-heading);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--clr-gray-700);
  margin-bottom: 6px;
}

.required {
  color: var(--clr-orange-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--ff-body);
  font-size: var(--fs-base);
  color: var(--clr-gray-800);
  background: var(--clr-white);
  border: 2px solid var(--clr-gray-200);
  border-radius: var(--radius-md);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--clr-gray-400);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--clr-teal);
  box-shadow: 0 0 0 3px rgba(60, 155, 158, 0.15);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.form-error {
  display: block;
  font-size: var(--fs-xs);
  color: #dc2626;
  margin-top: 4px;
  min-height: 16px;
}

.form-group select {
  appearance: none;
  -webkit-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='%236B7280' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

/* Spinner */
.spinner {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Form Success */
.form-success {
  text-align: center;
  padding: 60px 40px;
  background: var(--clr-gray-100);
  border-radius: var(--radius-lg);
  border: 1px solid var(--clr-gray-200);
}

.success-icon {
  margin-bottom: 20px;
}

.form-success h3 {
  font-size: var(--fs-xl);
  font-weight: 800;
  margin-bottom: 8px;
}

.form-success p {
  color: var(--clr-gray-500);
  font-size: var(--fs-md);
}

/* ---- FOOTER ---- */
.footer {
  background: var(--clr-dark);
  color: var(--clr-gray-400);
  padding: 80px 0 0;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 16px;
}

.footer-tagline {
  font-size: var(--fs-sm);
  line-height: 1.7;
  color: var(--clr-gray-400);
}

.footer h4 {
  font-family: var(--ff-heading);
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--clr-white);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.footer-links ul li,
.footer-contact ul li,
.footer-hours ul li {
  margin-bottom: 10px;
  font-size: var(--fs-sm);
  line-height: 1.6;
}

.footer-links a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-links a:hover {
  color: var(--clr-teal-light);
}

.footer-contact ul li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

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

.footer-contact a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

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

.footer-social {
  display: flex;
  gap: 16px;
  margin-top: 4px;
}

.footer-social a {
  color: var(--clr-white);
  text-decoration: none;
  transition: color var(--transition);
}

.footer-social a:hover {
  color: var(--clr-teal-light);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  margin-top: 0;
  font-size: var(--fs-xs);
  color: var(--clr-gray-400);
}

.footer-license {
  color: var(--clr-gray-400);
}

/* ---- SCROLL ANIMATIONS ---- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .about-grid {
    gap: 40px;
  }

  .contact-grid {
    gap: 40px;
  }

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

@media (max-width: 768px) {
  :root {
    --fs-5xl: 2.75rem;
    --fs-4xl: 2.25rem;
    --fs-3xl: 2rem;
    --fs-2xl: 1.5rem;
  }

  html {
    scroll-padding-top: 64px;
  }

  /* Header Mobile */
  .header-inner {
    height: 64px;
  }

  .header-logo img {
    height: 40px;
  }

  .nav {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--clr-dark);
    padding: 24px;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-list {
    flex-direction: column;
    gap: 4px;
  }

  .nav-link {
    display: block;
    padding: 12px 16px;
    font-size: var(--fs-base);
  }

  .header-cta {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  /* Hero Mobile */
  .hero-content {
    padding: 100px 24px 60px;
  }

  .hero-actions {
    flex-direction: column;
  }

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

  .hero-scroll-indicator {
    display: none;
  }

  /* About Mobile */
  .about {
    padding: 80px 0;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-image {
    order: -1;
  }

  .about-img-wrapper {
    aspect-ratio: 16 / 10;
  }

  .about-badge {
    bottom: -12px;
    right: 12px;
  }

  /* Gallery Mobile */
  .gallery {
    padding: 80px 0;
  }

  .carousel-slide {
    flex: 0 0 100%;
  }

  .carousel-btn {
    width: 40px;
    height: 40px;
  }

  /* Contact Mobile */
  .contact {
    padding: 80px 0;
  }

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

  .contact-form {
    padding: 28px;
  }

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

  /* Footer Mobile */
  .footer-top {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  :root {
    --fs-5xl: 2.25rem;
    --fs-3xl: 1.75rem;
  }

  .container {
    padding: 0 16px;
  }

  .hero-badge {
    font-size: 0.65rem;
    padding: 5px 14px;
  }

  .contact-form {
    padding: 20px;
  }
}

/* ---- 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: 0;
}

/* ---- REDUCED MOTION (WCAG 2.3.3) ---- */
@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;
  }

  .loader-logo img,
  .loader-bar-fill,
  .skeleton::after,
  .scroll-arrow,
  .spinner {
    animation: none !important;
  }

  .carousel-track {
    transition: none !important;
  }
}

/* ---- HIGH CONTRAST (prefers-contrast: more) ---- */
@media (prefers-contrast: more) {
  :root {
    --clr-teal: #006e70;
    --clr-teal-dark: #005557;
    --clr-orange: #b54f00;
  }

  body {
    color: #000;
    background: #fff;
  }

  .nav-link,
  .footer-links a,
  .footer-contact a {
    text-decoration: underline;
  }

  .btn-primary,
  .btn-outline,
  .header-cta {
    outline: 2px solid currentColor;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    border-width: 2px;
    border-color: #000;
  }

  .carousel-btn {
    border: 2px solid currentColor;
  }
}
