/* ============================================
   PREMIUM PROFESSIONAL DESIGN SYSTEM
   Agency-Quality | Handcrafted | Premium
   ============================================ */

:root {
  /* Premium Color Palette */
  --primary: #0a1628;
  --primary-dark: #050d1a;
  --primary-light: #1a2840;
  --accent: #d4691d;
  --accent-light: #e07c2e;
  --accent-dark: #b8541a;
  --secondary: #1a9b8e;
  --tertiary: #f0a559;

  /* Neutrals - Premium grays */
  --white: #ffffff;
  --off-white: #fafaf8;
  --grey-50: #f5f5f3;
  --grey-100: #ebe8e3;
  --grey-200: #ddd9d0;
  --grey-300: #c4bdb2;
  --grey-400: #a89a8a;
  --grey-500: #8b7f74;
  --grey-600: #6b6560;
  --grey-700: #504b44;
  --grey-800: #3a3530;
  --grey-900: #1f1b18;

  /* Spacing - Premium scale */
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --spacing-2xl: 48px;
  --spacing-3xl: 64px;
  --spacing-4xl: 96px;

  /* Typography - Premium fonts */
  --font-serif: 'Fraunces', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'Courier New', monospace;

  /* Shadows - Premium depth */
  --shadow-xs: 0 0.5px 1px rgba(0,0,0,0.08);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 8px rgba(0,0,0,0.14), 0 2px 4px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 24px rgba(0,0,0,0.15), 0 6px 12px rgba(0,0,0,0.08);
  --shadow-xl: 0 20px 40px rgba(0,0,0,0.16), 0 12px 24px rgba(0,0,0,0.08);

  /* Transitions - Premium timing */
  --duration-fast: 200ms;
  --duration-base: 350ms;
  --duration-slow: 500ms;
  --easing-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --easing-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-sans);
  background: var(--off-white);
  color: var(--grey-900);
  line-height: 1.65;
  letter-spacing: -0.2px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -1px;
  color: var(--primary);
}

h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); margin-bottom: 0.6em; }
h2 { font-size: clamp(1.375rem, 2.6vw, 2rem); margin-bottom: 0.6em; }
h3 { font-size: clamp(1.1rem, 2vw, 1.375rem); margin-bottom: 0.6em; }
h4 { font-size: 1.05rem; margin-bottom: 0.6em; }

p {
  font-size: 0.925rem;
  line-height: 1.65;
  color: var(--grey-700);
  margin-bottom: 1em;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--duration-base) var(--easing-smooth);
  position: relative;
}

a:hover {
  color: var(--accent-light);
}

/* Layout */
.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

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

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(250, 250, 248, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  padding: var(--spacing-md) 0;
  transition: all var(--duration-base) var(--easing-smooth);
}

header.scrolled {
  box-shadow: var(--shadow-md);
  padding: var(--spacing-sm) 0;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--spacing-2xl);
}

.logo {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--primary);
  font-family: var(--font-serif);
  letter-spacing: -1px;
  transition: all var(--duration-base) var(--easing-smooth);
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.logo:hover {
  color: var(--accent);
  transform: translateY(-2px);
}

nav ul {
  display: flex;
  list-style: none;
  gap: var(--spacing-2xl);
  align-items: center;
}

nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--grey-700);
  position: relative;
  padding: var(--spacing-sm) 0;
  transition: color var(--duration-base) var(--easing-smooth);
}

nav a::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--duration-base) var(--easing-smooth);
}

nav a:hover {
  color: var(--accent);
}

nav a:hover::before {
  width: 100%;
}

.nav-cta {
  background: var(--accent);
  color: white !important;
  padding: 10px 24px !important;
  border-radius: 6px;
  font-weight: 600;
  transition: all var(--duration-base) var(--easing-smooth);
}

.nav-cta::before {
  display: none;
}

.nav-cta:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: white !important;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
  margin-top: 80px;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white;
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 7vw, 80px) 0;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(212, 105, 29, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 20s ease-in-out infinite;
  z-index: 1;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(26, 155, 142, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 25s ease-in-out infinite reverse;
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.hero h1 {
  color: white;
  line-height: 1.15;
  margin-bottom: var(--spacing-md);
  animation: slideInUp 0.8s ease-out;
}

.hero p {
  font-size: clamp(0.875rem, 1.3vw, 1rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  max-width: 520px;
  margin-bottom: var(--spacing-xl);
  animation: slideInUp 0.8s ease-out 0.1s both;
}

.hero-cta {
  display: flex;
  gap: var(--spacing-md);
  flex-wrap: wrap;
  animation: slideInUp 0.8s ease-out 0.2s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  padding: 14px 32px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.975rem;
  border: none;
  cursor: pointer;
  transition: all var(--duration-base) var(--easing-smooth);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  letter-spacing: 0.3px;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.15);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--duration-base) var(--easing-smooth);
  z-index: -1;
}

.btn:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

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

.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: white;
  color: var(--accent);
  border: 2px solid white;
}

.btn-secondary:hover {
  background: var(--accent);
  color: white;
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.btn-outline:hover {
  background: white;
  color: var(--primary);
  transform: translateY(-3px);
}

/* ============================================
   SECTIONS
   ============================================ */

section {
  padding: clamp(48px, 6vw, 72px) 0;
  position: relative;
}

section.alt {
  background: var(--grey-50);
}

.section-header {
  max-width: 700px;
  margin-bottom: var(--spacing-3xl);
}

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

.section-header h2 {
  margin-bottom: var(--spacing-lg);
  position: relative;
  display: inline-block;
}

.section-header.center h2 {
  display: block;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
}

.section-header.center h2::after {
  left: 50%;
  transform: translateX(-50%);
}

.section-header p {
  font-size: 1rem;
  color: var(--grey-600);
  line-height: 1.7;
}

/* ============================================
   CARDS & COMPONENTS
   ============================================ */

.card {
  background: white;
  border-radius: 12px;
  padding: var(--spacing-xl);
  box-shadow: var(--shadow-md);
  transition: all var(--duration-base) var(--easing-smooth);
  border: 1px solid rgba(0, 0, 0, 0.04);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left var(--duration-base) var(--easing-smooth);
  z-index: 1;
}

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

.card:hover::before {
  left: 100%;
}

.card-image {
  width: 100%;
  height: 240px;
  background: linear-gradient(135deg, var(--grey-100), var(--grey-200));
  border-radius: 8px;
  margin-bottom: var(--spacing-lg);
  overflow: hidden;
  position: relative;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--easing-smooth);
}

.card:hover .card-image img {
  transform: scale(1.08) rotate(1deg);
}

/* ============================================
   GRID LAYOUTS
   ============================================ */

.grid {
  display: grid;
  gap: var(--spacing-2xl);
}

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

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

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

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

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

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

/* ============================================
   BRAND SHOWCASE - PREMIUM
   ============================================ */

.brand-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-2xl);
}

.brand-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-2xl);
  background: white;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  text-align: center;
  position: relative;
  overflow: hidden;
  height: 100%;
  transition: all var(--duration-base) var(--easing-smooth);
  box-shadow: var(--shadow-md);
}

.brand-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--accent), var(--secondary));
  opacity: 0;
  transition: opacity var(--duration-base) var(--easing-smooth);
  z-index: 0;
}

.brand-card:hover {
  transform: translateY(-12px);
  box-shadow: var(--shadow-xl);
  border-color: var(--accent);
}

.brand-card:hover::before {
  opacity: 0.08;
}

.brand-card > * {
  position: relative;
  z-index: 2;
}

.brand-logo {
  width: 140px;
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--grey-50);
  border-radius: 8px;
  margin-bottom: var(--spacing-lg);
  transition: all var(--duration-base) var(--easing-smooth);
  position: relative;
}

.brand-card:hover .brand-logo {
  background: linear-gradient(135deg, var(--grey-50), var(--grey-100));
  transform: scale(1.12) rotate(-2deg);
}

.brand-logo img {
  max-width: 85%;
  max-height: 85%;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.05));
}

.brand-card h3 {
  font-size: 1.125rem;
  margin-bottom: var(--spacing-sm);
  color: var(--primary);
  transition: color var(--duration-base) var(--easing-smooth);
}

.brand-card:hover h3 {
  color: var(--accent);
}

.brand-card p {
  font-size: 0.95rem;
  color: var(--grey-600);
  line-height: 1.6;
  margin: 0;
}

/* ============================================
   ANIMATIONS
   ============================================ */

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

@keyframes float {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-30px) rotate(2deg);
  }
}

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

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Scroll animations */
.fade-in {
  opacity: 0;
  animation: fadeIn 0.8s ease-out forwards;
}

.scale-in {
  opacity: 0;
  transform: scale(0.95);
  animation: scaleIn 0.8s var(--easing-smooth) forwards;
}

/* ============================================
   FOOTER
   ============================================ */

footer {
  background: var(--primary);
  color: white;
  padding: var(--spacing-3xl) 0 var(--spacing-2xl);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

footer .container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-3xl);
  margin-bottom: var(--spacing-3xl);
}

.footer-col h3 {
  color: white;
  margin-bottom: var(--spacing-lg);
  font-size: 1rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: var(--spacing-md);
}

.footer-col a {
  color: rgba(255, 255, 255, 0.65);
  transition: color var(--duration-base) var(--easing-smooth);
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--spacing-2xl);
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.925rem;
}

/* ============================================
   UTILITIES & RESPONSIVE
   ============================================ */

.text-center { text-align: center; }
.text-white { color: white; }
.text-muted { color: var(--grey-600); }

.mt-lg { margin-top: var(--spacing-lg); }
.mt-xl { margin-top: var(--spacing-xl); }
.mt-2xl { margin-top: var(--spacing-2xl); }
.mt-3xl { margin-top: var(--spacing-3xl); }

.mb-lg { margin-bottom: var(--spacing-lg); }
.mb-xl { margin-bottom: var(--spacing-xl); }
.mb-2xl { margin-bottom: var(--spacing-2xl); }
.mb-3xl { margin-bottom: var(--spacing-3xl); }

@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    gap: var(--spacing-lg);
  }

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

  .btn {
    width: 100%;
  }

  section {
    padding: clamp(40px, 8vw, 56px) 0;
  }
}

/* ============================================
   MOBILE NAV (canonical — was inline per page)
   ============================================ */

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--spacing-sm);
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: all var(--duration-fast) var(--easing-smooth);
}

.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: flex; }

  nav ul {
    position: fixed;
    top: 64px;
    right: 0;
    bottom: 0;
    width: min(80vw, 320px);
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-lg);
    background: var(--off-white);
    box-shadow: var(--shadow-xl);
    padding: var(--spacing-2xl) var(--spacing-xl);
    transform: translateX(100%);
    transition: transform var(--duration-base) var(--easing-smooth);
  }

  nav ul.active {
    transform: translateX(0);
  }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

.skip-link {
  position: absolute;
  top: -48px;
  left: var(--spacing-md);
  z-index: 2000;
  background: var(--primary);
  color: #fff;
  padding: 10px 18px;
  border-radius: 0 0 8px 8px;
  font-weight: 600;
  transition: top var(--duration-fast) var(--easing-smooth);
}

.skip-link:focus {
  top: 0;
  color: #fff;
}

a:focus-visible,
button:focus-visible,
.btn:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
