@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,600&family=Inter:wght@300;400;500;600;700&display=swap');

/* ==========================================================================
   UNTERRO - THEME ENGINE CSS FOUNDATION
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. MODERN CSS RESET
   -------------------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

body,
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd,
ul,
ol {
  margin: 0;
  padding: 0;
}

ul,
ol {
  list-style: none;
}

html {
  -webkit-text-size-adjust: 100%;
}

/* Lenis Smooth Scroll Recommended Styles */
html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

body {
  min-height: 100vh;
  text-rendering: optimizeSpeed;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a:not([class]) {
  text-decoration-skip-ink: auto;
}

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

input,
button,
textarea,
select {
  font: inherit;
}

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

/* --------------------------------------------------------------------------
   2. DESIGN TOKENS (CSS VARIABLES)
   -------------------------------------------------------------------------- */

:root {
  /* Colors - Warm Minimalist Luxury Palette */
  --color-bg-primary: #fbfaf8;      /* Soft Alabaster */
  --color-bg-secondary: #f5f3ee;    /* Sand / Cream */
  --color-bg-tertiary: #ebe7de;     /* Warm Stone */
  --color-bg-dark: #121212;         /* Onyx */
  --color-bg-dark-soft: #1a1a1a;    /* Charcoal */

  --color-text-primary: #1c1a17;    /* Ebony Black */
  --color-text-secondary: #5a544b;  /* Muted Clay */
  --color-text-light: #928b7f;      /* Soft Taupe */
  --color-text-inverse: #fbfaf8;    /* Inverse Text */

  --color-accent: #AD622F;          /* Rich Copper Rose */
  --color-accent-hover: #905127;    /* Deepened Copper Rose */
  --color-accent-light: #f6f0e6;    /* Light Bronze Tint */

  --color-border: rgba(28, 26, 23, 0.08); /* Subtle hairline border */
  --color-border-dark: rgba(251, 250, 248, 0.1);

  /* Typography - Families */
  --font-family-serif: Georgia, serif;
  --font-family-sans: "Inter", system-ui, -apple-system, sans-serif;
  --font-family-mono: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;

  /* Typography - Fluid Font Scale (Mobile to Desktop) */
  --text-xs: clamp(0.75rem, 0.71rem + 0.17vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.83rem + 0.22vw, 1rem);
  --text-base: clamp(1rem, 0.96rem + 0.17vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1.06rem + 0.33vw, 1.375rem);
  --text-xl: clamp(1.375rem, 1.28rem + 0.48vw, 1.75rem);
  --text-2xl: clamp(1.625rem, 1.49rem + 0.69vw, 2.25rem);
  --text-3xl: clamp(2rem, 1.78rem + 1.1vw, 3rem);
  --text-4xl: clamp(2.5rem, 2.15rem + 1.7vw, 4rem);
  --text-5xl: clamp(3.25rem, 2.73rem + 2.6vw, 5.5rem);
  --text-display: clamp(4rem, 3.13rem + 4.3vw, 7.5rem);

  /* Typography - Weights */
  --font-weight-light: 300;
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  /* Spacing - Proportional Scale */
  --space-xxs: clamp(0.25rem, 0.23rem + 0.1vw, 0.375rem);
  --space-xs: clamp(0.5rem, 0.45rem + 0.2vw, 0.75rem);
  --space-sm: clamp(0.875rem, 0.8rem + 0.3vw, 1.125rem);
  --space-md: clamp(1.25rem, 1.14rem + 0.53vw, 1.75rem);
  --space-lg: clamp(2rem, 1.83rem + 0.87vw, 2.875rem);
  --space-xl: clamp(3rem, 2.65rem + 1.7vw, 4.75rem);
  --space-xxl: clamp(4.5rem, 3.9rem + 3vw, 7rem);
  --space-huge: clamp(6.5rem, 5.4rem + 5.5vw, 11rem);

  /* Borders & Radius */
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 8px;
  --radius-full: 9999px;

  /* Container Widths */
  --container-max: 1440px;
  --container-narrow: 1024px;
  --container-fluid: 100%;

  /* Transitions (Luxury Custom Cubic Bezier) */
  --transition-fast: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 1s cubic-bezier(0.16, 1, 0.3, 1);

  /* Z-Index Tiers */
  --z-below: -1;
  --z-base: 1;
  --z-header: 100;
  --z-dropdown: 200;
  --z-modal: 500;
  --z-cursor: 999;
}

/* --------------------------------------------------------------------------
   3. GLOBAL STYLES
   -------------------------------------------------------------------------- */

html {
  background-color: var(--color-bg-primary);
  color: var(--color-text-primary);
  font-family: var(--font-family-sans);
  font-size: 16px;
  font-weight: var(--font-weight-regular);
}

::selection {
  background-color: var(--color-accent-light);
  color: var(--color-text-primary);
}

/* Accessible focus outline */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
}

/* Headings default hierarchy styling */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family-serif);
  color: var(--color-text-primary);
  font-weight: var(--font-weight-light);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-3xl); }
h4 { font-size: var(--text-2xl); }
h5 { font-size: var(--text-xl); }
h6 { font-size: var(--text-lg); }

/* Paragraph & text default styling */
p {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  font-weight: var(--font-weight-regular);
  line-height: 1.7;
}

small {
  font-size: var(--text-xs);
  color: var(--color-text-light);
}

/* --------------------------------------------------------------------------
   4. BODY LAYOUT
   -------------------------------------------------------------------------- */

body {
  background-color: var(--color-bg-primary);
  color: var(--color-text-primary);
  display: flex;
  flex-direction: column;
}

/* Enforce footer positioning at the bottom of the viewport */
main {
  flex-grow: 1;
}

/* --------------------------------------------------------------------------
   5. IMAGE STYLES
   -------------------------------------------------------------------------- */

img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background-color: var(--color-bg-secondary);
}

/* --------------------------------------------------------------------------
   6. LINK STYLES
   -------------------------------------------------------------------------- */

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

/* Premium text underline animation link class */
.link-animated {
  position: relative;
  display: inline-block;
  color: var(--color-text-primary);
}

.link-animated::after {
  content: '';
  position: absolute;
  width: 100%;
  transform: scaleX(0);
  height: 1px;
  bottom: -2px;
  left: 0;
  background-color: var(--color-accent);
  transform-origin: bottom right;
  transition: transform var(--transition-smooth);
}

.link-animated:hover {
  color: var(--color-accent);
}

.link-animated:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

/* --------------------------------------------------------------------------
   7. BUTTON RESET
   -------------------------------------------------------------------------- */

button,
.button-reset {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   8. RESPONSIVE CONTAINER SYSTEM
   -------------------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-md);
  padding-right: var(--space-md);
}

.container-narrow {
  width: 100%;
  max-width: var(--container-narrow);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-md);
  padding-right: var(--space-md);
}

.container-fluid {
  width: 100%;
  max-width: var(--container-fluid);
  padding-left: var(--space-md);
  padding-right: var(--space-md);
}

/* Custom container aligned with the floating header padding & margins */
.container-align-header {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
  padding-left: 15px; /* Matches mobile header margin (15px) */
  padding-right: 15px;
}

@media (min-width: 1024px) {
  .container-align-header {
    padding-left: 20px; /* Matches desktop header margin (20px) */
    padding-right: 20px;
    max-width: 100%;
  }
}

/* ==========================================================================
   UNIFIED HOMEPAGE SECTION PADDING OVERRIDES
   ========================================================================== */
.product-showcase,
.outdoor-showcase,
.home-products,
.visual-tools,
.crafted-section,
.process-section,
.testimonial-section {
  padding: 20px 0 !important; /* Symmetrical 20px padding (combines to 40px gap between sections) */
}

/* First section top padding (comfortable breathing room below Hero) */
.product-showcase {
  padding-top: 40px !important; /* Mobile gap below Hero */
}

@media (min-width: 768px) {
  .product-showcase {
    padding-top: 60px !important; /* Desktop gap below Hero */
  }
}
