/* ===================================
   Williams Fence & Decks — Styles
   Color Palette: Emerald + Cream
   =================================== */

/* --- CSS Variables --- */
:root {
  --emerald-50:  #ecfdf5;
  --emerald-100: #d1fae5;
  --emerald-200: #a7f3d0;
  --emerald-300: #6ee7b7;
  --emerald-400: #34d399;
  --emerald-500: #10b981;
  --emerald-600: #059669;
  --emerald-700: #047857;
  --emerald-800: #065f46;
  --emerald-900: #064e3b;
  --emerald-950: #022c22;

  --cream-50:  #fefcf3;
  --cream-100: #fef9e8;
  --cream-200: #fdf3d3;
  --cream-300: #fce8a8;
  --cream-400: #fad56e;
  --cream-500: #f5c03e;
  --cream-600: #d97706;

  --white:    #ffffff;
  --gray-50:  #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;

  --font-primary: 'Outfit', sans-serif;
  --font-display: 'Playfair Display', serif;

  --radius-sm:  8px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-xl:  28px;

  --shadow-sm:  0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md:  0 4px 14px rgba(0,0,0,0.1), 0 2px 6px rgba(0,0,0,0.06);
  --shadow-lg:  0 10px 40px rgba(0,0,0,0.12), 0 4px 12px rgba(0,0,0,0.08);
  --shadow-xl:  0 20px 60px rgba(0,0,0,0.15), 0 8px 20px rgba(0,0,0,0.1);

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

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

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

body {
  font-family: var(--font-primary);
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-800);
  background-color: var(--cream-50);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

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

ul {
  list-style: none;
}

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

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-primary);
  font-weight: 800;
  line-height: 1.15;
  color: var(--gray-900);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }

p {
  color: var(--gray-600);
  line-height: 1.7;
}

.text-gradient {
  background: linear-gradient(135deg, var(--emerald-600) 0%, var(--emerald-500) 50%, var(--cream-600) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-light {
  background: linear-gradient(135deg, var(--cream-300) 0%, var(--cream-500) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-xl);
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--emerald-600) 0%, var(--emerald-500) 100%);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(5, 150, 105, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(5, 150, 105, 0.45);
  background: linear-gradient(135deg, var(--emerald-700) 0%, var(--emerald-600) 100%);
}

.btn-outline-light {
  background: rgba(255,255,255,0.15);
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.4);
  backdrop-filter: blur(8px);
}

.btn-outline-light:hover {
  background: var(--white);
  color: var(--emerald-700);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 18px 36px;
  font-size: 1.1rem;
}

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

/* --- Section Headers --- */
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 60px;
}

.section-tag {
  display: inline-block;
  background: linear-gradient(135deg, var(--emerald-100), var(--emerald-200));
  color: var(--emerald-800);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 20px;
  border-radius: 50px;
  margin-bottom: 16px;
}

.section-title {
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--gray-500);
}

/* --- Navbar --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(254, 252, 243, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(6, 78, 59, 0.08);
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(254, 252, 243, 0.95);
  box-shadow: var(--shadow-md);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--emerald-900);
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--emerald-700), var(--emerald-500));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.1rem;
  font-family: var(--font-display);
}

.logo-text {
  line-height: 1;
}

.logo-text .accent {
  color: var(--emerald-600);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  padding: 8px 16px;
  border-radius: var(--radius-xl);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--gray-700);
}

.nav-links a:hover {
  color: var(--emerald-700);
  background: var(--emerald-50);
}

.nav-links .btn-primary {
  padding: 10px 24px;
  color: var(--white);
}

.nav-links .btn-primary:hover {
  transform: translateY(-1px);
}

/* Mobile menu */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gray-700);
  border-radius: 2px;
  transition: var(--transition);
}

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

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

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

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 120px 24px 80px;
}

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

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

.gradient-overlay {
  position: absolute;
  inset: 0;
  background: 
    linear-gradient(135deg, 
      rgba(2, 44, 34, 0.92) 0%, 
      rgba(6, 78, 59, 0.85) 40%, 
      rgba(4, 120, 87, 0.75) 70%,
      rgba(52, 211, 151, 0.6) 100%);
}

.hero-shapes {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.12;
}

.shape-1 {
  width: 500px;
  height: 500px;
  background: var(--cream-400);
  top: -100px;
  right: -100px;
  animation: float 8s ease-in-out infinite;
}

.shape-2 {
  width: 300px;
  height: 300px;
  background: var(--emerald-300);
  bottom: 10%;
  left: -50px;
  animation: float 6s ease-in-out infinite reverse;
}

.shape-3 {
  width: 150px;
  height: 150px;
  background: var(--cream-300);
  top: 40%;
  right: 15%;
  animation: float 5s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(20px, -20px) scale(1.05); }
  66% { transform: translate(-10px, 15px) scale(0.95); }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 820px;
  padding-top: 40px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--cream-200);
  font-weight: 500;
  font-size: 0.9rem;
  padding: 10px 22px;
  border-radius: 50px;
  margin-bottom: 28px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--emerald-400);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

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

.hero-title {
  color: var(--white);
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.hero-title .text-gradient {
  background: linear-gradient(135deg, var(--cream-300) 0%, var(--cream-500) 50%, var(--emerald-300) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  color: rgba(255,255,255,0.85);
  font-size: clamp(1rem, 2vw, 1.25rem);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-trust {
  display: flex;
  gap: 32px;
  justify-content: center;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  font-weight: 500;
}

.trust-item svg {
  color: var(--emerald-400);
}

.hero-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  z-index: 3;
  line-height: 0;
}

.hero-wave svg {
  width: 100%;
  height: 80px;
}

/* --- Services --- */
.services {
  padding: 100px 0;
  background: var(--cream-50);
  position: relative;
}

.services::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--emerald-100) 0%, transparent 70%);
  opacity: 0.5;
  pointer-events: none;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.service-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid var(--gray-100);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: var(--emerald-200);
}

.service-card-shape {
  position: absolute;
  top: 0;
  right: 0;
  width: 120px;
  height: 120px;
  background: linear-gradient(135deg, var(--emerald-100) 0%, transparent 70%);
  border-radius: 0 var(--radius-lg) 0 100%;
  transition: var(--transition);
}

.service-card:hover .service-card-shape {
  width: 160px;
  height: 160px;
}

.service-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--emerald-100), var(--emerald-200));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--emerald-700);
  margin-bottom: 20px;
  transition: var(--transition);
}

.service-card:hover .service-icon {
  background: linear-gradient(135deg, var(--emerald-600), var(--emerald-500));
  color: var(--white);
  transform: scale(1.05);
}

.service-card h3 {
  margin-bottom: 12px;
  color: var(--gray-900);
}

.service-card > p {
  font-size: 0.95rem;
  color: var(--gray-500);
  margin-bottom: 20px;
  line-height: 1.6;
}

.service-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.service-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--gray-600);
}

.service-features li::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--emerald-500);
  border-radius: 50%;
  flex-shrink: 0;
}

/* --- About --- */
.about {
  padding: 100px 0;
  background: var(--white);
  position: relative;
  overflow: hidden;
}

.about::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--cream-200) 0%, transparent 70%);
  opacity: 0.6;
  pointer-events: none;
}

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

.about-visual {
  position: relative;
}

.about-img-main {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.about-img-main img {
  width: 100%;
  height: 450px;
  object-fit: cover;
}

.about-img-accent {
  position: absolute;
  bottom: -30px;
  right: -30px;
  width: 220px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--white);
}

.about-img-accent img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.about-stats {
  position: absolute;
  top: -20px;
  left: -20px;
  display: flex;
  gap: 12px;
}

.stat-item {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  box-shadow: var(--shadow-lg);
  text-align: center;
  min-width: 100px;
}

.stat-number {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--emerald-700);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.72rem;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.about-content {
  position: relative;
  z-index: 1;
}

.about-content .section-tag {
  margin-bottom: 16px;
}

.about-content .section-title {
  margin-bottom: 24px;
}

.about-text {
  margin-bottom: 16px;
  font-size: 1.05rem;
  color: var(--gray-600);
}

.about-values {
  margin-top: 32px;
  display: grid;
  gap: 14px;
}

.value-item {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1rem;
  color: var(--gray-700);
  font-weight: 500;
}

.value-check {
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, var(--emerald-100), var(--emerald-200));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--emerald-700);
  flex-shrink: 0;
}

/* --- Gallery --- */
.gallery {
  padding: 100px 0;
  background: var(--cream-50);
  position: relative;
}

.gallery::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--emerald-50) 0%, transparent 70%);
  pointer-events: none;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(2, 44, 34, 0.85) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  opacity: 0;
  transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-tag {
  display: inline-block;
  background: var(--emerald-500);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: 50px;
  width: fit-content;
  margin-bottom: 8px;
}

.gallery-overlay span:last-child {
  color: var(--white);
  font-weight: 600;
  font-size: 1.1rem;
}

/* --- Testimonials --- */
.testimonials {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--emerald-900) 0%, var(--emerald-800) 60%, var(--emerald-700) 100%);
  position: relative;
  overflow: hidden;
}

.testimonials::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(253, 232, 168, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.testimonials::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -80px;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(52, 211, 151, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.testimonials .section-header {
  position: relative;
  z-index: 1;
}

.testimonials .section-tag {
  background: rgba(255,255,255,0.15);
  color: var(--emerald-200);
}

.testimonials .section-title {
  color: var(--white);
}

.testimonials .section-desc {
  color: rgba(255,255,255,0.7);
}

.testimonials .text-gradient {
  background: linear-gradient(135deg, var(--cream-300) 0%, var(--cream-500) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  position: relative;
  z-index: 1;
}

.testimonial-card {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition);
}

.testimonial-card:hover {
  background: rgba(255,255,255,0.12);
  transform: translateY(-4px);
  border-color: rgba(255,255,255,0.2);
}

.testimonial-quote {
  color: var(--cream-400);
  margin-bottom: 16px;
  line-height: 1;
}

.testimonial-text {
  color: rgba(255,255,255,0.9);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 24px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--emerald-500), var(--emerald-400));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  flex-shrink: 0;
}

.author-name {
  display: block;
  color: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
}

.author-location {
  display: block;
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
}

/* --- CTA --- */
.cta {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--cream-100) 0%, var(--cream-200) 50%, var(--emerald-100) 100%);
  position: relative;
  overflow: hidden;
}

.cta-bg-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.cta-shape {
  position: absolute;
  border-radius: 50%;
}

.cta-shape-1 {
  width: 300px;
  height: 300px;
  background: var(--emerald-300);
  opacity: 0.15;
  top: -80px;
  left: -80px;
}

.cta-shape-2 {
  width: 200px;
  height: 200px;
  background: var(--cream-500);
  opacity: 0.2;
  bottom: -50px;
  right: 10%;
}

.cta-shape-3 {
  width: 120px;
  height: 120px;
  background: var(--emerald-400);
  opacity: 0.2;
  top: 20%;
  right: 5%;
}

.cta-content {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.cta-tag {
  background: linear-gradient(135deg, var(--emerald-200), var(--emerald-300));
  color: var(--emerald-900);
}

.cta-title {
  margin-bottom: 20px;
  font-size: clamp(2rem, 4vw, 3rem);
}

.cta-title .text-gradient-light {
  background: linear-gradient(135deg, var(--emerald-700) 0%, var(--emerald-500) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cta-text {
  font-size: 1.1rem;
  color: var(--gray-600);
  margin-bottom: 36px;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Contact --- */
.contact {
  padding: 100px 0;
  background: var(--white);
}

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

.contact-info .section-tag {
  margin-bottom: 16px;
}

.contact-info .section-title {
  margin-bottom: 16px;
}

.contact-desc {
  font-size: 1.05rem;
  color: var(--gray-500);
  margin-bottom: 36px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 32px;
}

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

.contact-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--emerald-100), var(--emerald-200));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--emerald-700);
  flex-shrink: 0;
}

.contact-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.contact-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gray-400);
  font-weight: 600;
}

.contact-text a,
.contact-text span {
  font-size: 1rem;
  color: var(--gray-700);
  font-weight: 500;
}

.contact-text a:hover {
  color: var(--emerald-600);
}

.contact-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

/* Form */
.form-card {
  background: var(--cream-50);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.form-card h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
  color: var(--gray-900);
}

.form-desc {
  font-size: 0.95rem;
  color: var(--gray-500);
  margin-bottom: 28px;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.form-group label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gray-700);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 16px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-family: var(--font-primary);
  font-size: 1rem;
  color: var(--gray-800);
  background: var(--white);
  transition: var(--transition);
  outline: none;
  width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--emerald-500);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}

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

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

.form-success {
  display: none;
  text-align: center;
  padding: 40px 20px;
}

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

.success-icon {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, var(--emerald-100), var(--emerald-200));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--emerald-700);
}

.form-success h4 {
  font-size: 1.4rem;
  margin-bottom: 8px;
  color: var(--gray-900);
}

.form-success p {
  color: var(--gray-500);
}

/* --- Footer --- */
.footer {
  background: var(--gray-900);
  padding: 60px 0 0;
  color: rgba(255,255,255,0.7);
}

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

.footer-brand .logo {
  margin-bottom: 16px;
}

.footer-brand .logo-icon {
  background: linear-gradient(135deg, var(--emerald-500), var(--emerald-400));
}

.footer-brand .logo-text {
  color: var(--white);
}

.footer-brand .logo-text .accent {
  color: var(--emerald-400);
}

.footer-desc {
  color: rgba(255,255,255,0.5);
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 280px;
}

.footer-links h4 {
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--emerald-400);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 24px 0;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
}

.footer-bottom a {
  color: rgba(255,255,255,0.4);
}

.footer-bottom a:hover {
  color: var(--emerald-400);
}

/* --- Back to Top --- */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--emerald-700), var(--emerald-500));
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
}

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

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
}

/* --- Reveal Animations --- */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .shape { animation: none; }
  html { scroll-behavior: auto; }
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .about-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .about-visual {
    max-width: 500px;
    margin: 0 auto;
  }

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

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

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: flex;
    z-index: 1001;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--cream-50);
    flex-direction: column;
    align-items: flex-start;
    padding: 80px 32px 32px;
    gap: 4px;
    box-shadow: var(--shadow-xl);
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
  }

  .nav-links.open {
    right: 0;
  }

  .nav-links a {
    width: 100%;
    padding: 12px 16px;
    font-size: 1.05rem;
  }

  .nav-links .btn-primary {
    margin-top: 12px;
    text-align: center;
    justify-content: center;
  }

  .hero {
    padding: 100px 20px 60px;
    min-height: auto;
  }

  .hero-title {
    font-size: clamp(1.8rem, 8vw, 2.8rem);
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .hero-trust {
    gap: 16px;
  }

  .hero-wave svg {
    height: 50px;
  }

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

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

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

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

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

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

  .about-img-accent {
    width: 160px;
    right: -10px;
    bottom: -20px;
  }

  .about-stats {
    left: 10px;
    top: -10px;
  }

  .stat-item {
    padding: 12px 14px;
    min-width: 80px;
  }

  .stat-number {
    font-size: 1.3rem;
  }

  .form-card {
    padding: 24px;
  }

  .service-card {
    padding: 28px 22px;
  }
}
