/* ============================================================
   WEDDING WEBSITE — SITE.CSS
   Brent & Rachel · October 10, 2026 · Columbus, Indiana

   Global / shared styles only.
   Page-specific styles live in each page's .cshtml.css file.
   ============================================================ */

/* ── Custom Properties ───────────────────────────────────── */
:root {
  /* Base */
  --color-bg: #FFFFFF;
  --color-bg-warm: #FAF8F5;

  /* Text */
  --color-text: #2A2420;
  --color-text-light: #6B5F58;

  /* Cinnamon — primary accent */
  --color-accent: #C27040;
  --color-accent-dark: #A85C30;
  --color-accent-light: #F5E8DC;

  /* Sage Green — secondary accent */
  --color-secondary: #7A9E7D;
  --color-secondary-dark: #5E8060;
  --color-secondary-light: #EBF2EB;

  /* Surface & borders */
  --color-light: #F7F3EE;
  --color-border: #E8DDD5;
  --color-white: #FFFFFF;

  --font-sans: 'Jost', system-ui, -apple-system, sans-serif;
  --max-width: 1100px;
  --nav-height: 56px;
  --transition: 0.2s ease;
}

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

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

body {
  font-family: var(--font-sans);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
}

ul,
ol {
  list-style: none;
}

button {
  font-family: inherit;
}

/* ── Typography ──────────────────────────────────────────── */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-sans);
  line-height: 1.2;
  font-weight: 400;
}

p {
  font-family: var(--font-sans);
}

/* ── Container ───────────────────────────────────────────── */
.container {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* ── Site Header ─────────────────────────────────────────── */
.site-header {
  background-color: var(--color-white);
  text-align: center;
  padding: 3rem 1.5rem 2rem;
  border-bottom: 1px solid var(--color-border);
}

.header-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-light);
  margin-bottom: 0.75rem;
}

.header-names {
  font-family: var(--font-sans);
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1;
  margin-bottom: 0.75rem;
  color: var(--color-text);
}

.header-ampersand {
  color: var(--color-accent);
}

.header-date {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-light);
}

/* ── Site Nav ────────────────────────────────────────────── */
.site-nav {
  background-color: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: center;
  height: var(--nav-height);
  position: relative;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 0;
  margin: 0;
  padding: 0;
}

.nav-link {
  display: block;
  padding: 0 1.25rem;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--color-text-light);
  height: var(--nav-height);
  line-height: var(--nav-height);
  transition: color var(--transition);
  position: relative;
  white-space: nowrap;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 6px;
  left: 1.25rem;
  right: 1.25rem;
  height: 2px;
  background-color: var(--color-accent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-text);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

/* Hamburger — hidden on desktop */
.hamburger {
  display: none;
}

/* ── Mobile Navigation ───────────────────────────────────── */
@media (max-width: 768px) {
  .nav-container {
    justify-content: center;
  }

  .hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 17px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
  }

  .hamburger-line {
    display: block;
    width: 100%;
    height: 1.5px;
    background-color: var(--color-text);
    transition: transform var(--transition), opacity var(--transition);
    transform-origin: center;
  }

  .hamburger.is-active .hamburger-line:nth-child(1) {
    transform: translateY(7.75px) rotate(45deg);
  }

  .hamburger.is-active .hamburger-line:nth-child(2) {
    opacity: 0;
  }

  .hamburger.is-active .hamburger-line:nth-child(3) {
    transform: translateY(-7.75px) rotate(-45deg);
  }

  .nav-list {
    display: none;
    flex-direction: column;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background-color: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    padding: 0.5rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-link {
    height: auto;
    line-height: 1;
    padding: 0.85rem 1.5rem;
    width: 100%;
    text-align: center;
  }

  .nav-link::after {
    display: none;
  }
}

/* ── Main Content ────────────────────────────────────────── */
.site-main {
  min-height: calc(100vh - var(--nav-height) - 160px);
}

/* ── Sections ────────────────────────────────────────────── */
.section {
  padding: 4.5rem 0;
}

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

.section--compact {
  padding: 2rem 0;
}

.section--page-header {
  padding-bottom: 0;
}

.section--flush-top {
  padding-top: 2.5rem;
}

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.page-title {
  font-family: var(--font-sans);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 300;
  margin-bottom: 1rem;
  color: var(--color-text);
}

.page-subtitle {
  font-family: var(--font-sans);
  color: var(--color-text-light);
  font-size: 1rem;
  letter-spacing: 0.05em;
}

.section-title {
  font-family: var(--font-sans);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 400;
  margin-bottom: 0.75rem;
  color: var(--color-text);
}

.body-text {
  font-family: var(--font-sans);
  line-height: 1.8;
  color: var(--color-text-light);
  max-width: 65ch;
  margin-left: auto;
  margin-right: auto;
}

.reading-column .body-text {
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

/* ── Decorative Divider ──────────────────────────────────── */
.decorative-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 2rem auto;
  max-width: 200px;
}

.decorative-divider::before,
.decorative-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background-color: var(--color-border);
}

.decorative-divider span {
  display: block;
  width: 6px;
  height: 6px;
  background-color: var(--color-secondary);
  transform: rotate(45deg);
  flex-shrink: 0;
}

/* ── Cards ───────────────────────────────────────────────── */
.card {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  padding: 2rem;
  border-radius: 2px;
}

.card-grid {
  display: grid;
  /* min(100%, 240px) means the column minimum is never wider than the container,
     so the grid collapses to 1 column naturally on narrow screens without a
     media-query override. Cards always fill available space evenly. */
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 1.5rem;
}

.card-icon {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  display: block;
}

.card-title {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.card-text {
  font-family: var(--font-sans);
  color: var(--color-text-light);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ── Forms ───────────────────────────────────────────────── */
.form-wrapper {
  max-width: 640px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  color: var(--color-text-light);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  background-color: var(--color-white);
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--color-text);
  outline: none;
  transition: border-color var(--transition);
  border-radius: 2px;
  appearance: none;
  -webkit-appearance: none;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--color-secondary);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--color-border);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%236B5F58' stroke-width='1.5' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

.form-row {
  display: flex;
  justify-content: center;
}

@media (max-width: 560px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.form-radio-group {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.form-radio-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--color-text);
}

.form-radio-label input[type="radio"] {
  width: 16px;
  height: 16px;
  accent-color: var(--color-accent);
  cursor: pointer;
  flex-shrink: 0;
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 0.85rem 2.5rem;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border-radius: 2px;
  transition: all var(--transition);
  line-height: 1;
  border: none;
}

.btn--primary {
  background-color: var(--color-accent);
  color: var(--color-white);
  border: 1px solid var(--color-accent);
}

.btn--primary:hover {
  background-color: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
}

.btn--outline {
  background-color: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.btn--outline:hover {
  border-color: var(--color-text);
  background-color: var(--color-bg-warm);
}

.btn--white {
  background-color: var(--color-white);
  color: var(--color-text);
  border: 1px solid var(--color-white);
}

.btn--white:hover {
  background-color: rgba(255, 255, 255, 0.88);
  border-color: var(--color-white);
}

/* ── Button Group ────────────────────────────────────────── */
.btn-group {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* ── Utility Classes ─────────────────────────────────────── */
.text-center {
  text-align: center;
}

.mt-sm { margin-top: 1rem; }
.mt-md { margin-top: 2rem; }
.mt-lg { margin-top: 3rem; }
.mb-sm { margin-bottom: 1rem; }
.mb-md { margin-bottom: 2rem; }

/* ── Site Footer ─────────────────────────────────────────── */
.site-footer {
  background-color: #2A2420;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  padding: 3rem 1.5rem;
}

.footer-names {
  font-family: var(--font-sans);
  font-size: 1.5rem;
  font-style: italic;
  color: var(--color-white);
  margin-bottom: 0.25rem;
}

.footer-date {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer-copy {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  opacity: 0.5;
}

/* ── Responsive Helpers ──────────────────────────────────── */
@media (max-width: 768px) {
  .section {
    padding: 3rem 0;
  }

  .section-header {
    margin-bottom: 2rem;
  }

  .form-radio-group {
    flex-direction: column;
    gap: 0.75rem;
  }

  .section--compact { padding: 1.5rem 0; }
  .section--flush-top { padding-top: 1.75rem; }
}

@media (max-width: 480px) {
  .section {
    padding: 2.25rem 0;
  }

  .btn {
    padding: 0.85rem 1.75rem;
  }

  .btn-group {
    flex-direction: column;
    align-items: stretch;
  }

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

  .section--compact { padding: 1rem 0; }
  .section--flush-top { padding-top: 1.25rem; }
}
