/* Mercer and Valley - Redesigned Stylesheet */

/* ========== DESIGN TOKENS ========== */
:root {
  --primary: #2c5f7c;
  --primary-dark: #1e4a5f;
  --primary-light: #3a7a9d;
  --accent: #e8a54b;
  --accent-light: #f0bc6d;
  --accent-subtle: rgba(232, 165, 75, 0.1);
  --text: #2a2a2a;
  --text-light: #555;
  --text-muted: #888;
  --bg: #ffffff;
  --bg-warm: #f7f3ed;
  --bg-soft: #f2f0ec;
  --bg-tint: #eee9e2;
  --border: #e2dfd9;
  --border-light: #ebe8e3;
  --font-heading: 'DM Serif Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;

  /* Shadow system */
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.1);
  --shadow-xl: 0 24px 64px rgba(0,0,0,0.12);
  --shadow-primary: 0 8px 24px rgba(44, 95, 124, 0.2);
  --shadow-accent: 0 8px 24px rgba(232, 165, 75, 0.18);

  /* Spacing scale (8px base) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 40px;
  --space-8: 48px;
  --space-9: 56px;
  --space-10: 64px;
  --space-12: 80px;
  --space-14: 96px;
  --space-16: 112px;

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

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --duration-fast: 0.2s;
  --duration-normal: 0.35s;
  --duration-slow: 0.5s;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  line-height: 1.65;
  background: var(--bg);
  overflow-x: hidden;
}

h1, h2 {
  font-family: var(--font-heading);
  font-weight: 400;
  letter-spacing: -0.015em;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--duration-fast) ease;
}

a:hover {
  color: var(--primary-dark);
}

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

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--space-5);
}

/* ========== HEADER & NAVIGATION ========== */
header {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  padding: 18px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  transition: all var(--duration-normal) var(--ease-out);
}

header.scrolled {
  box-shadow: var(--shadow-sm);
  padding: 12px 0;
  background: rgba(255, 255, 255, 0.95);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--primary);
  position: relative;
  transition: transform var(--duration-normal) var(--ease-out);
  letter-spacing: -0.02em;
}

.logo:hover {
  transform: scale(1.02);
  color: var(--primary);
}

.logo-icon {
  width: 28px;
  height: 20px;
  fill: currentColor;
  vertical-align: -2px;
  margin-right: 6px;
}

.logo-icon-after {
  margin-right: 0;
  margin-left: 6px;
}

.logo span {
  color: var(--accent);
  display: inline-block;
  transition: transform var(--duration-normal) var(--ease-spring);
}

.logo:hover span {
  transform: rotate(12deg) scale(1.1);
}

nav ul {
  display: flex;
  list-style: none;
  gap: 4px;
}

nav li {
  position: relative;
}

nav a {
  color: var(--text-light);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 8px 16px;
  display: block;
  position: relative;
  border-radius: var(--radius-sm);
  transition: color var(--duration-fast) ease, background var(--duration-fast) ease;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 16px;
  right: 16px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--duration-normal) var(--ease-out);
  border-radius: 1px;
}

nav a:hover {
  color: var(--primary);
  background: var(--bg-soft);
}

nav a:hover::after,
nav a.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

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

/* Mobile menu */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  z-index: 101;
}

.menu-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  transition: all var(--duration-normal) var(--ease-out);
  transform-origin: center;
  border-radius: 1px;
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  transition: all var(--duration-normal) var(--ease-out);
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transition: left var(--duration-slow) var(--ease-out);
}

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

.btn:hover::before {
  left: 100%;
}

.btn:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

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

/* ========== HERO SECTION ========== */
.hero {
  background-color: var(--bg-soft);
  background-size: cover;
  background-position: center;
  padding: var(--space-14) 0;
  position: relative;
  overflow: hidden;
  min-height: 520px;
  display: flex;
  align-items: center;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    rgba(30, 74, 95, 0.35) 0%,
    rgba(30, 74, 95, 0.15) 50%,
    rgba(30, 74, 95, 0.05) 100%
  );
}

.hero::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(232, 165, 75, 0.08) 0%, transparent 70%);
  animation: float 20s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(30px, -30px) rotate(5deg); }
  66% { transform: translate(-20px, 20px) rotate(-5deg); }
}

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

.hero-strip {
  background: rgba(30, 74, 95, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-sm);
  padding: var(--space-6) var(--space-7);
  max-width: 600px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0;
  transform: translateY(24px);
  animation: slideUp 0.8s var(--ease-out) 0.1s forwards;
}

.hero h1 {
  font-size: 3.2rem;
  color: white;
  margin-bottom: var(--space-4);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.hero h1 strong {
  color: var(--accent);
  font-weight: 400;
}

.hero p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: var(--space-5);
  line-height: 1.7;
}

@keyframes slideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========== PHOTO BANNER ========== */
.photo-banner {
  background-size: cover;
  background-position: center 40%;
  position: relative;
  padding: var(--space-14) 0;
  overflow: hidden;
}

.photo-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(30, 74, 95, 0.72) 0%, rgba(44, 95, 124, 0.48) 100%);
}

.photo-banner .container {
  position: relative;
  z-index: 1;
  text-align: center;
}

.photo-banner p {
  color: white;
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 400;
  margin: 0;
  opacity: 0;
  transform: translateY(20px);
  animation: slideUp 0.8s var(--ease-out) 0.2s forwards;
}

/* ========== SECTIONS ========== */
section {
  padding: var(--space-12) 0;
}

section h2 {
  font-size: 2.25rem;
  color: var(--primary-dark);
  margin-bottom: var(--space-4);
}

section h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: var(--space-2);
}

.section-intro {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: var(--space-8);
  max-width: 680px;
  line-height: 1.7;
}

/* Scroll animations */
.fade-in {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity var(--duration-slow) var(--ease-out), transform var(--duration-slow) var(--ease-out);
}

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

.fade-in-left {
  opacity: 0;
  transform: translateX(-32px);
  transition: opacity var(--duration-slow) var(--ease-out), transform var(--duration-slow) var(--ease-out);
}

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

.fade-in-right {
  opacity: 0;
  transform: translateX(32px);
  transition: opacity var(--duration-slow) var(--ease-out), transform var(--duration-slow) var(--ease-out);
}

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

/* Staggered children */
.stagger-children > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--duration-slow) var(--ease-out), transform var(--duration-slow) var(--ease-out);
}

.stagger-children.visible > *:nth-child(1) { transition-delay: 0s; }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.08s; }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.16s; }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.24s; }
.stagger-children.visible > *:nth-child(5) { transition-delay: 0.32s; }
.stagger-children.visible > *:nth-child(6) { transition-delay: 0.4s; }
.stagger-children.visible > *:nth-child(7) { transition-delay: 0.48s; }
.stagger-children.visible > *:nth-child(8) { transition-delay: 0.56s; }
.stagger-children.visible > *:nth-child(9) { transition-delay: 0.64s; }
.stagger-children.visible > *:nth-child(10) { transition-delay: 0.72s; }
.stagger-children.visible > *:nth-child(11) { transition-delay: 0.8s; }

.stagger-children.visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* ========== CARD GRID ========== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-5);
}

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

.card {
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: all var(--duration-normal) var(--ease-out);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-xs);
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--duration-normal) var(--ease-out);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.card:hover::before {
  transform: scaleX(1);
}

.card h3 {
  transition: color var(--duration-fast) ease;
}

.card:hover h3 {
  color: var(--primary-dark);
}

.card p {
  color: var(--text-light);
  line-height: 1.65;
}

/* ========== ICON BOXES ========== */
.icon-box {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-5);
  transition: transform var(--duration-normal) var(--ease-spring), box-shadow var(--duration-normal) var(--ease-out);
  position: relative;
}

.icon-box svg {
  width: 26px;
  height: 26px;
  stroke: white;
  stroke-width: 1.5;
  fill: none;
}

.card:hover .icon-box {
  transform: scale(1.08) rotate(3deg);
  box-shadow: var(--shadow-primary);
}

/* ========== SERVICE FINDER ========== */
.service-finder {
  background: var(--bg-warm);
}

.finder-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  max-width: 800px;
}

.finder-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-6) var(--space-4);
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  text-align: center;
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
  transition: all var(--duration-normal) var(--ease-out);
  box-shadow: var(--shadow-xs);
}

.finder-card svg {
  width: 32px;
  height: 32px;
  stroke: var(--primary);
  stroke-width: 1.5;
  fill: none;
  transition: all var(--duration-normal) var(--ease-out);
}

.finder-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
  color: var(--primary);
}

.finder-card:hover svg {
  transform: scale(1.1);
}

.finder-card-accent {
  background: var(--accent-subtle);
  border-color: rgba(232, 165, 75, 0.2);
}

.finder-card-accent svg {
  stroke: var(--accent);
}

.finder-card-accent:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: var(--shadow-accent);
}

/* ========== SOCIAL PROOF ========== */
.social-proof {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  position: relative;
  overflow: hidden;
}

.social-proof::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(232, 165, 75, 0.12) 0%, transparent 70%);
  border-radius: 50%;
}

.proof-inner {
  max-width: 640px;
  position: relative;
  z-index: 1;
}

.proof-inner h2 {
  color: white;
  font-size: 2.25rem;
  margin-bottom: var(--space-4);
}

.proof-inner p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.1rem;
  line-height: 1.75;
  margin-bottom: var(--space-6);
}

.proof-inner .btn {
  background: white;
  color: var(--primary);
}

.proof-inner .btn:hover {
  background: var(--bg-warm);
  color: var(--primary-dark);
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
}

/* ========== FEATURES SECTION ========== */
.features {
  background: var(--bg-warm);
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-5);
}

/* Horizontal feature layout — icon left, text right */
.feature-list-horizontal {
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
}

.feature-list-horizontal .feature-item {
  display: flex;
  gap: var(--space-5);
  text-align: left;
  padding: var(--space-5);
}

.feature-list-horizontal .feature-icon {
  margin: 0;
  flex-shrink: 0;
  width: 52px;
  height: 52px;
}

.feature-list-horizontal .feature-icon svg {
  width: 24px;
  height: 24px;
}

.feature-item {
  text-align: center;
  padding: var(--space-6) var(--space-5);
  border-radius: var(--radius-lg);
  transition: all var(--duration-normal) var(--ease-out);
  background: transparent;
}

.feature-item:hover {
  background: white;
  box-shadow: var(--shadow-md);
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-5);
  transition: all var(--duration-normal) var(--ease-spring);
  position: relative;
}

.feature-icon::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px dashed var(--accent);
  opacity: 0;
  transition: all var(--duration-normal) var(--ease-out);
  animation: spin 20s linear infinite paused;
}

.feature-item:hover .feature-icon {
  transform: scale(1.1);
  box-shadow: var(--shadow-primary);
}

.feature-item:hover .feature-icon::after {
  opacity: 1;
  animation-play-state: running;
}

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

.feature-icon svg {
  width: 26px;
  height: 26px;
  stroke: white;
  stroke-width: 1.5;
  fill: none;
}

/* Number icons for process steps */
.feature-icon.numbered {
  font-size: 1.4rem;
  font-weight: 700;
}

.feature-item p {
  color: var(--text-light);
  line-height: 1.65;
}

.feature-item h3 {
  margin-bottom: var(--space-2);
}

/* ========== TIMELINE ========== */
.timeline-section {
  background: var(--bg-soft);
}

.timeline {
  position: relative;
  padding-left: var(--space-7);
  max-width: 720px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 11px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  padding-bottom: var(--space-7);
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-marker {
  position: absolute;
  left: calc(-1 * var(--space-7) + 4px);
  top: 6px;
  width: 16px;
  height: 16px;
  background: var(--bg);
  border: 3px solid var(--primary);
  border-radius: 50%;
  z-index: 1;
  transition: all var(--duration-normal) var(--ease-out);
}

.timeline-item:hover .timeline-marker {
  background: var(--primary);
  transform: scale(1.2);
  box-shadow: var(--shadow-primary);
}

.timeline-item-accent .timeline-marker {
  border-color: var(--accent);
  background: var(--accent);
}

.timeline-item-accent:hover .timeline-marker {
  background: var(--accent);
  box-shadow: var(--shadow-accent);
}

.timeline-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary);
  background: rgba(44, 95, 124, 0.08);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-2);
}

.timeline-item-accent .timeline-label {
  color: var(--accent);
  background: var(--accent-subtle);
}

.timeline-content h3 {
  font-size: 1.15rem;
  margin-bottom: var(--space-2);
}

.timeline-content p {
  color: var(--text-light);
  line-height: 1.7;
}

/* ========== ABOUT PAGE ========== */
.about-text {
  max-width: 720px;
}

.about-text p {
  margin-bottom: var(--space-5);
  color: var(--text-light);
  line-height: 1.75;
}

/* ========== SERVICES LIST ========== */
.service-categories {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-7);
}

.category-btn {
  padding: 10px 20px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-full);
  background: var(--bg);
  color: var(--text-light);
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--duration-fast) ease;
}

.category-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(44, 95, 124, 0.04);
}

.category-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

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

.service-item {
  display: flex;
  flex-direction: column;
  padding: var(--space-6) var(--space-7);
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  transition: all var(--duration-normal) var(--ease-out);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-xs);
}

.service-item[data-hidden="true"] {
  display: none;
}

.service-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--duration-normal) var(--ease-out);
}

.service-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.service-item:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 52px;
  height: 52px;
  background: var(--bg-soft);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--duration-normal) var(--ease-out);
  margin-bottom: var(--space-5);
}

.service-icon svg {
  width: 26px;
  height: 26px;
  stroke: var(--primary);
  stroke-width: 1.5;
  fill: none;
  transition: stroke var(--duration-fast) ease;
}

.service-item:hover .service-icon {
  background: var(--primary);
  box-shadow: var(--shadow-primary);
}

.service-item:hover .service-icon svg {
  stroke: white;
}

.service-item h3 {
  margin-bottom: var(--space-3);
  transition: color var(--duration-fast) ease;
}

.service-item:hover h3 {
  color: var(--primary-dark);
}

.service-item p {
  color: var(--text-light);
  line-height: 1.65;
}

.service-meta {
  margin-top: var(--space-4);
  font-size: 0.92rem;
  color: var(--text);
  padding-left: var(--space-4);
  border-left: 2px solid var(--accent);
  line-height: 1.6;
}

/* ========== CONTACT FORM ========== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-10);
  align-items: start;
}

.contact-info h2 {
  margin-bottom: var(--space-4);
}

.contact-info h3 {
  margin-bottom: var(--space-4);
}

.contact-info p {
  color: var(--text-light);
  margin-bottom: var(--space-5);
  line-height: 1.7;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
  color: var(--text);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  transition: all var(--duration-normal) var(--ease-out);
}

.contact-detail:hover {
  background: var(--bg-soft);
  transform: translateX(4px);
}

.contact-detail-icon {
  width: 40px;
  height: 40px;
  background: var(--bg-soft);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--duration-normal) var(--ease-out);
  flex-shrink: 0;
}

.contact-detail:hover .contact-detail-icon {
  background: var(--primary);
  box-shadow: var(--shadow-primary);
}

.contact-detail-icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--primary);
  stroke-width: 1.5;
  fill: none;
  transition: stroke var(--duration-fast) ease;
}

.contact-detail:hover .contact-detail-icon svg {
  stroke: white;
}

.expect-box {
  margin-top: var(--space-7);
  padding: var(--space-6);
  background: var(--bg-warm);
  border-radius: var(--radius-lg);
  border-left: 3px solid var(--accent);
  transition: all var(--duration-normal) var(--ease-out);
}

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

.expect-box h3 {
  margin-bottom: var(--space-3);
}

.expect-box p {
  color: var(--text-light);
  margin: 0;
  line-height: 1.7;
}

/* Form styling */
form {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  background: var(--bg);
  padding: var(--space-7);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.form-group {
  position: relative;
}

label {
  font-weight: 500;
  font-size: 0.92rem;
  margin-bottom: var(--space-2);
  display: block;
  color: var(--text);
  transition: color var(--duration-fast) ease;
}

.label-optional {
  font-weight: normal;
  color: var(--text-muted);
  font-size: 0.85rem;
}

input, textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  transition: all var(--duration-fast) ease;
  background: white;
  color: var(--text);
}

input::placeholder, textarea::placeholder {
  color: var(--text-muted);
}

input:hover, textarea:hover {
  border-color: #c8c6c3;
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(44, 95, 124, 0.1);
}

textarea {
  min-height: 140px;
  resize: vertical;
  line-height: 1.6;
}

form .btn {
  align-self: flex-start;
}

/* ========== CTA SECTION ========== */
.cta {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 50%);
  animation: pulse 12s ease-in-out infinite;
}

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

.cta .container {
  position: relative;
  z-index: 1;
}

.cta h2 {
  color: white;
  margin-bottom: var(--space-4);
}

.cta p {
  color: rgba(255,255,255,0.88);
  margin-bottom: var(--space-6);
  font-size: 1.1rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

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

.cta .btn:hover {
  background: var(--bg-warm);
  color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
}

/* ========== PAGE HEADER ========== */
.page-header {
  background-color: var(--bg-soft);
  background-size: cover;
  background-position: center;
  padding: var(--space-10) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    rgba(30, 74, 95, 0.3) 0%,
    rgba(30, 74, 95, 0.12) 50%,
    rgba(30, 74, 95, 0.05) 100%
  );
}

.page-header .container {
  position: relative;
  z-index: 1;
}

.page-header-strip {
  display: inline-block;
  background: rgba(30, 74, 95, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-sm);
  padding: var(--space-5) var(--space-7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0;
  transform: translateY(20px);
  animation: slideUp 0.6s var(--ease-out) forwards;
}

.page-header h1 {
  color: white;
  font-size: 2.75rem;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-2);
}

.page-header p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
}

/* ========== 404 PAGE ========== */
.error-page {
  text-align: center;
  padding: var(--space-16) 0;
  min-height: 60vh;
  display: flex;
  align-items: center;
}

.error-page .container {
  width: 100%;
}

.error-page h1 {
  font-size: 3.2rem;
  color: var(--primary-dark);
  margin-bottom: var(--space-4);
  letter-spacing: -0.02em;
}

.error-page p {
  font-size: 1.15rem;
  color: var(--text-light);
  max-width: 480px;
  margin: 0 auto var(--space-7);
  line-height: 1.7;
}

.error-actions {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
}

/* ========== FOOTER ========== */
footer {
  background: var(--primary-dark);
  color: white;
  padding: var(--space-8) 0 var(--space-5);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: var(--space-7);
}

footer .logo {
  color: white;
}

footer .logo:hover {
  color: white;
}

footer .logo span {
  color: var(--accent);
}

.footer-tagline {
  margin-top: var(--space-2);
  opacity: 0.7;
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  gap: 4px;
}

.footer-links a {
  color: rgba(255,255,255,0.75);
  font-size: 0.92rem;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: all var(--duration-fast) ease;
}

.footer-links a:hover {
  color: white;
  background: rgba(255,255,255,0.08);
}

.footer-bottom {
  padding-top: var(--space-5);
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center;
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
}

/* ========== FLOATING CONTACT BUTTON ========== */
.floating-contact {
  position: fixed;
  bottom: var(--space-5);
  right: var(--space-5);
  z-index: 9998;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--primary);
  color: white;
  padding: 12px 22px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-primary), var(--shadow-md);
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.92rem;
  transition: all var(--duration-normal) var(--ease-out);
  overflow: hidden;
}

.floating-contact::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
  transition: left var(--duration-slow) var(--ease-out);
}

.floating-contact:hover {
  background: var(--primary-dark);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-primary), var(--shadow-lg);
}

.floating-contact:hover::before {
  left: 100%;
}

.floating-contact svg {
  width: 18px;
  height: 18px;
  stroke: white;
  stroke-width: 1.5;
  fill: none;
  flex-shrink: 0;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: var(--space-7);
  }

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

@media (max-width: 768px) {
  .hero {
    padding: var(--space-10) 0;
    min-height: auto;
  }

  .hero-strip {
    max-width: 100%;
    padding: var(--space-5) var(--space-5);
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .page-header-strip {
    padding: var(--space-4) var(--space-5);
  }

  section {
    padding: var(--space-10) 0;
  }

  section h2 {
    font-size: 1.85rem;
  }

  .page-header h1 {
    font-size: 2.1rem;
  }

  .footer-content {
    flex-direction: column;
    gap: var(--space-6);
  }

  .card-grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }

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

  .service-icon {
    width: 48px;
    height: 48px;
  }

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

  nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    height: 100dvh;
    background: white;
    box-shadow: -10px 0 40px rgba(0,0,0,0.12);
    padding: var(--space-12) var(--space-5) var(--space-5);
    transition: right 0.4s var(--ease-out);
    z-index: 99;
  }

  nav.open {
    right: 0;
  }

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

  nav a {
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    font-size: 1rem;
  }

  nav a::after {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

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

  .menu-toggle.open span:nth-child(2) {
    opacity: 0;
  }

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

  form {
    padding: var(--space-5);
  }

  .timeline {
    padding-left: var(--space-6);
  }

  .timeline-marker {
    left: calc(-1 * var(--space-6) + 4px);
  }

  .error-page {
    padding: var(--space-12) 0;
  }

  .error-page h1 {
    font-size: 2.4rem;
  }
}

@media (max-width: 480px) {
  .floating-contact {
    bottom: var(--space-4);
    right: var(--space-4);
    padding: 11px 18px;
    font-size: 0.88rem;
  }

  .container {
    padding: 0 var(--space-4);
  }

  .card, .service-item {
    padding: var(--space-5);
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero-card h1 {
    font-size: 2rem;
  }

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

  .finder-card {
    padding: var(--space-5) var(--space-3);
    font-size: 0.88rem;
  }

  .service-categories {
    gap: var(--space-2);
  }

  .category-btn {
    padding: 8px 14px;
    font-size: 0.85rem;
  }
}
