/* ==================== Variables ==================== */
:root {
  /* Color palette: elegant, warm, gallery-like */
  --color-background: #F5F1EB; /* warm beige */
  --color-surface: #FFFEFA; /* ivory white */
  --color-text: #1E1E1C; /* matte black */
  --color-primary: #C7A44D; /* soft gold */
  --color-success: #2E6B56; /* muted emerald */
  --color-warning: #B67C1B; /* deep amber */
  --color-danger: #8E2D3C; /* oxblood */

  /* Neutral grays (warm-leaning) */
  --gray-50:  #FAF8F5;
  --gray-100: #F2EEE8;
  --gray-200: #E8E3DB;
  --gray-300: #D9D0C7;
  --gray-400: #B8B1A8;
  --gray-500: #9A948C;
  --gray-600: #7A756E;
  --gray-700: #5C5853;
  --gray-800: #3E3B37;
  --gray-900: #221F1C;

  /* Typography */
  --font-sans: "Inter", "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
  --font-serif: "Playfair Display", "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: var(--font-sans);
  --font-heading: var(--font-serif);

  --font-size-root: 16px;
  --text-xs: 0.75rem;   /* 12px */
  --text-sm: 0.875rem;  /* 14px */
  --text-base: 1rem;    /* 16px */
  --text-lg: 1.125rem;  /* 18px */
  --text-xl: 1.25rem;   /* 20px */
  --text-2xl: 1.5rem;   /* 24px */
  --text-3xl: 1.875rem; /* 30px */
  --text-4xl: 2.25rem;  /* 36px */
  --text-5xl: 3rem;     /* 48px */

  --leading-none: 1;
  --leading-tight: 1.2;
  --leading-normal: 1.5;
  --leading-relaxed: 1.7;

  /* Spacing scale (0–96px in 4px steps) */
  --space-0: 0;
  --space-1: 0.25rem;  /* 4px */
  --space-2: 0.5rem;   /* 8px */
  --space-3: 0.75rem;  /* 12px */
  --space-4: 1rem;     /* 16px */
  --space-5: 1.25rem;  /* 20px */
  --space-6: 1.5rem;   /* 24px */
  --space-7: 1.75rem;  /* 28px */
  --space-8: 2rem;     /* 32px */
  --space-9: 2.25rem;  /* 36px */
  --space-10: 2.5rem;  /* 40px */
  --space-11: 2.75rem; /* 44px */
  --space-12: 3rem;    /* 48px */
  --space-13: 3.25rem; /* 52px */
  --space-14: 3.5rem;  /* 56px */
  --space-15: 3.75rem; /* 60px */
  --space-16: 4rem;    /* 64px */
  --space-17: 4.25rem; /* 68px */
  --space-18: 4.5rem;  /* 72px */
  --space-19: 4.75rem; /* 76px */
  --space-20: 5rem;    /* 80px */
  --space-21: 5.25rem; /* 84px */
  --space-22: 5.5rem;  /* 88px */
  --space-23: 5.75rem; /* 92px */
  --space-24: 6rem;    /* 96px */

  /* Radius */
  --radius-xs: 2px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-pill: 9999px;

  /* Shadows (soft, gallery-like) */
  --shadow-subtle: 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-soft: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 6px 16px rgba(0, 0, 0, 0.10);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.12);

  /* Transitions */
  --duration-fast: 150ms;
  --duration-normal: 250ms;
  --duration-slow: 400ms;
  --easing-standard: cubic-bezier(0.2, 0.0, 0.2, 1);

  /* Layout */
  --container-sm: 640px;
  --container-md: 960px;
  --container-lg: 1200px;

  /* Focus */
  --focus-color: rgba(199, 164, 77, 0.45); /* soft gold glow */
}

/* ==================== Reset / Normalize ==================== */
* { box-sizing: border-box; }
*::before, *::after { box-sizing: inherit; }

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

html, body { height: 100%; }

body {
  margin: 0;
}

/* Remove default margins on common elements */
h1, h2, h3, h4, h5, h6,
p, figure, blockquote, dl, dd { margin: 0; }

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

/* Reset buttons */
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; }

/* Smooth font rendering */
body, input, textarea, select, button {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* ==================== Base ==================== */
body {
  background-color: var(--color-background);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  letter-spacing: 0.01em;
}

::selection {
  background: rgba(199, 164, 77, 0.18);
  color: var(--color-text);
}

/* Headings: elegant serif scale */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-text);
  line-height: var(--leading-tight);
  font-weight: 600;
}

h1 { font-size: clamp(2.25rem, 1.5rem + 2.5vw, 3.5rem); margin-bottom: var(--space-6); }
h2 { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.5rem);  margin-bottom: var(--space-5); }
h3 { font-size: clamp(1.5rem, 1rem + 1.5vw, 2rem);     margin-bottom: var(--space-4); }
h4 { font-size: 1.375rem; margin-bottom: var(--space-3); }
h5 { font-size: 1.125rem; margin-bottom: var(--space-2); }
h6 { font-size: 1rem;     margin-bottom: var(--space-1); }

/* Paragraphs: comfortable measure */
p {  margin-bottom: var(--space-5); }

/* Links: understated, elegant */
a {
  color: var(--color-primary);
  text-decoration: none;
  text-underline-offset: 2px;
}
a:hover { text-decoration: underline; }
a:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--focus-color); border-radius: var(--radius-xs); }

/* Lists spacing */
ul, ol { padding-left: 1.25em; margin-bottom: var(--space-5); }

/* HR */
hr { border: 0; border-top: 1px solid var(--gray-200); margin: var(--space-8) 0; }

/* ==================== Utilities ==================== */
.container {
  width: 100%;
  max-width: var(--container-lg);
  margin-inline: auto;
  padding-inline: var(--space-6);
}
.container--narrow { max-width: var(--container-md); }
.container--wide { max-width: calc(var(--container-lg) + 160px); }

/* Flex helpers */
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-2 { gap: var(--space-2); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }

/* Grid helpers */
.grid { display: grid; gap: var(--space-6); }
.grid-auto-fit { grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }

/* Spacing utilities (limited selection for brevity) */
.mt-0 { margin-top: 0; } .mt-4 { margin-top: var(--space-4); } .mt-8 { margin-top: var(--space-8); }
.mb-0 { margin-bottom: 0; } .mb-4 { margin-bottom: var(--space-4); } .mb-8 { margin-bottom: var(--space-8); }
.pt-4 { padding-top: var(--space-4); } .pb-4 { padding-bottom: var(--space-4); }
.px-4 { padding-left: var(--space-4); padding-right: var(--space-4); }

/* Screen reader only */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

/* ==================== Components ==================== */
/* Button */
.btn {
  --btn-bg: var(--gray-900);
  --btn-color: #FFFFFF;
  --btn-border: transparent;
  --btn-shadow: var(--shadow-subtle);

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  background: var(--btn-bg);
  color: var(--btn-color);
  border: 1px solid var(--btn-border);
  border-radius: var(--radius-md);
  box-shadow: var(--btn-shadow);
  cursor: pointer;
  text-decoration: none;
  transition: background-color var(--duration-normal) var(--easing-standard),
              color var(--duration-normal) var(--easing-standard),
              border-color var(--duration-normal) var(--easing-standard),
              box-shadow var(--duration-normal) var(--easing-standard),
              transform var(--duration-fast) var(--easing-standard);
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); box-shadow: var(--shadow-subtle); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.6; cursor: not-allowed; transform: none; }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--focus-color), var(--shadow-md); }

/* Button variants */
.btn--primary { --btn-bg: var(--color-primary); --btn-color: var(--color-text); }
.btn--outline {
  --btn-bg: transparent;
  --btn-color: var(--color-text);
  --btn-border: var(--gray-300);
  --btn-shadow: none;
}
.btn--ghost {
  --btn-bg: transparent;
  --btn-color: var(--color-text);
  --btn-border: transparent;
  --btn-shadow: none;
}
.btn--ghost:hover { background: rgba(0,0,0,0.04); }

/* Inputs */
.input, input[type="text"], input[type="email"], input[type="search"], input[type="password"], input[type="tel"], input[type="url"], input[type="number"], textarea, select {
  width: 100%;
  background: var(--color-surface);
  color: var(--color-text);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  padding: var(--space-3) var(--space-4);
  box-shadow: var(--shadow-subtle) inset;
  transition: border-color var(--duration-normal) var(--easing-standard),
              box-shadow var(--duration-normal) var(--easing-standard),
              background-color var(--duration-normal) var(--easing-standard);
}
.input::placeholder, input::placeholder, textarea::placeholder { color: var(--gray-500); }
.input:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--focus-color), var(--shadow-subtle) inset;
}
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--gray-600) 50%), linear-gradient(135deg, var(--gray-600) 50%, transparent 50%); background-position: calc(100% - 18px) calc(1.1em), calc(100% - 14px) calc(1.1em); background-size: 4px 4px, 4px 4px; background-repeat: no-repeat; }

/* Card */
.card {
  background: var(--color-surface);
  color: var(--color-text);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: var(--space-6);
}
.card--elevated { box-shadow: var(--shadow-lg); }
.card-header { margin-bottom: var(--space-4); }
.card-footer { margin-top: var(--space-4); }

/* Badges (optional lightweight component) */
.badge {
  display: inline-block;
  padding: 0.25em 0.6em;
  border-radius: var(--radius-pill);
  background: var(--gray-100);
  color: var(--gray-800);
  font-size: var(--text-sm);
}
.badge--success { background: color-mix(in srgb, var(--color-success) 15%, white); color: var(--color-success); }
.badge--warning { background: color-mix(in srgb, var(--color-warning) 15%, white); color: var(--color-warning); }
.badge--danger  { background: color-mix(in srgb, var(--color-danger) 15%, white);  color: var(--color-danger); }

/* ==================== Accessibility ==================== */
:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--focus-color); }

@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;
  }
}

/* ==================== Aesthetic Helpers ==================== */
/* Subtle section background to emulate gallery walls */
.section-soft {
  background: var(--gray-50);
}

/* Gentle divider */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gray-200), transparent);
  border: 0;
}

/* ==================== Header & Footer styles ==================== */

/* Skip link */
.skip-link {
  position: absolute; left: 8px; top: -40px; z-index: 9999;
  background: var(--color-surface); color: var(--color-text);
  padding: var(--space-2) var(--space-3); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft);
}
.skip-link:focus { top: 8px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: var(--color-surface);
  border-bottom: 1px solid var(--gray-200);
}
.header-inner { min-height: 64px; }
.brand a {
  font-family: var(--font-heading);
  font-size: 1.375rem; font-weight: 700; letter-spacing: 0.5px;
  color: var(--color-text);
}

/* Navigation */
.nav-toggle { display: none; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: var(--radius-md); flex-direction: column; }
.nav-toggle:focus-visible { box-shadow: 0 0 0 3px var(--focus-color); }
.nav-toggle__bar { width: 22px; height: 2px; background: var(--color-text); margin: 3px 0; border-radius: 2px; display: block; transition: transform var(--duration-normal) var(--easing-standard), opacity var(--duration-normal) var(--easing-standard); }
.primary-nav { display: block; }
.nav-list { display: flex; gap: var(--space-6); list-style: none; padding: 0; margin: 0; }
.nav-list a { color: var(--color-text); font-weight: 500; }
.nav-list a:hover { text-decoration: none; opacity: 0.9; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .primary-nav { position: fixed; inset: 0 0 auto 0; background: var(--color-surface); border-bottom: 1px solid var(--gray-200); transform: translateY(-120%); transition: transform var(--duration-normal) var(--easing-standard); box-shadow: var(--shadow-md); }
  .primary-nav.is-open { transform: translateY(64px); }
  .nav-list { padding: var(--space-6); gap: var(--space-4); flex-direction: column; }
  body.menu-open { overflow: hidden; }
}

/* Footer */
.site-footer { background: var(--color-surface); border-top: 1px solid var(--gray-200); }
.footer-grid { display: grid; gap: var(--space-10); grid-template-columns: 1.2fr 1fr 1fr; padding-top: var(--space-12); padding-bottom: var(--space-10); }
.footer-logo { font-family: var(--font-heading); font-weight: 700; font-size: 1.25rem; color: var(--color-text); display: inline-block; margin-bottom: var(--space-3); }
.footer-nav h3, .footer-legal h3 { font-size: 1rem; margin-bottom: var(--space-3); font-family: var(--font-sans); font-weight: 600; }
.footer-nav ul, .footer-legal ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5rem; }
.footer-bottom { border-top: 1px solid var(--gray-200); padding-top: var(--space-6); padding-bottom: var(--space-8); display: flex; justify-content: space-between; align-items: center; }

@media (max-width: 960px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: var(--space-3); text-align: center; }
}

/* Cookie banner (cookie consent banner) */
.cookie-consent { position: fixed; inset: auto 0 0 0; background: var(--color-surface); border-top: 1px solid var(--gray-300); box-shadow: 0 -8px 24px rgba(0,0,0,0.08); z-index: 2000; }
.cookie-consent__inner { display: flex; gap: var(--space-6); align-items: center; justify-content: space-between; padding-top: var(--space-4); padding-bottom: var(--space-4); }
.cookie-text { margin: 0; color: var(--gray-800); }
.cookie-actions { display: flex; gap: var(--space-3); flex-wrap: wrap; }

@media (max-width: 720px) {
  .cookie-consent__inner { flex-direction: column; align-items: stretch; }
  .cookie-actions { justify-content: flex-end; }
}

/* ==================== End base.css ==================== */
