/* base.css */
:root {
  --bg-base: #FDFBF7;
  --bg-alt: #F4EFEA;
  --surface-card: #FFFFFF;
  --text-primary: #1C2024;
  --text-secondary: #3A3D40;
  --accent-gold: #D4AF37;
  --accent-green: #2C4A3E;
  --text-on-dark: #FFFFFF;
  --text-on-gold: #1C2024;
  --border-subtle: #E5E0D8;
  --shadow-soft: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.12);
  --radius-card: 12px;
  --radius-button: 8px;
  --radius-input: 8px;
  --radius-modal: 16px;
  --radius-image: 8px;
  --radius-pill: 999px;
  --font-heading: "Playfair Display", Georgia, serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --container-max: 1200px;
  --container-padding: 24px;
  --transition-color: 0.2s ease;
  --transition-transform: 0.3s ease;
}

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

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

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  font-weight: 400;
  color: var(--text-primary);
  background-color: var(--bg-base);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  text-align: inherit;
}

a {
  color: var(--accent-gold);
  text-decoration: none;
  transition: color var(--transition-color);
}

a:hover {
  color: var(--accent-green);
  text-decoration: underline;
}

ul,
ol {
  list-style-position: inside;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.01em;
  color: var(--text-primary);
  margin-block-end: var(--space-4);
}

h1:last-child,
h2:last-child,
h3:last-child,
h4:last-child,
h5:last-child,
h6:last-child {
  margin-block-end: 0;
}

h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  line-height: 1.2;
}

h2 {
  font-size: clamp(1.5rem, 3.5vw, 1.875rem);
  line-height: 1.2;
}

h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  line-height: 1.3;
}

h4 {
  font-size: 1.25rem;
  line-height: 1.4;
}

h5 {
  font-size: 1.125rem;
  line-height: 1.4;
}

h6 {
  font-size: 1rem;
  line-height: 1.5;
}

.display {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(2rem, 5vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: 0.01em;
  margin-block-end: var(--space-5);
}

.display:last-child {
  margin-block-end: 0;
}

p {
  font-size: 1rem;
  line-height: 1.6;
  margin-block-end: var(--space-4);
}

p:last-child {
  margin-block-end: 0;
}

.small {
  font-size: 0.875rem;
  line-height: 1.5;
}

.caption {
  font-size: 0.75rem;
  line-height: 1.4;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-block-end: var(--space-2);
}

blockquote {
  margin-block-end: var(--space-4);
  padding-inline-start: var(--space-5);
  border-inline-start: 3px solid var(--accent-gold);
  color: var(--text-secondary);
  font-style: italic;
}

blockquote:last-child {
  margin-block-end: 0;
}

figure {
  margin-block-end: var(--space-4);
}

figure:last-child {
  margin-block-end: 0;
}

figcaption {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-block-start: var(--space-2);
}

hr {
  border: none;
  border-top: 1px solid var(--border-subtle);
  margin-block: var(--space-6);
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-padding);
}

.section {
  padding-block: var(--space-8);
}

.section-alt {
  background-color: var(--bg-alt);
}

.surface-card {
  background-color: var(--surface-card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-subtle);
  padding: var(--space-5);
}

.surface-card > :last-child {
  margin-block-end: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.4;
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-button);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color var(--transition-color), border-color var(--transition-color), color var(--transition-color), box-shadow var(--transition-color), transform var(--transition-transform);
  text-decoration: none;
  min-height: 44px;
  white-space: nowrap;
}

.btn:hover {
  text-decoration: none;
}

.btn:active {
  transform: scale(0.97);
}

.btn:focus-visible {
  outline: 3px solid var(--accent-gold);
  outline-offset: 2px;
}

.btn-primary {
  background-color: var(--accent-gold);
  color: var(--text-on-gold);
  border-color: var(--accent-gold);
}

.btn-primary:hover {
  background-color: #c4a02f;
  border-color: #c4a02f;
  color: var(--text-on-gold);
}

.btn-secondary {
  background-color: transparent;
  color: var(--accent-green);
  border-color: var(--accent-green);
}

.btn-secondary:hover {
  background-color: var(--accent-green);
  color: var(--text-on-dark);
  border-color: var(--accent-green);
}

.btn-tertiary {
  background-color: transparent;
  color: var(--accent-gold);
  border-color: transparent;
  padding-inline: var(--space-2);
}

.btn-tertiary:hover {
  color: var(--accent-green);
  text-decoration: underline;
}

.btn-green {
  background-color: var(--accent-green);
  color: var(--text-on-dark);
  border-color: var(--accent-green);
}

.btn-green:hover {
  background-color: #1e352b;
  border-color: #1e352b;
  color: var(--text-on-dark);
}

.btn-outline-light {
  background-color: transparent;
  color: var(--text-on-dark);
  border-color: var(--text-on-dark);
}

.btn-outline-light:hover {
  background-color: var(--text-on-dark);
  color: var(--accent-green);
  border-color: var(--text-on-dark);
}

.btn-block {
  display: flex;
  width: 100%;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="number"],
input[type="date"],
input[type="time"],
input[type="search"],
input[type="password"],
select,
textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text-primary);
  background-color: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-input);
  padding: var(--space-3) var(--space-4);
  width: 100%;
  min-height: 44px;
  transition: border-color var(--transition-color), box-shadow var(--transition-color);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.25);
}

input::placeholder,
textarea::placeholder {
  color: var(--text-secondary);
  opacity: 0.7;
}

textarea {
  resize: vertical;
  min-height: 100px;
}

label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-block-end: var(--space-2);
}

.form-group {
  margin-block-end: var(--space-4);
}

.form-group:last-child {
  margin-block-end: 0;
}

.form-hint {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-block-start: var(--space-1);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.4;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-pill);
  letter-spacing: 0.02em;
}

.badge-gold {
  background-color: var(--accent-gold);
  color: var(--text-on-gold);
}

.badge-green {
  background-color: var(--accent-green);
  color: var(--text-on-dark);
}

.badge-outline {
  background-color: transparent;
  color: var(--accent-green);
  border: 1px solid var(--accent-green);
}

.flex {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.flex > * {
  min-width: 0;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.flex-center > * {
  min-width: 0;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.flex-between > * {
  min-width: 0;
}

.flex-column {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.flex-column > * {
  min-width: 0;
}

.flex-wrap {
  flex-wrap: wrap;
}

.flex-nowrap {
  flex-wrap: nowrap;
}

.gap-1 { gap: var(--space-1); }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-5 { gap: var(--space-5); }
.gap-6 { gap: var(--space-6); }
.gap-7 { gap: var(--space-7); }
.gap-8 { gap: var(--space-8); }

.mt-1 { margin-block-start: var(--space-1); }
.mt-2 { margin-block-start: var(--space-2); }
.mt-3 { margin-block-start: var(--space-3); }
.mt-4 { margin-block-start: var(--space-4); }
.mt-5 { margin-block-start: var(--space-5); }
.mt-6 { margin-block-start: var(--space-6); }
.mt-7 { margin-block-start: var(--space-7); }
.mt-8 { margin-block-start: var(--space-8); }

.mb-1 { margin-block-end: var(--space-1); }
.mb-2 { margin-block-end: var(--space-2); }
.mb-3 { margin-block-end: var(--space-3); }
.mb-4 { margin-block-end: var(--space-4); }
.mb-5 { margin-block-end: var(--space-5); }
.mb-6 { margin-block-end: var(--space-6); }
.mb-7 { margin-block-end: var(--space-7); }
.mb-8 { margin-block-end: var(--space-8); }

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

.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-gold { color: var(--accent-gold); }
.text-green { color: var(--accent-green); }
.text-on-dark { color: var(--text-on-dark); }

.bg-base { background-color: var(--bg-base); }
.bg-alt { background-color: var(--bg-alt); }
.bg-surface { background-color: var(--surface-card); }
.bg-green { background-color: var(--accent-green); }
.bg-gold { background-color: var(--accent-gold); }

.rounded-card { border-radius: var(--radius-card); }
.rounded-button { border-radius: var(--radius-button); }
.rounded-input { border-radius: var(--radius-input); }
.rounded-modal { border-radius: var(--radius-modal); }
.rounded-image { border-radius: var(--radius-image); }
.rounded-pill { border-radius: var(--radius-pill); }

.shadow-soft { box-shadow: var(--shadow-soft); }
.shadow-hover { box-shadow: var(--shadow-hover); }

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

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  z-index: 1000;
  background-color: var(--accent-green);
  color: var(--text-on-dark);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-button);
  font-weight: 500;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: var(--space-4);
  color: var(--text-on-dark);
  text-decoration: none;
}

@media (max-width: 767px) {
  :root {
    --container-padding: 16px;
  }

  .section {
    padding-block: var(--space-7);
  }

  .surface-card {
    padding: var(--space-4);
  }
}

@media (min-width: 768px) {
  .section {
    padding-block: var(--space-8);
  }
}