/* =============================================
   LAYOUT.CSS — Grid, Components, Sections
   Reiseland Deutschland
   ============================================= */

/* =============================================
   CONTAINER
   ============================================= */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1rem, 4vw, 2.5rem);
  padding-right: clamp(1rem, 4vw, 2.5rem);
}

.container-narrow {
  max-width: var(--container-narrow);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1rem, 4vw, 2.5rem);
  padding-right: clamp(1rem, 4vw, 2.5rem);
}

.container-wide {
  width: 100%;
  max-width: var(--container-wide);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1rem, 4vw, 2.5rem);
  padding-right: clamp(1rem, 4vw, 2.5rem);
}

/* =============================================
   SECTION SPACING
   ============================================= */
.section {
  padding-top: var(--section-py);
  padding-bottom: var(--section-py);
  overflow-x: hidden;
  max-width: 100%;
}

.section-sm {
  padding-top: clamp(2.5rem, 5vw, 4rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-dark {
  background: var(--color-bg-dark);
  color: var(--color-white);
}
.section-dark h2,
.section-dark h3,
.section-dark h4,
.section-dark p { color: var(--color-white); }
.section-dark .text-muted { color: rgba(255,255,255,0.6); }

.section-primary {
  background: var(--color-primary);
  color: var(--color-white);
}
.section-primary h2,
.section-primary h3,
.section-primary p { color: var(--color-white); }

.section-alt { background: var(--gradient-light); }

.section-nature {
  background: var(--gradient-nature);
  color: var(--color-white);
}
.section-nature h2,
.section-nature p { color: var(--color-white); }

/* =============================================
   GRID SYSTEM
   ============================================= */
.grid {
  display: grid;
  gap: var(--sp-8);
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-auto-3 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.flex { display: flex; }
.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}
.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.gap-4  { gap: var(--sp-4); }
.gap-6  { gap: var(--sp-6); }
.gap-8  { gap: var(--sp-8); }

/* =============================================
   HEADER / NAV
   ============================================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  display: flex;
  align-items: center;
  transition: background var(--t-base), box-shadow var(--t-base), backdrop-filter var(--t-base);
  overflow-x: hidden;
  max-width: 100vw;
}

.site-header.scrolled {
  background: rgba(36,58,74,0.96);
  backdrop-filter: blur(16px);
  box-shadow: 0 2px 24px rgba(36,58,74,0.25);
}

.site-header:not(.scrolled) {
  background: transparent;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  text-decoration: none;
  flex-shrink: 0;
}

.logo-icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
}

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

.logo-name {
  font-family: var(--font-primary);
  font-size: var(--text-md);
  font-weight: 700;
  color: var(--color-white);
  letter-spacing: -0.01em;
}

.logo-tagline {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
}

/* Nav */
.nav-list {
  display: flex;
  align-items: center;
  gap: var(--sp-8);
}

.nav-link {
  font-size: var(--text-sm);
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color var(--t-fast);
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--color-accent);
  transition: width var(--t-base);
}
.nav-link:hover,
.nav-link.active { color: var(--color-white); }
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }

.nav-cta {
  padding: 0.6rem 1.4rem;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  background: var(--gradient-accent);
  color: var(--color-primary);
  border-radius: var(--radius-full);
  transition: all var(--t-base);
  white-space: nowrap;
}
.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-accent);
}

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  gap: 5px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-md);
  cursor: pointer;
  z-index: 1100;
  flex-shrink: 0;
  transition: background var(--t-base);
}
.burger:hover { background: rgba(255,255,255,0.18); }

.burger-line {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-white);
  border-radius: 2px;
  transition: all 0.35s cubic-bezier(0.645, 0.045, 0.355, 1);
  transform-origin: center;
}

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

/* Mobile Nav */
.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
  background: rgba(36,58,74,0.97);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-6);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-16px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.mobile-nav.open {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}
.mobile-nav .nav-link {
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-white);
}
.mobile-nav .nav-link::after { bottom: -6px; }
.mobile-nav .nav-cta {
  margin-top: var(--sp-4);
  padding: 0.875rem 2.5rem;
  font-size: var(--text-sm);
}

/* =============================================
   HERO
   ============================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  max-width: 100%;
}

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

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

@media (min-width: 1025px) {
  .hero-img {
    transform: scale(1.08);
    transition: transform 12s ease;
    will-change: transform;
  }
  .hero-img.loaded { transform: scale(1.0); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(36,58,74,0.78) 0%,
    rgba(52,75,63,0.55) 60%,
    rgba(59,65,71,0.65) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-top: calc(var(--header-height) + var(--sp-12));
  padding-bottom: var(--sp-24);
}

.hero-inner {
  max-width: 780px;
}

.hero-title {
  font-size: var(--text-hero);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--color-white);
  margin-bottom: var(--sp-6);
}

.hero-title span {
  color: var(--color-accent);
}

.hero-subtitle {
  font-size: var(--text-lg);
  line-height: 1.7;
  color: rgba(255,255,255,0.82);
  margin-bottom: var(--sp-10);
  max-width: 560px;
}

/* Hero email form */
.hero-form {
  display: flex;
  gap: var(--sp-3);
  max-width: 480px;
  margin-bottom: var(--sp-6);
}

.hero-form input[type="email"] {
  flex: 1;
  padding: 0.875rem 1.25rem;
  background: rgba(255,255,255,0.12);
  border: 1.5px solid rgba(255,255,255,0.3);
  border-radius: var(--radius-full);
  color: var(--color-white);
  font-size: var(--text-sm);
  backdrop-filter: blur(8px);
  transition: border-color var(--t-base), background var(--t-base);
  outline: none;
}
.hero-form input[type="email"]::placeholder { color: rgba(255,255,255,0.55); }
.hero-form input[type="email"]:focus {
  border-color: var(--color-accent);
  background: rgba(255,255,255,0.18);
}

.hero-cta-row {
  display: flex;
  gap: var(--sp-4);
  flex-wrap: wrap;
  align-items: center;
}

.hero-scroll {
  position: absolute;
  bottom: var(--sp-10);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  color: rgba(255,255,255,0.6);
}

.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,0.5));
  animation: scrollPulse 2s ease infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50%       { opacity: 1;   transform: scaleY(1.1); }
}

/* Page Hero (inner pages) */
.page-hero {
  position: relative;
  padding: calc(var(--header-height) + clamp(3rem,6vw,5rem)) 0 clamp(3rem,6vw,5rem);
  overflow: hidden;
  max-width: 100%;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
  z-index: 0;
}

.page-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  opacity: 0.35;
}

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

.page-hero h1 {
  color: var(--color-white);
  margin-bottom: var(--sp-4);
}
.page-hero p {
  color: rgba(255,255,255,0.78);
  max-width: 560px;
  font-size: var(--text-md);
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin-bottom: var(--sp-6);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.55);
}
.breadcrumb a { color: rgba(255,255,255,0.55); transition: color var(--t-fast); }
.breadcrumb a:hover { color: var(--color-accent); }
.breadcrumb-sep { color: rgba(255,255,255,0.3); }

/* =============================================
   TRUST / VALUE STRIP
   ============================================= */
.trust-strip {
  background: var(--color-primary);
  padding: var(--sp-6) 0;
  overflow: hidden;
  max-width: 100%;
}

.trust-strip-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  color: rgba(255,255,255,0.88);
  font-size: var(--text-sm);
  font-weight: 500;
  white-space: nowrap;
}

.trust-item svg {
  color: var(--color-accent);
  flex-shrink: 0;
}

.trust-sep {
  width: 1px;
  height: 20px;
  background: rgba(255,255,255,0.2);
  flex-shrink: 0;
}

/* =============================================
   MARQUEE
   ============================================= */
.js-marquee-wrap {
  overflow: hidden;
  max-width: 100vw;
  background: transparent;
  padding: var(--sp-6) 0;
  pointer-events: none;
  user-select: none;
}

.js-mq-row {
  display: flex;
  white-space: nowrap;
  width: max-content;
}

.js-mq-row.fwd {
  animation: marquee-fwd 30s linear infinite;
}
.js-mq-row.rev {
  animation: marquee-rev 28s linear infinite;
  margin-top: var(--sp-4);
}

@keyframes marquee-fwd {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes marquee-rev {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}

.mq-item {
  font-size: clamp(20px, 3vw, 38px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.12;
  padding: 0 2.5rem;
  color: var(--color-primary);
}

.mq-item-dot {
  color: var(--color-accent);
  opacity: 0.2;
  padding: 0 0.5rem;
}

.section-dark .mq-item,
.section-primary .mq-item { color: var(--color-white); opacity: 0.1; }

/* =============================================
   ABOUT PREVIEW
   ============================================= */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

.about-img-wrap {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.about-img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  display: block;
  transition: transform var(--t-slow);
}

.about-img-wrap:hover .about-img {
  transform: scale(1.04);
}

.about-badge {
  position: absolute;
  bottom: var(--sp-6);
  left: var(--sp-6);
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--sp-4) var(--sp-6);
  backdrop-filter: blur(8px);
}

.about-badge-num {
  font-family: var(--font-mono);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1;
}
.about-badge-txt {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.75);
  margin-top: var(--sp-1);
}

/* =============================================
   SERVICE CARDS
   ============================================= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-8);
}

.service-card {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: var(--sp-8);
  border: 1px solid var(--color-border);
  transition: transform var(--t-base), box-shadow var(--t-base);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-accent);
  opacity: 0;
  transition: opacity var(--t-base);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}
.service-card:hover::before { opacity: 1; }

.service-icon {
  width: 52px;
  height: 52px;
  background: rgba(36,58,74,0.06);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp-6);
  color: var(--color-primary);
  transition: background var(--t-base), color var(--t-base);
}
.service-card:hover .service-icon {
  background: var(--color-primary);
  color: var(--color-accent);
}

.service-card h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--sp-3);
}

.service-card p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  line-height: 1.7;
  margin-bottom: var(--sp-6);
}

.service-link {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  transition: gap var(--t-base), color var(--t-base);
}
.service-link:hover {
  color: var(--color-accent);
  gap: var(--sp-3);
}

/* =============================================
   WHY CHOOSE US
   ============================================= */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-8);
}

.why-item {
  text-align: center;
  padding: var(--sp-8);
}

.why-num {
  font-family: var(--font-mono);
  font-size: 3.5rem;
  font-weight: 700;
  color: rgba(255,255,255,0.08);
  line-height: 1;
  margin-bottom: var(--sp-4);
}

.why-item h3 {
  font-size: var(--text-xl);
  color: var(--color-white);
  margin-bottom: var(--sp-3);
}
.why-item p {
  color: rgba(255,255,255,0.65);
  font-size: var(--text-sm);
  line-height: 1.7;
}

/* =============================================
   PORTFOLIO / DESTINATION CARDS
   ============================================= */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-6);
}

.dest-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 3/4;
  cursor: pointer;
}

.dest-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.dest-card:hover img { transform: scale(1.08); }

.dest-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(36,58,74,0.85) 0%, rgba(36,58,74,0.1) 60%, transparent 100%);
  transition: background var(--t-base);
}
.dest-card:hover .dest-overlay {
  background: linear-gradient(to top, rgba(36,58,74,0.92) 0%, rgba(36,58,74,0.3) 70%, transparent 100%);
}

.dest-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--sp-6);
}

.dest-tag {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--sp-2);
  display: block;
}

.dest-name {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: var(--sp-2);
}

.dest-desc {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.75);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--t-base), transform var(--t-base);
}
.dest-card:hover .dest-desc {
  opacity: 1;
  transform: translateY(0);
}

/* =============================================
   ACHIEVEMENTS / STATS
   ============================================= */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-6);
}

.stat-card {
  text-align: center;
  padding: var(--sp-8) var(--sp-4);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  transition: background var(--t-base), transform var(--t-base);
}
.stat-card:hover {
  background: rgba(255,255,255,0.08);
  transform: translateY(-4px);
}

.stat-card .stat-number {
  font-size: var(--text-4xl);
}

/* =============================================
   PROCESS STEPS
   ============================================= */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-6);
  position: relative;
}

.process-grid::before {
  content: '';
  position: absolute;
  top: 36px;
  left: 12.5%;
  right: 12.5%;
  height: 1px;
  background: var(--color-border);
  z-index: 0;
}

.process-step {
  text-align: center;
  position: relative;
  z-index: 1;
}

.process-num {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  border: 3px solid var(--color-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--sp-6);
  font-family: var(--font-mono);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-accent);
  box-shadow: var(--shadow-md);
}

.process-step h4 {
  font-size: var(--text-md);
  margin-bottom: var(--sp-2);
}
.process-step p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* =============================================
   TESTIMONIALS
   ============================================= */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-8);
}

.testi-card {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: var(--sp-8);
  border: 1px solid var(--color-border);
  transition: transform var(--t-base), box-shadow var(--t-base);
  display: flex;
  flex-direction: column;
}
.testi-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.testi-stars {
  display: flex;
  gap: 3px;
  margin-bottom: var(--sp-4);
}
.star {
  color: var(--color-accent);
  font-size: 1rem;
}

.testi-text {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.75;
  flex: 1;
  margin-bottom: var(--sp-6);
  font-style: italic;
}

.testi-author {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
}

.testi-avatar {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-full);
  background: var(--gradient-hero);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-accent);
  flex-shrink: 0;
}

.testi-name {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
}
.testi-city {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* =============================================
   FAQ ACCORDION
   ============================================= */
.faq-list {
  max-width: 780px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-6) 0;
  cursor: pointer;
  font-size: var(--text-md);
  font-weight: 600;
  color: var(--color-text);
  transition: color var(--t-fast);
  user-select: none;
}
.faq-question:hover { color: var(--color-primary); }

.faq-icon {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-primary);
  transition: all var(--t-base);
}

.faq-item.open .faq-icon {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
  transform: rotate(45deg);
}

.faq-answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.45s cubic-bezier(0,1,0.5,1), padding 0.3s ease;
}
.faq-item.open .faq-answer { max-height: 500px; }

.faq-answer-inner {
  padding: 0 0 var(--sp-6);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  line-height: 1.8;
}

/* =============================================
   CONTACT FORM
   ============================================= */
.contact-form-wrap {
  background: var(--color-white);
  border-radius: var(--radius-2xl);
  padding: clamp(2rem, 4vw, 3.5rem);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--color-border-light);
}

.form-group {
  margin-bottom: var(--sp-6);
}

.form-label {
  display: block;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--sp-2);
  font-family: var(--font-mono);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.9rem 1.25rem;
  background: var(--color-bg);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-lg);
  color: var(--color-text);
  font-size: var(--text-base);
  font-family: var(--font-primary);
  transition: border-color var(--t-base), box-shadow var(--t-base);
  outline: none;
  -webkit-appearance: none;
}
.form-input:focus,
.form-textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(36,58,74,0.08);
  background: var(--color-white);
}
.form-input::placeholder,
.form-textarea::placeholder { color: var(--color-text-light); }

.form-textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.7;
}

.form-submit {
  width: 100%;
  padding: 1rem;
  font-size: var(--text-base);
}

/* =============================================
   KEYWORDS / PROMO SECTION
   ============================================= */
.promo-section {
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
  max-width: 100%;
}

.promo-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 50%, rgba(230,184,92,0.08) 0%, transparent 50%),
                    radial-gradient(circle at 80% 20%, rgba(52,75,63,0.15) 0%, transparent 50%);
  pointer-events: none;
}

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  background: var(--color-bg-dark);
  color: var(--color-white);
  overflow-x: hidden;
  max-width: 100%;
}

.footer-top {
  padding: clamp(3rem, 6vw, 5.5rem) 0 clamp(2.5rem, 5vw, 4rem);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: clamp(2rem, 4vw, 4rem);
}

.footer-brand p {
  color: rgba(255,255,255,0.6);
  font-size: var(--text-sm);
  line-height: 1.75;
  margin-top: var(--sp-4);
  max-width: 320px;
}

.footer-col h4 {
  font-size: var(--text-xs);
  font-family: var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--sp-5);
  font-weight: 500;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.footer-nav a {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  transition: color var(--t-fast);
}
.footer-nav a:hover { color: var(--color-accent); }

.footer-contact-item {
  display: flex;
  gap: var(--sp-3);
  margin-bottom: var(--sp-4);
  color: rgba(255,255,255,0.65);
  font-size: var(--text-sm);
}
.footer-contact-item svg {
  color: var(--color-accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-bottom {
  padding: var(--sp-6) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  flex-wrap: wrap;
}

.footer-copy {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.4);
  font-family: var(--font-mono);
}

.footer-legal {
  display: flex;
  gap: var(--sp-6);
  flex-wrap: wrap;
}

.footer-legal a {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.4);
  transition: color var(--t-fast);
  font-family: var(--font-mono);
}
.footer-legal a:hover { color: var(--color-accent); }

/* =============================================
   SCROLL REVEAL ANIMATION
   ============================================= */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Staggered children */
.stagger > * { opacity: 0; transform: translateY(24px); }
.stagger.visible > *:nth-child(1) { transition-delay: 0.05s; }
.stagger.visible > *:nth-child(2) { transition-delay: 0.12s; }
.stagger.visible > *:nth-child(3) { transition-delay: 0.19s; }
.stagger.visible > *:nth-child(4) { transition-delay: 0.26s; }
.stagger.visible > *:nth-child(5) { transition-delay: 0.33s; }
.stagger.visible > *:nth-child(6) { transition-delay: 0.40s; }
.stagger.visible > * {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* =============================================
   CERT / BADGE SECTION
   ============================================= */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-6);
}

.cert-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-xl);
  padding: var(--sp-8);
  text-align: center;
  transition: background var(--t-base), transform var(--t-base);
}
.cert-card:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-4px);
}

.cert-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--sp-4);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(230,184,92,0.15);
  border-radius: var(--radius-full);
  color: var(--color-accent);
}

.cert-card h4 {
  font-size: var(--text-md);
  color: var(--color-white);
  margin-bottom: var(--sp-2);
}
.cert-card p {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.55);
  line-height: 1.6;
}

/* =============================================
   CONTACT INFO CARDS
   ============================================= */
.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-6);
  margin-bottom: var(--sp-12);
}

.contact-info-card {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: var(--sp-8);
  border: 1px solid var(--color-border);
  text-align: center;
  transition: transform var(--t-base), box-shadow var(--t-base);
}
.contact-info-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.contact-info-card .icon-circle {
  margin: 0 auto var(--sp-4);
  width: 60px;
  height: 60px;
  background: rgba(36,58,74,0.07);
  color: var(--color-primary);
}

.contact-info-card h4 {
  font-size: var(--text-md);
  margin-bottom: var(--sp-2);
}
.contact-info-card p,
.contact-info-card a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.65;
}

/* Map */
.map-wrap {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
}
.map-wrap iframe {
  display: block;
  width: 100%;
  height: 420px;
  border: none;
}

/* =============================================
   VALUES / MISSION LIST
   ============================================= */
.values-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
}

.value-item {
  display: flex;
  gap: var(--sp-5);
  align-items: flex-start;
}

.value-dot {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
  background: var(--color-accent);
  margin-top: 7px;
  flex-shrink: 0;
}

.value-item h4 {
  font-size: var(--text-md);
  margin-bottom: var(--sp-1);
}
.value-item p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* =============================================
   LEGAL PAGES
   ============================================= */
.legal-content {
  max-width: 820px;
  margin: 0 auto;
  padding: var(--sp-16) 0;
}

.legal-content h2 {
  font-size: var(--text-2xl);
  margin-top: var(--sp-12);
  margin-bottom: var(--sp-4);
}
.legal-content h3 {
  font-size: var(--text-xl);
  margin-top: var(--sp-8);
  margin-bottom: var(--sp-3);
}
.legal-content p {
  margin-bottom: var(--sp-4);
  color: var(--color-text-muted);
  line-height: 1.85;
}
.legal-content ul {
  list-style: disc;
  margin-left: var(--sp-6);
  margin-bottom: var(--sp-4);
}
.legal-content ul li {
  color: var(--color-text-muted);
  font-size: var(--text-base);
  line-height: 1.8;
  margin-bottom: var(--sp-2);
}
.legal-content a {
  color: var(--color-primary);
  text-decoration: underline;
}
.legal-content strong { color: var(--color-text); }

.legal-date {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-text-light);
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: var(--sp-10);
}

/* =============================================
   THANKS PAGE
   ============================================= */
.thanks-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
}

.thanks-card {
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-2xl);
  padding: clamp(3rem, 6vw, 5rem) clamp(2rem, 5vw, 5rem);
  text-align: center;
  max-width: 540px;
  width: 100%;
  margin: 0 var(--sp-4);
}

.thanks-icon {
  width: 88px;
  height: 88px;
  background: rgba(230,184,92,0.15);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--sp-6);
  color: var(--color-accent);
}

.thanks-card h1 {
  font-size: var(--text-4xl);
  color: var(--color-white);
  margin-bottom: var(--sp-4);
}
.thanks-card p {
  color: rgba(255,255,255,0.72);
  line-height: 1.75;
  margin-bottom: var(--sp-10);
}

/* =============================================
   UTILITY
   ============================================= */
.mt-auto { margin-top: auto; }
.mb-0 { margin-bottom: 0; }
.text-balance { text-wrap: balance; }

.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;
}

/* =============================================
   RESPONSIVE — TABLET (≤ 1024px)
   ============================================= */
@media (max-width: 1024px) {
  .nav-list, .nav-cta { display: none; }
  .burger { display: flex; }

  .services-grid,
  .why-grid,
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid::before { display: none; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cert-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-info-grid { grid-template-columns: repeat(2, 1fr); }

  .about-split { grid-template-columns: 1fr; gap: var(--sp-10); }
  .about-img { aspect-ratio: 16/9; }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
}

/* =============================================
   RESPONSIVE — MOBILE (≤ 640px)
   ============================================= */
@media (max-width: 640px) {
  :root { --section-py: clamp(3rem, 8vw, 5rem); }

  .services-grid,
  .why-grid,
  .testimonials-grid,
  .cert-grid,
  .contact-info-grid { grid-template-columns: 1fr; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: var(--sp-4); }
  .process-grid { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }

  .hero-form { flex-direction: column; }
  .hero-cta-row { flex-direction: column; align-items: flex-start; }

  .footer-bottom { flex-direction: column; align-items: flex-start; }

  .trust-strip-inner { gap: var(--sp-4); }
  .trust-sep { display: none; }
}

/* =============================================
   MOBILE OVERFLOW SAFETY NET
   ============================================= */
section, header, footer, .hero, .page-hero, .trust-strip,
.js-marquee-wrap, .promo-section, .site-footer, .site-header {
  overflow-x: hidden;
  max-width: 100%;
  box-sizing: border-box;
}

@media (max-width: 1024px) {
  .hero-img { transform: none !important; transition: none !important; }
}

/* Final safety net */
html, body {
  overflow-x: hidden !important;
  max-width: 100vw;
}
