/* ═══════════════════════════════════════════════════════════
   Renova Statik Mühendislik — Design System & Styles
   Original design: Navy + Brushed Steel + Warm Copper
   ═══════════════════════════════════════════════════════════ */

/* ── CSS Custom Properties ───────────────────────────────── */
:root {
  /* Primary Palette — from logo */
  --navy:        #162A45;
  --navy-deep:   #0E1D32;
  --navy-mid:    #1E3A5F;
  --steel:       #8494A7;
  --steel-light: #B8C4D0;
  --steel-pale:  #D6DDE5;

  /* Accent — warm copper/bronze for sophistication */
  --copper:      #C47832;
  --copper-light:#D4915E;
  --copper-glow: rgba(196, 120, 50, 0.15);

  /* Surfaces */
  --bg-warm:     #F8F6F3;
  --bg-white:    #FFFFFF;
  --bg-section:  #F0EDE8;
  --border-light:rgba(22, 42, 69, 0.10);

  /* Text */
  --text-dark:   #1A1A2E;
  --text-body:   #3D3D56;
  --text-muted:  #6B7280;
  --text-light:  #E8E8EC;
  --text-white:  #FFFFFF;

  /* Status */
  --success:     #22C55E;
  --error:       #EF4444;

  /* Spacing Scale */
  --space-xs:    0.5rem;
  --space-sm:    1rem;
  --space-md:    1.5rem;
  --space-lg:    2.5rem;
  --space-xl:    4rem;
  --space-2xl:   6rem;
  --space-3xl:   8rem;

  /* Layout */
  --max-width:   1280px;
  --header-h:    110px;

  /* Radius */
  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --radius-xl:   28px;

  /* Shadows */
  --shadow-sm:   0 2px 8px rgba(22,42,69,0.06);
  --shadow-md:   0 4px 20px rgba(22,42,69,0.10);
  --shadow-lg:   0 12px 40px rgba(22,42,69,0.14);
  --shadow-xl:   0 20px 60px rgba(22,42,69,0.18);
  --shadow-glow: 0 0 30px rgba(196,120,50,0.25);

  /* Transitions */
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-fast:    0.2s;
  --dur-med:     0.4s;
  --dur-slow:    0.7s;
}

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

html,
body {
  overflow-x: hidden !important;
  max-width: 100vw !important;
  width: 100% !important;
  position: relative;
}

html {
  /* Browser rubber-band/overscroll surface; matches both the hero and footer. */
  background-color: var(--navy-deep);
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-body);
  /* Keep the page layer transparent so Safari reveals the root color on bounce. */
  background-color: transparent;
  line-height: 1.7;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--dur-fast) ease;
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  font-size: inherit;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* ── Typography ───────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Syne', 'Inter', sans-serif;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

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

p {
  max-width: 65ch;
  line-height: 1.8;
}

/* ── Layout Utilities ─────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
}

.section {
  padding: var(--space-3xl) 0;
  position: relative;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: 'Syne', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--copper);
  margin-bottom: var(--space-md);
}

.section-label::before {
  content: '';
  width: 40px;
  height: 2px;
  background: var(--copper);
  display: block;
}

.section-header {
  margin-bottom: var(--space-xl);
}

.section-header.text-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.section-header.text-center .section-label {
  justify-content: center;
  margin-left: auto;
  margin-right: auto;
}

.section-header.text-center .section-title {
  text-align: center;
}

.section-header.text-center .section-subtitle {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section-title {
  margin-bottom: var(--space-sm);
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 50ch;
}

/* ── Scroll Reveal Animations ─────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity var(--dur-slow) var(--ease-out),
              transform var(--dur-slow) var(--ease-out);
}

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

.reveal-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity var(--dur-slow) var(--ease-out),
              transform var(--dur-slow) var(--ease-out);
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity var(--dur-slow) var(--ease-out),
              transform var(--dur-slow) var(--ease-out);
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Stagger children */
.stagger-children .reveal:nth-child(1) { transition-delay: 0s; }
.stagger-children .reveal:nth-child(2) { transition-delay: 0.1s; }
.stagger-children .reveal:nth-child(3) { transition-delay: 0.2s; }
.stagger-children .reveal:nth-child(4) { transition-delay: 0.3s; }
.stagger-children .reveal:nth-child(5) { transition-delay: 0.4s; }
.stagger-children .reveal:nth-child(6) { transition-delay: 0.5s; }
.stagger-children .reveal:nth-child(7) { transition-delay: 0.6s; }

/* Remove the entrance stagger once reveal is complete so hover stays responsive. */
.stagger-children .reveal.reveal-complete {
  transition-delay: 0s;
}

/* ══════════════════════════════════════════════════════════
   HEADER / NAVIGATION
   ══════════════════════════════════════════════════════════ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-h);
  z-index: 1000;
  transition: height var(--dur-med) var(--ease-out),
              background var(--dur-med) ease,
              box-shadow var(--dur-med) ease,
              backdrop-filter var(--dur-med) ease;
}

.header.scrolled {
  height: 68px;
  background: rgba(14, 29, 50, 0.95);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 4px 30px rgba(0,0,0,0.25);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
}

.header-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #FFFFFF;
  padding: 6px 16px;
  border-radius: 14px;
  box-shadow: 0 5px 21px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.9);
  margin-top: 14px;
  transition: all var(--dur-med) var(--ease-out);
}

.header-logo:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.header-logo img {
  height: 88px;
  width: auto;
  display: block;
  transition: height var(--dur-med) var(--ease-out);
}

.header.scrolled .header-logo {
  padding: 4px 10px;
  border-radius: 7px;
  margin-top: 0;
}

.header.scrolled .header-logo img {
  height: 44px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-light);
  position: relative;
  padding: 0.25rem 0;
  transition: color var(--dur-fast) ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--copper);
  transition: width var(--dur-med) var(--ease-out);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-white);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* Home icon in nav */
.nav-links a.nav-home {
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-links a.nav-home .nav-home-text {
  display: none;
}

.nav-links a.nav-home svg {
  width: 20px;
  height: 20px;
}


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

/* Language Toggle */
.lang-toggle {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.08);
  border-radius: 100px;
  padding: 4px;
  border: 1px solid rgba(255,255,255,0.12);
}

.lang-btn {
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--steel-light);
  transition: all var(--dur-fast) ease;
  letter-spacing: 0.05em;
}

.lang-btn.active {
  background: var(--copper);
  color: var(--text-white);
  box-shadow: 0 2px 8px rgba(196,120,50,0.4);
}

/* CTA Button */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 12px 28px;
  background: var(--copper);
  color: var(--text-white);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 100px;
  transition: all var(--dur-med) var(--ease-out);
  box-shadow: 0 4px 15px rgba(196,120,50,0.3);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--dur-fast) ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(196,120,50,0.4);
  background: var(--copper-light);
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 12px 28px;
  background: transparent;
  color: var(--text-white);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 100px;
  border: 2px solid rgba(255,255,255,0.3);
  transition: all var(--dur-med) var(--ease-out);
}

.btn-secondary:hover {
  border-color: var(--text-white);
  background: rgba(255,255,255,0.08);
  transform: translateY(-2px);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  width: 28px;
  cursor: pointer;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-white);
  border-radius: 2px;
  transition: all var(--dur-med) var(--ease-out);
  transform-origin: center;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translateY(5.6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translateY(-5.6px);
}

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

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

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

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(14,29,50,0.92) 0%,
    rgba(22,42,69,0.80) 40%,
    rgba(22,42,69,0.60) 100%
  );
}

/* Geometric accent line */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 15%;
  width: 1px;
  height: 100%;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(196,120,50,0.3) 30%,
    rgba(196,120,50,0.3) 70%,
    transparent 100%
  );
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 720px;
  padding-top: var(--header-h);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 8px 20px;
  background: rgba(196,120,50,0.15);
  border: 1px solid rgba(196,120,50,0.3);
  border-radius: 100px;
  color: var(--copper-light);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-lg);
  backdrop-filter: blur(10px);
}

.hero-badge svg {
  width: 16px;
  height: 16px;
}

.hero-title {
  color: var(--text-white);
  font-size: clamp(2.8rem, 5.5vw, 4.2rem);
  line-height: 1.1;
  margin-bottom: var(--space-md);
}

.hero-title .highlight {
  color: var(--copper-light);
  position: relative;
}

.hero-description {
  color: var(--steel-light);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.8;
  margin-bottom: var(--space-xl);
  max-width: 55ch;
}

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

/* Floating stats on right side of hero */
.hero-stats {
  position: absolute;
  right: 6%;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-stat {
  background: rgba(14, 29, 50, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(196, 120, 50, 0.35);
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem;
  text-align: center;
  min-width: 170px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transition: transform var(--dur-med) var(--ease-out),
              border-color var(--dur-med) ease;
}

.hero-stat:hover {
  transform: translateY(-4px);
  border-color: rgba(196,120,50,0.6);
}

.hero-stat h3,
.hero-stat-number {
  font-family: 'Syne', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--copper-light) !important;
  line-height: 1;
  margin-bottom: 0.35rem;
}

.hero-stat p,
.hero-stat-label {
  font-size: 0.85rem;
  color: var(--steel-pale) !important;
  font-weight: 500;
  margin: 0;
}

/* ── Standards Marquee Strip ─────────────────────────────── */
.marquee-strip {
  background: var(--navy);
  padding: 1rem 0;
  overflow: hidden;
  border-top: 1px solid rgba(196,120,50,0.2);
  border-bottom: 1px solid rgba(196,120,50,0.2);
}

.marquee-track {
  display: flex;
  animation: marqueeScroll 30s linear infinite;
  width: max-content;
  will-change: transform;
}

.marquee-group {
  display: flex;
  flex-shrink: 0;
  min-width: 100vw;
  justify-content: space-between;
  gap: 3rem;
  padding-inline: 1.5rem;
}

.marquee-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Syne', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--steel-light);
  white-space: nowrap;
  letter-spacing: 0.05em;
}

.marquee-item .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--copper);
  flex-shrink: 0;
}

@keyframes marqueeScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ══════════════════════════════════════════════════════════
   ABOUT SECTION
   ══════════════════════════════════════════════════════════ */
.about {
  background: var(--bg-white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.about-image-wrapper {
  position: relative;
}

.about-image-wrapper img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

/* Decorative corner accent */
.about-image-wrapper::before {
  content: '';
  position: absolute;
  top: -12px;
  left: -12px;
  width: 80px;
  height: 80px;
  border-top: 3px solid var(--copper);
  border-left: 3px solid var(--copper);
  border-radius: var(--radius-sm) 0 0 0;
  z-index: 1;
}

.about-image-wrapper::after {
  content: '';
  position: absolute;
  bottom: -12px;
  right: -12px;
  width: 80px;
  height: 80px;
  border-bottom: 3px solid var(--copper);
  border-right: 3px solid var(--copper);
  border-radius: 0 0 var(--radius-sm) 0;
}

.about-text h2 {
  margin-bottom: var(--space-md);
}

.about-description {
  color: var(--text-body);
  margin-bottom: var(--space-lg);
  font-size: 1.05rem;
}

.about-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.about-value {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: var(--radius-md);
  background: var(--bg-warm);
  transition: all var(--dur-med) var(--ease-out);
}

.about-value:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.about-value-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--copper-light);
}

.about-value-icon svg {
  width: 22px;
  height: 22px;
}

.about-value h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.4;
}

.about-value-text {
  min-width: 0;
}

.about-value-text p {
  margin-top: 0.2rem;
  color: var(--text-muted);
  font-size: 0.76rem;
  line-height: 1.4;
}

/* ══════════════════════════════════════════════════════════
   SERVICES SECTION
   ══════════════════════════════════════════════════════════ */
.services {
  background: var(--bg-warm);
  position: relative;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: var(--space-xl);
}

.service-card {
  position: relative;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid rgba(22,42,69,0.06);
  transition: all var(--dur-fast) var(--ease-out);
  overflow: hidden;
  cursor: default;
}

.service-card::before {
  content: attr(data-number);
  position: absolute;
  top: -10px;
  right: 10px;
  font-family: 'Syne', sans-serif;
  font-size: 5rem;
  font-weight: 800;
  color: rgba(22,42,69,0.03);
  line-height: 1;
  pointer-events: none;
  transition: color var(--dur-fast) ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(196,120,50,0.2);
}

.service-card:hover::before {
  color: rgba(196,120,50,0.08);
}

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  transition: all var(--dur-fast) var(--ease-out);
}

.service-card:hover .service-icon {
  background: linear-gradient(135deg, var(--copper) 0%, var(--copper-light) 100%);
  box-shadow: var(--shadow-glow);
}

.service-icon svg {
  width: 26px;
  height: 26px;
  color: var(--text-white);
}

.service-card h3 {
  margin-bottom: 0.75rem;
  font-size: 1.15rem;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

/* Extra Services — tags/badges */
.extra-services {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.extra-service-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 10px 20px;
  background: var(--bg-white);
  border: 1px solid var(--steel-pale);
  border-radius: 100px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-dark);
  transition: all var(--dur-med) var(--ease-out);
}

.extra-service-tag svg {
  width: 16px;
  height: 16px;
  color: var(--copper);
}

.extra-service-tag:hover {
  border-color: var(--copper);
  background: rgba(196, 120, 50, 0.05);
  transform: translateY(-2px);
}

.extra-services-label {
  width: 100%;
  text-align: center;
  font-family: 'Syne', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--steel);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

/* ══════════════════════════════════════════════════════════
   REGULATIONS / STANDARDS SECTION
   ══════════════════════════════════════════════════════════ */
.regulations {
  background: var(--navy-deep);
  color: var(--text-light);
  position: relative;
  overflow: hidden;
}

/* Subtle grid pattern overlay */
.regulations::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(196,120,50,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(196,120,50,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.regulations .section-title {
  color: var(--text-white);
}

.regulations .section-subtitle {
  color: var(--steel-light);
}

.reg-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: var(--space-lg);
  flex-wrap: wrap;
}

.reg-tab {
  padding: 12px 24px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--steel-light);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  transition: all var(--dur-med) var(--ease-out);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.reg-tab:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.15);
}

.reg-tab.active {
  background: var(--copper);
  color: var(--text-white);
  border-color: var(--copper);
  box-shadow: 0 4px 15px rgba(196,120,50,0.3);
}

.reg-tab .flag {
  font-size: 1.1rem;
}

.reg-content {
  display: none;
}

.reg-content.active {
  display: block;
  animation: fadeIn 0.4s var(--ease-out);
}

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

.reg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.reg-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  transition: all var(--dur-med) var(--ease-out);
}

.reg-card:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(196,120,50,0.4);
  transform: translateY(-2px);
}

.reg-card-code {
  font-family: 'Syne', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--copper-light);
  display: block;
}

.reg-card-name {
  font-size: 0.88rem;
  color: var(--steel-light);
  line-height: 1.5;
  display: block;
}

/* ══════════════════════════════════════════════════════════
   PROJECTS / PORTFOLIO SECTION
   ══════════════════════════════════════════════════════════ */
.projects {
  background: var(--bg-white);
}

.project-filters {
  display: flex;
  gap: 0.5rem;
  margin-bottom: var(--space-lg);
  flex-wrap: wrap;
  justify-content: center;
}

.filter-btn {
  padding: 10px 22px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-muted);
  background: var(--bg-warm);
  border: 1px solid transparent;
  transition: all var(--dur-med) var(--ease-out);
  cursor: pointer;
}

.filter-btn:hover {
  color: var(--text-dark);
  border-color: var(--steel-pale);
}

.filter-btn.active {
  background: var(--navy);
  color: var(--text-white);
  border-color: var(--navy);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.project-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
  background: var(--navy);
  transition: transform var(--dur-med) var(--ease-out),
              box-shadow var(--dur-med) var(--ease-out);
}

.project-card[hidden] {
  display: none;
}

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

.project-card:focus-visible {
  outline: 3px solid var(--copper);
  outline-offset: 4px;
}

.project-card-img {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out);
}

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

.project-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(14,29,50,0.95) 0%,
    rgba(14,29,50,0.3) 50%,
    transparent 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  transition: background var(--dur-med) ease;
}

.project-card:hover .project-card-overlay {
  background: linear-gradient(
    to top,
    rgba(14,29,50,0.98) 0%,
    rgba(14,29,50,0.5) 60%,
    rgba(14,29,50,0.2) 100%
  );
}

.project-card-category {
  display: inline-block;
  padding: 4px 12px;
  background: var(--copper);
  color: var(--text-white);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 100px;
  margin-bottom: 0.5rem;
  width: fit-content;
}

@media (min-width: 769px) {
  .project-card-category {
    max-width: 100%;
    white-space: nowrap;
  }

  .project-card-category--compact {
    font-size: clamp(0.52rem, 0.7vw, 0.6rem);
    letter-spacing: 0.07em;
  }
}

.project-card h3 {
  color: var(--text-white);
  font-size: 1.15rem;
  margin-bottom: 0.25rem;
}

.project-card-location {
  color: var(--steel-light);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.project-card-location svg {
  width: 14px;
  height: 14px;
}

.project-card-action {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(-10px);
  transition: all var(--dur-med) var(--ease-out);
  color: var(--text-white);
}

.project-card:hover .project-card-action {
  opacity: 1;
  transform: translateY(0);
}

/* ── Project Modal ───────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(14,29,50,0.8);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: all var(--dur-med) var(--ease-out);
}

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

.modal {
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  max-width: 900px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  overscroll-behavior: none;
  scrollbar-width: none;
  -ms-overflow-style: none;
  transform: scale(0.9) translateY(20px);
  transition: transform var(--dur-med) var(--ease-spring);
  box-shadow: var(--shadow-xl);
}

.modal::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.modal-overlay.active .modal {
  transform: scale(1) translateY(0);
}

.modal-header {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.modal-header img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-white);
  cursor: pointer;
  transition: all var(--dur-fast) ease;
  border: none;
}

.modal-close:hover {
  background: var(--copper);
  transform: rotate(90deg);
}

.modal-close svg {
  width: 20px;
  height: 20px;
}

.modal-body {
  padding: 2rem;
}

.modal-body h2 {
  margin-bottom: 0.5rem;
}

.modal-meta {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.modal-meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.modal-meta-item svg {
  width: 18px;
  height: 18px;
  color: var(--copper);
}

.modal-description {
  color: var(--text-body);
  line-height: 1.8;
}

.modal-project-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.modal-project-details[hidden] {
  display: none;
}

.modal-detail-item {
  padding: 1rem 1.1rem;
  background: var(--bg-warm);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
}

.modal-detail-item--wide {
  grid-column: 1 / -1;
}

.modal-detail-label {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--copper);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.modal-detail-item strong {
  color: var(--text-dark);
  font-size: 0.95rem;
}

.modal-technical-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.modal-technical-list li {
  position: relative;
  padding-left: 1rem;
  color: var(--text-body);
  font-size: 0.9rem;
  line-height: 1.55;
}

.modal-technical-list li::before {
  content: "";
  position: absolute;
  top: 0.65em;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--copper);
}

/* ══════════════════════════════════════════════════════════
   CONTACT SECTION
   ══════════════════════════════════════════════════════════ */
.contact {
  background: var(--bg-warm);
}

.contact-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.contact-top {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-xl);
  align-items: start;
}

.contact-info {
  padding-right: var(--space-md);
}

.contact-info h2 {
  margin-bottom: var(--space-md);
}

.contact-info > p {
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.contact-detail-link {
  margin: -0.4rem -0.75rem 0.1rem;
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius-md);
  transition: background var(--dur-fast) ease,
              transform var(--dur-fast) ease,
              box-shadow var(--dur-fast) ease;
}

.contact-detail-link:hover {
  background: rgba(255, 255, 255, 0.75);
  box-shadow: var(--shadow-sm);
  transform: translateX(4px);
}

.contact-detail-link:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 3px;
}

.contact-detail-link:hover p {
  color: var(--text-body);
}

.contact-detail svg {
  width: 24px;
  height: 24px;
  color: var(--copper);
  flex-shrink: 0;
  margin-top: 3px;
}

.contact-detail strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.15rem;
}

.contact-detail p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.contact-map {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: visible;
  border: 1px solid rgba(22, 42, 69, 0.08);
  background: transparent;
  box-shadow:
    0 22px 55px rgba(22, 42, 69, 0.12),
    0 5px 16px rgba(22, 42, 69, 0.06);
  height: 100%;
  min-height: 380px;
  transition: border-color var(--dur-fast) ease,
              box-shadow var(--dur-fast) ease;
}

.contact-map::before,
.contact-map::after {
  content: '';
  position: absolute;
  z-index: 2;
  width: 80px;
  height: 80px;
  pointer-events: none;
}

.contact-map::before {
  top: -12px;
  left: -12px;
  border-top: 3px solid var(--copper);
  border-left: 3px solid var(--copper);
  border-radius: var(--radius-sm) 0 0 0;
}

.contact-map::after {
  right: -12px;
  bottom: -12px;
  border-right: 3px solid var(--copper);
  border-bottom: 3px solid var(--copper);
  border-radius: 0 0 var(--radius-sm) 0;
}

.contact-map:focus-within {
  border-color: rgba(196, 120, 50, 0.34);
  box-shadow:
    0 22px 55px rgba(22, 42, 69, 0.13),
    0 0 0 3px var(--copper-glow);
}

.contact-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: calc(var(--radius-lg) - 1px);
}

/* Contact Form */
.contact-form-wrapper {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 100% 0, rgba(196, 120, 50, 0.055), transparent 24rem),
    linear-gradient(180deg, #FFFFFF 0%, #FCFBF9 100%);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 4vw, 3rem);
  box-shadow: 0 20px 55px rgba(22, 42, 69, 0.09);
  border: 1px solid rgba(22, 42, 69, 0.08);
}

.contact-form-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: clamp(1.75rem, 4vw, 3rem);
  width: 74px;
  height: 3px;
  background: linear-gradient(90deg, var(--copper), var(--copper-light));
  border-radius: 0 0 4px 4px;
}

.form-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-lg);
}

.form-eyebrow {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--copper);
  font-family: 'Syne', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.form-row-4 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-heading h3 {
  margin-bottom: 0.4rem;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
}

.form-heading p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.form-response-time {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 0.75rem;
  min-width: 210px;
  padding: 0.75rem 0.95rem;
  border: 1px solid rgba(22, 42, 69, 0.08);
  border-radius: var(--radius-md);
  background: rgba(248, 246, 243, 0.8);
}

.form-response-time > svg {
  color: var(--copper);
  flex-shrink: 0;
}

.form-response-time span {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}

.form-response-time small {
  color: var(--text-muted);
  font-size: 0.7rem;
}

.form-response-time strong {
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 700;
}

.contact-form-wrapper form {
  margin-top: 2rem;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem;
  margin-bottom: 1.15rem;
}

.form-field {
  min-width: 0;
}

.form-field label {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  min-height: 22px;
  margin-bottom: 0.5rem;
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.01em;
}

.form-required {
  color: var(--copper);
}

.form-optional {
  margin-left: auto;
  color: var(--text-muted);
  font-size: 0.66rem;
  font-weight: 500;
}

.contact-form-wrapper input,
.contact-form-wrapper textarea,
.contact-form-wrapper select {
  width: 100%;
  padding: 0.88rem 1rem;
  border: 1px solid rgba(132, 148, 167, 0.42);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text-dark);
  transition: border-color var(--dur-fast) ease,
              background var(--dur-fast) ease,
              box-shadow var(--dur-fast) ease;
  outline: none;
  margin-bottom: 0;
  font-size: 0.9rem;
}

.contact-form-wrapper input,
.contact-form-wrapper select {
  min-height: 52px;
}

.contact-form-wrapper input::placeholder,
.contact-form-wrapper textarea::placeholder {
  color: #98A0AA;
}

.contact-form-wrapper input:hover,
.contact-form-wrapper textarea:hover,
.contact-form-wrapper select:hover {
  border-color: rgba(22, 42, 69, 0.42);
}

.form-row input,
.form-row select {
  margin-bottom: 0;
}

.contact-form-wrapper input:focus,
.contact-form-wrapper textarea:focus,
.contact-form-wrapper select:focus {
  border-color: var(--copper);
  background: var(--bg-white);
  box-shadow: 0 0 0 3px var(--copper-glow);
}

.contact-form-wrapper textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.65;
}

.form-captcha-row {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(22, 42, 69, 0.08);
}

.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  margin-top: 1.25rem;
}

.form-privacy {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text-muted);
  font-size: 0.74rem;
  line-height: 1.5;
}

.form-privacy svg {
  flex-shrink: 0;
  color: var(--copper);
}

.form-privacy a {
  margin-left: 0.3rem;
  color: var(--navy);
  font-weight: 700;
  text-underline-offset: 3px;
}

.form-submit {
  width: auto;
  min-width: 220px;
  padding: 0.9rem 1.5rem;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  color: var(--text-white);
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: all var(--dur-med) var(--ease-out);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 0;
}

.form-submit:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.form-submit svg {
  width: 20px;
  height: 20px;
  transition: transform var(--dur-med) var(--ease-out);
}

.form-submit:hover svg {
  transform: translateX(4px);
}

/* Form Status Dialog */
.form-status-dialog {
  position: fixed;
  inset: 0;
  width: min(430px, calc(100vw - 2rem));
  max-width: none;
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: var(--radius-lg);
  background: transparent;
  color: var(--text-dark);
  overflow: visible;
}

.form-status-dialog::backdrop {
  background: rgba(14, 29, 50, 0.68);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.form-status-dialog[open] {
  animation: formDialogIn var(--dur-med) var(--ease-out);
}

.form-status-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem;
  border: 1px solid rgba(22, 42, 69, 0.08);
  border-radius: var(--radius-lg);
  background: var(--bg-white);
  box-shadow: var(--shadow-xl);
  text-align: center;
}

.form-status-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 1.25rem;
  border-radius: 50%;
}

.form-status-icon svg {
  width: 28px;
  height: 28px;
}

.form-status-icon-success,
.form-status-icon-error {
  display: none;
}

.form-status-dialog[data-state="success"] .form-status-icon {
  color: var(--success);
  background: rgba(34, 197, 94, 0.1);
}

.form-status-dialog[data-state="success"] .form-status-icon-success,
.form-status-dialog[data-state="error"] .form-status-icon-error {
  display: block;
}

.form-status-dialog[data-state="error"] .form-status-icon {
  color: var(--error);
  background: rgba(239, 68, 68, 0.1);
}

.form-status-panel h3 {
  margin-bottom: 0.65rem;
  font-size: 1.35rem;
}

.form-status-panel p {
  max-width: 36ch;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

.form-status-close {
  min-width: 140px;
  margin-top: 1.5rem;
  padding: 0.75rem 1.25rem;
  border: 0;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  color: var(--text-white);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out);
}

.form-status-close:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.form-status-close:focus-visible {
  outline: 3px solid var(--copper-glow);
  outline-offset: 3px;
}

@keyframes formDialogIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ══════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════ */
.footer {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(14, 29, 50, 0.98), rgba(10, 23, 40, 0.99)),
    var(--navy-deep);
  color: var(--steel-light);
  padding: 0 0 var(--space-lg);
}

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

.footer-cta {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xl);
  padding: clamp(2rem, 4vw, 3.25rem);
  margin-bottom: var(--space-xl);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-top: 0;
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  background:
    radial-gradient(circle at 88% 15%, rgba(255, 255, 255, 0.13), transparent 32%),
    linear-gradient(120deg, var(--copper) 0%, #A75E24 100%);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.24);
  overflow: hidden;
}

.footer-cta::after {
  content: '';
  position: absolute;
  width: 280px;
  height: 280px;
  right: -90px;
  bottom: -190px;
  border: 34px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}

.footer-cta-content {
  position: relative;
  z-index: 1;
}

.footer-cta-label {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
  color: rgba(255, 255, 255, 0.82);
  font-family: 'Syne', sans-serif;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.footer-cta-label::before {
  content: '';
  width: 28px;
  height: 2px;
  background: currentColor;
}

.footer-cta h2 {
  max-width: 720px;
  margin-bottom: 0.55rem;
  color: var(--text-white);
  font-size: clamp(1.7rem, 3vw, 2.55rem);
}

.footer-cta p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.95rem;
}

.footer-cta-button {
  position: relative;
  z-index: 1;
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  min-width: 164px;
  padding: 1rem 1.35rem;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-md);
  background: var(--text-white);
  color: var(--navy-deep);
  font-size: 0.92rem;
  font-weight: 700;
  box-shadow: 0 12px 28px rgba(43, 22, 7, 0.18);
  transition: transform var(--dur-med) var(--ease-out),
              box-shadow var(--dur-med) var(--ease-out);
}

.footer-cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 17px 34px rgba(43, 22, 7, 0.26);
}

.footer-cta-button svg {
  transition: transform var(--dur-med) var(--ease-out);
}

.footer-cta-button:hover svg {
  transform: translateX(4px);
}

.footer-main-area {
  position: relative;
  isolation: isolate;
}

.footer-grid,
.footer-bottom,
.footer-credit {
  position: relative;
  z-index: 2;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.35fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  margin-bottom: var(--space-xl);
}

.footer-logo-wrapper {
  display: inline-flex;
  align-items: center;
  background: #FFFFFF;
  padding: 7px 17px;
  border-radius: 12px;
  box-shadow: 0 9px 28px rgba(0, 0, 0, 0.25);
  margin-bottom: 1.25rem;
}

.footer-brand img {
  height: 94px;
  width: auto;
  display: block;
}

.footer-brand p {
  color: var(--steel);
  font-size: 0.92rem;
  line-height: 1.7;
  max-width: 35ch;
}

.footer-standards {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.35rem;
}

.footer-standards span {
  padding: 0.38rem 0.68rem;
  border: 1px solid rgba(212, 145, 94, 0.3);
  border-radius: 100px;
  background: rgba(196, 120, 50, 0.08);
  color: var(--copper-light);
  font-family: 'Syne', sans-serif;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.footer-navigation {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(1.5rem, 3vw, 3rem);
}

.footer-links h4,
.footer-services h4,
.footer-contact h4 {
  font-family: 'Syne', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-white);
  margin-bottom: 1.25rem;
}

.footer-links nav a,
.footer-services nav a {
  display: block;
  padding: 0.35rem 0;
  color: var(--steel);
  font-size: 0.9rem;
  transition: all var(--dur-fast) ease;
}

.footer-links nav a:hover,
.footer-services nav a:hover {
  color: var(--copper-light);
  transform: translateX(4px);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin: 0 -0.65rem 0.35rem;
  padding: 0.58rem 0.65rem;
  border-radius: 9px;
  font-size: 0.9rem;
  color: var(--steel);
  line-height: 1.55;
  transition: color var(--dur-fast) ease,
              background var(--dur-fast) ease,
              transform var(--dur-fast) ease;
}

.footer-contact-item:hover {
  color: var(--text-white);
  background: rgba(255, 255, 255, 0.05);
  transform: translateX(4px);
}

.footer-contact-item svg {
  width: 18px;
  height: 18px;
  color: var(--copper);
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-hours {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--steel);
  font-size: 0.77rem;
}

.footer-hours strong {
  color: var(--steel-light);
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}

.footer-bottom {
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255,255,255,0.09);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: var(--steel);
}

.footer-bottom-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-privacy-link {
  color: var(--steel-light);
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.28);
  text-underline-offset: 4px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.footer-privacy-link:hover,
.footer-privacy-link:focus-visible {
  color: var(--text-white);
  text-decoration-color: var(--copper-light);
}

.footer-credit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  margin-top: 1.15rem;
  color: rgba(132, 148, 167, 0.62);
  font-size: 0.7rem;
  letter-spacing: 0.035em;
}

.footer-credit a {
  position: relative;
  color: var(--steel-light);
  font-weight: 700;
  letter-spacing: 0.08em;
  transition: color var(--dur-fast) ease;
}

.footer-credit a::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: -2px;
  left: 0;
  height: 1px;
  background: var(--copper);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--dur-fast) ease;
}

.footer-credit a:hover,
.footer-credit a:focus-visible {
  color: var(--copper-light);
}

.footer-credit a:hover::after,
.footer-credit a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.footer-credit a:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 4px;
  border-radius: 2px;
}

.footer-lang {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: rgba(184, 196, 208, 0.4);
}

.footer-lang .lang-btn {
  min-width: auto;
  padding: 0.25rem;
  color: var(--steel);
  font-size: 0.74rem;
}

.footer-lang .lang-btn.active,
.footer-lang .lang-btn:hover {
  background: transparent;
  color: var(--copper-light);
}

.footer-back-top {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--steel-light);
  font-size: 0.78rem;
  font-weight: 600;
  transition: color var(--dur-fast) ease;
}

.footer-back-top:hover {
  color: var(--copper-light);
}

.footer-back-top svg {
  width: 18px;
  height: 18px;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
}

/* ══════════════════════════════════════════════════════════
   MOBILE RESPONSIVE
   ══════════════════════════════════════════════════════════ */

/* ── Tablet (≤1024px) ──────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-stats {
    display: none;
  }

  .hero::before {
    display: none;
  }

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

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

  .footer-grid {
    grid-template-columns: 0.9fr 1.6fr;
    gap: var(--space-lg);
  }

  .footer-contact {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem 1rem;
  }

  .footer-contact h4,
  .footer-hours {
    grid-column: 1 / -1;
  }

}

.mobile-nav-header,
.mobile-nav-cta {
  display: none;
}

/* ── Mobile (≤768px) ───────────────────────────────────── */
@media (max-width: 768px) {
  :root {
    --header-h: 70px;
  }

  .header {
    height: 70px !important;
  }

  .header.scrolled {
    height: 60px !important;
  }

  .header-inner {
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .header-logo {
    padding: 4px 9px;
    border-radius: 9px;
    margin-top: 6px;
  }

  .header-logo img {
    height: 48px !important;
  }

  .header.scrolled .header-logo img {
    height: 40px !important;
  }

  .header.scrolled .header-logo {
    border-radius: 8px;
  }

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

  .header-actions .lang-toggle {
    display: none;
  }

  .hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    cursor: pointer;
    z-index: 1001;
    transition: all 0.2s ease;
    flex-shrink: 0;
  }

  .hamburger span {
    display: block;
    width: 18px;
    height: 2px;
    background: #FFFFFF;
    border-radius: 2px;
    transition: all 0.3s ease;
  }

  .hamburger.active {
    background: var(--copper);
    border-color: var(--copper-light);
  }

  .mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .mobile-nav-close {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    cursor: pointer;
    transition: all 0.2s ease;
  }

  .mobile-nav-close:hover {
    background: var(--copper);
  }

  .mobile-nav-cta {
    display: flex !important;
    margin-top: 1.75rem;
    width: 100%;
    justify-content: center;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    width: 85%;
    max-width: 340px;
    height: 100vh;
    height: 100dvh;
    background: rgba(14, 29, 50, 0.98);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem 1.75rem 2.5rem;
    gap: 0;
    transform: translateX(100%);
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s ease;
    box-shadow: -10px 0 40px rgba(0,0,0,0.6);
    z-index: 1002;
    border-left: 1px solid rgba(255,255,255,0.1);
  }

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

  .nav-links a {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-white);
    padding: 1rem 0;
    width: 100%;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    transition: color 0.2s ease, padding-left 0.2s ease;
  }

  .nav-links a:hover,
  .nav-links a.active {
    color: var(--copper-light);
    padding-left: 0.5rem;
  }

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

  /* Mobile: show text, hide icon */
  .nav-links a.nav-home {
    display: block;
    border-radius: 0;
  }

  .nav-links a.nav-home svg {
    display: none;
  }

  .nav-links a.nav-home .nav-home-text {
    display: inline;
  }

  .header-actions .btn-primary {
    display: none;
  }

  .reveal-right,
  .reveal-left {
    transform: translateY(30px);
  }

  .reveal-right.visible,
  .reveal-left.visible {
    transform: translateY(0);
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .about-image-wrapper {
    order: -1;
  }

  .about-values {
    grid-template-columns: 1fr;
  }

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

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

  .contact-top {
    grid-template-columns: 1fr;
  }

  .contact-map {
    min-height: 350px;
    height: 350px;
  }

  .contact-info {
    padding-right: 0;
  }

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

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

  .form-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: var(--space-md);
  }

  .form-response-time {
    width: 100%;
  }

  .form-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .form-submit {
    width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .footer-cta {
    align-items: flex-start;
    flex-direction: column;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
    padding: 1.75rem;
  }

  .footer-cta-button {
    width: 100%;
  }

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

  .footer-contact {
    grid-column: auto;
    display: block;
  }

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

  .footer-bottom-actions {
    width: 100%;
    justify-content: center;
  }

  .hero-title {
    font-size: clamp(2rem, 7vw, 3rem);
  }

  .modal {
    margin: 0;
    max-height: calc(100dvh - 2rem);
  }

  .modal-overlay {
    padding: 1rem 0.65rem;
  }

  .modal-body {
    padding: 1.5rem;
  }

  .modal-meta {
    flex-direction: column;
    gap: 0.75rem;
  }

  .modal-project-details,
  .modal-technical-list {
    grid-template-columns: 1fr;
  }

  .reg-tabs {
    gap: 0.35rem;
  }

  .reg-tab {
    padding: 10px 18px;
    font-size: 0.82rem;
  }
}

/* ── Small Mobile (≤480px) ─────────────────────────────── */
@media (max-width: 480px) {
  .modal-overlay {
    padding-right: 0.4rem;
    padding-left: 0.4rem;
  }

  .footer-navigation {
    grid-template-columns: 1fr;
  }

  .footer-bottom-actions {
    justify-content: space-between;
    gap: 1rem;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn-primary,
  .hero-actions .btn-secondary {
    width: 100%;
    justify-content: center;
  }

  .extra-services {
    gap: 0.5rem;
  }

  .extra-service-tag {
    font-size: 0.8rem;
    padding: 8px 14px;
  }

  .project-filters {
    gap: 0.35rem;
  }

  .filter-btn {
    padding: 8px 16px;
    font-size: 0.78rem;
  }

  .contact-form-wrapper {
    padding: 1.5rem;
  }
}

/* ── Reduced Motion ────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  
  .reveal, .reveal-left, .reveal-right {
    opacity: 1;
    transform: none;
  }
}
