/* ======================================================
   SHOE BRAND WEBSITE — MAIN STYLESHEET
   ======================================================
   UPDATE THIS FILE: Customize CSS variables below to match
   your brand colors, fonts, and spacing.
   ====================================================== */

/* ------------------------------------------------------
   CSS CUSTOM PROPERTIES (Design Tokens)
   ------------------------------------------------------ */
:root {
  /* Brand Colors — UPDATE THESE for your brand */
  --color-black:        #0A0A0A;
  --color-charcoal:     #1F1F1F;
  --color-gray-900:     #111827;
  --color-gray-800:     #1F2937;
  --color-gray-700:     #374151;
  --color-gray-600:     #4B5563;
  --color-gray-500:     #6B7280;
  --color-gray-400:     #9CA3AF;
  --color-gray-300:     #D1D5DB;
  --color-gray-200:     #E5E7EB;
  --color-gray-100:     #F3F4F6;
  --color-gray-50:      #F9FAFB;
  --color-white:        #FFFFFF;

  /* Accent — Electric Blue (change to Crimson Red, Neon Green, 
     Royal Purple, or Orange per your brand choice) */
  --color-accent:       #2563EB;
  --color-accent-light: #3B82F6;
  --color-accent-dark:  #1D4ED8;
  --color-accent-glow:  rgba(37, 99, 235, 0.15);

  /* Typography — UPDATE: Replace with your brand fonts if needed */
  --font-heading: 'Manrope', 'Poppins', 'Inter', system-ui, sans-serif;
  --font-body:    'Inter', 'Poppins', system-ui, sans-serif;

  /* Fluid Type Scale */
  --text-xs:   clamp(0.75rem,  0.7rem  + 0.25vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.8rem  + 0.35vw, 1rem);
  --text-base: clamp(1rem,     0.9rem  + 0.5vw,  1.125rem);
  --text-lg:   clamp(1.125rem, 1rem    + 0.6vw,  1.25rem);
  --text-xl:   clamp(1.25rem,  1.1rem  + 0.75vw, 1.5rem);
  --text-2xl:  clamp(1.5rem,   1.3rem  + 1vw,    2rem);
  --text-3xl:  clamp(1.875rem, 1.5rem  + 1.5vw,  2.5rem);
  --text-4xl:  clamp(2.25rem,  1.8rem  + 2vw,    3.5rem);
  --text-5xl:  clamp(3rem,     2.2rem  + 3vw,    5rem);
  --text-6xl:  clamp(3.5rem,   2.5rem  + 4vw,    6rem);

  /* Spacing Scale */
  --space-1:  0.25rem;  --space-2:  0.5rem;   --space-3:  0.75rem;
  --space-4:  1rem;     --space-5:  1.25rem;  --space-6:  1.5rem;
  --space-8:  2rem;     --space-10: 2.5rem;   --space-12: 3rem;
  --space-16: 4rem;     --space-20: 5rem;     --space-24: 6rem;
  --space-32: 8rem;     --space-40: 10rem;    --space-48: 12rem;

  /* Layout */
  --max-width: 1440px;
  --radius-sm: 0.5rem;   --radius-md: 0.75rem;
  --radius-lg: 1rem;    --radius-xl: 1.25rem;
  --radius-2xl: 1.5rem;  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm:  0 1px  2px  rgb(0 0 0 / 0.05);
  --shadow-md:  0 4px  6px  -1px rgb(0 0 0 / 0.1),  0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg:  0 10px 15px -3px rgb(0 0 0 / 0.1),  0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl:  0 20px 25px -5px rgb(0 0 0 / 0.1),  0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-glow: 0 0 40px -10px var(--color-accent-glow);

  /* Transitions */
  --transition-fast:   150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base:   300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow:   500ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Z-Index */
  --z-base:    0;
  --z-nav:     100;
  --z-drawer:  200;
  --z-modal:   300;
  --z-toast:   400;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-gray-700);
  background: var(--color-white);
  overflow-x: hidden;
}

img, picture, video, canvas, svg {
  display: block; max-width: 100%; height: auto;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.1;
  color: var(--color-black);
  letter-spacing: -0.03em;
}

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

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--color-gray-100); }
::-webkit-scrollbar-thumb { background: var(--color-gray-400); border-radius: var(--radius-full); }
::-webkit-scrollbar-thumb:hover { background: var(--color-gray-500); }

/* ------------------------------------------------------
   UTILITY CLASSES
   ------------------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-6);
}
@media (min-width: 640px)  { .container { padding-inline: var(--space-8); } }
@media (min-width: 1024px) { .container { padding-inline: var(--space-12); } }
@media (min-width: 1440px)  { .container { padding-inline: var(--space-16); } }

.section {
  padding-block: var(--space-20);
}
@media (min-width: 768px) {
  .section { padding-block: var(--space-24); }
}
@media (min-width: 1280px) {
  .section { padding-block: var(--space-32); }
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
  margin-bottom: var(--space-12);
}

.section-label {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-accent);
  margin-bottom: var(--space-4);
}

.section-title {
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--color-black);
  margin-bottom: var(--space-4);
}

.section-subtitle {
  font-size: var(--text-lg);
  color: var(--color-gray-500);
  line-height: 1.7;
}

/* Dark section variant */
.section-dark {
  background: var(--color-black);
  color: var(--color-gray-300);
}
.section-dark .section-title { color: var(--color-white); }
.section-dark .section-subtitle { color: var(--color-gray-400); }
.section-dark .section-label { color: var(--color-accent-light); }

/* ------------------------------------------------------
   BUTTONS
   ------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-8);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 700;
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
  white-space: nowrap;
  min-height: 52px;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.btn:hover::before {
  transform: translateX(100%);
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-white);
  box-shadow: 0 4px 20px -4px rgba(37, 99, 235, 0.4);
}
.btn-primary:hover {
  background: var(--color-accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px -4px rgba(37, 99, 235, 0.5);
}
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  background: transparent;
  color: var(--color-black);
  border: 1.5px solid var(--color-gray-300);
}
.btn-secondary:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: var(--color-accent-glow);
}

.btn-white {
  background: var(--color-white);
  color: var(--color-black);
}
.btn-white:hover {
  background: var(--color-gray-100);
  transform: translateY(-2px);
}

.btn-outline-white {
  background: transparent;
  color: var(--color-white);
  border: 1.5px solid rgba(255,255,255,0.3);
}
.btn-outline-white:hover {
  border-color: var(--color-white);
  background: rgba(255,255,255,0.08);
}

.btn-lg {
  padding: var(--space-5) var(--space-10);
  font-size: var(--text-base);
  min-height: 60px;
}

/* ------------------------------------------------------
   ANIMATIONS
   ------------------------------------------------------ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.95); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}
@keyframes pulse-ring {
  0%   { transform: scale(0.8); opacity: 0.5; }
  100% { transform: scale(1.4); opacity: 0; }
}
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }
.delay-500 { transition-delay: 0.5s; }
.delay-600 { transition-delay: 0.6s; }

/* ------------------------------------------------------
   NAVIGATION
   ------------------------------------------------------ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: var(--z-nav);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid transparent;
  transition: all var(--transition-base);
}
.nav.is-scrolled {
  border-bottom-color: var(--color-gray-200);
  box-shadow: var(--shadow-sm);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: var(--text-xl);
  color: var(--color-black);
  letter-spacing: -0.02em;
}

.nav-links {
  display: none;
  align-items: center;
  gap: var(--space-1);
}
@media (min-width: 1024px) {
  .nav-links { display: flex; }
}

.nav-link {
  padding: var(--space-2) var(--space-4);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-gray-600);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 50%;
  width: 0; height: 2px;
  background: var(--color-accent);
  border-radius: 2px;
  transition: all var(--transition-base);
  transform: translateX(-50%);
}
.nav-link:hover {
  color: var(--color-black);
}
.nav-link:hover::after {
  width: 60%;
}
.nav-link.is-active {
  color: var(--color-accent);
}
.nav-link.is-active::after {
  width: 60%;
}

.nav-cta { display: none; }
@media (min-width: 1024px) { .nav-cta { display: inline-flex; } }

/* Mobile Toggle */
.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-2);
  z-index: calc(var(--z-nav) + 1);
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--color-black);
  border-radius: 2px;
  transition: all var(--transition-base);
}
.nav-toggle.is-active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.is-active span:nth-child(2) { opacity: 0; }
.nav-toggle.is-active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
@media (min-width: 1024px) { .nav-toggle { display: none; } }

/* Mobile Menu Drawer */
.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: var(--z-drawer);
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--transition-base);
}
.mobile-drawer.is-open {
  pointer-events: all;
  opacity: 1;
}
.mobile-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(4px);
}
.mobile-drawer-panel {
  position: absolute;
  top: 0; right: 0;
  width: min(380px, 85vw);
  height: 100%;
  background: var(--color-white);
  padding: var(--space-8);
  padding-top: calc(72px + var(--space-8));
  transform: translateX(100%);
  transition: transform var(--transition-slow) cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  overflow-y: auto;
}
.mobile-drawer.is-open .mobile-drawer-panel {
  transform: translateX(0);
}
.mobile-drawer-link {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-black);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-gray-100);
  transition: color var(--transition-fast);
}
.mobile-drawer-link:hover { color: var(--color-accent); }
.mobile-drawer-cta {
  margin-top: var(--space-6);
}

/* ------------------------------------------------------
   FOOTER
   ------------------------------------------------------ */
.footer {
  background: var(--color-black);
  color: var(--color-gray-400);
  padding-top: var(--space-20);
  padding-bottom: var(--space-8);
}
.footer-grid {
  display: grid;
  gap: var(--space-12);
  margin-bottom: var(--space-16);
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}
.footer-brand {
  max-width: 320px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: var(--text-xl);
  color: var(--color-white);
  margin-bottom: var(--space-4);
}
.footer-desc {
  font-size: var(--text-sm);
  line-height: 1.7;
  margin-bottom: var(--space-6);
}
.footer-socials {
  display: flex;
  gap: var(--space-3);
}
.footer-social {
  width: 40px; height: 40px;
  border-radius: var(--radius-full);
  background: var(--color-charcoal);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  transition: all var(--transition-fast);
}
.footer-social:hover {
  background: var(--color-accent);
  transform: translateY(-2px);
}
.footer-heading {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-white);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-5);
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.footer-link {
  font-size: var(--text-sm);
  color: var(--color-gray-500);
  transition: color var(--transition-fast);
}
.footer-link:hover { color: var(--color-white); }
.footer-bottom {
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-charcoal);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  text-align: center;
}
@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}
.footer-copyright {
  font-size: var(--text-xs);
  color: var(--color-gray-600);
}
.footer-legal {
  display: flex;
  gap: var(--space-6);
}
.footer-legal a {
  font-size: var(--text-xs);
  color: var(--color-gray-600);
  transition: color var(--transition-fast);
}
.footer-legal a:hover { color: var(--color-white); }

/* ------------------------------------------------------
   SCROLL TO TOP
   ------------------------------------------------------ */
.scroll-top {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  width: 48px; height: 48px;
  border-radius: var(--radius-full);
  background: var(--color-accent);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: all var(--transition-base);
  z-index: 50;
}
.scroll-top.is-visible {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}
.scroll-top:hover {
  background: var(--color-accent-dark);
  transform: translateY(-2px);
}

/* ------------------------------------------------------
   ACCESSIBILITY
   ------------------------------------------------------ */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
