/* ==========================================================================
   The Olive Events — shared brand styles
   Used by every page. Page-specific styles live in their own CSS files.
   ========================================================================== */

:root {
  /* Brand palette */
  --olive: #646348;
  --sage: #959A73;
  --cream: #E2D4C1;
  --brown: #4C3713;

  /* Supporting tones derived from the palette */
  --paper: #F6F0E7;        /* light page background */
  --paper-deep: #EDE3D5;   /* slightly darker surface */
  --ink: #2F2615;          /* body text (darker brown for contrast) */
  --ink-soft: #5E5240;     /* secondary text */
  --line: rgba(76, 55, 19, 0.16);
  --line-strong: rgba(76, 55, 19, 0.32);
  --white: #FFFDF9;

  /* Typography */
  --font-serif: "Libre Baskerville", Georgia, "Times New Roman", serif;
  --font-sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Spacing & shape */
  --radius-sm: 6px;
  --radius: 14px;
  --radius-lg: 28px;
  --shadow-soft: 0 18px 50px -24px rgba(76, 55, 19, 0.35);
  --shadow-card: 0 2px 0 rgba(76, 55, 19, 0.04), 0 14px 34px -22px rgba(76, 55, 19, 0.4);

  --container: 1180px;
  --gutter: clamp(16px, 4vw, 40px);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.2;
  color: var(--brown);
  margin: 0 0 0.5em;
}

p {
  margin: 0 0 1em;
}

a {
  color: inherit;
}

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

:focus-visible {
  outline: 2px solid var(--olive);
  outline-offset: 3px;
}

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

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Small uppercase label used above headings */
.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--olive);
  margin-bottom: 1rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 48px;
  padding: 0.8em 1.6em;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s, transform 0.25s var(--ease-out);
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--olive);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--brown);
}

.btn-outline {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--brown);
}

.btn-outline:hover {
  border-color: var(--olive);
  background: rgba(100, 99, 72, 0.08);
}

.btn-link {
  background: none;
  border: none;
  padding: 0.4em 0.2em;
  min-height: 44px;
  color: var(--olive);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  cursor: pointer;
}

.btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ---------- Brand mark (logo placeholder) ---------- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--brown);
}

/* Wreath mark from the official logo (assets/images/logo-mark.png) */
.brand-mark {
  width: auto;
  height: 42px;
  flex: none;
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  letter-spacing: 0.01em;
}

/* ---------- Photo placeholder ----------
   Replace a placeholder by swapping the <div class="photo"> for
   <img class="photo" src="assets/images/your-photo.jpg" alt="...">          */
.photo {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background:
    radial-gradient(120% 90% at 20% 10%, rgba(255, 253, 249, 0.55), transparent 55%),
    linear-gradient(160deg, var(--sage) 0%, var(--olive) 70%, #514f39 100%);
  overflow: hidden;
}

div.photo::after {
  content: attr(data-label);
  position: absolute;
  left: 14px;
  bottom: 12px;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 253, 249, 0.85);
}

div.photo.photo-warm {
  background:
    radial-gradient(120% 90% at 80% 0%, rgba(255, 253, 249, 0.5), transparent 55%),
    linear-gradient(200deg, var(--cream) 0%, #c9b392 60%, #a88f69 100%);
}

div.photo.photo-warm::after {
  color: rgba(76, 55, 19, 0.7);
}

div.photo.photo-deep {
  background:
    radial-gradient(100% 80% at 30% 20%, rgba(149, 154, 115, 0.55), transparent 60%),
    linear-gradient(170deg, #6b5532 0%, var(--brown) 100%);
}

/* Botanical line-art inside placeholders */
.photo .sprig {
  position: absolute;
  inset: auto -10% -6% auto;
  width: 70%;
  max-width: 260px;
  color: rgba(255, 253, 249, 0.35);
  pointer-events: none;
}

.photo-warm .sprig {
  color: rgba(76, 55, 19, 0.22);
}

/* ---------- Form controls ---------- */
.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.field label {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink-soft);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 46px;
  padding: 0.7em 0.9em;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field textarea {
  min-height: 110px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--olive);
  box-shadow: 0 0 0 3px rgba(100, 99, 72, 0.18);
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: #9a3b2a;
}

.field-error {
  font-size: 0.8rem;
  color: #9a3b2a;
  min-height: 0;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
