/* =========================================
   Immobilienverwaltung Pohen – Stylesheet
   Farben: #455a64 (Anthrazit) | #95c23d (Grün)
   ========================================= */

:root {
  --dark:      #455a64;
  --dark-deep: #2e3f47;
  --green:     #95c23d;
  --green-dark:#7aaa2a;
  --green-light: #d4edaa;
  --white:     #ffffff;
  --off-white: #f7f8f6;
  --gray-100:  #f0f2f0;
  --gray-200:  #e2e6e1;
  --gray-500:  #7a8c82;
  --gray-700:  #3d4f45;
  --text:      #2c3c33;
  --text-light:#5a6e64;

  --radius-sm: 6px;
  --radius:    12px;
  --radius-lg: 20px;

  --shadow-sm: 0 2px 8px rgba(69,90,100,0.08);
  --shadow:    0 8px 32px rgba(69,90,100,0.12);
  --shadow-lg: 0 20px 60px rgba(69,90,100,0.18);

  --transition: 0.25s ease;
  --max-width: 1200px;
  --nav-height: 72px;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ---- Typography ---- */
h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; }
h3 { font-size: 1.2rem; font-weight: 600; line-height: 1.35; }

/* ---- Layout helpers ---- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 96px 0;
}

.section-alt {
  background: var(--off-white);
}

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

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}

.section-header p {
  margin-top: 16px;
  color: var(--text-light);
  font-size: 1.05rem;
}

.section-tag {
  display: inline-block;
  background: var(--green-light);
  color: var(--green-dark);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 99px;
  margin-bottom: 14px;
}

.section-header .section-tag {
  display: block;
  width: fit-content;
  margin: 0 auto 16px;
}

.section-tag-light {
  background: rgba(149,194,61,0.2);
  color: var(--green);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  transition: all var(--transition);
  white-space: nowrap;
}

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

.btn-primary:hover {
  background: var(--green-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(149,194,61,0.35);
}

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

.btn-outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--white);
}

.btn-full { width: 100%; justify-content: center; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  transition: background var(--transition), box-shadow var(--transition), backdrop-filter var(--transition);
}

/* subtle gradient so the nav always has dark context behind it */
.nav-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(30,42,48,0.65) 0%, transparent 100%);
  pointer-events: none;
  transition: opacity var(--transition);
}

.nav-wrapper.scrolled {
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.nav-wrapper.scrolled::before { opacity: 0; }

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}

/* ---- Logo: icon + text ---- */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo img {
  height: 36px;
  width: auto;
  flex-shrink: 0;
  filter: brightness(0) invert(1);
  transition: filter var(--transition);
}

.nav-wrapper.scrolled .nav-logo img {
  filter: none;
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.nav-logo-text em {
  font-style: normal;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  transition: color var(--transition);
}

.nav-logo-text strong {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.01em;
  transition: color var(--transition);
}

.nav-wrapper.scrolled .nav-logo-text strong { color: var(--dark-deep); }
.nav-wrapper.scrolled .nav-logo-text em    { color: var(--text-light); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--white);
  transition: background var(--transition), color var(--transition);
}

.nav-wrapper.scrolled .nav-links a {
  color: var(--text);
}

.nav-links a:hover {
  background: rgba(255,255,255,0.15);
}

.nav-wrapper.scrolled .nav-links a:hover {
  background: var(--gray-100);
  color: var(--dark);
}

.nav-cta {
  background: var(--green) !important;
  color: var(--white) !important;
  border-radius: var(--radius-sm);
}

.nav-cta:hover {
  background: var(--green-dark) !important;
  box-shadow: 0 4px 12px rgba(149,194,61,0.35);
}

.nav-secondary-cta {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.88) !important;
}

.nav-secondary-cta:hover {
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.28);
}

.nav-wrapper.scrolled .nav-secondary-cta {
  background: rgba(69,90,100,0.04);
  border-color: rgba(69,90,100,0.14);
  color: var(--dark) !important;
}

.nav-wrapper.scrolled .nav-secondary-cta:hover {
  background: rgba(69,90,100,0.08);
  border-color: rgba(69,90,100,0.22);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  position: relative;
  z-index: 101;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}

.nav-wrapper.scrolled .nav-toggle span {
  background: var(--dark);
}

.nav-toggle.open span {
  background: var(--white);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    url('../images/hero-aachen.webp') center center / cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(46,63,71,0.85) 0%,
    rgba(46,63,71,0.6) 60%,
    rgba(149,194,61,0.15) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: calc(var(--nav-height) + 48px) 24px 96px;
  max-width: 700px;
  margin-left: max(24px, calc((100vw - var(--max-width)) / 2));
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(149,194,61,0.25);
  border: 1px solid rgba(149,194,61,0.5);
  color: var(--green);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 99px;
  margin-bottom: 24px;
}

.hero-tag::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
}

.hero-content h1 {
  color: var(--white);
  margin-bottom: 20px;
}

.hero-content p {
  color: rgba(255,255,255,0.82);
  font-size: 1.15rem;
  margin-bottom: 36px;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.media-credit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: fit-content;
  border: 1px solid rgba(69,90,100,0.10);
  border-radius: 999px;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
  user-select: none;
}

.media-credit--hero {
  display: block;
  padding: 0;
  color: rgba(255,255,255,0.42);
  background: transparent;
  border: 0;
  text-align: left;
  opacity: 0.9;
}

.media-credit--hero-corner {
  position: absolute;
  right: 24px;
  bottom: 24px;
  z-index: 2;
  max-width: calc(100vw - 48px);
  pointer-events: none;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.6);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  animation: fadeInUp 1s ease 1.2s both;
}

.scroll-arrow {
  width: 20px;
  height: 20px;
  border-right: 2px solid rgba(255,255,255,0.5);
  border-bottom: 2px solid rgba(255,255,255,0.5);
  transform: rotate(45deg);
  animation: bounceDown 2s ease-in-out infinite;
}

@keyframes bounceDown {
  0%, 100% { transform: rotate(45deg) translateY(0); }
  50%       { transform: rotate(45deg) translateY(5px); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateX(-50%) translateY(16px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ============================================================
   STATS BAR
   ============================================================ */
.stats-bar {
  background: var(--dark);
  padding: 28px 0;
}

.stats-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 40px;
  flex: 1;
  min-width: 180px;
}

.stat-item strong {
  color: var(--green);
  font-size: 1.05rem;
  font-weight: 700;
}

.stat-item span {
  color: rgba(255,255,255,0.65);
  font-size: 0.82rem;
  line-height: 1.4;
}

.stat-divider {
  width: 1px;
  height: 48px;
  background: rgba(255,255,255,0.12);
  flex-shrink: 0;
}

/* ============================================================
   LEISTUNGEN – SERVICE TABS
   ============================================================ */
.service-tabs {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.tab-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  border-bottom: 2px solid var(--gray-200);
  padding-bottom: 0;
  margin-bottom: 0;
}

.tab-btn {
  padding: 12px 20px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-light);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  position: relative;
  transition: all var(--transition);
  white-space: nowrap;
}

.tab-btn::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--green);
  opacity: 0;
  transition: opacity var(--transition);
}

.tab-btn:hover { color: var(--dark); background: var(--gray-100); }

.tab-btn.active {
  color: var(--dark);
  background: var(--off-white);
}

.tab-btn.active::after { opacity: 1; }

.tab-panels {
  background: var(--off-white);
  border-radius: 0 0 var(--radius) var(--radius);
}

.tab-panel {
  display: none;
  padding: 48px;
}

.tab-panel.active { display: block; }

.tab-panel-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.tab-icon {
  width: 52px;
  height: 52px;
  background: var(--green-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.tab-icon svg {
  width: 26px;
  height: 26px;
  stroke: var(--green-dark);
}

.tab-text h3 {
  font-size: 1.5rem;
  color: var(--dark);
  margin-bottom: 12px;
}

.tab-text > p {
  color: var(--text-light);
  margin-bottom: 24px;
  font-size: 0.97rem;
}

.service-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.service-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text);
}

.service-list li::before {
  content: '';
  flex-shrink: 0;
  margin-top: 6px;
  width: 7px;
  height: 7px;
  background: var(--green);
  border-radius: 50%;
}

.tab-image {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--gray-200);
  position: relative;
}

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

.tab-image:hover img { transform: scale(1.03); }

.media-credit--image {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  padding: 4px 7px;
  color: rgba(255,255,255,0.74);
  background: rgba(32,33,36,0.30);
  border-color: rgba(255,255,255,0.10);
  backdrop-filter: blur(2px);
  pointer-events: none;
}

.tab-image::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.06);
}

/* placeholder when no image */
.tab-image:not(:has(img[src$=".jpg"])):not(:has(img[src$=".jpeg"])):not(:has(img[src$=".png"])):not(:has(img[src$=".webp"])) {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================================================
   ÜBER UNS
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 80px;
  align-items: center;
}

.about-image-col {
  align-self: start;
}

.about-media {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.about-frame {
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--gray-200);
  box-shadow: var(--shadow);
}

.about-frame img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 16%;
}

.about-caption {
  display: grid;
  gap: 4px;
  padding: 0 8px;
}

.about-caption span {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green-dark);
}

.about-caption strong {
  font-size: 1.05rem;
  line-height: 1.2;
  color: var(--dark-deep);
}

.about-text-col .section-tag { margin-bottom: 16px; }

.about-text-col h2 {
  margin-bottom: 20px;
  color: var(--dark-deep);
}

.about-text-col p {
  color: var(--text-light);
  margin-bottom: 18px;
  font-size: 0.97rem;
}

.about-credentials {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--gray-200);
}

.credential {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
}

.credential-icon {
  width: 36px;
  height: 36px;
  background: var(--green-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.credential-icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--green-dark);
}

/* ============================================================
   VORTEILE
   ============================================================ */
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.advantage-card {
  background: var(--off-white);
  border-radius: var(--radius);
  padding: 36px 28px;
  border: 1px solid var(--gray-200);
  transition: all var(--transition);
}

.advantage-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--green-light);
}

.advantage-icon {
  width: 48px;
  height: 48px;
  background: var(--green-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.advantage-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--green-dark);
}

.advantage-card h3 {
  color: var(--dark-deep);
  margin-bottom: 10px;
}

.advantage-card p {
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.65;
}

/* ============================================================
   KONTAKT
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 80px;
  align-items: start;
}

.contact-info h2 {
  margin-bottom: 16px;
  color: var(--white);
}

.contact-info > p {
  color: rgba(255,255,255,0.7);
  margin-bottom: 40px;
  font-size: 0.97rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-icon {
  width: 44px;
  height: 44px;
  background: rgba(149,194,61,0.15);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--green);
}

.contact-item > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.contact-item strong {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.5);
}

.contact-item span,
.contact-item a {
  color: rgba(255,255,255,0.9);
  font-size: 0.95rem;
  line-height: 1.55;
  transition: color var(--transition);
}

.contact-item a:hover { color: var(--green); }

/* ---- Contact CTA card ---- */
.contact-cta-wrap {
  display: flex;
  align-items: center;
}

.contact-cta-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  backdrop-filter: blur(4px);
}

.contact-cta-icon {
  width: 56px;
  height: 56px;
  background: rgba(149,194,61,0.18);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-cta-icon svg {
  width: 26px;
  height: 26px;
  stroke: var(--green);
}

.contact-cta-card h3 {
  font-size: 1.4rem;
  color: var(--white);
}

.contact-cta-card p {
  color: rgba(255,255,255,0.65);
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 4px;
}

.contact-mail-btn {
  font-size: 1rem;
  padding: 16px 28px;
}

.contact-mail-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn-contact-phone {
  background: transparent;
  color: rgba(255,255,255,0.75);
  border: 1.5px solid rgba(255,255,255,0.2);
  justify-content: center;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  transition: all var(--transition);
}

.btn-contact-phone svg {
  width: 18px;
  height: 18px;
}

.btn-contact-phone:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.4);
  color: var(--white);
}

/* ImmobilienScout24 Link */
.is24-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 4px 0;
  color: rgba(255,255,255,0.35);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.is24-divider::before,
.is24-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.15);
}

.btn-is24 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--green);
  background: rgba(149,194,61,0.1);
  border: 1.5px solid rgba(149,194,61,0.35);
  text-decoration: none;
  transition: all var(--transition);
  text-align: center;
}
.btn-is24 svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.btn-is24:hover {
  background: rgba(149,194,61,0.18);
  border-color: rgba(149,194,61,0.6);
  color: #b0d65a;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--dark-deep);
  color: rgba(255,255,255,0.7);
}

.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 64px 24px 48px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.footer-logo img {
  height: 36px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.85;
}

.footer-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.footer-logo-text strong {
  font-size: 1.1rem;
  font-weight: 700;
  color: rgba(255,255,255,0.92);
  letter-spacing: -0.01em;
}

.footer-logo-text em {
  font-style: normal;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
}

.footer-brand p {
  font-size: 0.87rem;
  line-height: 1.65;
  max-width: 240px;
}

.footer-links h4,
.footer-contact h4 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.4);
  margin-bottom: 18px;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 0.88rem;
  transition: color var(--transition);
}

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

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-contact p {
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 6px;
}

.footer-contact a {
  font-size: 0.88rem;
  display: block;
  transition: color var(--transition);
}

.footer-contact a:hover { color: var(--green); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 24px;
  text-align: center;
  max-width: var(--max-width);
  margin: 0 auto;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
}

/* ============================================================
   ANIMATIONS
   ============================================================ */

/* Hero content entrance */
.hero-content h1 {
  animation: heroFadeUp 0.9s cubic-bezier(0.22,1,0.36,1) 0.15s both;
}
.hero-content p {
  animation: heroFadeUp 0.9s cubic-bezier(0.22,1,0.36,1) 0.3s both;
}
.hero-actions {
  animation: heroFadeUp 0.9s cubic-bezier(0.22,1,0.36,1) 0.45s both;
}

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

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s cubic-bezier(0.22,1,0.36,1),
              transform 0.65s cubic-bezier(0.22,1,0.36,1);
}

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

.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }
.reveal-delay-5 { transition-delay: 0.40s; }

/* Section heading underline animation */
.section-header h2 {
  position: relative;
  display: block;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: var(--green);
  border-radius: 2px;
  transition: width 0.6s cubic-bezier(0.22,1,0.36,1);
}

.section-header.visible h2::after { width: 48px; }

/* Tab panel slide */
.tab-panel.active {
  animation: tabSlide 0.3s ease both;
}

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

/* Advantage card shimmer on hover */
.advantage-card {
  position: relative;
  overflow: hidden;
}

.advantage-card::before {
  content: '';
  position: absolute;
  top: -100%;
  left: -60%;
  width: 50%;
  height: 300%;
  background: linear-gradient(105deg, transparent 40%, rgba(149,194,61,0.06) 50%, transparent 60%);
  transition: left 0.6s ease;
}

.advantage-card:hover::before { left: 130%; }

/* Stat bar count-up feel – just a fade-scale */
.stat-item strong {
  display: inline-block;
  transition: transform 0.3s ease;
}

.stat-item:hover strong { transform: scale(1.06); }

/* Contact CTA card pulse border */
.contact-cta-card {
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.contact-cta-card:hover {
  border-color: rgba(149,194,61,0.35);
  box-shadow: 0 0 0 1px rgba(149,194,61,0.15), 0 20px 60px rgba(0,0,0,0.2);
}

/* ============================================================
   IMAGE PLACEHOLDER (when no real image provided)
   ============================================================ */
.img-placeholder {
  width: 100%;
  height: 100%;
  min-height: 260px;
  background: linear-gradient(135deg, var(--gray-200) 0%, var(--gray-100) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--gray-500);
  font-size: 0.8rem;
  text-align: center;
  border-radius: var(--radius);
}

.img-placeholder svg {
  width: 40px;
  height: 40px;
  stroke: var(--gray-500);
  opacity: 0.5;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .about-image-col { order: -1; }
  .about-media { max-width: 520px; }

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

  .footer-brand { grid-column: 1 / -1; }

  .tab-panel-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .tab-image { max-height: 320px; }
}

/* ============================================================
   MOBILE NAVIGATION OVERLAY
   ============================================================ */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 98;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.nav-overlay.active {
  display: block;
  opacity: 1;
}

/* ============================================================
   TAB ARROWS
   ============================================================ */
.tab-arrows {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 20px 0 8px;
  border-top: 1px solid var(--gray-200);
  margin-top: 0;
  background: var(--off-white);
  border-radius: 0 0 var(--radius) var(--radius);
}

.tab-arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dark);
  transition: all var(--transition);
  flex-shrink: 0;
}

.tab-arrow svg {
  width: 18px;
  height: 18px;
}

.tab-arrow:hover {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
  transform: scale(1.08);
}

.tab-arrow:disabled {
  opacity: 0.3;
  pointer-events: none;
}

.tab-dots {
  display: flex;
  gap: 8px;
  align-items: center;
}

.tab-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gray-200);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all var(--transition);
}

.tab-dot.active {
  background: var(--green);
  width: 24px;
  border-radius: 4px;
}

.tab-dot:hover:not(.active) {
  background: var(--gray-500);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .section { padding: 64px 0; }

  /* ── Mobile nav menu ── */
  .nav-toggle { display: flex; }

  .nav-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .nav-toggle.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }
  .nav-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .nav-links {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--dark-deep);
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    padding: 80px 32px 48px;
    gap: 4px;
    z-index: 99;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.22,1,0.36,1);
    pointer-events: none;
  }

  .nav-links.open {
    transform: translateX(0);
    pointer-events: all;
  }

  .nav-links a {
    color: rgba(255,255,255,0.7);
    font-size: 1.25rem;
    font-weight: 500;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    border-radius: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: color var(--transition);
  }

  .nav-links a::after {
    content: '→';
    font-size: 1rem;
    opacity: 0.4;
    transition: opacity var(--transition), transform var(--transition);
  }

  .nav-links a:hover {
    color: var(--white);
    background: none;
  }

  .nav-links a:hover::after {
    opacity: 1;
    transform: translateX(4px);
  }

  .nav-secondary-cta {
    margin-top: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.86) !important;
    padding: 14px 18px;
    justify-content: center;
  }

  .nav-secondary-cta::after {
    display: none;
  }

  .nav-secondary-cta:hover {
    background: rgba(255,255,255,0.08);
  }

  .nav-links li:last-child a {
    border-bottom: none;
    margin-top: 16px;
    background: var(--green);
    color: var(--white);
    border-radius: var(--radius-sm);
    padding: 16px 24px;
    justify-content: center;
  }

  .nav-links li:last-child a::after { display: none; }

  /* Keep nav link text white in mobile overlay even when header is in scrolled state */
  .nav-wrapper.scrolled .nav-links a {
    color: rgba(255,255,255,0.7);
  }
  .nav-wrapper.scrolled .nav-links a:hover {
    color: var(--white);
    background: none;
  }
  .nav-wrapper.scrolled .nav-links li:last-child a {
    color: var(--white);
  }

  .nav-logo-text em { display: block; font-size: 0.6rem; }
  .nav-logo-text strong { font-size: 0.95rem; }

  /* ── Hero ── */
  .hero-content {
    margin-left: 24px;
    padding-top: calc(var(--nav-height) + 32px);
  }

  .media-credit--hero-corner {
    right: 16px;
    bottom: 16px;
    max-width: calc(100vw - 32px);
  }

  .hero-actions { flex-direction: column; }
  .hero-actions .btn { justify-content: center; }

  /* ── Stats bar: 2×2 wrap ── */
  .stats-container {
    flex-wrap: wrap;
    overflow-x: visible;
  }

  .stat-divider { display: none; }

  .stat-item {
    flex: 0 0 50%;
    min-width: 0;
    padding: 18px 16px;
    text-align: center;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.07);
  }

  /* DOM: stat-item at pos 1,3,5,7 – dividers at 2,4,6 (hidden)
     Flex layout: 1=left-top, 3=right-top, 5=left-bottom, 7=right-bottom */
  .stat-item:nth-child(1),
  .stat-item:nth-child(5) {
    border-right: 1px solid rgba(255,255,255,0.07);
  }

  .stat-item:nth-child(5),
  .stat-item:nth-child(7) {
    border-bottom: none;
  }

  /* ── Tabs ── */
  .tab-buttons { gap: 4px; flex-wrap: wrap; overflow-x: visible; }
  .tab-btn { padding: 9px 12px; font-size: 0.78rem; }
  .tab-panel { padding: 24px 16px; }

  /* ── Cards ── */
  .advantages-grid { grid-template-columns: 1fr; gap: 16px; }

  /* ── Footer ── */
  .footer-container { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
}

@media (max-width: 480px) {
  .section-header { margin-bottom: 40px; }
  .stat-item { padding: 14px 10px; }
  .stat-item strong { font-size: 0.9rem; }
  .stat-item span { font-size: 0.72rem; }
}
