/* ============================================
   SkyGuard Roofing Solutions — Custom Styles
   Colors: Navy #0f1c2e, Teal #16c8df, Dark #1C272A
   ============================================ */

:root {
  --navy: #0f1c2e;
  --navy-light: #162a45;
  --teal: #16c8df;
  --teal-dark: #0ea5b8;
  --teal-glow: rgba(22, 200, 223, 0.15);
  --slate: #94a3b8;
  --white: #ffffff;
  --off-white: #f8fafc;
  --warm-gray: #f1f5f9;
  --text-primary: #1e293b;
  --text-secondary: #475569;
  --border: #e2e8f0;
}

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

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

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text-primary);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', 'Inter', sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: color 0.2s; }

/* ---- NAVIGATION ---- */
.nav-wrap {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: background 0.3s, box-shadow 0.3s, padding 0.3s;
  padding: 1rem 0;
}

.nav-wrap.scrolled {
  background: rgba(15, 28, 46, 0.97);
  box-shadow: 0 4px 30px rgba(0,0,0,0.15);
  padding: 0.5rem 0;
  backdrop-filter: blur(12px);
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo img {
  height: 48px;
  width: auto;
  transition: height 0.3s;
}

.nav-wrap.scrolled .nav-logo img {
  height: 38px;
}

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

.nav-links > li {
  position: relative;
}

.nav-links > li > a {
  display: block;
  padding: 0.5rem 0.85rem;
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}

.nav-links > li > a:hover,
.nav-links > li > a.active {
  color: var(--teal);
  background: rgba(22, 200, 223, 0.08);
}

/* Dropdown */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--navy);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.25s ease;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
  list-style: none;
}

.nav-links > li:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 0.5rem 0.85rem;
  color: rgba(255,255,255,0.75);
  font-size: 0.85rem;
  border-radius: 6px;
  transition: all 0.2s;
}

.dropdown-menu a:hover {
  color: var(--teal);
  background: rgba(22, 200, 223, 0.08);
}

/* Mobile nav */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: white;
  margin: 6px 0;
  border-radius: 2px;
  transition: all 0.3s;
}

.nav-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}
.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.25rem;
  background: var(--teal);
  color: white !important;
  font-weight: 600;
  font-size: 0.85rem;
  border-radius: 8px;
  transition: all 0.25s;
}

.nav-cta:hover {
  background: var(--teal-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(22, 200, 223, 0.3);
}

/* ---- HERO ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy);
}

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

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15,28,46,0.95) 0%, rgba(15,28,46,0.82) 50%, rgba(15,28,46,0.7) 100%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 1280px;
  margin: 0 auto;
  padding: 8rem 1.5rem 4rem;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(22, 200, 223, 0.12);
  border: 1px solid rgba(22, 200, 223, 0.25);
  border-radius: 100px;
  color: var(--teal);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  letter-spacing: 0.02em;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: white;
  margin-bottom: 1.25rem;
  max-width: 720px;
  letter-spacing: -0.02em;
}

.hero h1 .accent {
  color: var(--teal);
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.92);
  max-width: 560px;
  margin-bottom: 2rem;
  line-height: 1.7;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: all 0.25s;
  font-family: inherit;
}

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

.btn-primary:hover {
  background: var(--teal-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(22, 200, 223, 0.3);
}

.btn-outline {
  background: transparent;
  color: white;
  border: 2px solid rgba(255,255,255,0.25);
}

.btn-outline:hover {
  border-color: var(--teal);
  color: var(--teal);
  background: rgba(22, 200, 223, 0.05);
}

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

.btn-dark:hover {
  background: var(--navy-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* ---- SECTIONS ---- */
.section {
  padding: 5rem 1.5rem;
}

.section-dark {
  background: var(--navy);
  color: white;
}

.section-gray {
  background: var(--warm-gray);
}

.section-teal {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
  color: white;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--teal);
  margin-bottom: 0.75rem;
}

.section-dark .section-label {
  color: var(--teal);
}

.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 640px;
  line-height: 1.7;
}

.section-dark .section-subtitle {
  color: rgba(255,255,255,0.65);
}

/* ---- SERVICES GRID ---- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.service-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  group: true;
}

.service-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.service-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15,28,46,0.95) 0%, rgba(15,28,46,0.3) 50%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  transition: background 0.3s;
}

.service-card:hover .service-card-overlay {
  background: linear-gradient(to top, rgba(22,200,223,0.85) 0%, rgba(15,28,46,0.4) 50%, transparent 100%);
}

.service-card h3 {
  color: white;
  font-size: 1.15rem;
  margin-bottom: 0.25rem;
}

.service-card p {
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
}

.service-card .arrow {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1rem;
  opacity: 0;
  transform: translate(-8px, 8px);
  transition: all 0.3s;
}

.service-card:hover .arrow {
  opacity: 1;
  transform: translate(0, 0);
}

/* ---- STATS BAR ---- */
.stats-bar {
  padding: 3rem 1.5rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  max-width: 1280px;
  margin: 0 auto;
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--teal);
  line-height: 1;
  margin-bottom: 0.5rem;
  font-family: 'Poppins', sans-serif;
}

.stat-label {
  display: block;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  font-weight: 500;
}

/* ---- WHY CHOOSE US ---- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.feature-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  transition: all 0.3s;
}

.feature-card:hover {
  border-color: var(--teal);
  box-shadow: 0 8px 30px rgba(22, 200, 223, 0.08);
  transform: translateY(-4px);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--teal-glow);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
}

.feature-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ---- TESTIMONIAL ---- */
.testimonial-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 3rem;
  max-width: 700px;
  margin: 3rem auto 0;
  text-align: center;
}

.testimonial-stars {
  color: #fbbf24;
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
  letter-spacing: 0.15em;
}

.testimonial-card blockquote {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.8;
  font-style: italic;
  margin-bottom: 1.5rem;
}

.testimonial-author {
  color: var(--teal);
  font-weight: 600;
}

/* ---- BLOG CARDS ---- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.blog-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all 0.3s;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 35px rgba(0,0,0,0.08);
}

.blog-card-img {
  aspect-ratio: 16/9;
  overflow: hidden;
}

.blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

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

.blog-card-body {
  padding: 1.5rem;
}

.blog-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--teal-glow);
  color: var(--teal-dark);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.blog-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
  line-height: 1.4;
}

.blog-card p {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.6;
}

/* ---- CTA SECTION ---- */
.cta-section {
  text-align: center;
  padding: 5rem 1.5rem;
}

.cta-section h2 {
  color: white;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  margin-bottom: 1rem;
}

.cta-section p {
  color: rgba(255,255,255,0.8);
  max-width: 520px;
  margin: 0 auto 2rem;
  font-size: 1.05rem;
}

/* ---- FOOTER ---- */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 4rem 1.5rem 2rem;
}

.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
}

.footer-brand p {
  margin-top: 1rem;
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 320px;
}

.footer h4 {
  color: white;
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
  font-weight: 600;
}

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

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

.footer-links a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  transition: color 0.2s;
}

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

.footer-contact-item {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
}

.footer-contact-icon {
  color: var(--teal);
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.footer-bottom {
  max-width: 1280px;
  margin: 3rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
}

.social-links {
  display: flex;
  gap: 0.75rem;
}

.social-links a {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.06);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  font-size: 1rem;
  transition: all 0.2s;
}

.social-links a:hover {
  background: var(--teal);
  color: white;
}

/* ---- PAGE HERO (internal pages) ---- */
.page-hero {
  position: relative;
  padding: 10rem 1.5rem 4rem;
  background: var(--navy);
  overflow: hidden;
}

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

.page-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15,28,46,0.95) 0%, rgba(15,28,46,0.7) 100%);
}

.page-hero-content {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
}

.page-hero h1 {
  color: white;
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
}

.page-hero p {
  color: rgba(255,255,255,0.7);
  font-size: 1.1rem;
  max-width: 600px;
  line-height: 1.7;
}

.breadcrumb {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 1.5rem;
}

.breadcrumb a {
  color: var(--teal);
}

.breadcrumb span {
  opacity: 0.5;
}

/* ---- PROCESS STEPS ---- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
  counter-reset: step;
}

.process-step {
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  position: relative;
  counter-increment: step;
  transition: all 0.3s;
}

.process-step:hover {
  border-color: var(--teal);
  box-shadow: 0 8px 30px rgba(22, 200, 223, 0.08);
}

.process-step::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--teal);
  opacity: 0.2;
  font-family: 'Poppins', sans-serif;
  margin-bottom: 0.75rem;
  line-height: 1;
}

.process-step h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.process-step p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ---- GALLERY GRID ---- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  margin-top: 3rem;
}

.gallery-item {
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  position: relative;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

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

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(15,28,46,0.3);
  opacity: 0;
  transition: opacity 0.3s;
}

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

/* ---- LIGHTBOX ---- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 12px;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.1);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.lightbox-close:hover {
  background: rgba(255,255,255,0.2);
}

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

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--text-primary);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.9rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: white;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px var(--teal-glow);
}

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

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

/* ---- CONTACT INFO CARD ---- */
.contact-info-card {
  background: var(--navy);
  border-radius: 20px;
  padding: 2.5rem;
  color: white;
}

.contact-info-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.contact-info-icon {
  width: 44px;
  height: 44px;
  background: rgba(22, 200, 223, 0.12);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-info-text h4 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.contact-info-text p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.5;
}

.contact-info-text a {
  color: var(--teal);
}

/* ---- SCROLL ANIMATIONS ---- */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 360px;
    height: 100vh;
    background: var(--navy);
    flex-direction: column;
    align-items: stretch;
    padding: 5rem 1.5rem 2rem;
    gap: 0;
    transition: right 0.35s ease;
    overflow-y: auto;
    box-shadow: -10px 0 40px rgba(0,0,0,0.3);
  }

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

  .nav-links > li > a {
    padding: 0.85rem 0;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }

  /* Fix Contact Us CTA button in mobile menu */
  .nav-links > li:last-child {
    margin-top: 1rem;
    padding-bottom: 2rem;
  }

  .nav-links > li > a.nav-cta {
    display: block;
    text-align: center;
    padding: 0.85rem 1.25rem;
    border-bottom: none;
  }

  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    padding: 0 0 0 1rem;
    background: transparent;
    display: none;
  }

  .dropdown-menu.mobile-open {
    display: block;
  }

  .nav-cta-mobile {
    display: block;
    margin-top: 1.5rem;
    text-align: center;
  }

  .hero-content {
    padding: 7rem 1.5rem 3rem;
  }

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

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

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

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

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

  .section {
    padding: 3.5rem 1.25rem;
  }

  .page-hero {
    padding: 8rem 1.25rem 3rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }

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

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

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

  .stat-label {
    font-size: 0.8rem;
  }

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

/* ---- MOBILE NAV OVERLAY ---- */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

.nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ---- FINANCING EMBED ---- */
.financing-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
  margin-top: 3rem;
}

@media (max-width: 768px) {
  .financing-content {
    grid-template-columns: 1fr;
  }
}

/* ---- CAREERS FORM ---- */
.careers-form {
  max-width: 640px;
  margin: 0 auto;
  background: white;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2.5rem;
}

/* ---- TWO COL LAYOUT ---- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.two-col-reverse {
  direction: rtl;
}

.two-col-reverse > * {
  direction: ltr;
}

@media (max-width: 768px) {
  .two-col, .two-col-reverse {
    grid-template-columns: 1fr;
    gap: 2rem;
    direction: ltr;
  }
}

.two-col-img {
  border-radius: 20px;
  overflow: hidden;
}

.two-col-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4/3;
}

/* ---- SERVICE DETAIL LIST ---- */
.service-list {
  list-style: none;
  margin-top: 1.5rem;
}

.service-list li {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}

.service-list li:last-child {
  border-bottom: none;
}

.service-list .check {
  color: var(--teal);
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

/* ---- SKIP LINK (accessibility) ---- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--teal);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 0 0 8px 8px;
  z-index: 9999;
  font-weight: 600;
}

.skip-link:focus {
  top: 0;
}

/* ---- BLOG ARTICLE (individual post pages) ---- */
.blog-article {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.blog-article-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.blog-article-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.blog-article h1 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.blog-article h2 {
  font-size: 1.5rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: var(--navy);
}

.blog-article h3 {
  font-size: 1.2rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: var(--navy);
}

.blog-article p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

.blog-article a {
  color: var(--teal-dark);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: rgba(14, 165, 184, 0.3);
  text-underline-offset: 2px;
  transition: text-decoration-color 0.2s;
}

.blog-article a:hover {
  text-decoration-color: var(--teal-dark);
}

.blog-article ul,
.blog-article ol {
  margin: 1rem 0 1.5rem 1.5rem;
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.8;
}

.blog-article li {
  margin-bottom: 0.5rem;
}

.blog-article blockquote {
  border-left: 4px solid var(--teal);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: var(--warm-gray);
  border-radius: 0 10px 10px 0;
  font-style: italic;
  color: var(--text-secondary);
}

.blog-article strong {
  color: var(--text-primary);
  font-weight: 600;
}

.blog-article-featured-img {
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 2rem;
  aspect-ratio: 16/9;
}

.blog-article-featured-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-article-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--warm-gray);
  border-radius: 12px;
  margin-top: 3rem;
}

.blog-article-author-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--teal-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
  font-size: 1.5rem;
  flex-shrink: 0;
}

.blog-article-author-info h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.blog-article-author-info p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0;
}

/* Related posts section */
.related-posts {
  margin-top: 3rem;
}

.related-posts h2 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

/* ---- BLOG LISTING PAGE (redesigned) ---- */

/* Scheduling: hide all posts by default, show when .published is added by JS */
[data-publish-date] {
  display: none;
}

[data-publish-date].published {
  display: flex;
}

/* Featured post (top of blog page) */
.blog-featured {
  display: flex;
  gap: 2.5rem;
  background: white;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: box-shadow 0.3s;
}

.blog-featured:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}

.blog-featured-img {
  flex: 0 0 50%;
  aspect-ratio: 16/10;
  overflow: hidden;
}

.blog-featured-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.blog-featured:hover .blog-featured-img img {
  transform: scale(1.04);
}

.blog-featured-body {
  flex: 1;
  padding: 2.5rem 2.5rem 2.5rem 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.blog-featured-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.blog-featured-body h2 {
  font-size: 1.65rem;
  line-height: 1.3;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.blog-featured-body h2 a {
  color: var(--text-primary);
  transition: color 0.2s;
}

.blog-featured-body h2 a:hover {
  color: var(--teal-dark);
}

.blog-featured-body p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.blog-read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--teal-dark);
  font-weight: 600;
  font-size: 0.95rem;
  transition: gap 0.2s;
}

.blog-read-more:hover {
  gap: 0.75rem;
}

/* Blog list heading */
.blog-list-heading {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--border);
}

/* Blog list items (horizontal card) */
.blog-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.blog-list-item {
  display: flex;
  gap: 1.5rem;
  background: white;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all 0.3s;
}

.blog-list-item:hover {
  border-color: var(--teal);
  box-shadow: 0 6px 24px rgba(22, 200, 223, 0.08);
  transform: translateY(-2px);
}

.blog-list-img {
  flex: 0 0 260px;
  overflow: hidden;
}

.blog-list-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4/3;
  transition: transform 0.4s;
}

.blog-list-item:hover .blog-list-img img {
  transform: scale(1.06);
}

.blog-list-body {
  flex: 1;
  padding: 1.5rem 1.5rem 1.5rem 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.blog-list-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.6rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.blog-meta-date,
.blog-meta-location {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.blog-list-body h3 {
  font-size: 1.1rem;
  line-height: 1.35;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.blog-list-body h3 a {
  color: var(--text-primary);
  transition: color 0.2s;
}

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

.blog-list-body p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 768px) {
  .blog-article {
    padding: 0 1rem;
  }

  .blog-article-meta {
    gap: 0.75rem;
  }

  /* Featured post stacks vertically on mobile */
  .blog-featured {
    flex-direction: column;
    gap: 0;
  }

  .blog-featured-img {
    flex: none;
    aspect-ratio: 16/9;
  }

  .blog-featured-body {
    padding: 1.5rem;
  }

  .blog-featured-body h2 {
    font-size: 1.3rem;
  }

  /* List items stack vertically on mobile */
  .blog-list-item {
    flex-direction: column;
    gap: 0;
  }

  .blog-list-img {
    flex: none;
    aspect-ratio: 16/9;
  }

  .blog-list-img img {
    aspect-ratio: 16/9;
  }

  .blog-list-body {
    padding: 1.25rem;
  }
}
