/* ============================================================
   BEAUMONT COOPER LTD — BASE STYLES
   Reset, typography, global utilities.
   ============================================================ */

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

/* Modern reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  font-size: var(--t-body);
  line-height: var(--leading-body);
  color: var(--bc-charcoal);
  background-color: var(--bc-ivory);
  -webkit-font-smoothing: antialiased;
  transition: background-color var(--duration-slow) var(--ease-standard),
              color var(--duration-slow) var(--ease-standard);
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }
ul, ol { list-style: none; }
input, textarea, select { font: inherit; }

/* Typography base */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--bc-ink);
  letter-spacing: var(--ls-heading);
  line-height: var(--leading-heading);
}
h1 { font-size: var(--t-h1); }
h2 { font-size: var(--t-h2); }
h3 { font-size: var(--t-h3); }
h4 { font-size: var(--t-h4); }
p  { max-width: 68ch; }

/* Label utility class */
.label {
  font-family: var(--font-label);
  font-size: var(--t-label);
  font-weight: 500;
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  color: var(--bc-gold);
}

/* Placeholder / to-be-confirmed content */
.placeholder-text {
  color: var(--bc-muted);
  font-style: italic;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow {
  max-width: 860px;
}
.container--text {
  max-width: var(--max-width-text);
}

/* Section spacing */
.section {
  padding-block: var(--sp-24);
}
.section--lg {
  padding-block: var(--sp-32);
}
.section--sm {
  padding-block: var(--sp-16);
}
.section--alt {
  background-color: var(--bc-parchment);
}
.section--dark {
  background-color: var(--bc-panel-dark);
  color: #F8F5EE;
}
.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: #F8F5EE;
}
.section--dark p {
  color: rgba(248, 245, 238, 0.82);
}
.section--dark .label {
  color: #C4A96A;
}

/* Thin rule divider */
.rule {
  width: 48px;
  height: 1px;
  background-color: var(--bc-gold);
  margin-block: var(--sp-6);
}
.rule--full {
  width: 100%;
  opacity: 0.3;
}
.rule--centred {
  margin-inline: auto;
}

/* Section headers (label + heading pattern) */
.section-header {
  margin-bottom: var(--sp-12);
}
.section-header .label {
  display: block;
  margin-bottom: var(--sp-4);
}
.section-header--centred {
  text-align: center;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--sp-4);
  z-index: var(--z-modal);
  padding: var(--sp-3) var(--sp-6);
  background: var(--bc-ink);
  color: var(--bc-ivory);
  font-family: var(--font-label);
  font-size: var(--t-small);
  border-radius: var(--radius-sm);
  transition: top var(--duration-fast) var(--ease-standard);
}
.skip-link:focus-visible {
  top: var(--sp-4);
}

/* Focus styles */
:focus-visible {
  outline: 2px solid var(--bc-gold);
  outline-offset: 3px;
}

/* Scroll reveal (animations.js adds .visible) */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 500ms var(--ease-enter),
              transform 500ms var(--ease-enter);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Visually hidden (screen-reader only) */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
