/* ═══════════════════════════════════════════════════
   GREAT TURAN DEFENCE — Design System & Styles
   Philosophy: "Restrained Strength"
   ═══════════════════════════════════════════════════ */

/* ── Design Tokens ── */
:root {
  /* Color Palette — monochrome + one accent */
  --color-bg:        #1A1D21;   /* Graphite Black — main background */
  --color-bg-alt:    #1A1D21;   /* Graphite Black — main background */
  --color-text:      #F8F9FA;   /* White — text */
  --color-dark:      #FFFFFF;   /* White — headings */
  --color-accent:    #0F2747;   /* Navy Blue — brand color */
  --color-accent-h:  #1D487A;   /* Brighter Navy Blue for hover */
  --color-muted:     #8A96A3;   /* Muted Steel Gray text */
  --color-border:    #5A6673;   /* Steel Gray border */
  --color-white:     #FFFFFF;   /* White */

  /* Typography */
  --font-heading: 'Space Grotesk', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;

  /* Type Scale */
  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  2rem;
  --text-4xl:  2.75rem;
  --text-5xl:  3.5rem;
  --text-hero: clamp(2.2rem, 6.2vw, 5.2rem);

  /* Spacing */
  --space-xs:  4px;
  --space-sm:  8px;
  --space-md:  16px;
  --space-lg:  24px;
  --space-xl:  32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;
  --space-5xl: 128px;

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

  /* Shadows */
  --shadow-sm:  0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:  0 4px 12px rgba(0,0,0,0.06);
  --shadow-lg:  0 8px 24px rgba(0,0,0,0.08);

  /* Transitions */
  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:    cubic-bezier(0.7, 0, 0.84, 0);
  --duration:   250ms;
  --duration-lg: 400ms;

  /* Z-Index Scale */
  --z-base:    0;
  --z-above:   10;
  --z-header:  100;
  --z-overlay: 1000;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 500;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

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

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

/* ── Skip Link (Accessibility) ── */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-md);
  padding: var(--space-sm) var(--space-md);
  background: var(--color-dark);
  color: var(--color-bg);
  font-weight: 600;
  z-index: calc(var(--z-overlay) + 1);
  border-radius: 4px;
  transition: top var(--duration) var(--ease-out);
}
.skip-link:focus {
  top: var(--space-md);
}

/* ── Container ── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

@media (min-width: 768px) {
  .container { padding: 0 var(--space-2xl); }
}

/* ═══════════════════ HEADER ═══════════════════ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: var(--z-header);
  transition: background-color var(--duration-lg) var(--ease-out),
              box-shadow var(--duration-lg) var(--ease-out),
              backdrop-filter var(--duration-lg) var(--ease-out);
}

.site-header.scrolled {
  background-color: rgba(22, 23, 26, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.05);
}

.site-header.scrolled .logo,
.site-header.scrolled .nav-links a,
.site-header.scrolled .header-phone,
.site-header.scrolled .lang-btn,
.site-header.scrolled .mobile-menu-btn span {
  color: var(--color-white);
}

.site-header.scrolled .lang-btn.active {
  color: var(--color-white);
  border-color: var(--color-accent);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
  height: var(--header-h);
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--color-dark);
  transition: color var(--duration) var(--ease-out);
  flex-shrink: 0;
}

.logo-wolf {
  width: 36px;
  height: 36px;
  color: currentColor;
  animation: wolf-breathe 4s ease-in-out infinite;
}

@keyframes wolf-breathe {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.85; }
}

@media (prefers-reduced-motion: reduce) {
  .logo-wolf { animation: none; }
}

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

.logo-light {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: var(--text-sm);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.logo-bold {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-base);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* Navigation */
.nav-main {
  display: none;
}

@media (min-width: 1024px) {
  .nav-main { display: block; }
}

.nav-links {
  display: flex;
  gap: var(--space-xl);
}

.nav-links a {
  position: relative;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: var(--text-sm);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text);
  transition: color var(--duration) var(--ease-out);
  padding: var(--space-xs) 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width var(--duration) var(--ease-out);
}

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

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

/* Header actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

/* Language Switcher */
.lang-switcher {
  display: flex;
  gap: var(--space-xs);
}

.lang-btn {
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 4px 8px;
  border: 1px solid transparent;
  border-radius: 3px;
  color: var(--color-muted);
  transition: all var(--duration) var(--ease-out);
  min-width: 32px;
  min-height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lang-btn.active {
  color: var(--color-text);
  border-color: var(--color-text);
}

.lang-btn:hover {
  color: var(--color-white);
}

/* Header phone */
.header-phone {
  display: none;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text);
  transition: color var(--duration) var(--ease-out);
}

.header-phone:hover { color: var(--color-white); }

@media (min-width: 1024px) {
  .header-phone { display: flex; }
}

/* Mobile menu button */
.mobile-menu-btn {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-sm);
  min-width: 44px;
  min-height: 44px;
  justify-content: center;
  align-items: center;
}

.mobile-menu-btn span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: currentColor;
  color: var(--color-text);
  transition: transform var(--duration) var(--ease-out),
              opacity var(--duration) var(--ease-out);
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}
.mobile-menu-btn.active span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

@media (min-width: 1024px) {
  .mobile-menu-btn { display: none; }
}

/* Mobile Navigation Overlay */
.nav-main.mobile-open {
  display: flex;
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(22, 23, 26, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: var(--z-overlay);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  animation: fadeIn var(--duration) var(--ease-out);
}

.nav-main.mobile-open .nav-links {
  flex-direction: column;
  align-items: center;
  gap: var(--space-2xl);
}

.nav-main.mobile-open .nav-links a {
  color: var(--color-bg);
  font-size: var(--text-2xl);
  letter-spacing: 0.15em;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ═══════════════════ HERO ═══════════════════ */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  background: var(--color-bg);
  overflow: hidden;
  padding: var(--space-4xl) 0 var(--space-3xl);
}

.hero-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  position: relative;
  z-index: var(--z-above);
}

@media (min-width: 768px) {
  .hero-container {
    justify-content: flex-start;
  }
}

/* Background Wolf Emblem */
.hero-bg-emblem {
  position: absolute;
  right: 2%;
  top: 50%;
  transform: translateY(-50%) translate(var(--parallax-x, 0px), var(--parallax-y, 0px));
  width: clamp(120px, 21vw, 240px);
  height: auto;
  opacity: 0.4;
  pointer-events: none;
  color: var(--color-muted);
  transition: transform 0.2s var(--ease-out);
}

.hero-wolf-svg {
  width: 100%;
  height: auto;
}

/* Wolf stroke animation */
.wolf-stroke {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

.wolf-shield {
  animation: drawStroke 2s var(--ease-out) 0.3s forwards;
}
.wolf-body {
  animation: drawStroke 1.8s var(--ease-out) 0.8s forwards;
}
.wolf-detail {
  animation: drawStroke 1s var(--ease-out) 1.6s forwards;
}
.wolf-fur {
  animation: drawStroke 1.4s var(--ease-out) 1.0s forwards;
}
.wolf-ears {
  animation: drawStroke 0.8s var(--ease-out) 1.2s forwards;
}

@keyframes drawStroke {
  to { stroke-dashoffset: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .wolf-stroke {
    stroke-dashoffset: 0;
    animation: none;
  }
}

/* Hero Grid & Layout */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3xl);
  align-items: center;
  width: 100%;
  z-index: var(--z-above);
}

@media (min-width: 992px) {
  .hero-grid {
    grid-template-columns: 1.2fr 1fr;
    gap: var(--space-4xl);
  }
}

/* Hero Content */
.hero-content {
  position: relative;
  max-width: 720px;
  text-align: center;
}

@media (min-width: 768px) {
  .hero-content { text-align: left; }
}

@media (min-width: 992px) {
  .hero-bg-emblem { right: 6%; }
}

/* Interactive Globe Styles */
.about-globe-visual {
  grid-column: span 2;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  width: 100%;
  margin-top: var(--space-xl);
}

.globe-wrapper {
  position: relative;
  width: 100%;
  max-width: 340px;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

#globe-canvas {
  cursor: grab;
  width: 100%;
  height: 100%;
  border-radius: var(--radius);
  background: transparent;
  transition: transform var(--duration) var(--ease-out);
}

#globe-canvas:active {
  cursor: grabbing;
}

.globe-instructions {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: var(--text-xs);
  color: var(--color-muted);
  background: rgba(255, 255, 255, 0.05);
  padding: 4px 12px;
  border-radius: 20px;
  pointer-events: none;
  font-family: var(--font-body);
  white-space: nowrap;
  letter-spacing: 0.05em;
  border: 1px solid var(--color-border);
}

.hero-title {
  display: flex;
  flex-direction: column;
  margin-bottom: var(--space-lg);
}

.hero-title-light {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: var(--text-hero);
  letter-spacing: 0.15em;
  line-height: 1;
  color: var(--color-text);
  opacity: 0;
  transform: translateY(20px);
  animation: heroReveal 0.8s var(--ease-out) 0.5s forwards;
}

.hero-title-bold {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-hero);
  letter-spacing: 0.25em;
  line-height: 1;
  color: var(--color-dark);
  opacity: 0;
  transform: translateY(20px);
  animation: heroReveal 0.8s var(--ease-out) 0.7s forwards;
}

.hero-title-third {
  animation-delay: 0.9s;
}

.hero-subtitle {
  font-family: var(--font-heading);
  font-size: clamp(var(--text-lg), 2.5vw, var(--text-xl));
  font-weight: 500;
  color: var(--color-accent);
  letter-spacing: 0.02em;
  margin-bottom: var(--space-lg);
  opacity: 0;
  transform: translateY(20px);
  animation: heroReveal 0.8s var(--ease-out) 1.1s forwards;
}

.hero-desc {
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--color-muted);
  max-width: 620px;
  line-height: 1.7;
  margin-bottom: var(--space-xl);
  opacity: 0;
  transform: translateY(20px);
  animation: heroReveal 0.8s var(--ease-out) 1.3s forwards;
}

@media (min-width: 768px) {
  .hero-desc { margin-right: auto; }
}

@keyframes heroReveal {
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-title-light,
  .hero-title-bold,
  .hero-subtitle,
  .hero-desc {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

/* CTA Button */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 14px 36px;
  background: var(--color-dark);
  color: var(--color-bg);
  border: 1px solid var(--color-dark);
  cursor: pointer;
  transition: all var(--duration) var(--ease-out);
  min-height: 48px;
  opacity: 0;
  transform: translateY(20px);
  animation: heroReveal 0.8s var(--ease-out) 1.5s forwards;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-white);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-primary:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .btn-primary {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

/* Scroll Indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: var(--space-xl);
  left: 50%;
  transform: translateX(-50%);
}

.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--color-muted), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50% { opacity: 0.4; transform: scaleY(0.6); transform-origin: top; }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-line { animation: none; }
}

/* ═══════════════════ SECTIONS (General) ═══════════════════ */
.section {
  padding: var(--space-4xl) 0;
}

@media (min-width: 768px) {
  .section { padding: var(--space-5xl) 0; }
}

.section-label {
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: var(--space-md);
}

.section-label--light {
  color: var(--color-white);
}

.section-heading {
  font-family: var(--font-heading);
  font-size: clamp(var(--text-3xl), 5vw, var(--text-4xl));
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: var(--color-dark);
  margin-bottom: var(--space-2xl);
}

.section-heading--light {
  color: var(--color-white);
}

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

.about-grid {
  display: grid;
  gap: var(--space-3xl);
}

@media (min-width: 768px) {
  .about-grid {
    grid-template-columns: 1.2fr 1fr;
    gap: var(--space-4xl);
    align-items: start;
  }
}

.about-narrative p {
  margin-bottom: var(--space-lg);
  color: var(--color-text);
  line-height: 1.75;
  max-width: 560px;
}

.about-narrative p:last-child {
  margin-bottom: 0;
}

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

.fact-card {
  padding: var(--space-lg);
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  transition: border-color var(--duration) var(--ease-out);
}

.fact-card:hover {
  border-color: var(--color-accent);
}

.fact-card--full {
  grid-column: span 2;
}

.fact-number {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-dark);
  line-height: 1.2;
}

.fact-label {
  font-size: var(--text-sm);
  color: var(--color-muted);
  line-height: 1.4;
}

/* ═══════════════════ EXPERTISE ═══════════════════ */
.section-expertise {
  background: var(--color-bg-alt);
}

.expertise-grid {
  display: grid;
  gap: var(--space-lg);
}

@media (min-width: 768px) {
  .expertise-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
  }
}

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

.expertise-card {
  padding: var(--space-xl);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  transition: all var(--duration) var(--ease-out);
}

.expertise-card:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.expertise-icon {
  width: 48px;
  height: 48px;
  color: var(--color-white);
  margin-bottom: var(--space-lg);
}

.expertise-icon svg {
  width: 100%;
  height: 100%;
}

.expertise-card h3 {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: var(--space-sm);
  line-height: 1.3;
}

.expertise-card p {
  font-size: var(--text-sm);
  color: var(--color-muted);
  line-height: 1.6;
}

/* ═══════════════════ WHY US ═══════════════════ */
.section-why {
  background: var(--color-bg-alt);
}

.trust-grid {
  display: grid;
  gap: var(--space-lg);
}

@media (min-width: 768px) {
  .trust-grid { grid-template-columns: 1fr 1fr; }
}

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

.trust-card {
  padding: var(--space-xl);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  transition: all var(--duration) var(--ease-out);
}

.trust-card:hover {
  border-color: var(--color-accent);
  background: rgba(255,255,255,0.03);
}

.trust-icon {
  width: 44px;
  height: 44px;
  color: var(--color-white);
  margin-bottom: var(--space-lg);
}

.trust-icon svg {
  width: 100%;
  height: 100%;
}

.trust-card h3 {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: var(--space-sm);
}

.trust-card p {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
}

/* ═══════════════════ PROCESS ═══════════════════ */
.section-process {
  background: var(--color-bg);
}

.process-timeline {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

@media (min-width: 768px) {
  .process-timeline {
    flex-direction: row;
    align-items: flex-start;
    gap: 0;
  }
}

.process-step {
  flex: 1;
  text-align: center;
  padding: var(--space-lg);
  position: relative;
}

.step-number {
  font-family: var(--font-heading);
  font-size: var(--text-5xl);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.15);
  line-height: 1;
  margin-bottom: var(--space-md);
  transition: color var(--duration) var(--ease-out);
}

.process-step:hover .step-number {
  color: var(--color-white);
}

.step-icon {
  width: 48px;
  height: 48px;
  color: var(--color-white);
  margin: 0 auto var(--space-md);
}

.step-icon svg {
  width: 100%;
  height: 100%;
}

.process-step h3 {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: var(--space-xs);
}

.process-step p {
  font-size: var(--text-sm);
  color: var(--color-white);
  max-width: 200px;
  margin: 0 auto;
  line-height: 1.5;
}

.process-connector {
  display: none;
}

@media (min-width: 768px) {
  .process-connector {
    display: block;
    width: 48px;
    height: 1px;
    background: var(--color-border);
    align-self: center;
    margin-top: -20px;
    flex-shrink: 0;
  }
}

/* ═══════════════════ CONTACT ═══════════════════ */
.section-contact {
  background: var(--color-bg-alt);
}

.contact-grid {
  display: grid;
  gap: var(--space-3xl);
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
  }
}

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

.contact-block h3 {
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-white);
  margin-bottom: var(--space-xs);
}

.contact-block p {
  color: var(--color-white);
  line-height: 1.7;
  font-size: var(--text-sm);
}

.contact-link {
  color: var(--color-white);
  font-size: var(--text-base);
  transition: color var(--duration) var(--ease-out);
  display: inline-block;
}

.contact-link:hover {
  color: var(--color-white);
}

.contact-map {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  min-height: 280px;
  margin-top: var(--space-md);
  position: relative;
}

/* Expand Map Container */
.expand-map-container {
  position: relative;
  width: 100%;
}

/* Expand Map Card */
.expand-map-card {
  display: block;
  text-decoration: none;
  width: 360px;
  height: 280px;
  background: #111317;
  border: 1px solid rgba(15, 39, 71, 0.2);
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  user-select: none;
  transition: border-color 0.3s ease,
              box-shadow 0.3s ease,
              transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  transform-style: preserve-3d;
  perspective: 1000px;
  box-shadow: var(--shadow-md);
}

/* Card Hover State */
.expand-map-card:hover {
  border-color: rgba(15, 39, 71, 0.4);
  box-shadow: 0 8px 30px rgba(15, 39, 71, 0.15);
}

@media (max-width: 400px) {
  .expand-map-card {
    width: 290px;
    height: 260px;
  }
}

/* Subtle Gradient Overlay */
.expand-map-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, transparent 60%, rgba(255, 255, 255, 0.04) 100%);
  pointer-events: none;
  z-index: 2;
}

/* Expanded View */
.expand-map-expanded-view {
  position: absolute;
  inset: 0;
  pointer-events: auto;
  opacity: 1;
  z-index: 1;
}

/* Map Background */
.expand-map-bg {
  position: absolute;
  inset: 0;
  background: #111317;
}

/* SVG Roads */
.expand-map-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.expand-map-svg line {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: drawRoads 1s ease forwards;
}

@keyframes drawRoads {
  to { stroke-dashoffset: 0; }
}

/* Delays and styles for roads */
.road-main {
  stroke: rgba(255, 255, 255, 0.2);
}
.road-sec {
  stroke: rgba(255, 255, 255, 0.08);
}

.road-1 { animation-delay: 0.1s; }
.road-2 { animation-delay: 0.2s; }
.road-3 { animation-delay: 0.3s; }
.road-4 { animation-delay: 0.4s; }
.road-h1 { animation-delay: 0.5s; }
.road-h2 { animation-delay: 0.6s; }
.road-h3 { animation-delay: 0.7s; }
.road-v1 { animation-delay: 0.55s; }
.road-v2 { animation-delay: 0.65s; }
.road-v3 { animation-delay: 0.75s; }
.road-v4 { animation-delay: 0.85s; }

/* Buildings */
.building {
  position: absolute;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.04);
  opacity: 0;
  transform: scale(0.8);
  animation: fadeInBuilding 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInBuilding {
  to { opacity: 1; transform: scale(1); }
}

.building-1 { top: 40%; left: 10%; width: 15%; height: 20%; animation-delay: 0.4s; }
.building-2 { top: 15%; left: 35%; width: 12%; height: 15%; animation-delay: 0.5s; }
.building-3 { top: 70%; left: 75%; width: 18%; height: 18%; animation-delay: 0.6s; }
.building-4 { top: 20%; right: 10%; width: 10%; height: 25%; animation-delay: 0.45s; }
.building-5 { top: 55%; left: 5%; width: 8%; height: 12%; animation-delay: 0.55s; }
.building-6 { top: 8%; left: 75%; width: 14%; height: 10%; animation-delay: 0.65s; }

/* Location Pin */
.map-pin-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0) translateY(-20px);
  animation: popPin 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.25s forwards;
  filter: drop-shadow(0 0 10px rgba(15, 39, 71, 0.4));
  z-index: 3;
}

@keyframes popPin {
  to { transform: translate(-50%, -50%) scale(1) translateY(0); }
}

.map-pin-svg {
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
}

/* Grid pattern */
.expand-map-grid {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

/* Content Container */
.expand-map-content {
  position: relative;
  z-index: 10;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  pointer-events: none;
}

.expand-map-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.expand-map-icon-wrap {
  transition: opacity 0.3s ease;
}

.expand-map-status {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(4px);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.expand-map-card:hover .expand-map-status {
  transform: scale(1.05);
  background: rgba(255, 255, 255, 0.08);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-accent);
  box-shadow: 0 0 8px var(--color-accent);
}

.status-text {
  font-size: 10px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.08em;
  font-family: var(--font-heading);
}

.expand-map-bottom {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.location-title {
  color: var(--color-bg);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  margin: 0;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.expand-map-card:hover .location-title {
  transform: translateX(4px);
}

.location-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 1;
  transform: none;
}

.location-address {
  font-size: var(--text-xs);
  color: var(--color-muted);
  margin: 0;
  line-height: 1.2;
}

.location-coords {
  font-size: 10px;
  font-family: monospace;
  color: var(--color-muted);
  margin: 0;
  line-height: 1.2;
}

.expand-map-underline {
  height: 1px;
  background: linear-gradient(to right, rgba(15, 39, 71, 0.5), rgba(15, 39, 71, 0.15) 70%, transparent);
  width: 100%;
  transform: scaleX(1);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.expand-map-card:hover .expand-map-underline {
  transform: scaleX(1);
}

/* Click hints */
.expand-map-hint {
  position: absolute;
  bottom: -22px;
  left: 120px; /* Centered relative to 240px width */
  transform: translate(-50%, 4px);
  font-size: 10px;
  color: var(--color-muted);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  font-family: var(--font-heading);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.expand-map-container:hover .expand-map-hint {
  opacity: 1;
  transform: translate(-50%, 0);
}

.expand-map-card.expanded + .expand-map-hint {
  opacity: 0 !important;
}

/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.form-group label {
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-white);
}

.form-group input,
.form-group textarea {
  padding: 12px 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--color-dark);
  font-size: var(--text-base);
  transition: border-color var(--duration) var(--ease-out),
              box-shadow var(--duration) var(--ease-out);
  min-height: 48px;
}

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

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 2px rgba(15, 39, 71, 0.2);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255,255,255,0.25);
}

/* Inline validation */
.form-group input:user-invalid,
.form-group textarea:user-invalid {
  border-color: #DC2626;
}

.btn-submit {
  align-self: flex-start;
  animation: none;
  opacity: 1;
  transform: none;
}

.form-status {
  font-size: var(--text-sm);
  min-height: var(--space-lg);
}

.form-status.success {
  color: #4ADE80;
}

.form-status.error {
  color: #F87171;
}

/* ═══════════════════ FOOTER ═══════════════════ */
.site-footer {
  background: var(--color-bg-alt);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: var(--space-xl) 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  text-align: center;
}

@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--color-muted);
}

.footer-logo .logo-wolf {
  width: 28px;
  height: 28px;
  animation: none;
}

.footer-brand {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.1em;
}

.footer-copy {
  font-size: var(--text-xs);
  color: var(--color-muted);
}

/* ═══════════════════ SCROLL REVEAL ═══════════════════ */
.reveal-element {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.reveal-element.revealed {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal-element {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ═══════════════════ FOCUS STYLES ═══════════════════ */
*:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

/* ═══════════════════ SELECTION ═══════════════════ */
::selection {
  background: var(--color-accent);
  color: var(--color-white);
}

/* ═══════════════════ SCROLL PROGRESS ═══════════════════ */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--color-accent);
  z-index: calc(var(--z-header) + 1);
  width: 0%;
  transition: width 50ms linear;
  pointer-events: none;
}

/* ═══════════════════ SECTION DIVIDER ═══════════════════ */
.section-divider {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  height: 1px;
  overflow: visible;
  pointer-events: none;
}

.divider-line {
  width: 0%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-border) 20%, var(--color-border) 80%, transparent);
  transition: width 1.5s var(--ease-out);
}

.divider-line.revealed {
  width: 100%;
}

/* ═══════════════════ ABOUT QUOTE ═══════════════════ */
.about-quote {
  margin-top: var(--space-4xl);
  padding: var(--space-xl) var(--space-2xl);
  border-left: 2px solid var(--color-white);
  background: var(--color-bg-alt);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.quote-text {
  font-family: var(--font-heading);
  font-size: clamp(var(--text-lg), 2.5vw, var(--text-2xl));
  font-weight: 500;
  line-height: 1.4;
  color: var(--color-dark);
  margin-bottom: var(--space-sm);
  font-style: italic;
}

.quote-author {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted);
  display: block;
}

/* ═══════════════════ CARD TILT & INTERACTION ═══════════════════ */
.expertise-card, .trust-card {
  position: relative;
  transform-style: preserve-3d;
  transition: border-color var(--duration) var(--ease-out),
              box-shadow var(--duration) var(--ease-out),
              transform 0.1s var(--ease-out);
}

.expertise-card:hover, .trust-card:hover {
  transform: perspective(1000px) rotateX(var(--rotate-x, 0deg)) rotateY(var(--rotate-y, 0deg)) scale3d(1.02, 1.02, 1.02);
  z-index: 5;
  box-shadow: var(--shadow-lg);
  border-color: var(--color-accent);
}

.expertise-card:active, .trust-card:active {
  transform: perspective(1000px) rotateX(var(--rotate-x, 0deg)) rotateY(var(--rotate-y, 0deg)) scale3d(1, 1, 1);
}

/* ═══════════════════ CUSTOM CURSOR ═══════════════════ */
@media (pointer: fine) {
  body {
    cursor: none;
  }
  
  a, button, select, textarea, input, [role="button"], .fact-card, .expertise-card, .trust-card, .process-step {
    cursor: none;
  }
  
  .custom-cursor-dot {
    width: 6px;
    height: 6px;
    background-color: var(--color-white);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width var(--duration) var(--ease-out),
                height var(--duration) var(--ease-out),
                background-color var(--duration) var(--ease-out);
  }
  
  .custom-cursor-ring {
    width: 32px;
    height: 32px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: width 0.3s var(--ease-out),
                height 0.3s var(--ease-out),
                border-color 0.3s var(--ease-out),
                background-color 0.3s var(--ease-out);
  }
  
  body.cursor-hover .custom-cursor-dot {
    background-color: var(--color-white);
    width: 4px;
    height: 4px;
  }
  
  body.cursor-hover .custom-cursor-ring {
    width: 50px;
    height: 50px;
    border-color: var(--color-white);
    background-color: rgba(255, 255, 255, 0.08);
  }
  
  body.cursor-active .custom-cursor-dot {
    transform: translate(-50%, -50%) scale(0.5);
  }
  
  body.cursor-active .custom-cursor-ring {
    transform: translate(-50%, -50%) scale(0.9);
    background-color: rgba(255, 255, 255, 0.18);
  }
}

@media (prefers-reduced-motion: reduce) {
  .custom-cursor-ring {
    transition: none !important;
  }
  .expertise-card, .trust-card {
    transition: border-color var(--duration) var(--ease-out), box-shadow var(--duration) var(--ease-out) !important;
    transform: none !important;
  }
  .expertise-card:hover, .trust-card:hover {
    transform: none !important;
  }
}
