/* ================================================
   DANGUOLĖ — Global Design System
   ================================================ */

/* --- Variables --- */
:root {
  /* --- Palette --- */
  --cream:       #F7F5F1;
  --alabaster:   #F0EFEB;
  --linen:       #E8E5DF;
  --taupe:       #6E6860;
  --warm-grey:   #D4D0CB;
  --charcoal:    #2C2B28;
  --forest:      #2A4A3E;
  --gold:        #B8985A;
  --off-white:   #FAFAF8;
  --ink:         #1A1916;

  /* --- Typography --- */
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans:  'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* --- Type Scale --- */
  --text-xs:   0.6875rem;  /* 11px */
  --text-sm:   0.8125rem;  /* 13px */
  --text-base: 1rem;       /* 16px */
  --text-md:   1.125rem;   /* 18px */
  --text-lg:   1.375rem;   /* 22px */
  --text-xl:   1.75rem;    /* 28px */
  --text-2xl:  2.25rem;    /* 36px */
  --text-3xl:  3rem;       /* 48px */
  --text-4xl:  4rem;       /* 64px */
  --text-5xl:  5.5rem;     /* 88px */

  /* --- Spacing (8px base) --- */
  --sp-1: 0.5rem;    /* 8px  */
  --sp-2: 1rem;      /* 16px */
  --sp-3: 1.5rem;    /* 24px */
  --sp-4: 2rem;      /* 32px */
  --sp-5: 3rem;      /* 48px */
  --sp-6: 4rem;      /* 64px */
  --sp-7: 6rem;      /* 96px */
  --sp-8: 8rem;      /* 128px */

  /* --- Layout --- */
  --max-width:    1320px;
  --navbar-h:     76px;

  /* --- Motion --- */
  --ease:         cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out:     cubic-bezier(0, 0, 0.2, 1);
  --dur-fast:     150ms;
  --dur-base:     260ms;
  --dur-slow:     420ms;

  /* --- Radius --- */
  --r-sm: 2px;
  --r-md: 4px;
}


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

[hidden] { display: none !important; }

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

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.75;
  color: var(--charcoal);
  background-color: #F9F8F6;
  background-image: url('../images/marble background.webp');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, video, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
input, textarea, select { font: inherit; }


/* --- Grain overlay (performance: CSS SVG, no image file) --- */
.grain-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9000;
  opacity: 0.038;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.72' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='400' height='400' filter='url(%23g)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 400px 400px;
}


/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.18;
  color: var(--charcoal);
}

h1 { font-size: clamp(var(--text-3xl), 6vw,   var(--text-5xl)); }
h2 { font-size: clamp(var(--text-2xl), 4vw,   var(--text-4xl)); }
h3 { font-size: clamp(var(--text-xl),  3vw,   var(--text-3xl)); }
h4 { font-size: clamp(var(--text-lg),  2.5vw, var(--text-2xl)); }

p { line-height: 1.78; }

.eyebrow {
  display: block;
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--forest);
}


/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--sp-3);
}

@media (min-width: 768px)  { .container { padding-inline: var(--sp-5); } }
@media (min-width: 1200px) { .container { padding-inline: var(--sp-6); } }


/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-1);
  padding: 0.9rem 2.25rem;
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: background-color var(--dur-base) var(--ease),
              color var(--dur-base) var(--ease),
              border-color var(--dur-base) var(--ease);
  white-space: nowrap;
  text-decoration: none;
  border: 1px solid transparent;
}

.btn--primary {
  background-color: var(--forest);
  color: var(--off-white);
  border-color: var(--forest);
}
.btn--primary:hover {
  background-color: var(--ink);
  border-color: var(--ink);
}

.btn--outline {
  background-color: transparent;
  color: var(--charcoal);
  border-color: var(--charcoal);
}
.btn--outline:hover {
  background-color: var(--charcoal);
  color: var(--cream);
}

.btn--light {
  background-color: var(--off-white);
  color: var(--charcoal);
  border-color: var(--off-white);
}
.btn--light:hover {
  background-color: var(--cream);
  border-color: var(--cream);
}


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

.text-center { text-align: center; }

/* --- Skip-to-main link (accessibility) --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--sp-3);
  z-index: 9999;
  padding: 8px 16px;
  background: var(--forest);
  color: var(--cream);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 4px 4px;
  transition: top var(--dur-fast) var(--ease);
}
.skip-link:focus { top: 0; }
