/* ==========================================================================
   MILILANI PLUMBING NOW — MASTER STYLESHEET
   Clean, modern, accessible, high-performance styling for 
   Mililani, Hawaii residential plumbing information & service platform.
   Typography: Headings in Plus Jakarta Sans, Body in Inter.
   ========================================================================== */

:root {
  /* Brand Color Palette */
  --color-primary: #0284c7;         /* Ocean Blue */
  --color-primary-dark: #0369a1;    /* Deep Ocean Blue */
  --color-primary-light: #e0f2fe;   /* Soft Ice Blue */
  --color-secondary: #0f172a;       /* Deep Navy / Slate */
  --color-secondary-light: #1e293b; /* Medium Slate */
  --color-accent: #f59e0b;          /* Warm Sun Amber CTA */
  --color-accent-hover: #d97706;    /* Dark Amber */
  --color-accent-soft: #fef3c7;     /* Soft Amber */
  --color-text-main: #1e293b;       /* Crisp Charcoal */
  --color-text-muted: #64748b;      /* Slate Gray */
  --color-text-light: #94a3b8;      /* Light Slate */
  --color-bg-body: #ffffff;         /* Pure White */
  --color-bg-alt: #f8fafc;          /* Off-White / Soft Gray */
  --color-bg-subtle: #f1f5f9;       /* Subtle Panel Gray */
  --color-border: #e2e8f0;          /* Crisp Border */
  --color-border-dark: #cbd5e1;     /* Darker Border */
  
  /* Status Colors */
  --color-success: #10b981;
  --color-success-bg: #ecfdf5;
  --color-warning: #f59e0b;
  --color-warning-bg: #fffbeb;
  --color-danger: #ef4444;
  --color-danger-bg: #fef2f2;
  --color-info: #0ea5e9;
  --color-info-bg: #f0f9ff;

  /* Typography System */
  --font-heading: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  --spacing-3xl: 4.5rem;

  /* Layout */
  --container-max: 1200px;
  --container-narrow: 860px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.07), 0 2px 4px -2px rgb(0 0 0 / 0.05);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.08), 0 4px 6px -4px rgb(0 0 0 / 0.04);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.04);

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-text-main);
  background-color: var(--color-bg-body);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  font-family: var(--font-body);
}

@media (max-width: 767px) {
  body {
    padding-bottom: 72px; /* Ensure mobile sticky call bar does not cover footer */
  }
}

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

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

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

p {
  margin-bottom: 1.25rem;
  font-size: 1.0625rem;
  line-height: 1.65;
}

p:last-child {
  margin-bottom: 0;
}

/* Strict Heading Hierarchy */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-secondary);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(2.5rem, 4vw, 3.125rem); /* 40-50px */
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

h2 {
  font-size: clamp(1.75rem, 3vw, 2.125rem); /* 28-34px */
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.25;
  margin-top: 1.75rem;
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.4375rem); /* 20-23px */
  font-weight: 700;
  line-height: 1.3;
  margin-top: 1.25rem;
}

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

.section-tag, .eyebrow-label {
  font-family: var(--font-heading);
  color: var(--color-primary);
  font-size: 0.8125rem; /* 13px */
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
  display: inline-block;
}

ul, ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

li {
  margin-bottom: 0.5rem;
  font-size: 1.0625rem;
  line-height: 1.6;
}

/* Focus States for Accessibility */
:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
}

/* Accessibility Skip Link */
.skip-link {
  position: absolute;
  top: -9999px;
  left: 1rem;
  background: var(--color-secondary);
  color: #fff;
  padding: 0.75rem 1.25rem;
  z-index: 9999;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

/* Containers */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.container-narrow {
  width: 100%;
  max-width: var(--container-narrow);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}


/* Main Site Header - Fixed single-line at all desktop widths (1024-1920px) */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: #ffffff;
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
  flex-wrap: nowrap; /* Prevent any wrapping */
}

.brand-logo-wrap {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  flex-shrink: 0; /* Never shrink logo */
  white-space: nowrap;
}

.brand-logo-img {
  height: 40px;
  width: 40px;
  object-fit: contain;
}

.brand-text-wrap {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-secondary);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.brand-subtitle {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--color-primary-dark);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Desktop Navigation - Clean single-line layout without wrapping */
.main-nav {
  display: none;
}

@media (min-width: 1024px) {
  .main-nav {
    display: flex;
    align-items: center;
    flex-shrink: 1;
    min-width: 0;
  }
}

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 0.85rem;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
  white-space: nowrap; /* Strict single line */
}

@media (min-width: 1200px) {
  .nav-links {
    gap: 1.15rem;
  }
}

.nav-link {
  color: var(--color-secondary);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  padding: 0.45rem 0.2rem;
  position: relative;
  white-space: nowrap;
  transition: color var(--transition-fast);
}

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

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--color-primary);
}

/* Dropdown Menu */
.nav-item-dropdown {
  position: relative;
  white-space: nowrap;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #ffffff;
  min-width: 250px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 0.5rem 0;
  list-style: none;
  z-index: 100;
}

.nav-item-dropdown:hover .dropdown-menu,
.nav-item-dropdown:focus-within .dropdown-menu {
  display: block;
}

.dropdown-menu li a {
  display: block;
  padding: 0.6rem 1.25rem;
  color: var(--color-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
}

.dropdown-menu li a:hover {
  background-color: var(--color-bg-alt);
  color: var(--color-primary-dark);
}

/* Header Action & Call Button */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.header-call-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.55rem 0.95rem;
  min-height: 44px;
  white-space: nowrap;
  border-radius: var(--radius-md);
  box-shadow: 0 2px 4px rgba(245, 158, 11, 0.3);
}

@media (max-width: 520px) {
  .header-inner {
    gap: 0.5rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
  .brand-logo-img {
    width: 36px;
    height: 36px;
  }
  .brand-title {
    font-size: 1rem;
  }
  .brand-subtitle {
    font-size: 0.65rem;
  }
  .header-actions {
    gap: 0.4rem;
  }
  .header-call-btn {
    padding: 0;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    border-radius: var(--radius-sm);
    justify-content: center;
  }
  .header-call-btn span {
    display: none;
  }
  .header-call-btn svg {
    margin: 0;
    width: 20px;
    height: 20px;
  }
}

.header-call-btn svg {
  flex-shrink: 0;
}

.mobile-menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 8px;
}

@media (min-width: 1024px) {
  .mobile-menu-toggle {
    display: none;
  }
}

.mobile-menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--color-secondary);
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

/* Mobile Navigation Drawer */
.mobile-nav-drawer {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.65);
  z-index: 2000;
  backdrop-filter: blur(4px);
}

.mobile-nav-drawer.open {
  display: block;
}

.mobile-nav-content {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 85%;
  max-width: 360px;
  background: #ffffff;
  padding: 1.5rem;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 0.85rem;
}

.mobile-close-btn {
  background: transparent;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: var(--color-secondary);
  line-height: 1;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.mobile-nav-list a {
  display: block;
  padding: 0.75rem 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-secondary);
  border-bottom: 1px solid var(--color-border);
  text-decoration: none;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.mobile-nav-list a:hover {
  color: var(--color-primary);
}

.mobile-sub-list {
  list-style: none;
  padding-left: 1rem;
  margin-top: 0.25rem;
}

.mobile-sub-list a {
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.45rem 0.5rem;
  border-bottom: none;
  color: var(--color-text-muted);
  min-height: 44px;
  display: flex;
  align-items: center;
}

/* Sticky Mobile Bottom Call Bar */
.mobile-sticky-call-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(8px);
  padding: 0.65rem 1rem;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

@media (max-width: 767px) {
  .mobile-sticky-call-bar {
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

.mobile-sticky-call-bar .btn {
  width: 100%;
  max-width: 400px;
  min-height: 48px;
  font-size: 0.95rem;
  white-space: nowrap;
  padding: 0.65rem 0.75rem;
  letter-spacing: -0.01em;
}

.mobile-sticky-call-bar .btn span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 390px) {
  .mobile-sticky-call-bar .btn {
    font-size: 0.825rem;
    padding: 0.55rem 0.5rem;
    gap: 0.35rem;
  }
  .mobile-sticky-call-bar .btn svg {
    width: 18px;
    height: 18px;
  }
}

/* Buttons & CTAs */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.2;
  padding: 0.75rem 1.4rem;
  min-height: 44px; /* Accessible minimum touch target */
  border-radius: var(--radius-md);
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition-fast);
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background-color: var(--color-primary);
  color: #ffffff;
  box-shadow: 0 2px 4px rgba(2, 132, 199, 0.25);
}

.btn-primary:hover {
  background-color: var(--color-primary-dark);
  color: #ffffff;
  box-shadow: 0 4px 8px rgba(2, 132, 199, 0.35);
}

.btn-accent {
  background-color: var(--color-accent);
  color: #0f172a;
  border: 1px solid #d97706;
  box-shadow: 0 2px 4px rgba(245, 158, 11, 0.3);
}

.btn-accent:hover {
  background-color: #d97706;
  color: #ffffff;
  box-shadow: 0 4px 8px rgba(217, 119, 6, 0.4);
}

.btn-secondary {
  background-color: var(--color-secondary);
  color: #ffffff;
}

.btn-secondary:hover {
  background-color: var(--color-secondary-light);
  color: #ffffff;
}

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

.btn-outline:hover {
  background-color: var(--color-secondary);
  color: #ffffff;
}

.btn-outline-light {
  background-color: transparent;
  border: 2px solid rgba(255, 255, 255, 0.85);
  color: #ffffff;
}

.btn-outline-light:hover {
  background-color: rgba(255, 255, 255, 0.2);
  border-color: #ffffff;
  color: #ffffff;
}

.btn-sm {
  padding: 0.45rem 0.85rem;
  font-size: 0.85rem;
  min-height: 40px;
}

.btn-lg {
  padding: 0.95rem 1.75rem;
  font-size: 1.05rem;
  min-height: 48px;
}

/* Breadcrumbs */
.breadcrumbs {
  background-color: var(--color-bg-alt);
  padding: 0.65rem 0;
  font-size: 0.85rem;
  border-bottom: 1px solid var(--color-border);
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 0;
}

.breadcrumbs li {
  margin: 0;
  display: inline-flex;
  align-items: center;
  font-size: 0.85rem;
}

.breadcrumbs li:not(:last-child)::after {
  content: "/";
  margin: 0 0.5rem;
  color: var(--color-text-light);
}

.breadcrumbs a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
}

.breadcrumbs a:hover {
  color: var(--color-primary-dark);
  text-decoration: underline;
}

.breadcrumbs [aria-current="page"] {
  color: var(--color-secondary);
  font-weight: 600;
}

/* Hero Section with Photographic/Topographic Texture */
.hero-section {
  position: relative;
  background: 
    radial-gradient(circle at 80% 20%, rgba(2, 132, 199, 0.25) 0%, transparent 50%),
    radial-gradient(circle at 10% 80%, rgba(15, 23, 42, 0.95) 0%, transparent 60%),
    linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  padding: 3.5rem 0;
  overflow: hidden;
}

/* Subtle blueprint/texture overlay */
.hero-section::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.6;
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 992px) {
  .hero-grid {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

.hero-content h1 {
  color: #ffffff;
  margin-bottom: 1.25rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.hero-service-area-line {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #cbd5e1;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-lead {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--color-text-main);
  margin-bottom: 1.75rem;
}

.hero-section .hero-lead {
  color: #cbd5e1;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-bottom: 2rem;
}

@media (max-width: 640px) {
  .hero-cta-group {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }
  .hero-cta-group .btn {
    width: 100%;
    min-height: 48px;
    justify-content: center;
  }
}

.hero-trust-bullets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

@media (max-width: 520px) {
  .hero-trust-bullets {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
}

.trust-bullet-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #cbd5e1;
}

.trust-bullet-item svg {
  color: #38bdf8;
  flex-shrink: 0;
}

.hero-visual {
  position: relative;
}

.hero-image-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-image-card img {
  width: 100%;
  height: 380px;
  object-fit: cover;
}

.hero-floating-badge {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  right: 1.25rem;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 1rem;
  border-radius: var(--radius-md);
  color: #ffffff;
}

.hero-floating-badge p {
  font-size: 0.85rem;
  color: #94a3b8;
  margin: 0;
}

.hero-floating-badge strong {
  color: #f8fafc;
  display: block;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

/* Vetting Strip (Honest Trust Signals) */
.vetting-strip {
  background-color: var(--color-bg-subtle);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 2.25rem 0;
}

.vetting-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .vetting-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.vetting-card {
  background: #ffffff;
  padding: 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.vetting-card h3 {
  font-size: 1.15rem;
  margin-top: 0;
  margin-bottom: 0.25rem;
  color: var(--color-secondary);
}

.vetting-card p {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.55;
  margin: 0;
}

/* Standard Section Layouts */
.section {
  padding: 3.75rem 0;
}

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

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 2.75rem auto;
}

.section-header h2 {
  margin-top: 0.25rem;
  margin-bottom: 0.75rem;
}

.section-header p {
  color: var(--color-text-muted);
  font-size: 1.05rem;
}

/* Card Grids */
.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}

@media (min-width: 640px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.grid-4 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 576px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.25rem;
}

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

/* Service & Feature Cards - Natural Photography Treatment */
.card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
  display: flex;
  flex-direction: column;
}

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

.card-img-wrap {
  margin: -1.75rem -1.75rem 1.25rem -1.75rem;
  border-top-left-radius: var(--radius-md);
  border-top-right-radius: var(--radius-md);
  overflow: hidden;
  height: 180px;
  background-color: #f1f5f9;
}

.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
  filter: none; /* Clean natural photo - no heavy blue duotone */
}

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

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background-color: var(--color-primary-light);
  color: var(--color-primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.4rem;
}

.card-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--color-secondary);
}

.card-text {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.card-link {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--color-primary-dark);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 44px;
  text-decoration: none;
}

.card-link:hover {
  color: var(--color-primary);
  text-decoration: underline;
}

/* In-Content Call Banner (High-Conversion Call CTA) */
.in-content-call-banner {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  padding: 2rem;
  border-radius: var(--radius-lg);
  margin: 2.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: center;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: var(--shadow-md);
}

@media (min-width: 768px) {
  .in-content-call-banner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.in-content-call-banner h3 {
  color: #ffffff;
  font-size: 1.35rem;
  margin: 0 0 0.5rem 0;
}

.in-content-call-banner p {
  color: #cbd5e1;
  font-size: 0.95rem;
  margin: 0;
}

.in-content-call-banner .btn {
  flex-shrink: 0;
  min-height: 48px;
}

/* Transparent Process Steps */
.step-card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 2rem;
  position: relative;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background-color: var(--color-secondary);
  color: #ffffff;
  border-radius: var(--radius-full);
  font-weight: 800;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

/* Callout & Disclaimer Panels */
.callout {
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin: 1.75rem 0;
  border-left: 4px solid;
}

.callout-info {
  background-color: var(--color-info-bg);
  border-color: var(--color-info);
  color: #0c4a6e;
}

.callout-warning {
  background-color: var(--color-warning-bg);
  border-color: var(--color-warning);
  color: #78350f;
}

.callout-success {
  background-color: var(--color-success-bg);
  border-color: var(--color-success);
  color: #064e3b;
}

.callout-danger {
  background-color: var(--color-danger-bg);
  border-color: var(--color-danger);
  color: #7f1d1d;
}

.callout-title {
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Interactive Tools Styling */
.tool-box {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
}

.tool-step {
  margin-bottom: 1.75rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--color-border);
}

.tool-step:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.tool-step-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-secondary);
  margin-bottom: 1rem;
  display: block;
}

.tool-options-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .tool-options-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.tool-radio-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: var(--color-bg-alt);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  min-height: 48px;
  transition: all var(--transition-fast);
}

.tool-radio-label:hover {
  background: #ffffff;
  border-color: var(--color-primary);
}

.tool-radio-label input[type="radio"],
.tool-radio-label input[type="checkbox"] {
  margin-top: 0.2rem;
  accent-color: var(--color-primary);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.tool-results-panel {
  background: var(--color-bg-alt);
  border: 2px solid var(--color-primary);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  margin-top: 2rem;
  display: none;
}

.tool-results-panel.active {
  display: block;
  animation: fadeIn 250ms ease-in-out;
}

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

/* Accordions (FAQs) */
.accordion {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #ffffff;
  margin-bottom: 1rem;
}

.accordion-header {
  width: 100%;
  padding: 1.15rem 1.35rem;
  min-height: 48px;
  text-align: left;
  background: #ffffff;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-secondary);
  transition: background var(--transition-fast);
}

.accordion-header:hover {
  background-color: var(--color-bg-alt);
}

.accordion-header .icon-toggle {
  transition: transform var(--transition-normal);
  color: var(--color-primary);
  font-size: 1.25rem;
  flex-shrink: 0;
  margin-left: 0.5rem;
}

.accordion-header[aria-expanded="true"] .icon-toggle {
  transform: rotate(180deg);
}

.accordion-body {
  padding: 0 1.35rem 1.35rem 1.35rem;
  color: var(--color-text-main);
  font-size: 0.95rem;
  line-height: 1.65;
  display: none;
}

.accordion-header[aria-expanded="true"] + .accordion-body {
  display: block;
}

/* Content Article Layout (Blog & Service Detail) */
.content-body {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: #334155;
}

.content-body h2 {
  font-size: clamp(1.6rem, 2.5vw, 1.85rem);
  margin-top: 2.25rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-bg-subtle);
}

.content-body h3 {
  font-size: clamp(1.25rem, 2vw, 1.35rem);
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
}

.content-body img {
  border-radius: var(--radius-md);
  margin: 1.75rem 0;
  box-shadow: var(--shadow-md);
}

.content-body blockquote {
  border-left: 4px solid var(--color-primary);
  padding: 1rem 1.5rem;
  background: var(--color-bg-alt);
  font-style: italic;
  margin: 1.5rem 0;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.table-responsive {
  overflow-x: auto;
  margin: 1.75rem 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
}

th, td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--color-border);
}

th {
  background-color: var(--color-bg-alt);
  color: var(--color-secondary);
  font-family: var(--font-heading);
  font-weight: 700;
}

tr:hover td {
  background-color: var(--color-bg-subtle);
}

/* Forms */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  color: var(--color-secondary);
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  min-height: 44px;
  font-size: 0.95rem;
  border: 1px solid var(--color-border-dark);
  border-radius: var(--radius-sm);
  background-color: #ffffff;
  color: var(--color-text-main);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-control:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-light);
  outline: none;
}

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

/* Footer */
.site-footer {
  background-color: var(--color-secondary);
  color: #cbd5e1;
  padding: 4rem 0 2rem 0;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.25rem;
  margin-bottom: 3rem;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .footer-grid {
    grid-template-columns: 2fr 1.2fr 1.2fr 1.6fr;
  }
}

.footer-col h4 {
  color: #ffffff;
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
  font-weight: 700;
}

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

.footer-links li {
  margin-bottom: 0.65rem;
}

.footer-links a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer-disclaimer-box {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  font-size: 0.8125rem;
  line-height: 1.6;
  color: #94a3b8;
  margin-bottom: 2.25rem;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  font-size: 0.8125rem;
  color: #64748b;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
  }
}

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.75rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (max-width: 480px) {
  .footer-legal-links {
    gap: 0.5rem 1rem;
    font-size: 0.8125rem;
    justify-content: center;
    text-align: center;
  }
}

.footer-legal-links a {
  color: #94a3b8;
  text-decoration: none;
  display: inline-block;
  padding: 0.25rem 0;
}

.footer-legal-links a:hover {
  color: #ffffff;
}

/* Tasteful UI Animations (150-300ms, layout-shift free) */
.card, .service-card, .tool-card, .blog-card {
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.card:hover, .service-card:hover, .tool-card:hover, .blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.site-header {
  transition: padding 0.2s ease, box-shadow 0.2s ease;
}

.site-header.scrolled {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.site-header.scrolled .header-inner {
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.28s ease, transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

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

.accordion-item {
  transition: border-color var(--transition-fast);
}

.accordion-content {
  transition: max-height 0.25s ease-out, opacity 0.25s ease-out;
}

/* Reduced Motion Mode */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal-on-scroll {
    opacity: 1 !important;
    transform: none !important;
  }
  .card:hover, .service-card:hover, .tool-card:hover, .blog-card:hover {
    transform: none !important;
  }
}
