/* =====================================================
   Color Splashh — Global Styles
   Base typography, layout grid, utilities
   ===================================================== */

/* --------------------------------------------------
   BASE
   -------------------------------------------------- */
body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  color: var(--color-ink);
  background-color: var(--color-ivory);
  overflow-x: hidden;
}

/* Offset for sticky nav */
[id] {
  scroll-margin-top: 90px;
}

/* --------------------------------------------------
   DOT TEXTURE PATTERN (recurring brand motif)
   -------------------------------------------------- */
.dot-texture {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Ccircle cx='18' cy='22' r='2.5' fill='%23A6A6A6' opacity='0.25'/%3E%3Ccircle cx='60' cy='12' r='1.8' fill='%23A6A6A6' opacity='0.18'/%3E%3Ccircle cx='95' cy='35' r='2.2' fill='%23A6A6A6' opacity='0.22'/%3E%3Ccircle cx='8' cy='75' r='1.5' fill='%23A6A6A6' opacity='0.15'/%3E%3Ccircle cx='40' cy='55' r='2' fill='%23A6A6A6' opacity='0.2'/%3E%3Ccircle cx='80' cy='70' r='2.5' fill='%2300674F' opacity='0.18'/%3E%3Ccircle cx='25' cy='95' r='2' fill='%23A6A6A6' opacity='0.2'/%3E%3Ccircle cx='105' cy='90' r='1.8' fill='%23A6A6A6' opacity='0.15'/%3E%3Ccircle cx='68' cy='88' r='1.5' fill='%23A6A6A6' opacity='0.12'/%3E%3Ccircle cx='50' cy='30' r='1.2' fill='%23A6A6A6' opacity='0.12'/%3E%3C/svg%3E");
}

/* --------------------------------------------------
   LAYOUT — Container
   -------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.container--md {
  max-width: var(--max-width-md);
}

.container--sm {
  max-width: var(--max-width-sm);
}

/* --------------------------------------------------
   SECTION SPACING
   -------------------------------------------------- */
.section {
  padding-block: var(--section-pad);
}

.section--sm {
  padding-block: calc(var(--section-pad) * 0.6);
}

.section--lg {
  padding-block: calc(var(--section-pad) * 1.3);
}

/* --------------------------------------------------
   GRID SYSTEM (12-col)
   -------------------------------------------------- */
.grid {
  display: grid;
  gap: var(--gutter, 24px);
}

.grid-12 { grid-template-columns: repeat(12, 1fr); }
.grid-3   { grid-template-columns: repeat(3, 1fr); }
.grid-4   { grid-template-columns: repeat(4, 1fr); }
.grid-2   { grid-template-columns: repeat(2, 1fr); }

/* --------------------------------------------------
   FLEX UTILITIES
   -------------------------------------------------- */
.flex          { display: flex; }
.flex-center   { display: flex; align-items: center; justify-content: center; }
.flex-between  { display: flex; align-items: center; justify-content: space-between; }
.flex-col      { display: flex; flex-direction: column; }
.gap-2         { gap: var(--space-2); }
.gap-4         { gap: var(--space-4); }
.gap-6         { gap: var(--space-6); }
.gap-8         { gap: var(--space-8); }
.gap-12        { gap: var(--space-12); }

/* --------------------------------------------------
   TYPOGRAPHY — DISPLAY / HEADLINES (Fraunces)
   -------------------------------------------------- */
.display-1 {
  font-family: var(--font-serif);
  font-size: var(--text-6xl);
  font-weight: 600;
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
}

.display-2 {
  font-family: var(--font-serif);
  font-size: var(--text-5xl);
  font-weight: 600;
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
}

.heading-1 {
  font-family: var(--font-serif);
  font-size: var(--text-4xl);
  font-weight: 600;
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-tight);
}

.heading-2 {
  font-family: var(--font-serif);
  font-size: var(--text-3xl);
  font-weight: 600;
  line-height: var(--leading-snug);
}

.heading-3 {
  font-family: var(--font-serif);
  font-size: var(--text-2xl);
  font-weight: 600;
  line-height: var(--leading-snug);
}

.heading-4 {
  font-family: var(--font-sans);
  font-size: var(--text-xl);
  font-weight: 600;
  line-height: var(--leading-snug);
}

/* Pull-quotes: Fraunces italic */
.pull-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: var(--text-2xl);
  font-weight: 300;
  line-height: var(--leading-snug);
  color: var(--color-emerald);
}

/* --------------------------------------------------
   TYPOGRAPHY — BODY (Inter)
   -------------------------------------------------- */
.body-lg {
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  color: var(--color-text);
}

.body-base {
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--color-text);
}

.body-sm {
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
  color: var(--color-text-muted);
}

.caption {
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-text-muted);
}

/* --------------------------------------------------
   SECTION LABEL (eyebrow text above headings)
   -------------------------------------------------- */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--color-emerald);
  margin-bottom: var(--space-4);
}

.section-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-emerald);
  border-radius: 2px;
}

/* --------------------------------------------------
   DIVIDER — Dot Scatter (instead of plain line)
   -------------------------------------------------- */
.dot-divider {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-block: var(--space-16);
  opacity: 0.35;
}

.dot-divider span {
  display: inline-block;
  border-radius: 50%;
  background: var(--color-bubble);
}

.dot-divider span:nth-child(1) { width: 4px; height: 4px; }
.dot-divider span:nth-child(2) { width: 6px; height: 6px; }
.dot-divider span:nth-child(3) { width: 8px; height: 8px; background: var(--color-emerald); }
.dot-divider span:nth-child(4) { width: 6px; height: 6px; }
.dot-divider span:nth-child(5) { width: 4px; height: 4px; }
.dot-divider span:nth-child(6) { flex: 1; height: 1px; background: var(--color-border); }
.dot-divider span:nth-child(7) { width: 4px; height: 4px; }
.dot-divider span:nth-child(8) { width: 6px; height: 6px; }
.dot-divider span:nth-child(9) { width: 5px; height: 5px; }

/* --------------------------------------------------
   UTILITY — Colors
   -------------------------------------------------- */
.text-emerald  { color: var(--color-emerald); }
.text-slate    { color: var(--color-slate); }
.text-brass    { color: var(--color-brass); }
.text-ivory    { color: var(--color-ivory); }
.text-ink      { color: var(--color-ink); }

.bg-ivory      { background-color: var(--color-ivory); }
.bg-emerald    { background-color: var(--color-emerald); }
.bg-emerald-deep { background-color: var(--color-emerald-deep); }
.bg-emerald-pale { background-color: var(--color-emerald-pale); }

/* --------------------------------------------------
   UTILITY — Text Align
   -------------------------------------------------- */
.text-center { text-align: center; }
.text-left   { text-align: left; }

/* --------------------------------------------------
   UTILITY — Spacing
   -------------------------------------------------- */
.mt-4  { margin-top: var(--space-4); }
.mt-6  { margin-top: var(--space-6); }
.mt-8  { margin-top: var(--space-8); }
.mt-12 { margin-top: var(--space-12); }
.mb-4  { margin-bottom: var(--space-4); }
.mb-6  { margin-bottom: var(--space-6); }
.mb-8  { margin-bottom: var(--space-8); }
.mb-12 { margin-bottom: var(--space-12); }

/* --------------------------------------------------
   STAR RATING (Brass)
   -------------------------------------------------- */
.star-rating {
  display: flex;
  gap: var(--space-1);
  color: var(--color-brass);
}

/* --------------------------------------------------
   FOOTER
   -------------------------------------------------- */
.site-footer {
  background-color: var(--color-emerald-deep);
  color: var(--color-ivory);
  padding-block: var(--space-16) var(--space-12);
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Ccircle cx='18' cy='22' r='2.5' fill='%23FAF9F6' opacity='0.06'/%3E%3Ccircle cx='60' cy='12' r='1.8' fill='%23FAF9F6' opacity='0.05'/%3E%3Ccircle cx='95' cy='35' r='2.2' fill='%23FAF9F6' opacity='0.06'/%3E%3Ccircle cx='8' cy='75' r='1.5' fill='%23FAF9F6' opacity='0.04'/%3E%3Ccircle cx='40' cy='55' r='2' fill='%23FAF9F6' opacity='0.05'/%3E%3Ccircle cx='80' cy='70' r='2.5' fill='%23FAF9F6' opacity='0.08'/%3E%3Ccircle cx='25' cy='95' r='2' fill='%23FAF9F6' opacity='0.05'/%3E%3Ccircle cx='105' cy='90' r='1.8' fill='%23FAF9F6' opacity='0.04'/%3E%3C/svg%3E");
}

.footer-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--space-12);
  margin-bottom: var(--space-12);
}

.footer-brand p {
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  color: rgba(250, 249, 246, 0.6);
  margin-top: var(--space-4);
  max-width: 280px;
}

.footer-col h4 {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: rgba(250, 249, 246, 0.5);
  margin-bottom: var(--space-5);
}

.footer-col ul li {
  margin-bottom: var(--space-3);
}

.footer-col ul li a {
  font-size: var(--text-sm);
  color: rgba(250, 249, 246, 0.75);
  transition: color var(--transition-fast);
}

.footer-col ul li a:hover {
  color: var(--color-ivory);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: rgba(250, 249, 246, 0.75);
  margin-bottom: var(--space-4);
}

.footer-contact-item i {
  color: var(--color-brass);
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-bottom {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-8);
  border-top: 1px solid rgba(250, 249, 246, 0.12);
  font-size: var(--text-xs);
  color: rgba(250, 249, 246, 0.4);
}

/* --------------------------------------------------
   RESPONSIVE OVERRIDES
   Layout breakpoints → css/responsive.css (loaded last)
   Only CSS token reassignments here.
   -------------------------------------------------- */
@media (max-width: 1280px) {
  :root {
    --pad-x: 3rem;
  }
}

@media (max-width: 1024px) {
  :root {
    --pad-x: 2rem;
  }
}

@media (max-width: 768px) {
  :root {
    --section-pad: var(--section-pad-mobile);
    --pad-x:       var(--pad-x-mobile);
  }
}

