/* ============================================================
   Roof Repair Experts – Production Stylesheet
   Navy + Teal · Mobile-first · Accessible · Core Web Vitals
   ============================================================ */

/* ---------- Custom Properties ---------- */
:root {
  --navy-900: #0a192f;
  --navy-800: #112240;
  --navy-700: #1a365d;
  --navy-600: #1e3a5f;
  --teal-500: #0d9488;
  --teal-400: #14b8a6;
  --teal-300: #2dd4bf;
  --teal-100: #ccfbf1;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --white: #ffffff;
  --success: #059669;
  --warning: #d97706;
  --error: #dc2626;

  --font-sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: "Plus Jakarta Sans", var(--font-sans);

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

  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;

  --header-height: 72px;
  --container: 1200px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--slate-800);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

a:hover,
a:focus-visible {
  color: var(--teal-400);
}

ul, ol {
  list-style: none;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

/* ---------- Accessibility ---------- */
:focus-visible {
  outline: 3px solid var(--teal-400);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--navy-900);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  z-index: 1000;
  border-radius: var(--radius-md);
  font-weight: 600;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy-900);
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.5rem); }
h4 { font-size: 1.125rem; }

p {
  margin-bottom: 1rem;
  color: var(--slate-600);
}

.lead {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--slate-600);
}

.text-center { text-align: center; }
.text-teal { color: var(--teal-500); }
.text-navy { color: var(--navy-900); }

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

.section {
  padding-block: 4rem;
}

.section-sm {
  padding-block: 2.5rem;
}

.section-lg {
  padding-block: 5.5rem;
}

@media (min-width: 768px) {
  .section { padding-block: 5rem; }
  .section-lg { padding-block: 7rem; }
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }

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

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

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--slate-200);
  height: var(--header-height);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--navy-900);
  text-decoration: none;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--navy-800), var(--teal-500));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 0.875rem;
}

.nav {
  display: none;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  display: block;
  padding: 0.5rem 0.75rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--slate-700);
  border-radius: var(--radius-md);
  transition: all var(--transition);
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-link.active {
  color: var(--teal-500);
  background: var(--teal-100);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--transition);
  z-index: 50;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-menu a {
  display: block;
  padding: 0.625rem 0.875rem;
  font-size: 0.875rem;
  color: var(--slate-700);
  border-radius: var(--radius-md);
}

.nav-dropdown-menu a:hover {
  background: var(--slate-100);
  color: var(--teal-500);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.phone-link {
  display: none;
  align-items: center;
  gap: 0.375rem;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--navy-900);
}

.phone-link svg {
  width: 18px;
  height: 18px;
  color: var(--teal-500);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: var(--radius-lg);
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--teal-500), var(--teal-400));
  color: var(--white);
  box-shadow: 0 4px 14px 0 rgb(13 148 136 / 0.35);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: linear-gradient(135deg, var(--teal-400), var(--teal-300));
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px 0 rgb(13 148 136 / 0.4);
}

.btn-secondary {
  background: var(--navy-800);
  color: var(--white);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: var(--navy-700);
  color: var(--white);
}

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

.btn-outline:hover,
.btn-outline:focus-visible {
  background: var(--teal-500);
  color: var(--white);
}

.btn-white {
  background: var(--white);
  color: var(--navy-900);
}

.btn-white:hover {
  background: var(--slate-100);
  color: var(--navy-900);
}

.btn-lg {
  padding: 1rem 1.75rem;
  font-size: 1rem;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  z-index: 110;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--navy-900);
  border-radius: 2px;
  transition: all var(--transition);
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* Mobile Nav */
.mobile-nav {
  position: fixed;
  inset: 0;
  background: var(--white);
  z-index: 90;
  padding: calc(var(--header-height) + 1.5rem) 1.5rem 2rem;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
}

.mobile-nav.open {
  transform: translateX(0);
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.mobile-nav-list a {
  display: block;
  padding: 0.875rem 1rem;
  font-weight: 500;
  color: var(--slate-800);
  border-radius: var(--radius-md);
}

.mobile-nav-list a:hover {
  background: var(--slate-100);
  color: var(--teal-500);
}

.mobile-nav-section {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--slate-200);
}

.mobile-nav-section-title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--slate-500);
  padding: 0.5rem 1rem;
}

@media (min-width: 1024px) {
  .nav { display: block; }
  .menu-toggle { display: none; }
  .phone-link { display: flex; }
  .mobile-nav { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-800) 50%, var(--navy-700) 100%);
  color: var(--white);
  padding-block: 4.5rem 5rem;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 20%, rgba(13, 148, 136, 0.25) 0%, transparent 55%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(13, 148, 136, 0.2);
  border: 1px solid rgba(45, 212, 191, 0.3);
  color: var(--teal-300);
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.375rem 0.875rem;
  border-radius: 9999px;
  margin-bottom: 1.25rem;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 1.25rem;
}

.hero .lead {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  margin-bottom: 2.5rem;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
}

.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-trust-item svg {
  width: 20px;
  height: 20px;
  color: var(--teal-300);
}

/* ---------- Cards ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  transition: all var(--transition);
  height: 100%;
}

.card:hover {
  border-color: var(--teal-300);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.card-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--teal-100), rgba(13, 148, 136, 0.15));
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--teal-500);
}

.card-icon svg {
  width: 24px;
  height: 24px;
}

.card h3 {
  margin-bottom: 0.75rem;
}

.card p {
  font-size: 0.9375rem;
  margin-bottom: 1.25rem;
}

.card-link {
  font-weight: 600;
  font-size: 0.9375rem;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

/* ---------- Trust Bar ---------- */
.trust-bar {
  background: var(--slate-50);
  border-block: 1px solid var(--slate-200);
  padding-block: 1.75rem;
}

.trust-bar-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem 3rem;
  align-items: center;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--slate-700);
}

.trust-item svg {
  width: 28px;
  height: 28px;
  color: var(--teal-500);
  flex-shrink: 0;
}

/* ---------- Section Headers ---------- */
.section-header {
  text-align: center;
  max-width: 680px;
  margin-inline: auto;
  margin-bottom: 3rem;
}

.section-header .eyebrow {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--teal-500);
  margin-bottom: 0.75rem;
}

.section-header h2 {
  margin-bottom: 1rem;
}

/* ---------- Process Steps ---------- */
.steps {
  counter-reset: step;
}

.step {
  position: relative;
  padding-left: 4rem;
  padding-bottom: 2.5rem;
}

.step:last-child {
  padding-bottom: 0;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2.75rem;
  height: 2.75rem;
  background: linear-gradient(135deg, var(--navy-800), var(--teal-500));
  color: white;
  font-weight: 700;
  font-size: 1.125rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step::after {
  content: "";
  position: absolute;
  left: 1.3rem;
  top: 2.75rem;
  bottom: 0;
  width: 2px;
  background: var(--slate-200);
}

.step:last-child::after {
  display: none;
}

.step h3 {
  margin-bottom: 0.5rem;
}

/* ---------- CTA Banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-800) 100%);
  color: white;
  border-radius: var(--radius-2xl);
  padding: 3rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 50%, rgba(13, 148, 136, 0.3) 0%, transparent 50%);
  pointer-events: none;
}

.cta-banner h2 {
  color: white;
  margin-bottom: 1rem;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 520px;
  margin-inline: auto;
  margin-bottom: 1.75rem;
}

.cta-banner-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.875rem;
}

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

.form-label {
  display: block;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--slate-700);
  margin-bottom: 0.375rem;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--slate-300);
  border-radius: var(--radius-md);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--teal-500);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

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

.form-row {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

.form-note {
  font-size: 0.8125rem;
  color: var(--slate-500);
  margin-top: 0.75rem;
}

/* ---------- Quote Form Card ---------- */
.quote-form-card {
  background: var(--white);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-xl);
  padding: 2rem;
  border: 1px solid var(--slate-200);
}

.quote-form-card h3 {
  margin-bottom: 0.5rem;
}

.quote-form-card > p {
  margin-bottom: 1.5rem;
  font-size: 0.9375rem;
}

/* ---------- Service Areas ---------- */
.area-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.75rem;
}

.area-item {
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--slate-700);
  text-align: center;
  transition: all var(--transition);
}

.area-item:hover {
  border-color: var(--teal-400);
  background: var(--teal-100);
  color: var(--navy-900);
}

/* ---------- FAQ ---------- */
.faq-item {
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.125rem 1.25rem;
  font-weight: 600;
  font-size: 1rem;
  color: var(--navy-900);
  text-align: left;
  background: var(--white);
  transition: background var(--transition);
}

.faq-question:hover {
  background: var(--slate-50);
}

.faq-question svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform var(--transition);
  color: var(--teal-500);
}

.faq-item[open] .faq-question svg {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 1.25rem 1.25rem;
  color: var(--slate-600);
  font-size: 0.9375rem;
}

/* ---------- Reviews ---------- */
.review-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  height: 100%;
}

.review-stars {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1rem;
  color: #f59e0b;
}

.review-stars svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.review-text {
  font-size: 0.9375rem;
  color: var(--slate-600);
  margin-bottom: 1.25rem;
  font-style: italic;
}

.review-author {
  font-weight: 600;
  color: var(--navy-900);
  font-size: 0.9375rem;
}

.review-meta {
  font-size: 0.8125rem;
  color: var(--slate-500);
}

.placeholder-note {
  display: inline-block;
  background: #fef3c7;
  color: #92400e;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  margin-top: 0.5rem;
}

/* ---------- Projects ---------- */
.project-card {
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--slate-200);
  background: var(--white);
  transition: all var(--transition);
}

.project-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.project-image {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--navy-800), var(--teal-500));
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  font-weight: 500;
}

.project-body {
  padding: 1.25rem;
}

.project-body h3 {
  margin-bottom: 0.375rem;
  font-size: 1.0625rem;
}

.project-body p {
  font-size: 0.875rem;
  margin-bottom: 0;
}

/* ---------- Blog ---------- */
.blog-card {
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--slate-200);
  background: var(--white);
  height: 100%;
  transition: all var(--transition);
}

.blog-card:hover {
  box-shadow: var(--shadow-lg);
}

.blog-image {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--slate-200), var(--slate-300));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--slate-500);
  font-size: 0.875rem;
}

.blog-body {
  padding: 1.5rem;
}

.blog-meta {
  font-size: 0.8125rem;
  color: var(--slate-500);
  margin-bottom: 0.75rem;
}

.blog-body h3 {
  margin-bottom: 0.75rem;
  font-size: 1.125rem;
}

.blog-body h3 a {
  color: var(--navy-900);
}

.blog-body h3 a:hover {
  color: var(--teal-500);
}

/* ---------- Footer ---------- */
.footer {
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.8);
  padding-block: 4rem 2rem;
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

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

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

.footer-brand .logo {
  color: white;
  margin-bottom: 1rem;
}

.footer-brand p {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1.25rem;
}

.footer h4 {
  color: white;
  font-size: 0.9375rem;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9375rem;
}

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

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.9375rem;
}

.footer-contact-item svg {
  width: 18px;
  height: 18px;
  color: var(--teal-400);
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.5);
}

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

.footer-bottom a:hover {
  color: var(--teal-300);
}

/* ---------- Utility ---------- */
.bg-slate { background: var(--slate-50); }
.bg-navy { background: var(--navy-900); color: white; }
.bg-teal-light { background: var(--teal-100); }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }

/* ---------- Animations ---------- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Page Hero (inner pages) ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-800) 100%);
  color: white;
  padding-block: 3.5rem 4rem;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 30%, rgba(13, 148, 136, 0.2) 0%, transparent 50%);
  pointer-events: none;
}

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

.page-hero .breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.875rem;
  margin-bottom: 1.25rem;
  color: rgba(255, 255, 255, 0.6);
}

.page-hero .breadcrumb a {
  color: rgba(255, 255, 255, 0.7);
}

.page-hero .breadcrumb a:hover {
  color: var(--teal-300);
}

.page-hero h1 {
  color: white;
  margin-bottom: 1rem;
}

.page-hero .lead {
  color: rgba(255, 255, 255, 0.85);
  max-width: 640px;
}

/* ---------- Two Column Content ---------- */
.content-grid {
  display: grid;
  gap: 3rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .content-grid {
    grid-template-columns: 1fr 380px;
  }
}

.content-main h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.content-main h2:first-child {
  margin-top: 0;
}

.content-main h3 {
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
}

.content-main ul {
  margin-bottom: 1.25rem;
  padding-left: 1.25rem;
}

.content-main ul li {
  list-style: disc;
  margin-bottom: 0.5rem;
  color: var(--slate-600);
}

.content-sidebar {
  position: sticky;
  top: calc(var(--header-height) + 1.5rem);
}

/* ---------- Responsive Tables ---------- */
.table-wrap {
  overflow-x: auto;
  margin-bottom: 1.5rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

th, td {
  padding: 0.875rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--slate-200);
}

th {
  background: var(--slate-50);
  font-weight: 600;
  color: var(--navy-900);
}

/* ---------- Print & Reduced Motion ---------- */
@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;
  }
}

/* ---------- Logo Image ---------- */
.logo img {
  height: 42px;
  width: auto;
  display: block;
}

.footer-brand .logo img {
  height: 48px;
  margin-bottom: 0.75rem;
  filter: brightness(0) invert(1); /* white version on dark footer if needed - logo is colored so keep as-is */
  filter: none;
}

/* ---------- Hero with lifestyle image ---------- */
.hero-split {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 960px) {
  .hero-split {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

.hero-image-wrap {
  position: relative;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  aspect-ratio: 4 / 3;
}

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

.hero-image-badge {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  background: rgba(10, 25, 47, 0.9);
  color: white;
  padding: 0.625rem 1rem;
  border-radius: var(--radius-lg);
  font-size: 0.8125rem;
  font-weight: 600;
  backdrop-filter: blur(8px);
}

/* Lifestyle / gallery images */
.lifestyle-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr 1fr;
}

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

.lifestyle-item {
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 1;
  position: relative;
}

.lifestyle-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.lifestyle-item:hover img {
  transform: scale(1.05);
}

.lifestyle-item span {
  position: absolute;
  inset: auto 0 0 0;
  background: linear-gradient(transparent, rgba(10,25,47,0.85));
  color: white;
  padding: 1.5rem 1rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
}

/* Blog / project image realism */
.blog-image img,
.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-image,
.project-image {
  background: var(--slate-200);
}

/* Mega-style dropdown wider but fewer items */
.nav-dropdown-menu {
  min-width: 260px;
  display: grid;
  grid-template-columns: 1fr;
  padding: 0.75rem;
}

.nav-dropdown-menu a {
  padding: 0.75rem 1rem;
}

@media (min-width: 1024px) {
  .nav-dropdown-menu.mega {
    min-width: 320px;
  }
}

/* Image fallbacks – always show a visible frame */
.hero-image-wrap {
  background: linear-gradient(135deg, #1a365d 0%, #0d9488 100%);
  min-height: 280px;
}

.hero-image-wrap img {
  background: #1a365d;
}

.lifestyle-item {
  background: linear-gradient(135deg, #112240, #0d9488);
}

.blog-image,
.project-image {
  background: linear-gradient(135deg, #1e293b, #334155);
  min-height: 160px;
}

.blog-image img,
.project-image img {
  min-height: 160px;
}

/* Ensure img doesn't collapse when broken */
img[src*="unsplash"] {
  background-color: #1e293b;
}
