@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500;600;700&family=Playfair+Display:wght@400;500;600;700&display=swap');

:root {
  --white: #fbfbfd;
  --black: #1d1d1f;
  --g100: #f5f5f7;
  --g200: #e8e8ed;
  --g300: #d2d2d7;
  --g400: #86868b;
  --g500: #6e6e73;
  --g600: #424245;
  --accent: #0071e3;
  --green: #34c759;
  --red: #ff3b30;
  --warm: #f5f0eb;
  --warmd: #2c2420;
}

/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  width: 100%;
  overflow-x: hidden;
}

body {
  font-family: 'DM Sans', -apple-system, sans-serif;
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

/* NAV */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 10, 12, 0.4);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: all 0.3s;
}

nav.light {
  background: rgba(251, 251, 253, 0.92);
  border-bottom-color: rgba(0, 0, 0, 0.04);
}

nav.light .nav-logo span {
  color: var(--black);
}

nav.light .nav-links a {
  color: var(--g500);
}

nav.light .nav-links a:hover {
  color: var(--black);
}

nav.light .hamburger span {
  background: var(--black);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-logo img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.nav-logo span {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: 1.5rem;
  color: white;
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  flex-shrink: 0;
}

.nav-links a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.82rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: white;
}

.nav-cta {
  background: var(--accent);
  color: white !important;
  padding: 6px 16px;
  border-radius: 980px;
  transition: background 0.2s !important;
}

.nav-cta:hover {
  background: #0077ed !important;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}

.hamburger span {
  width: 20px;
  height: 1.5px;
  background: white;
  transition: all 0.3s;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(251, 251, 253, 0.98);
  backdrop-filter: blur(30px);
  padding: 2rem;
  z-index: 999;
}

.mobile-menu.active {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.mobile-menu a {
  text-decoration: none;
  color: var(--black);
  font-size: 1.3rem;
  font-weight: 500;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--g200);
}

/* BUTTONS */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: white;
  padding: 14px 28px;
  border-radius: 980px;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: #0077ed;
  transform: scale(1.02);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  padding: 13px 28px;
  border-radius: 980px;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.2s;
  cursor: pointer;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

/* SECTION STYLES */
.section-label {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--g400);
  margin-bottom: 1rem;
}

.section-headline {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.03em;
  max-width: 700px;
  margin-bottom: 1.5rem;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--g500);
  max-width: 550px;
  line-height: 1.5;
  margin-bottom: 4rem;
}

/* FOOTER */
footer {
  background: var(--black);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 3rem 2rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.footer-left p {
  font-size: 0.82rem;
  color: var(--g500);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  font-size: 0.82rem;
  color: var(--g500);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: white;
}

/* STICKY MOBILE CTA */
.sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  padding: 12px 16px;
  background: rgba(251, 251, 253, 0.95);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--g200);
  text-align: center;
}

.sticky-cta a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--accent);
  color: white;
  padding: 14px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  width: 100%;
}

/* BACK TO TOP */
.back-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--black);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s;
  z-index: 998;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.back-top.visible {
  opacity: 1;
  transform: translateY(0);
}

.back-top:hover {
  background: #333;
}

/* ANIMATIONS */
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes glowPulse {
  0%, 100% {
    opacity: 0.7;
  }
  50% {
    opacity: 1;
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* RESPONSIVE */
@media (max-width: 1024px) {
  .heritage-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

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

  .product-tile-grid {
    grid-template-columns: 1fr 1fr;
  }

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

  .models-grid,
  .adv-grid {
    grid-template-columns: 1fr;
  }

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

  .pure-img {
    width: 100%;
    max-width: 350px;
  }

  .pure-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  body {
    overflow-x: clip;
  }

  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .nav-logo img {
    width: 44px;
    height: 44px;
  }

  .nav-logo span {
    font-size: 1.3rem;
  }

  .hero-stats {
    flex-direction: column;
    gap: 2rem;
    align-items: center;
  }

  .hero-actions {
    flex-direction: column;
  }

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

  .facility-images {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }

  .footer-left {
    flex-direction: column;
    gap: 1rem;
  }

  .trust-items {
    gap: 1.5rem;
  }

  .product-tile-grid {
    grid-template-columns: 1fr;
  }

  .heritage-year {
    font-size: 4rem;
  }

  .sticky-cta {
    display: block;
  }

  .back-top {
    bottom: 5rem;
    right: 1rem;
  }

  .specs-bar-inner {
    gap: 2rem;
  }

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

  .comp-table {
    font-size: 0.8rem;
  }

  .cta-contact {
    flex-direction: column;
    gap: 1rem;
  }
}
