/* ==========================================================================
   Direction Quest — Compass-Inspired Design System
   遵义屈向向网络科技有限责任公司
   Zunyi Qu Xiangxiang Network Technology Co., Ltd.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Custom Properties
   -------------------------------------------------------------------------- */
:root {
  --color-compass-red: #D4453E;
  --color-compass-red-dark: #b83731;
  --color-compass-red-light: #e05a54;
  --color-navy: #1B2A4A;
  --color-navy-light: #243356;
  --color-navy-dark: #101d33;
  --color-gold: #C9992E;
  --color-gold-light: #d4a840;
  --color-gold-dark: #b3861e;
  --color-cream: #F7F0E0;
  --color-cream-dark: #e8dcc8;
  --color-white: #FFFFFF;
  --color-slate: #475569;
  --color-slate-light: #64748b;
  --color-slate-dark: #334155;

  --font-sans: system-ui, -apple-system, 'Segoe UI', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;

  --max-width: 1200px;
  --header-height: 72px;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-round: 50%;

  --shadow-sm: 0 1px 3px rgba(27, 42, 74, 0.08);
  --shadow-md: 0 4px 16px rgba(27, 42, 74, 0.12);
  --shadow-lg: 0 8px 32px rgba(27, 42, 74, 0.18);
  --shadow-xl: 0 16px 48px rgba(27, 42, 74, 0.22);

  --transition-fast: 180ms ease;
  --transition-base: 280ms ease;
  --transition-slow: 450ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

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

body {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--color-navy);
  background: var(--color-white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--color-compass-red);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-compass-red-dark);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--color-gold);
  outline-offset: 2px;
}

ul, ol {
  list-style: none;
}

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
  font-weight: 700;
  color: var(--color-navy);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.6rem); }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-compass-red);
  margin-bottom: 12px;
}

.section-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-compass-red);
  border-radius: 1px;
}

.section-title {
  margin-bottom: 24px;
}

.section-title span {
  color: var(--color-compass-red);
}

/* --------------------------------------------------------------------------
   Utility: Skip Link
   -------------------------------------------------------------------------- */
.skip-link {
  position: fixed;
  top: -100%;
  left: 16px;
  z-index: 10000;
  padding: 12px 20px;
  background: var(--color-navy);
  color: var(--color-white);
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 16px;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  background: var(--color-white);
  border-bottom: 1px solid transparent;
  transition: background var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.97);
  border-bottom-color: #e8e3d5;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(12px);
}

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

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--color-navy);
  letter-spacing: -0.01em;
  text-decoration: none;
  z-index: 1001;
}

.logo:hover {
  color: var(--color-navy);
}

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

.logo-icon .ring {
  fill: none;
  stroke: var(--color-compass-red);
  stroke-width: 2.5;
}

.logo-icon .point {
  fill: var(--color-compass-red);
}

.logo-icon .pivot {
  fill: var(--color-gold);
}

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

.logo-text .en {
  font-size: 0.85rem;
  line-height: 1;
  letter-spacing: 0.04em;
}

.logo-text .zh {
  font-size: 0.6rem;
  line-height: 1;
  color: var(--color-slate);
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* Desktop Nav */
.nav-list {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-list a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--color-slate);
  padding: 6px 0;
  position: relative;
  transition: color var(--transition-fast);
}

.nav-list a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-compass-red);
  border-radius: 1px;
  transition: width var(--transition-base);
}

.nav-list a:hover,
.nav-list a.active {
  color: var(--color-compass-red);
}

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

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
  padding: 0;
}

.menu-toggle span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: var(--color-navy);
  border-radius: 2px;
  transition: transform var(--transition-base), opacity var(--transition-fast);
}

.menu-toggle span:nth-child(1) { transform: translateY(-6px); }
.menu-toggle span:nth-child(3) { transform: translateY(6px); }

.menu-toggle.active span:nth-child(1) {
  transform: translateY(2.5px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-2.5px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   Mobile Navigation Overlay
   -------------------------------------------------------------------------- */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--color-navy);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 36px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-slow);
}

.mobile-nav.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav a {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-cream);
  letter-spacing: 0.04em;
  transition: color var(--transition-fast);
}

.mobile-nav a:hover,
.mobile-nav a:focus {
  color: var(--color-gold-light);
}

.mobile-nav .compass-decor {
  position: absolute;
  width: 200px;
  height: 200px;
  opacity: 0.08;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   Hero Section
   Layout: Asymmetric — text left, animated compass rose right
   Background: Navy with subtle radial dot pattern
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--color-navy);
  overflow: hidden;
  padding-top: var(--header-height);
}

/* Radial dot pattern background */
.hero-bg-pattern {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.06;
  background-image: radial-gradient(circle at center, var(--color-white) 1px, transparent 1px);
  background-size: 32px 32px;
}

/* Subtle concentric circles */
.hero-bg-rings {
  position: absolute;
  top: 50%;
  right: 15%;
  width: 700px;
  height: 700px;
  transform: translate(30%, -50%);
  pointer-events: none;
  opacity: 0.05;
}

.hero-bg-rings circle {
  fill: none;
  stroke: var(--color-white);
  stroke-width: 1;
}

.hero-inner {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 80px 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 540px;
}

.hero-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-gold);
  padding: 8px 16px;
  border: 1px solid rgba(201, 153, 46, 0.3);
  border-radius: 2px;
  margin-bottom: 28px;
}

.hero-title {
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  font-weight: 800;
  color: var(--color-white);
  line-height: 1.08;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.hero-title em {
  font-style: normal;
  color: var(--color-compass-red);
}

.hero-subtitle {
  font-size: 1.15rem;
  color: #8899b4;
  line-height: 1.6;
  max-width: 420px;
  margin-bottom: 36px;
}

.hero-subtitle .zh {
  display: block;
  margin-top: 8px;
  font-size: 1rem;
  color: #6b7d94;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 0.95rem;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  letter-spacing: 0.02em;
  font-family: var(--font-sans);
}

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

.btn-primary:hover {
  background: var(--color-compass-red-dark);
  color: var(--color-white);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(212, 69, 62, 0.35);
}

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

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

/* Hero Compass Rose */
.hero-compass {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.compass-rose {
  width: 100%;
  max-width: 460px;
  height: auto;
  filter: drop-shadow(0 0 60px rgba(212, 69, 62, 0.15));
}

.compass-rose .outer-ring {
  fill: none;
  stroke: rgba(255, 255, 255, 0.12);
  stroke-width: 2;
}

.compass-rose .cardinal-point {
  fill: var(--color-compass-red);
  opacity: 0.9;
}

.compass-rose .intercardinal-point {
  fill: var(--color-gold);
  opacity: 0.7;
}

.compass-rose .inner-face {
  fill: var(--color-navy-light);
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 1;
}

.compass-rose .direction-label {
  fill: var(--color-cream);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.08em;
}

.compass-needle {
  transform-origin: center;
  animation: needle-drift 12s ease-in-out infinite;
}

@keyframes needle-drift {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(3deg); }
  50% { transform: rotate(-2deg); }
  75% { transform: rotate(1.5deg); }
}

.compass-needle .needle-north {
  fill: var(--color-compass-red);
}

.compass-needle .needle-south {
  fill: var(--color-slate);
}

.compass-rose .center-pivot {
  fill: var(--color-gold);
  stroke: var(--color-navy-dark);
  stroke-width: 1.5;
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  z-index: 1;
}

.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.3), transparent);
  animation: scroll-pulse 2s ease-in-out infinite;
}

@keyframes scroll-pulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.3); }
}

/* --------------------------------------------------------------------------
   About Section
   Layout: Angular/offset blocks — NOT left-right
   Background: Cream with compass watermark
   -------------------------------------------------------------------------- */
.about {
  position: relative;
  padding: 120px 0;
  background: var(--color-cream);
  overflow: hidden;
}

.about-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  opacity: 0.04;
  pointer-events: none;
}

.about-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.about-header {
  text-align: center;
  margin-bottom: 64px;
}

.about-header .section-title {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 16px;
}

.about-header .section-desc {
  color: var(--color-slate);
  max-width: 500px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* Angular block layout */
.about-blocks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  max-width: 1000px;
  margin: 0 auto;
}

.about-block {
  padding: 40px 32px;
  position: relative;
  border: 1px solid rgba(71, 85, 105, 0.1);
}

/* Offset stacking — each block shifted */
.about-block:nth-child(1) {
  transform: translateY(-12px);
}

.about-block:nth-child(2) {
  transform: translateY(8px);
  border-left: none;
  border-right: none;
}

.about-block:nth-child(3) {
  transform: translateY(-4px);
}

.about-block-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  color: var(--color-compass-red);
}

.about-block h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.about-block p {
  color: var(--color-slate);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Company info card — offset overlapping */
.about-company-card {
  max-width: 580px;
  margin: 60px auto 0;
  padding: 36px 40px;
  background: var(--color-white);
  border-left: 4px solid var(--color-compass-red);
  box-shadow: var(--shadow-md);
  transform: rotate(-0.5deg);
}

.about-company-card h3 {
  font-size: 1.05rem;
  margin-bottom: 16px;
  color: var(--color-navy);
}

.about-company-card .info-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 0.92rem;
  color: var(--color-slate);
  line-height: 1.5;
}

.about-company-card .info-row:last-child {
  margin-bottom: 0;
}

.about-company-card .info-icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  color: var(--color-compass-red);
}

/* --------------------------------------------------------------------------
   Services Section
   Layout: Arc/semicircle arrangement with radial lines
   Background: White
   -------------------------------------------------------------------------- */
.services {
  position: relative;
  padding: 120px 0;
  background: var(--color-white);
  overflow: hidden;
}

.services-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.services-header {
  text-align: center;
  margin-bottom: 72px;
}

.services-header .section-desc {
  color: var(--color-slate);
  max-width: 480px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* Arc layout */
.services-arc {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  min-height: 520px;
}

/* Central compass motif */
.services-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 120px;
  z-index: 1;
}

.services-center svg {
  width: 100%;
  height: 100%;
  opacity: 0.15;
}

/* Radial connector lines */
.services-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.services-lines line {
  stroke: rgba(212, 69, 62, 0.15);
  stroke-width: 1;
  stroke-dasharray: 4 4;
}

/* Service cards positioned around arc */
.service-card {
  position: absolute;
  width: 220px;
  padding: 24px;
  background: var(--color-white);
  border: 1px solid #e8e3d5;
  border-radius: var(--radius-md);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
  cursor: default;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-compass-red);
}

.service-card:nth-child(3)  { top: 10px;  left: 50%; transform: translateX(-50%); }
.service-card:nth-child(4)  { top: 80px;  right: 30px; }
.service-card:nth-child(5)  { top: 220px; right: 0; }
.service-card:nth-child(6)  { top: 220px; left: 0; }
.service-card:nth-child(7)  { top: 80px;  left: 30px; }

.service-card:nth-child(3):hover  { transform: translateX(-50%) translateY(-4px); }

.service-card .card-dir {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--color-gold-dark);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.service-card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--color-slate);
  line-height: 1.5;
}

.service-card .card-icon {
  width: 32px;
  height: 32px;
  margin-bottom: 12px;
  color: var(--color-compass-red);
}

/* Mobile stacked layout for services */
.services-stacked {
  display: none;
}

/* --------------------------------------------------------------------------
   Stats / Counter Section
   Layout: Diamond/cross pattern — NOT horizontal bar
   Background: Navy
   -------------------------------------------------------------------------- */
.stats {
  position: relative;
  padding: 100px 0;
  background: var(--color-navy);
  overflow: hidden;
}

.stats-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.04;
  background-image:
    linear-gradient(45deg, var(--color-white) 1px, transparent 1px),
    linear-gradient(-45deg, var(--color-white) 1px, transparent 1px);
  background-size: 40px 40px;
}

.stats-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.stats-header {
  text-align: center;
  margin-bottom: 60px;
}

.stats-header .section-title {
  color: var(--color-white);
}

/* Diamond cross layout */
.stats-diamond {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stats-diamond-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.stats-diamond-svg line {
  stroke: rgba(201, 153, 46, 0.2);
  stroke-width: 1;
}

.stat-item {
  position: absolute;
  text-align: center;
  padding: 16px;
}

.stat-item:nth-child(1) { top: 10px;  left: 50%; transform: translateX(-50%); }
.stat-item:nth-child(2) { top: 50%;  right: 20px; transform: translateY(-50%); }
.stat-item:nth-child(3) { bottom: 10px; left: 50%; transform: translateX(-50%); }
.stat-item:nth-child(4) { top: 50%;  left: 20px; transform: translateY(-50%); }

.stat-number {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--color-gold-light);
  line-height: 1;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.95rem;
  color: #8899b4;
  margin-top: 6px;
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   Contact Section
   Layout: Asymmetric form with compass decor
   Background: Cream
   -------------------------------------------------------------------------- */
.contact {
  position: relative;
  padding: 120px 0;
  background: var(--color-cream);
  overflow: hidden;
}

.contact-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: start;
}

.contact-info {
  padding-top: 20px;
}

.contact-info .section-desc {
  color: var(--color-slate);
  font-size: 1.05rem;
  margin-bottom: 36px;
  line-height: 1.6;
}

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

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.contact-detail-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-white);
  border-radius: var(--radius-round);
  color: var(--color-compass-red);
  box-shadow: var(--shadow-sm);
}

.contact-detail-text strong {
  display: block;
  font-size: 0.85rem;
  color: var(--color-slate);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.contact-detail-text span {
  font-size: 0.95rem;
  color: var(--color-navy);
  font-weight: 500;
}

.contact-detail-text a {
  font-size: 0.95rem;
  color: var(--color-compass-red);
  font-weight: 500;
}

/* Form */
.contact-form-wrap {
  position: relative;
}

.contact-form {
  background: var(--color-white);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border-top: 4px solid var(--color-compass-red);
}

.contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-form .form-group {
  margin-bottom: 20px;
}

.contact-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-navy);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 12px 16px;
  font-size: 0.95rem;
  font-family: var(--font-sans);
  color: var(--color-navy);
  background: var(--color-cream);
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  transition: border-color var(--transition-fast), background var(--transition-fast);
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-compass-red);
  background: var(--color-white);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #a0a8b4;
}

.contact-form textarea {
  min-height: 120px;
}

.contact-form .btn-submit {
  width: 100%;
  justify-content: center;
  padding: 16px;
  font-size: 1rem;
}

.form-feedback {
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  display: none;
}

.form-feedback.success {
  display: block;
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.form-feedback.error {
  display: block;
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* Compass decor behind form */
.contact-form-decor {
  position: absolute;
  top: -40px;
  right: -40px;
  width: 160px;
  height: 160px;
  opacity: 0.06;
  pointer-events: none;
  z-index: 0;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--color-navy-dark);
  color: #8899b4;
  padding: 60px 0 32px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}

.footer-brand .logo {
  color: var(--color-white);
  margin-bottom: 14px;
}

.footer-brand .logo:hover {
  color: var(--color-white);
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #6b7d94;
}

.footer-links h4 {
  color: var(--color-white);
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

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

.footer-links a {
  font-size: 0.9rem;
  color: #8899b4;
  transition: color var(--transition-fast);
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
}

.footer-bottom .legal-links {
  display: flex;
  gap: 20px;
}

.footer-bottom .legal-links a {
  color: #6b7d94;
  font-size: 0.85rem;
}

.footer-bottom .legal-links a:hover {
  color: var(--color-gold-light);
}

/* --------------------------------------------------------------------------
   Privacy & Terms Pages
   -------------------------------------------------------------------------- */
.policy-page {
  padding: 120px 24px 80px;
  background: var(--color-cream);
  min-height: 100vh;
}

.policy-container {
  max-width: 780px;
  margin: 0 auto;
  padding: 48px;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border-top: 4px solid var(--color-compass-red);
}

.policy-container h1 {
  font-size: 2rem;
  margin-bottom: 8px;
  color: var(--color-navy);
}

.policy-container .policy-meta {
  font-size: 0.9rem;
  color: var(--color-slate);
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid #e8e3d5;
}

.policy-container h2 {
  font-size: 1.3rem;
  margin-top: 36px;
  margin-bottom: 14px;
  color: var(--color-navy);
  padding-top: 4px;
}

.policy-container h2:first-of-type {
  margin-top: 0;
}

.policy-container p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--color-slate);
  margin-bottom: 16px;
}

.policy-container ul,
.policy-container ol {
  font-size: 16px;
  line-height: 1.75;
  color: var(--color-slate);
  margin-bottom: 16px;
  padding-left: 24px;
}

.policy-container ul {
  list-style: disc;
}

.policy-container ol {
  list-style: decimal;
}

.policy-container li {
  margin-bottom: 8px;
}

.policy-container a {
  color: var(--color-compass-red);
  font-weight: 500;
}

.policy-container .company-block {
  margin-top: 36px;
  padding: 24px;
  background: var(--color-cream);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--color-compass-red);
}

.policy-container .company-block p {
  margin-bottom: 4px;
  font-size: 15px;
}

.policy-container .company-block strong {
  color: var(--color-navy);
}

.back-home {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-compass-red);
  margin-bottom: 28px;
  transition: gap var(--transition-fast);
}

.back-home:hover {
  gap: 10px;
}

/* --------------------------------------------------------------------------
   Scroll Animations
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* --------------------------------------------------------------------------
   Media Queries
   -------------------------------------------------------------------------- */

/* Tablet */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 32px;
    padding: 48px 24px;
  }

  .hero-content {
    max-width: 100%;
    order: 1;
  }

  .hero-subtitle {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-compass {
    order: 0;
  }

  .compass-rose {
    max-width: 280px;
  }

  .about-blocks {
    grid-template-columns: 1fr;
    max-width: 460px;
  }

  .about-block:nth-child(1),
  .about-block:nth-child(2),
  .about-block:nth-child(3) {
    transform: none;
    border: 1px solid rgba(71, 85, 105, 0.1);
  }

  .about-block:nth-child(2) {
    border-top: none;
    border-bottom: none;
  }

  .about-company-card {
    transform: none;
  }

  .services-arc {
    display: none;
  }

  .services-stacked {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .service-card-stacked {
    padding: 24px;
    background: var(--color-white);
    border: 1px solid #e8e3d5;
    border-radius: var(--radius-md);
  }

  .service-card-stacked .card-dir {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--color-gold-dark);
    margin-bottom: 8px;
  }

  .service-card-stacked h3 {
    font-size: 1rem;
    margin-bottom: 6px;
  }

  .service-card-stacked p {
    font-size: 0.9rem;
    color: var(--color-slate);
    line-height: 1.5;
  }

  .service-card-stacked .card-icon {
    width: 28px;
    height: 28px;
    margin-bottom: 10px;
    color: var(--color-compass-red);
  }

  .contact-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

  .stats-diamond {
    min-height: 320px;
  }

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

/* Mobile */
@media (max-width: 640px) {
  .nav-list {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

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

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

  .about {
    padding: 80px 0;
  }

  .about-company-card {
    padding: 24px;
  }

  .services {
    padding: 80px 0;
  }

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

  .stats {
    padding: 80px 0;
  }

  .stats-diamond {
    min-height: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .stat-item {
    position: static;
    transform: none;
  }

  .stat-item:nth-child(1),
  .stat-item:nth-child(2),
  .stat-item:nth-child(3),
  .stat-item:nth-child(4) {
    position: static;
    transform: none;
  }

  .stats-diamond-svg {
    display: none;
  }

  .contact {
    padding: 80px 0;
  }

  .contact-form {
    padding: 24px;
  }

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

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

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

  .policy-container {
    padding: 24px;
  }

  .policy-container h1 {
    font-size: 1.5rem;
  }
}

/* Small mobile */
@media (max-width: 380px) {
  .hero-title {
    font-size: 1.7rem;
  }

  .compass-rose {
    max-width: 200px;
  }

  .stats-diamond {
    grid-template-columns: 1fr;
  }

  .contact-form {
    padding: 20px;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .compass-needle {
    animation: none;
  }

  .reveal {
    transition: none;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Print */
@media print {
  .site-header,
  .mobile-nav,
  .menu-toggle,
  .hero-scroll,
  .hero-bg-pattern,
  .hero-bg-rings {
    display: none;
  }

  body {
    font-size: 13px;
    color: #000;
  }

  .hero {
    min-height: auto;
    background: none;
    padding: 20px 0;
  }

  .hero-title {
    color: #000;
  }

  .hero-subtitle {
    color: #333;
  }
}
