/* ============================================================================
   CUSTOM FONTS
   ============================================================================ */

@font-face {
  font-family: 'Arial Narrow';
  src: url('/fonts/Arial Narrow Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'The Poet';
  src: url('/fonts/ThePoet.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Woodland';
  src: url('/fonts/Woodland.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ============================================================================
   DESIGN TOKENS
   Central design system variables - edit these to change the entire site
   ============================================================================ */

:root {
  /* ==========================================================================
     COLORS
     ========================================================================== */

  /* Brand Colors */
  --color-primary: rgb(133, 31, 63);      /* Used for headings, logo, accents */
  --color-secondary: #556B2F;              /* Olive - hover states */

  /* Background Colors */
  --color-bg-main: hsl(42, 35.71%, 94.51%);     /* Cream - default page bg */
  --color-bg-home: rgb(235, 228, 219);          /* Warm beige - home page bg */

  /* Text Colors */
  --color-text: hsl(30, 12.5%, 18.82%);         /* Primary text */
  --color-text-muted: hsl(0, 0%, 45%);          /* Secondary/caption text */

  /* UI Colors */
  --color-border: hsl(0, 0%, 91%);

  /* ==========================================================================
     TYPOGRAPHY
     ========================================================================== */

  /* Font Families */
  --font-brand: 'Rock Salt', cursive;           /* Unused - keeping for reference */
  --font-heading: 'The Poet', serif;            /* Logo, h1, h2 */
  --font-body: 'Arial Narrow', Arial, sans-serif;

  /* Font Sizes - Desktop */
  --text-xs: 15.6px;
  --text-sm: 16.8px;
  --text-base: 24px;
  --text-lg: 21.6px;
  --text-xl: 24px;
  --text-2xl: 31.2px;
  --text-3xl: 38.4px;
  --text-4xl: 48px;

  /* Specific Component Sizes - Desktop */
  --size-logo: 64px;
  --size-nav: 23px;
  --size-hero-h1: clamp(40px, 6.25vw, 70px);
  --size-hero-h2: clamp(var(--text-xl), 3vw, var(--text-3xl));
  --size-hero-img: 600px;

  /* Font Weights */
  --weight-normal: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;

  /* Line Heights */
  --leading-tight: 1.3;
  --leading-normal: 1.6;
  --leading-relaxed: 1.7;

  /* ==========================================================================
     SPACING & LAYOUT
     ========================================================================== */

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

  /* Layout */
  --container-max: 1400px;
  --gutter: 4vw;
  --gutter-mobile: 6vw;
  --grid-gap: 11px;

  /* ==========================================================================
     EFFECTS
     ========================================================================== */

  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 8px;

  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);

  --transition-fast: 0.15s ease;
  --transition-base: 0.2s ease;
  --transition-slow: 0.3s ease;
}

/* ==========================================================================
   Mobile Overrides - Component sizes only
   ========================================================================== */

@media (max-width: 768px) {
  :root {
    --gutter: var(--gutter-mobile);
    --size-logo: var(--text-3xl);
    --size-nav: 17px;
    --size-hero-img: 250px;
  }
}

/* ============================================================================
   RESET & BASE STYLES
   ============================================================================ */

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

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--weight-normal);
  line-height: var(--leading-normal);
  color: var(--color-text);
  background: var(--color-bg-main);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================================================
   TYPOGRAPHY
   ============================================================================ */

h1, h2, h3, h4, h5, h6 {
  font-weight: var(--weight-medium);
  line-height: var(--leading-tight);
  margin-bottom: 1em;
}

h1, h2, h3 {
  color: var(--color-primary);
}

h1 {
  font-family: var(--font-heading);
  font-size: clamp(var(--text-3xl), 3.5vw, var(--text-4xl));
  font-weight: var(--weight-normal);
  letter-spacing: -0.01em;
}

h2 {
  font-family: var(--font-heading);
  font-size: clamp(var(--text-2xl), 3vw, var(--text-3xl));
  font-weight: var(--weight-normal);
  margin-top: 2.5em;
  letter-spacing: 0.02em;
}

h3 {
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  letter-spacing: 0.01em;
  margin-top: 1.5em;
}

p {
  margin-bottom: 1.2em;
  line-height: var(--leading-relaxed);
}

a {
  color: var(--color-primary);
  text-decoration: underline;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-secondary);
}

strong {
  font-weight: var(--weight-semibold);
}

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

header {
  padding: 2.5vw var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--container-max);
  margin: 0 auto;
}

.logo a {
  font-family: var(--font-heading);
  font-size: var(--size-logo);
  text-decoration: none;
  color: var(--color-primary);
  transition: color var(--transition-base);
}

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

nav {
  display: flex;
  gap: 2em;
  align-items: center;
}

nav a {
  text-decoration: none;
  color: var(--color-text);
  font-size: var(--size-nav);
  font-weight: var(--weight-normal);
  transition: color var(--transition-fast);
  letter-spacing: 0.02em;
}

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

/* Dropdown */
.dropdown {
  position: relative;
}

.dropdown-toggle {
  cursor: pointer;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  background: var(--color-bg-main);
  border: 1px solid var(--color-border);
  min-width: 140px;
  padding: var(--space-2) 0;
  box-shadow: var(--shadow-md);
  z-index: 100;
  border-radius: var(--radius-sm);
}

.dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 10px;
  display: none;
}

.dropdown:hover::after,
.dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-menu a {
  display: block;
  padding: var(--space-2) var(--space-5);
  font-size: var(--text-sm);
  text-decoration: none;
  transition: background var(--transition-base);
}

.dropdown-menu a:hover {
  background: rgba(133, 31, 63, 0.05);
  color: var(--color-primary);
}

/* ============================================================================
   MAIN CONTENT & FOOTER
   ============================================================================ */

main {
  min-height: 70vh;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

footer {
  margin-top: 4vw;
  padding: 3vw var(--gutter);
  border-top: 1px solid var(--color-border);
  text-align: center;
  color: var(--color-text-muted);
  font-size: var(--text-xs);
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
}

/* ============================================================================
   PAGE: HOME
   ============================================================================ */

.page-home {
  background-color: var(--color-bg-home);
}

.page-home header,
.page-home footer {
  background-color: transparent;
}

/* ============================================================================
   COMPONENT: HERO
   ============================================================================ */

.hero {
  padding: 0 0 var(--space-10) 0;
  margin: 0;
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.hero img {
  width: var(--size-hero-img);
  height: var(--size-hero-img);
  min-width: var(--size-hero-img);
  object-fit: cover;
  border-radius: 50%;
  flex-shrink: 0;
}

.hero-content {
  flex: 1;
  text-align: center;
}

.hero-content h1 {
  font-family: var(--font-heading);
  font-size: var(--size-hero-h1);
  font-weight: var(--weight-normal);
  margin-bottom: 0.1em;
  line-height: 1.4;
  letter-spacing: 0.02em;
}

.hero-content h2 {
  font-family: var(--font-body);
  font-size: var(--size-hero-h2);
  font-weight: var(--weight-normal);
  margin-top: 0;
  margin-bottom: 0.8em;
  line-height: 1.4;
  letter-spacing: -0.03em;
}

.hero-content p {
  font-size: clamp(18px, 1.35vw, 18px);
  line-height: var(--leading-normal);
  margin-bottom: 1em;
}

.hero-content p:last-child {
  margin-bottom: 0;
}

/* ============================================================================
   COMPONENT: CONTENT WITH SIDEBAR
   ============================================================================ */

.content-section {
  margin: 0 0 2vw 0;
}

.content-with-sidebar {
  display: flex;
  gap: 2vw;
  align-items: flex-start;
}

.content-with-sidebar .main-content {
  flex: 4;
}

.content-with-sidebar .sidebar {
  flex: 1;
}

.sidebar h2 {
  margin-top: 0;
}

.sidebar ul {
  list-style-position: inside;
  padding-left: 0;
  margin-left: 0;
}

.sidebar li {
  padding-left: 0;
}

/* ============================================================================
   COMPONENT: IMAGE GRID (Photography)
   ============================================================================ */

.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
  gap: var(--grid-gap);
  margin: 2vw 0 0;
  max-width: var(--container-max);
}

.image-grid img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: opacity var(--transition-base);
  border-radius: var(--radius-sm);
  aspect-ratio: 3 / 4;
}

.image-grid img:hover {
  opacity: 0.85;
}

/* ============================================================================
   COMPONENT: FEATURES GRID
   ============================================================================ */

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
  gap: var(--grid-gap);
  margin: 2vw 0 0;
  max-width: var(--container-max);
}

.feature-item {
  position: relative;
}

.feature-item a {
  display: block;
  text-decoration: none;
  color: inherit;
}

.feature-item img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: var(--radius-sm);
  transition: opacity var(--transition-base);
  aspect-ratio: 3 / 4;
}

.feature-item a:hover img {
  opacity: 0.85;
}

.feature-caption {
  margin-top: 0.5em;
  margin-bottom: 0;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-align: center;
}

/* ============================================================================
   COMPONENT: PRODUCT GRID (Ventures)
   ============================================================================ */

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3vw;
  margin: 4vw 0;
  align-items: start;
}

.product-grid-5 {
  grid-template-columns: repeat(5, 1fr);
  gap: 2vw;
  margin: 2vw 0 0 0;
}

.product-grid-3 {
  grid-template-columns: repeat(3, 1fr);
  gap: 3vw;
  margin: 2vw 0 0 0;
}

.product-item {
  display: flex;
  flex-direction: column;
}

.product-item img {
  width: 100%;
  margin-bottom: 1em;
  display: block;
  object-fit: cover;
  border-radius: var(--radius-sm);
  aspect-ratio: 1 / 1;
}

.product-item h3 {
  margin-top: 0;
  margin-bottom: 0.8em;
}

.product-item p {
  font-size: 15px;
  color: var(--color-text-muted);
  margin-top: 0;
}

/* ============================================================================
   UTILITY CLASSES
   ============================================================================ */

.text-center { text-align: center; }
.text-accent { color: var(--color-primary); }
.font-brand  { font-family: var(--font-brand); }

/* ============================================================================
   RESPONSIVE: MOBILE (max-width: 768px)
   ============================================================================ */

@media (max-width: 768px) {
  header {
    flex-direction: column;
    padding: 6vw var(--gutter);
    gap: 3vw;
  }

  nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5em;
  }

  main {
    padding: 8vw var(--gutter);
  }

  .hero {
    flex-direction: column;
    padding: var(--space-6);
    gap: var(--space-6);
    text-align: center;
  }

  .image-grid,
  .features-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .product-grid,
  .product-grid-5,
  .product-grid-3 {
    grid-template-columns: 1fr;
    gap: 6vw;
  }

  .content-with-sidebar {
    flex-direction: column;
    gap: 2vw;
  }

  .content-with-sidebar .main-content {
    padding-bottom: 2vw;
    border-bottom: 1px solid var(--color-border);
  }

  .content-with-sidebar .sidebar {
    margin-top: 0;
  }

  .content-with-sidebar .sidebar h2 {
    margin-top: 0.5em;
  }
}

/* ============================================================================
   RESPONSIVE: TABLET (769px - 1200px)
   ============================================================================ */

@media (min-width: 769px) and (max-width: 1200px) {
  .product-grid-5 {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5vw;
  }

  .product-grid-3 {
    grid-template-columns: repeat(2, 1fr);
    gap: 3.5vw;
  }
}

/* ============================================================================
   PRINT STYLES
   ============================================================================ */

@media print {
  header, footer, .dropdown-menu {
    display: none;
  }

  body {
    background: white;
    color: black;
  }
}
