/* ============================================================
   Unity Home Care — Premium Stylesheet
   Compassionate In-Home Care | Santa Rosa, CA
   ============================================================ */

/* ==========================================================
   1. CSS CUSTOM PROPERTIES
   ========================================================== */
:root {
  /* Brand Colors */
  --color-primary: #12385b;
  --color-primary-dark: #0c2a45;
  --color-primary-light: #1a4d7a;
  --color-secondary: #1a939f;
  --color-secondary-dark: #147b85;
  --color-secondary-light: #20b0be;
  --color-accent: #e2f1f2;
  --color-text-dark: #2d3436;
  --color-text-muted: #636e72;
  --color-text-light: #ffffff;
  --color-bg-light: #f8fafe;
  --color-bg-white: #ffffff;
  --color-border: #e1e8ed;
  --color-border-light: #f0f4f8;

  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 80px;

  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 50%;

  /* Shadows */
  --shadow-xs: 0 1px 3px rgba(18, 56, 91, 0.04);
  --shadow-sm: 0 2px 8px rgba(18, 56, 91, 0.06);
  --shadow-md: 0 4px 20px rgba(18, 56, 91, 0.08);
  --shadow-lg: 0 8px 32px rgba(18, 56, 91, 0.12);
  --shadow-xl: 0 16px 48px rgba(18, 56, 91, 0.16);
  --shadow-glow-teal: 0 4px 24px rgba(26, 147, 159, 0.35);
  --shadow-glow-teal-lg: 0 8px 40px rgba(26, 147, 159, 0.45);

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Z-index Scale */
  --z-dropdown: 100;
  --z-sticky: 500;
  --z-overlay: 900;
  --z-header: 1000;
  --z-modal: 1100;

  /* Shorthand aliases */
  --primary: var(--color-primary);
  --secondary: var(--color-secondary);
}


/* ==========================================================
   2. GLOBAL RESETS & BASE STYLES
   ========================================================== */
*,
*::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-primary);
  color: var(--color-text-dark);
  background-color: var(--color-bg-light);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

a:hover {
  color: var(--color-secondary);
}

/* Accessibility: focus-visible outlines */
:focus-visible {
  outline: 2px solid var(--color-secondary);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

:focus:not(:focus-visible) {
  outline: none;
}

::selection {
  background-color: var(--color-secondary);
  color: var(--color-text-light);
}


/* ==========================================================
   3. TYPOGRAPHY
   ========================================================== */
h1, h2, h3, h4, h5, h6 {
  color: var(--color-primary);
  margin-bottom: 1rem;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.15;
}

h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.25rem);
}

h3 {
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  font-weight: 600;
}

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

p {
  margin-bottom: 1rem;
  color: var(--color-text-muted);
  line-height: 1.75;
}

ul {
  list-style-position: inside;
}

strong {
  font-weight: 600;
  color: var(--color-text-dark);
}


/* ==========================================================
   4. UTILITY CLASSES
   ========================================================== */
.text-center { text-align: center; }
.text-left { text-align: left; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}


/* ==========================================================
   5. BUTTONS
   ========================================================== */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--radius-md);
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
  cursor: pointer;
  border: 2px solid transparent;
  transition:
    background-color var(--transition-base),
    color var(--transition-base),
    transform var(--transition-fast),
    box-shadow var(--transition-base),
    border-color var(--transition-base);
  line-height: 1.4;
  letter-spacing: 0.01em;
  position: relative;
  overflow: hidden;
}

.btn:active {
  transform: translateY(0) scale(0.98);
}

/* Primary Button — Teal */
.btn-primary {
  background-color: var(--color-secondary);
  color: var(--color-text-light);
  border-color: var(--color-secondary);
}

.btn-primary:hover {
  background-color: var(--color-secondary-dark);
  border-color: var(--color-secondary-dark);
  color: var(--color-text-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow-teal);
}

/* Secondary / Outline Button */
.btn-secondary,
.btn-outline {
  background-color: transparent;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
}

.btn-secondary:hover,
.btn-outline:hover {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-text-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Pulse CTA animation */
.btn-pulse {
  animation: pulse-glow 2.5s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(26, 147, 159, 0.4);
  }
  50% {
    box-shadow: 0 0 0 14px rgba(26, 147, 159, 0);
  }
}


/* ==========================================================
   6. HEADER & NAVIGATION
   ========================================================== */
header {
  background-color: var(--color-bg-white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  transition: box-shadow var(--transition-base);
}

header.scrolled {
  box-shadow: var(--shadow-md);
}

.nav-container,
.nav-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Logo */
.logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  transition: opacity var(--transition-base);
  letter-spacing: -0.01em;
}

.logo:hover {
  color: var(--color-primary);
  opacity: 0.85;
}

.logo img {
  height: 45px;
  width: auto;
}

/* Nav Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-links li {
  list-style: none;
}

.nav-links a {
  font-weight: 500;
  font-size: 0.925rem;
  color: var(--color-text-dark);
  padding: 8px 14px;
  position: relative;
  transition: color var(--transition-base);
}

/* Teal underline slides in from left */
.nav-links a:not(.btn)::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 14px;
  right: 14px;
  height: 2px;
  background-color: var(--color-secondary);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--transition-base);
  border-radius: 2px;
}

.nav-links a:not(.btn):hover::after,
.nav-links a:not(.btn).active::after {
  transform: scaleX(1);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-secondary);
}

/* Nav CTA Button */
.nav-links .btn {
  padding: 10px 22px;
  font-size: 0.875rem;
  margin-left: 6px;
  color: var(--color-text-light) !important;
}

.nav-links .btn:hover {
  color: var(--color-text-light) !important;
}

/* Mobile hamburger */
.mobile-menu-btn,
.hamburger {
  display: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--color-primary);
  background: none;
  border: none;
  padding: 4px;
  transition: color var(--transition-fast);
}

.mobile-menu-btn:hover,
.hamburger:hover {
  color: var(--color-secondary);
}


/* ==========================================================
   7. HERO SECTION
   ========================================================== */
.hero {
  position: relative;
  background:
    linear-gradient(
      160deg,
      rgba(18, 56, 91, 0.88) 0%,
      rgba(18, 56, 91, 0.75) 50%,
      rgba(12, 42, 69, 0.9) 100%
    ),
    url('https://images.unsplash.com/photo-1576765608535-5f04d1e3f289?q=80&w=2000&auto=format&fit=crop') center/cover no-repeat;
  color: var(--color-text-light);
  padding: 130px 20px 120px;
  text-align: center;
  overflow: hidden;
}

/* Subtle pattern overlay on hero */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 80%, rgba(26, 147, 159, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(26, 147, 159, 0.06) 0%, transparent 50%);
  pointer-events: none;
}

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

.hero h1 {
  color: var(--color-text-light);
  max-width: 800px;
  margin: 0 auto 20px;
  font-size: clamp(2rem, 5vw, 3.25rem);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
  animation: heroFadeUp 0.9s ease-out both;
}

.hero p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 35px;
  opacity: 0.92;
  color: var(--color-text-light);
  line-height: 1.7;
  animation: heroFadeUp 0.9s 0.15s ease-out both;
}

.hero-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  animation: heroFadeUp 0.9s 0.3s ease-out both;
}

/* Hero button overrides (white outline on dark bg) */
.hero .btn-secondary,
.hero .btn-outline {
  border-color: rgba(255, 255, 255, 0.8);
  color: var(--color-text-light);
  background-color: transparent;
}

.hero .btn-secondary:hover,
.hero .btn-outline:hover {
  background-color: var(--color-text-light);
  border-color: var(--color-text-light);
  color: var(--color-primary);
}

/* Hero slider dots */
.hero-dots {
  position: absolute;
  bottom: 24px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 10px;
  z-index: 10;
  animation: heroFadeUp 0.9s 0.45s ease-out both;
}

.hero-dots .dot {
  width: 12px;
  height: 12px;
  border-radius: var(--radius-full);
  background-color: rgba(255, 255, 255, 0.35);
  border: 2px solid rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all var(--transition-base);
}

.hero-dots .dot.active,
.hero-dots .dot:hover {
  background-color: var(--color-secondary);
  border-color: var(--color-secondary);
  transform: scale(1.2);
}

/* Hero Fade-in Animation */
@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ==========================================================
   8. PAGE HERO (Sub-pages)
   ========================================================== */
.page-hero {
  padding: 80px 20px;
  background: var(--color-primary);
  color: var(--color-text-light);
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Subtle pattern for page hero */
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse at 30% 100%, rgba(26, 147, 159, 0.1) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 0%, rgba(255, 255, 255, 0.03) 0%, transparent 60%);
  pointer-events: none;
}

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

.page-hero h1 {
  color: var(--color-text-light);
  margin-bottom: 12px;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto;
}


/* ==========================================================
   9. SECTIONS & ANIMATIONS
   ========================================================== */
.section {
  padding: var(--space-4xl) 0;
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

/* Staggered card animations */
.section.visible .card:nth-child(1) { transition-delay: 0.05s; }
.section.visible .card:nth-child(2) { transition-delay: 0.12s; }
.section.visible .card:nth-child(3) { transition-delay: 0.19s; }
.section.visible .card:nth-child(4) { transition-delay: 0.26s; }
.section.visible .card:nth-child(5) { transition-delay: 0.33s; }
.section.visible .card:nth-child(6) { transition-delay: 0.40s; }

/* noscript fallback: show everything if JS is off */
noscript + style,
noscript ~ style {
  /* Handled via noscript block in HTML */
}


/* ==========================================================
   10. GRID SYSTEM
   ========================================================== */
.grid {
  display: grid;
  gap: 30px;
}

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


/* ==========================================================
   11. CARDS
   ========================================================== */
.card {
  background: var(--color-bg-white);
  padding: 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border-light);
  border-left: 4px solid transparent;
  transition:
    transform var(--transition-spring),
    box-shadow var(--transition-base),
    border-color var(--transition-base);
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-left-color: var(--color-secondary);
}

/* Service card icon circles */
.card-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--color-secondary), var(--color-secondary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.75rem;
  color: var(--color-text-light);
  box-shadow: 0 4px 16px rgba(26, 147, 159, 0.25);
  transition: transform var(--transition-spring), box-shadow var(--transition-base);
}

.card:hover .card-icon {
  transform: scale(1.08);
  box-shadow: 0 6px 24px rgba(26, 147, 159, 0.35);
}

/* Image cards */
.card-img {
  overflow: hidden;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  margin: -32px -32px 24px -32px;
}

.card-img img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.card:hover .card-img img {
  transform: scale(1.06);
}

/* Featured card: gradient border effect */
.card-featured {
  border: none;
  background:
    linear-gradient(var(--color-bg-white), var(--color-bg-white)) padding-box,
    linear-gradient(135deg, var(--color-secondary), var(--color-primary)) border-box;
  border: 2px solid transparent;
  border-left: 2px solid transparent;
}

.card-featured:hover {
  border-left-color: transparent;
}


/* ==========================================================
   12. THE UNITY DIFFERENCE SECTION
   ========================================================== */
.difference-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.difference-grid img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.feature-item {
  padding: 20px 0 20px 24px;
  border-left: 3px solid var(--color-secondary);
  margin-bottom: 12px;
  transition: border-color var(--transition-base), background-color var(--transition-base);
}

.feature-item:hover {
  border-left-color: var(--color-primary);
  background-color: rgba(226, 241, 242, 0.3);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.feature-item h3 {
  color: var(--color-secondary);
  font-size: 1.15rem;
  margin-bottom: 6px;
}


/* ==========================================================
   13. TESTIMONIALS
   ========================================================== */
.section-testimonials {
  background-color: var(--color-primary);
  color: var(--color-text-light);
  position: relative;
  overflow: hidden;
}

.section-testimonials::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 80%, rgba(26, 147, 159, 0.12) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 20%, rgba(255, 255, 255, 0.03) 0%, transparent 55%);
  pointer-events: none;
}

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

.section-testimonials h2 {
  color: var(--color-text-light);
}

/* Glassmorphism testimonial card */
.testimonial-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  position: relative;
  max-width: 750px;
  margin: 0 auto;
  transition: background var(--transition-base);
}

.testimonial-card:hover {
  background: rgba(255, 255, 255, 0.14);
}

/* Decorative large quote marks */
.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: 16px;
  left: 24px;
  font-size: 5rem;
  line-height: 1;
  color: rgba(26, 147, 159, 0.35);
  font-family: Georgia, 'Times New Roman', serif;
  pointer-events: none;
}

.testimonial-card p {
  color: rgba(255, 255, 255, 0.92);
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.85;
  position: relative;
  z-index: 1;
}

.testimonial-author {
  font-weight: 600;
  color: var(--color-secondary-light);
  margin-top: 24px;
  font-style: normal;
  font-size: 1rem;
}


/* ==========================================================
   14. STATS / COUNTER SECTION
   ========================================================== */
.section-stats {
  background: linear-gradient(160deg, var(--color-primary), var(--color-primary-dark));
  color: var(--color-text-light);
}

.stat-item {
  text-align: center;
  padding: 24px;
}

.stat-number {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--color-secondary-light);
  line-height: 1.1;
  margin-bottom: 8px;
  display: block;
}

.stat-label {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
}


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

.section-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 120%, rgba(26, 147, 159, 0.12), transparent 60%);
  pointer-events: none;
}

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

.section-cta h2 {
  color: var(--color-text-light);
  margin-bottom: 16px;
}

.section-cta p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 32px;
}


/* ==========================================================
   16. CONTACT FORM
   ========================================================== */
.contact-form {
  display: grid;
  gap: 20px;
  background: var(--color-bg-white);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border-light);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}

.form-group label {
  font-weight: 500;
  font-size: 0.925rem;
  color: var(--color-text-dark);
}

.form-control {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: var(--font-primary);
  font-size: 1rem;
  color: var(--color-text-dark);
  background-color: var(--color-bg-white);
  transition:
    border-color var(--transition-base),
    box-shadow var(--transition-base);
  appearance: none;
  -webkit-appearance: none;
}

.form-control::placeholder {
  color: #b0bec5;
}

.form-control:focus {
  outline: none;
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 3px rgba(26, 147, 159, 0.15);
}

select.form-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23636e72' d='M6 8.825L.35 3.175l.7-.7L6 7.425l4.95-4.95.7.7z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

/* Submit button loading state */
.btn-loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}

.btn-loading::after {
  content: '';
  position: absolute;
  inset: 0;
  margin: auto;
  width: 22px;
  height: 22px;
  border: 2.5px solid rgba(255, 255, 255, 0.3);
  border-top-color: var(--color-text-light);
  border-radius: var(--radius-full);
  animation: spin 0.65s linear infinite;
}

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


/* ==========================================================
   17. FOOTER
   ========================================================== */
footer {
  background-color: var(--color-primary);
  color: var(--color-text-light);
  padding: 0 0 24px;
  position: relative;
}

/* Teal gradient top border */
footer::before {
  content: '';
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--color-secondary), var(--color-secondary-light), var(--color-secondary));
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding: 56px 0 40px;
}

.footer-col h4 {
  color: var(--color-text-light);
  margin-bottom: 20px;
  font-size: 1.05rem;
  position: relative;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
  list-style: none;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
  position: relative;
  transition: color var(--transition-base), padding-left var(--transition-base);
}

.footer-links a:hover {
  color: var(--color-secondary-light);
  padding-left: 6px;
}

.footer-contact p {
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.95rem;
}

/* Social media icon circles */
.social-icons {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-light);
  font-size: 1.1rem;
  transition:
    background var(--transition-base),
    transform var(--transition-spring),
    border-color var(--transition-base);
}

.social-icon:hover {
  background: var(--color-secondary);
  border-color: var(--color-secondary);
  color: var(--color-text-light);
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.5);
  transition: color var(--transition-base);
}

.footer-bottom a:hover {
  color: var(--color-secondary-light);
}


/* ==========================================================
   18. SPA PAGE VIEWS
   ========================================================== */
.page-view {
  display: none;
  animation: fadeInPage 0.5s ease-out both;
}

.page-view.active {
  display: block;
}

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


/* ==========================================================
   19. SPECIAL EFFECTS & ANIMATIONS
   ========================================================== */

/* Animated underline on inline links */
.animated-link {
  position: relative;
  display: inline;
}

.animated-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--color-secondary);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--transition-base);
}

.animated-link:hover::after {
  transform: scaleX(1);
}

/* Fade-in utility */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Slide-up utility */
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Subtle float animation for decorative elements */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}


/* ==========================================================
   20. RESPONSIVE DESIGN
   ========================================================== */

/* Medium screens (tablets) */
@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

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

/* Mobile breakpoint */
@media (max-width: 768px) {
  /* Mobile Nav */
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    background: var(--color-bg-white);
    flex-direction: column;
    padding: 16px 20px 24px;
    box-shadow: var(--shadow-lg);
    gap: 0;
    border-top: 1px solid var(--color-border-light);
    animation: slideDown 0.35s ease-out both;
    z-index: var(--z-dropdown);
  }

  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 12px 8px;
    border-bottom: 1px solid var(--color-border-light);
  }

  .nav-links a:not(.btn)::after {
    display: none;
  }

  .nav-links .btn {
    margin: 12px 0 0;
    text-align: center;
    width: 100%;
    margin-left: 0;
  }

  .mobile-menu-btn,
  .hamburger {
    display: block;
  }

  /* Hero responsive */
  .hero {
    padding: 80px 20px 70px;
  }

  .hero h1 {
    font-size: clamp(1.75rem, 6vw, 2.25rem);
  }

  .hero p {
    font-size: 1.05rem;
  }

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

  .hero-btns .btn {
    width: 100%;
    max-width: 320px;
  }

  /* Grids stack */
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

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

  /* Smaller section padding */
  .section {
    padding: 56px 0;
  }

  /* Headings scale down */
  h1 { font-size: clamp(1.75rem, 6vw, 2.25rem); }
  h2 { font-size: clamp(1.4rem, 4vw, 1.75rem); }

  /* Full-width buttons on mobile */
  .btn {
    width: 100%;
    text-align: center;
    padding: 14px 24px;
  }

  /* Cards less padding on mobile */
  .card {
    padding: 24px;
  }

  /* Contact form */
  .contact-form {
    padding: 28px 20px;
  }

  /* Difference section stacks */
  .difference-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  /* Testimonial card */
  .testimonial-card {
    padding: 36px 24px;
  }

  .testimonial-card::before {
    font-size: 3.5rem;
    top: 8px;
    left: 16px;
  }

  /* Page hero */
  .page-hero {
    padding: 56px 20px;
  }
}

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

  .section {
    padding: 44px 0;
  }

  .hero {
    padding: 64px 16px 56px;
  }

  .footer-grid {
    gap: 28px;
  }

  .card {
    padding: 20px;
    border-radius: var(--radius-md);
  }
}


/* ==========================================================
   21. NOSCRIPT FALLBACK
   ========================================================== */
/* This is placed so that an in-HTML <noscript><style> block
   can override .section opacity/transform. Below is a print
   and reduced-motion fallback as well. */

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

  html {
    scroll-behavior: auto;
  }

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

  .hero h1,
  .hero p,
  .hero-btns {
    animation: none;
    opacity: 1;
    transform: none;
  }
}


/* ==========================================================
   22. HERO IMAGE SLIDER
   ========================================================== */
.hero {
  position: relative;
  min-height: 580px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(18, 56, 91, 0.88) 0%,
    rgba(18, 56, 91, 0.75) 50%,
    rgba(12, 42, 69, 0.9) 100%
  );
  z-index: 1;
}

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

.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: var(--radius-full);
  background-color: rgba(255, 255, 255, 0.35);
  border: 2px solid rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all var(--transition-base);
  padding: 0;
}

.hero-dot.active,
.hero-dot:hover {
  background-color: var(--color-secondary);
  border-color: var(--color-secondary);
  transform: scale(1.25);
}


.hero-badge {
  display: inline-block;
  padding: 8px 20px;
  border-radius: 50px;
  background: rgba(26, 147, 159, 0.2);
  border: 1px solid rgba(26, 147, 159, 0.4);
  color: var(--color-secondary-light);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 24px;
  animation: heroFadeUp 0.9s ease-out both;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1rem;
}

.btn svg {
  display: inline-block;
  vertical-align: middle;
  margin-right: 8px;
  margin-top: -2px;
}


/* ==========================================================
   23. SECTION LABELS & SUBTITLES
   ========================================================== */
.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-secondary);
  margin-bottom: 12px;
  position: relative;
}

.section-label.text-center {
  display: block;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-subtitle {
  color: var(--color-secondary);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.lead-text {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  line-height: 1.8;
}


/* ==========================================================
   24. LOGO STYLES
   ========================================================== */
.logo-img {
  height: 45px;
  width: auto;
  border-radius: 0;
}

.logo-text {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.2;
}

.logo-accent {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-secondary);
  margin-top: -2px;
}


/* ==========================================================
   25. CARD ICON CIRCLES
   ========================================================== */
.card-icon-circle {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--color-secondary), var(--color-secondary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--color-text-light);
  box-shadow: 0 4px 16px rgba(26, 147, 159, 0.25);
  transition: transform var(--transition-spring), box-shadow var(--transition-base);
}

.card:hover .card-icon-circle {
  transform: scale(1.08);
  box-shadow: 0 6px 24px rgba(26, 147, 159, 0.35);
}

.service-card h3 {
  color: var(--color-primary);
  margin-bottom: 8px;
}

.service-card p {
  font-size: 0.95rem;
}


/* ==========================================================
   26. IMAGE REVEAL
   ========================================================== */
.image-reveal {
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.image-reveal img {
  transition: transform var(--transition-slow);
}

.image-reveal:hover img {
  transform: scale(1.04);
}

.rounded-img {
  border-radius: var(--radius-lg);
  width: 100%;
  height: auto;
  object-fit: cover;
}


/* ==========================================================
   27. FEATURE ITEMS (Unity Difference)
   ========================================================== */
.feature-bar {
  display: none;
}


/* ==========================================================
   28. STATS SECTION
   ========================================================== */
.stats-section {
  background: linear-gradient(160deg, var(--color-primary), var(--color-primary-dark));
  color: var(--color-text-light);
  padding: var(--space-3xl) 0;
}

.stat-item {
  text-align: center;
  padding: 24px;
}

.stat-number {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--color-secondary-light);
  line-height: 1.1;
  display: inline;
}

.stat-suffix {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--color-secondary-light);
}

.stat-label {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  margin-top: 8px;
}


/* ==========================================================
   29. TESTIMONIALS SECTION
   ========================================================== */
.testimonials-section {
  background-color: var(--color-primary);
  color: var(--color-text-light);
  position: relative;
  overflow: hidden;
}

.testimonials-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 80%, rgba(26, 147, 159, 0.12) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 20%, rgba(255, 255, 255, 0.03) 0%, transparent 55%);
  pointer-events: none;
}

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

.testimonial-carousel {
  position: relative;
  min-height: 280px;
}

.testimonial-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  max-width: 750px;
  margin: 0 auto;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 40px);
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
  pointer-events: none;
}

.testimonial-card.active {
  opacity: 1;
  pointer-events: auto;
  position: relative;
  left: auto;
  transform: none;
}

.quote-mark {
  font-size: 5rem;
  line-height: 0.5;
  color: rgba(26, 147, 159, 0.35);
  font-family: Georgia, 'Times New Roman', serif;
  margin-bottom: 16px;
}

.testimonial-text {
  color: rgba(255, 255, 255, 0.92) !important;
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.85;
}

.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 24px;
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--color-secondary), var(--color-secondary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 0.9rem;
}

.testimonial-author strong {
  display: block;
  color: white;
  font-size: 1rem;
}

.testimonial-author span {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
}

.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
}

.t-dot {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
  background-color: rgba(255, 255, 255, 0.3);
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  padding: 0;
}

.t-dot.active,
.t-dot:hover {
  background-color: var(--color-secondary-light);
  transform: scale(1.3);
}


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

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 120%, rgba(26, 147, 159, 0.12), transparent 60%);
  pointer-events: none;
}

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

.cta-section h2 {
  color: var(--color-text-light);
  margin-bottom: 16px;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 32px;
}


/* ==========================================================
   31. SERVICE DETAIL CARDS
   ========================================================== */
.service-detail-card {
  padding: 0;
  overflow: hidden;
}

.card-img-wrapper {
  overflow: hidden;
  height: 220px;
}

.card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.service-detail-card:hover .card-img-wrapper img {
  transform: scale(1.06);
}

.card-body {
  padding: 28px;
}

.card-body h3 {
  color: var(--color-secondary);
  margin-bottom: 10px;
}

.service-features {
  list-style: none;
  margin-top: 16px;
  padding: 0;
}

.service-features li {
  padding: 6px 0 6px 24px;
  position: relative;
  color: var(--color-text-muted);
  font-size: 0.95rem;
  list-style: none;
}

.service-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--color-secondary);
}


/* ==========================================================
   32. CTA BANNER (Services page)
   ========================================================== */
.cta-banner {
  margin-top: 60px;
  padding: 50px 40px;
  background: linear-gradient(135deg, var(--color-secondary), #157983);
  border-radius: var(--radius-lg);
  text-align: center;
  color: white;
}

.cta-banner h2 {
  color: white;
  margin-bottom: 12px;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 24px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.cta-banner .btn-outline {
  border-color: white;
  color: white;
}

.cta-banner .btn-outline:hover {
  background-color: white;
  color: var(--color-secondary);
}


/* ==========================================================
   33. BENEFITS LIST (Careers)
   ========================================================== */
.benefits-list {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.benefits-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  font-size: 1.05rem;
  color: var(--color-text-dark);
  list-style: none;
}

.benefits-list li svg {
  flex-shrink: 0;
}


/* ==========================================================
   34. CONTACT INFO CARDS
   ========================================================== */
.contact-info-cards {
  margin-bottom: 30px;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--color-border-light);
}

.contact-info-item:last-child {
  border-bottom: none;
}

.contact-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-secondary);
  flex-shrink: 0;
}

.contact-info-item strong {
  display: block;
  margin-bottom: 4px;
  color: var(--color-primary);
}

.contact-info-item p {
  margin: 0;
}

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


/* ==========================================================
   35. COMING SOON (Blog)
   ========================================================== */
.coming-soon-wrapper {
  padding: 60px 0;
}

.coming-soon-icon {
  margin-bottom: 24px;
}


/* ==========================================================
   36. FOOTER EXTRAS
   ========================================================== */
.footer-top-accent {
  height: 3px;
  background: linear-gradient(90deg, var(--color-secondary), var(--color-secondary-light), var(--color-secondary));
}

footer {
  padding: 0 0 24px;
}

footer::before {
  display: none;
}

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

.footer-logo img {
  border-radius: 0;
}

.footer-desc {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
  max-width: 300px;
}

footer h4 {
  color: var(--color-text-light);
  margin-bottom: 20px;
  font-size: 1.05rem;
}

.footer-contact-list {
  list-style: none;
  padding: 0;
}

.footer-contact-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
  list-style: none;
}

.footer-contact-list li svg {
  color: var(--color-secondary-light);
  flex-shrink: 0;
}

.footer-contact-list a {
  color: rgba(255, 255, 255, 0.75);
}

.footer-contact-list a:hover {
  color: var(--color-secondary-light);
}


/* ==========================================================
   37. BACK TO TOP BUTTON
   ========================================================== */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: var(--color-secondary);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-glow-teal);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: all var(--transition-base);
  z-index: 900;
}

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

.back-to-top:hover {
  background: var(--color-secondary-dark);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow-teal-lg);
}


/* ==========================================================
   38. HAMBURGER ANIMATED LINES
   ========================================================== */
.hamburger {
  width: 32px;
  height: 24px;
  position: relative;
  display: none;
  flex-direction: column;
  justify-content: space-between;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 10;
}

.hamburger-line {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--color-primary);
  border-radius: 2px;
  transition: all var(--transition-base);
}

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

.hamburger.active .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

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

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .testimonial-card {
    padding: 32px 20px;
  }

  .cta-banner {
    padding: 36px 24px;
  }

  .hero {
    min-height: 460px;
  }

  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 42px;
    height: 42px;
  }
}


/* ==========================================================
   39. PRINT STYLES
   ========================================================== */
@media print {
  header,
  footer,
  .hero-dots,
  .btn,
  .mobile-menu-btn,
  .hamburger {
    display: none !important;
  }

  body {
    background: white;
    color: black;
    font-size: 12pt;
  }

  .section {
    opacity: 1;
    transform: none;
    padding: 20px 0;
  }

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