/*
 * McDowell Family Reunion 2026
 * style.css — index.html stylesheet
 */

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

    :root {
      --ivory:    #FAF7F2;
      --cream:    #F2EDE4;
      --sand:     #E8DFD0;
      --gold:     #C9A84C;
      --gold-lt:  #E2C47A;
      --gold-dk:  #9B7A2F;
      --espresso: #2C1F0F;
      --brown:    #4A3728;
      --warm-mid: #7A6250;
      --text:     #2C1F0F;
      --muted:    #8A7566;
      --border:   #D5C9B8;
      --white:    #FFFFFF;
    }

    html { scroll-behavior: smooth; }

    body {
      font-family: 'Montserrat', sans-serif;
      background: var(--ivory);
      color: var(--text);
      line-height: 1.6;
      font-size: 16px;
    }

    /* ── HERO ── */
    .hero {
      position: relative;
      z-index: 1;
      min-height: 100vh;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      background: var(--espresso);
    }

    .hero-bg {
      position: absolute; inset: 0;
      overflow: hidden;
      background:
        radial-gradient(ellipse 80% 60% at 50% 110%, rgba(201,168,76,0.18) 0%, transparent 70%),
        radial-gradient(ellipse 60% 40% at 20% -10%, rgba(201,168,76,0.10) 0%, transparent 60%),
        linear-gradient(160deg, #1a1008 0%, #2C1F0F 40%, #3a2a18 100%);
    }

    /* ornamental lines */
    .hero-bg::before, .hero-bg::after {
      content: '';
      position: absolute;
      left: 50%; transform: translateX(-50%);
      border: 1px solid rgba(201,168,76,0.2);
    }
    .hero-bg::before { width: 70%; height: 70%; top: 15%; border-radius: 2px; }
    .hero-bg::after  { width: 60%; height: 60%; top: 20%; border-radius: 2px; opacity: 0.5; }

    .hero-content {
      position: relative;
      text-align: center;
      padding: 6rem 2rem 5rem;
      animation: fadeUp 1.2s ease both;
    }

    .hero-eyebrow {
      font-family: 'Montserrat', sans-serif;
      font-size: 14px;
      font-weight: 600;
      letter-spacing: 0.4em;
      text-transform: uppercase;
      color: var(--gold);
      margin-bottom: 1.5rem;
    }

    .hero-rule {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 1rem;
      margin-bottom: 1.5rem;
    }
    .hero-rule span { display: block; height: 1px; width: 60px; background: var(--gold); opacity: 0.6; }
    .hero-rule i { color: var(--gold); font-size: 14px; opacity: 0.8; }

    .hero h1 {
      font-family: 'Cormorant Garamond', serif;
      font-size: clamp(3.5rem, 8vw, 7rem);
      font-weight: 300;
      color: var(--ivory);
      line-height: 1.0;
      letter-spacing: 0.02em;
      margin-bottom: 0.3rem;
    }

    .hero h1 em {
      font-style: italic;
      color: var(--gold-lt);
    }

    .hero-subtitle {
      font-family: 'Cormorant Garamond', serif;
      font-size: clamp(1.1rem, 2.5vw, 1.6rem);
      font-weight: 300;
      color: rgba(250,247,242,0.65);
      letter-spacing: 0.12em;
      margin-bottom: 2.5rem;
      font-style: italic;
    }

    .hero-badge {
      display: inline-flex;
      flex-direction: column;
      align-items: center;
      border: 1px solid rgba(201,168,76,0.4);
      padding: 1rem 2.5rem;
      gap: 0.2rem;
    }
    .hero-badge .year {
      font-family: 'Cormorant Garamond', serif;
      font-size: 2.8rem;
      font-weight: 600;
      color: var(--gold);
      line-height: 1;
    }
    .hero-badge .city {
      font-size: 15px;
      letter-spacing: 0.35em;
      color: rgba(250,247,242,0.6);
      text-transform: uppercase;
      font-weight: 500;
    }

    .hero-scroll {
      position: absolute;
      bottom: 3rem;
      left: 50%;
      transform: translateX(-50%);
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 0.5rem;
      color: rgba(250,247,242,0.35);
      font-size: 10px;
      letter-spacing: 0.3em;
      text-transform: uppercase;
      animation: pulse 2s ease-in-out infinite;
      cursor: default;
      z-index: 2;
    }
    .hero-scroll::after {
      content: '';
      display: block;
      width: 1px;
      height: 40px;
      background: linear-gradient(to bottom, rgba(201,168,76,0.5), transparent);
    }

    /* ── INTRO BAND ── */
    .intro-band {
      background: var(--gold);
      padding: 1.2rem 2rem;
      text-align: center;
    }
    .intro-band p {
      font-size: 15px;
      letter-spacing: 0.25em;
      text-transform: uppercase;
      color: var(--espresso);
      font-weight: 600;
    }

    /* ── MAIN LAYOUT ── */
    .site-main {
      max-width: 860px;
      margin: 0 auto;
      padding: 5rem 2rem 6rem;
    }

    /* ── SECTION HEADINGS ── */
    .section-label {
      display: flex;
      align-items: center;
      gap: 1rem;
      margin-bottom: 2rem;
    }
    .section-label::before, .section-label::after {
      content: '';
      flex: 1;
      height: 1px;
      background: var(--border);
    }
    .section-label span {
      font-size: 15px;
      font-weight: 600;
      letter-spacing: 0.4em;
      text-transform: uppercase;
      color: var(--gold-dk);
      white-space: nowrap;
    }

    /* ── FORM CARD ── */
    .form-card {
      background: var(--white);
      border: 1px solid var(--border);
      border-radius: 2px;
      padding: 3rem;
      margin-bottom: 2rem;
      box-shadow: 0 4px 30px rgba(44,31,15,0.06);
    }

    .form-card h2 {
      font-family: 'Cormorant Garamond', serif;
      font-size: 1.7rem;
      font-weight: 400;
      color: var(--espresso);
      margin-bottom: 0.4rem;
    }

    .form-card .card-desc {
      font-size: 14px;
      color: var(--muted);
      margin-bottom: 2rem;
      letter-spacing: 0.02em;
    }

    /* ── FORM ELEMENTS ── */
    .form-row {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 1.2rem;
      margin-bottom: 1.2rem;
    }
    .form-row.triple {
      grid-template-columns: 1fr 1fr 1fr;
    }
    .form-row.single {
      grid-template-columns: 1fr;
    }

    .form-group {
      display: flex;
      flex-direction: column;
      gap: 0.4rem;
    }

    label {
      font-size: 14px;
      font-weight: 600;
      letter-spacing: 0.15em;
      text-transform: uppercase;
      color: var(--warm-mid);
    }

    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="url"],
    input[type="file"],
    select,
    textarea {
      width: 100%;
      padding: 0.75rem 1rem;
      border: 1px solid var(--border);
      border-radius: 1px;
      background: var(--ivory);
      color: var(--text);
      font-family: 'Montserrat', sans-serif;
      font-size: 15px;
      transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
      appearance: none;
      -webkit-appearance: none;
      outline: none;
    }

    input:focus, select:focus, textarea:focus {
      border-color: var(--gold);
      background: var(--white);
      box-shadow: 0 0 0 3px rgba(201,168,76,0.12);
    }

    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 d='M1 1l5 5 5-5' stroke='%238A7566' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
      background-repeat: no-repeat;
      background-position: right 1rem center;
      padding-right: 2.5rem;
      cursor: pointer;
    }

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

    /* ── PHOTO UPLOAD ── */
    .photo-tabs {
      display: flex;
      border-bottom: 1px solid var(--border);
      margin-bottom: 1.5rem;
      gap: 0;
    }
    .photo-tab {
      padding: 0.6rem 1.2rem;
      font-size: 14px;
      font-weight: 600;
      letter-spacing: 0.15em;
      text-transform: uppercase;
      color: var(--muted);
      cursor: pointer;
      border-bottom: 2px solid transparent;
      margin-bottom: -1px;
      transition: color 0.2s, border-color 0.2s;
      background: none;
      border-top: none;
      border-left: none;
      border-right: none;
    }
    .photo-tab.active {
      color: var(--gold-dk);
      border-bottom-color: var(--gold);
    }

    .photo-pane { display: none; }
    .photo-pane.active { display: block; }

    .drop-zone {
      border: 2px dashed var(--border);
      border-radius: 2px;
      padding: 2.5rem;
      text-align: center;
      cursor: pointer;
      transition: border-color 0.2s, background 0.2s;
      background: var(--ivory);
    }
    .drop-zone:hover, .drop-zone.dragover {
      border-color: var(--gold);
      background: rgba(201,168,76,0.05);
    }
    .drop-zone .dz-icon {
      font-size: 2rem;
      margin-bottom: 0.75rem;
      opacity: 0.4;
    }
    .drop-zone p {
      font-size: 14px;
      color: var(--muted);
      margin-bottom: 0.3rem;
    }
    .drop-zone .dz-note {
      font-size: 14px;
      color: var(--border);
      letter-spacing: 0.05em;
    }
    #fileInput { display: none; }

    .file-preview {
      display: flex;
      flex-wrap: wrap;
      gap: 0.75rem;
      margin-top: 1rem;
    }
    .file-chip {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      padding: 0.4rem 0.75rem;
      background: var(--cream);
      border: 1px solid var(--border);
      border-radius: 20px;
      font-size: 15px;
      color: var(--brown);
    }
    .file-chip button {
      background: none; border: none;
      color: var(--muted); cursor: pointer;
      font-size: 14px; line-height: 1;
      padding: 0;
    }

    /* ── CHILDREN DYNAMIC ── */
    .children-list { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 1rem; }
    .child-row {
      display: grid;
      grid-template-columns: 1fr 1fr auto;
      gap: 0.75rem;
      align-items: end;
    }
    .btn-icon {
      width: 36px; height: 36px;
      border-radius: 50%;
      border: 1px solid var(--border);
      background: var(--ivory);
      cursor: pointer;
      display: flex; align-items: center; justify-content: center;
      font-size: 17px;
      color: var(--muted);
      transition: all 0.2s;
      flex-shrink: 0;
    }
    .btn-icon:hover { border-color: var(--gold); color: var(--gold-dk); background: rgba(201,168,76,0.08); }
    .btn-add-child {
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
      font-size: 15px;
      font-weight: 600;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: var(--gold-dk);
      background: none;
      border: 1px solid var(--gold);
      padding: 0.5rem 1rem;
      border-radius: 1px;
      cursor: pointer;
      transition: all 0.2s;
      font-family: 'Montserrat', sans-serif;
    }
    .btn-add-child:hover { background: var(--gold); color: var(--espresso); }

    /* ── SUBMIT BUTTON ── */
    .submit-wrap {
      text-align: center;
      margin-top: 3rem;
    }

    .btn-submit {
      display: inline-flex;
      align-items: center;
      gap: 0.75rem;
      padding: 1.1rem 3.5rem;
      background: var(--espresso);
      color: var(--gold-lt);
      font-family: 'Montserrat', sans-serif;
      font-size: 15px;
      font-weight: 600;
      letter-spacing: 0.3em;
      text-transform: uppercase;
      border: 1px solid var(--espresso);
      border-radius: 1px;
      cursor: pointer;
      transition: all 0.3s;
    }
    .btn-submit:hover {
      background: var(--gold);
      border-color: var(--gold);
      color: var(--espresso);
    }
    .btn-submit svg { transition: transform 0.3s; }
    /* ── CAPTCHA ────────────────────────────────────────── */
    .captcha-wrap {
      background: var(--cream);
      border: 1px solid var(--border);
      padding: 1.25rem 1.5rem;
      display: flex; align-items: center; gap: 1.25rem;
      flex-wrap: wrap;
    }
    .captcha-label-group { flex: 1; min-width: 180px; }
    .captcha-eyebrow {
      font-size: .65rem; font-weight: 600;
      letter-spacing: .2em; text-transform: uppercase;
      color: var(--gold); margin-bottom: .4rem;
    }
    .captcha-question {
      font-family: 'Cormorant Garamond', serif;
      font-size: 1.3rem; font-weight: 600;
      color: var(--espresso); line-height: 1.2;
      min-height: 1.6rem;
    }
    .captcha-question.loading { opacity: .35; font-style: italic; font-size: 1rem; }
    .captcha-input-group { display: flex; align-items: center; gap: .75rem; }
    .captcha-input {
      width: 90px;
      padding: .7rem .9rem;
      border: 1px solid var(--border);
      background: #fff;
      font-family: 'Montserrat', sans-serif;
      font-size: 1rem; font-weight: 500; text-align: center;
      color: var(--espresso); outline: none;
      transition: border-color .2s;
      -moz-appearance: textfield;
    }
    .captcha-input::-webkit-inner-spin-button,
    .captcha-input::-webkit-outer-spin-button { -webkit-appearance: none; }
    .captcha-input:focus { border-color: var(--gold); }
    .captcha-input.error { border-color: #c0392b; background: #fff5f5; }
    .captcha-refresh {
      background: none; border: none; cursor: pointer;
      color: var(--muted); font-size: .72rem; font-weight: 500;
      letter-spacing: .1em; text-transform: uppercase;
      font-family: 'Montserrat', sans-serif;
      display: flex; align-items: center; gap: .35rem;
      padding: .4rem .6rem; transition: color .2s;
      white-space: nowrap;
    }
    .captcha-refresh:hover { color: var(--gold); }
    .captcha-refresh svg { transition: transform .4s; }
    .captcha-refresh:hover svg { transform: rotate(180deg); }
    .captcha-hint { font-size: .72rem; color: var(--muted); margin-top: .5rem; }

    /* ── HONEYPOT — visually hidden but accessible to screen readers
       Real users never see or fill this; bots do. ── */
    .hp-field {
      position: absolute !important;
      left: -9999px !important; top: -9999px !important;
      width: 1px !important; height: 1px !important;
      overflow: hidden !important; opacity: 0 !important;
      pointer-events: none !important; tab-index: -1 !important;
    }
    .btn-submit:hover svg { transform: translateX(4px); }

    /* ── SUCCESS STATE ── */
    #successMsg {
      display: none;
      text-align: center;
      padding: 4rem 2rem;
      background: var(--white);
      border: 1px solid var(--border);
    }
    #successMsg .success-icon { font-size: 2.5rem; margin-bottom: 1rem; }
    #successMsg h3 {
      font-family: 'Cormorant Garamond', serif;
      font-size: 2rem;
      font-weight: 400;
      color: var(--espresso);
      margin-bottom: 0.5rem;
    }
    #successMsg p { font-size: 15px; color: var(--muted); }

    /* ── FOOTER ── */
    footer {
      background: var(--espresso);
      padding: 2.5rem;
      text-align: center;
    }
    footer p {
      font-size: 14px;
      letter-spacing: 0.2em;
      color: rgba(250,247,242,0.3);
      text-transform: uppercase;
    }
    footer .footer-gold {
      display: block;
      font-family: 'Cormorant Garamond', serif;
      font-size: 1.3rem;
      font-style: italic;
      color: var(--gold);
      letter-spacing: 0.05em;
      text-transform: none;
      margin-bottom: 0.5rem;
    }

    /* ── NOTICE BOX ── */
    .notice {
      background: rgba(201,168,76,0.08);
      border-left: 3px solid var(--gold);
      padding: 1rem 1.25rem;
      border-radius: 0 2px 2px 0;
      margin-bottom: 1.5rem;
    }
    .notice p {
      font-size: 14px;
      color: var(--brown);
    }

    /* ── REQUIRED ── */
    .req { color: var(--gold-dk); margin-left: 2px; }

    /* ── ANIMATIONS ── */
    @keyframes fadeUp {
      from { opacity: 0; transform: translateY(30px); }
      to   { opacity: 1; transform: translateY(0); }
    }
    @keyframes pulse {
      0%, 100% { opacity: 0.35; }
      50% { opacity: 0.7; }
    }

    /* ── RESPONSIVE ── */
    @media (max-width: 640px) {
      .form-card { padding: 1.75rem 1.25rem; }
      .form-row { grid-template-columns: 1fr; }
      .form-row.triple { grid-template-columns: 1fr; }
      .child-row { grid-template-columns: 1fr 1fr auto; }
    }
  

    /* ════════════════════════════════════════════════
       SITE NAV  — works on all screen sizes
       ════════════════════════════════════════════════ */
    .site-nav {
      position: fixed; top: 0; left: 0; right: 0; z-index: 9998;
      display: flex; align-items: center; justify-content: space-between;
      padding: 1rem 2.5rem;
      background: rgba(44,31,15,0.96);
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
      border-bottom: 1px solid rgba(201,168,76,0.25);
    }
    .site-nav .nav-logo {
      font-family: 'Cormorant Garamond', serif;
      font-size: 1.05rem; font-weight: 600;
      letter-spacing: .14em; text-transform: uppercase;
      color: #FAF7F2; text-decoration: none;
      position: relative; z-index: 1001;
    }
    .site-nav .nav-links {
      display: flex; gap: 2rem; list-style: none; margin: 0; padding: 0;
    }
    .site-nav .nav-links a {
      font-size: .8rem; font-weight: 500;
      letter-spacing: .2em; text-transform: uppercase;
      color: rgba(250,247,242,.6);
      text-decoration: none; transition: color .2s;
    }
    .site-nav .nav-links a:hover,
    .site-nav .nav-links a.active { color: #C9A84C; }

    /* Burger — hidden on desktop, shown on mobile */
    .nav-burger {
      display: none;
      flex-direction: column;
      justify-content: space-between;
      width: 28px; height: 20px;
      background: none; border: none;
      cursor: pointer; padding: 0;
      position: relative; z-index: 1001;
    }
    .nav-burger span {
      display: block;
      width: 100%; height: 2px;
      background: rgba(250,247,242,.85);
      border-radius: 2px;
      transition: transform .3s ease, opacity .3s ease;
    }
    .nav-burger.is-open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
    .nav-burger.is-open span:nth-child(2) { opacity: 0; }
    .nav-burger.is-open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

    /* ── MOBILE ≤ 768px ────────────────────────────── */
    @media screen and (max-width: 768px) {
      .site-nav { padding: 1rem 1.25rem; }

      .nav-burger {
        display: -webkit-flex;
        display: flex;
      }

      .site-nav .nav-links { display: none; } /* overlay handles mobile menu */
      .site-nav .nav-links li { display: block; }
      .site-nav .nav-links a {
        font-size: .95rem; letter-spacing: .22em;
        color: rgba(250,247,242,.7);
      }
      .site-nav .nav-links a:hover,
      .site-nav .nav-links a.active { color: #C9A84C; }
    }
    /* push page content below fixed nav */

    /* ── NAV OVERLAY (body-level, not inside nav) ────────── */
    #navOverlay {
      display: none;
      position: fixed;
      top: 0; left: 0; right: 0; bottom: 0;
      width: 100%; height: 100%;
      background: rgba(44,31,15,.97);
      z-index: 9999;
      flex-direction: column;
      align-items: center; justify-content: center;
      gap: 2rem;
      list-style: none; margin: 0; padding: 0;
    }
    #navOverlay.is-open {
      display: -webkit-flex;
      display: flex;
    }
    #navOverlay li { display: block; text-align: center; }
    #navOverlay a {
      font-family: 'Montserrat', sans-serif;
      font-size: 1rem; font-weight: 500;
      letter-spacing: .25em; text-transform: uppercase;
      color: rgba(250,247,242,.7);
      text-decoration: none; display: block;
      padding: .4rem 0; transition: color .2s;
    }
    #navOverlay a:hover,
    #navOverlay a.active { color: #C9A84C; }
    #navOverlay .nav-logout-mobile {
      margin-top: .5rem;
      font-size: .75rem; letter-spacing: .2em;
      color: rgba(250,247,242,.35) !important;
      border: 1px solid rgba(201,168,76,.2);
      padding: .5rem 1.5rem !important;
      transition: all .2s;
    }
    #navOverlay .nav-logout-mobile:hover {
      color: #C9A84C !important;
      border-color: #C9A84C;
    }
    body { padding-top: 0; }