/* =========================================================
   ST. LAWRENCE O'TOOLE CHURCH - style.css
   ========================================================= */

:root {
    --burgundy:       #8B1A2E;
    --burgundy-dark:  #5C1020;
    --burgundy-light: #A0283C;
    --burgundy-muted: #C47080;
    --cream:          #F5F0EB;
    --cream-dark:     #EDE5DC;
    --white:          #FFFFFF;
    --ink:            #2A0A10;
    --rule:           #C0849060;

    --font-display: 'EB Garamond', Georgia, serif;
    --font-body:    'Lato', sans-serif;
    --font-accent:  'Cormorant Garamond', Georgia, serif;

    --max-width: 1100px;
    --section-pad: 4rem 1.5rem;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
    background-color: var(--cream);
    color: var(--ink);
    font-family: var(--font-body);
    line-height: 1.75;
    font-weight: 300;
}

img { max-width: 100%; display: block; }
a { color: var(--burgundy); text-decoration: none; }
a:hover { text-decoration: underline; }

/*- Typography- */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    color: var(--burgundy-dark);
    line-height: 1.2;
}

h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

h3 {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    font-weight: 600;
    font-style: italic;
    margin-bottom: 0.6rem;
    color: var(--burgundy);
}

p { margin-bottom: 1rem; font-size: 0.97rem; }
p:last-child { margin-bottom: 0; }

/*- Section rule decoration- */
.section-rule {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.section-rule::before,
.section-rule::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--rule);
}
.section-rule span {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--burgundy-muted);
}

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
    background-color: var(--burgundy-dark);
    color: var(--cream);
    padding: 2.5rem 1.5rem 0;
    text-align: center;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    max-width: var(--max-width);
    margin: 0 auto 1.5rem;
}

.header-cross {
    font-size: 1.6rem;
    color: var(--burgundy-muted);
    flex-shrink: 0;
}

.site-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 5vw, 3rem);
    font-weight: 700;
    color: var(--cream);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.site-subtitle {
    font-family: var(--font-accent);
    font-size: clamp(0.9rem, 1.8vw, 1.1rem);
    color: var(--burgundy-muted);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-top: 0.25rem;
}

/*- Nav- */
.site-nav {
    background-color: var(--burgundy);
    margin-top: 1.5rem;
}

.site-nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    max-width: var(--max-width);
    margin: 0 auto;
}

.site-nav ul li a {
    display: block;
    padding: 0.75rem 1.25rem;
    color: var(--cream);
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: background 0.2s, color 0.2s;
}

.site-nav ul li a:hover,
.site-nav ul li a:focus {
    background-color: var(--burgundy-dark);
    color: var(--cream-dark);
    text-decoration: none;
}

/* =========================================================
   HERO BAND
   ========================================================= */
.hero {
    background-color: var(--burgundy-dark);
    padding: 0 1.5rem 3rem;
}

.hero-image-wrap {
    max-width: 1200px;
    margin: 0 auto;
}

.img-placeholder {
    background-color: var(--cream-dark);
    /*border: 2px dashed var(--burgundy-muted);*/
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--burgundy);
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    /*gap: 0.5rem;*/
    border-radius: 2px;
}

.img-placeholder svg {
    opacity: 0.4;
}

/*.img-placeholder--hero     { width: 100%; aspect-ratio: 4/3; } */
.img-placeholder--portrait { width: 100%; aspect-ratio: 3/4; }
.img-placeholder--square   { width: 100%; aspect-ratio: 1/1; }
.img-placeholder--wide     { width: 100%; aspect-ratio: 16/7; }

/* =========================================================
   SHARED SECTION WRAPPER
   ========================================================= */
.section {
    padding: var(--section-pad);
}

.section__inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

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

/* =========================================================
   PRESENT CHURCH
   ========================================================= */
#present .present-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2.5rem;
    align-items: start;
}

#present .present-image-label {
    font-family: var(--font-accent);
    font-size: 1rem;
    font-style: italic;
    color: var(--burgundy);
    text-align: center;
    margin-top: 0.75rem;
}

/* =========================================================
   WEDDINGS
   ========================================================= */
#weddings .weddings-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2.5rem;
    align-items: start;
}

#weddings .weddings-image-label {
    font-family: var(--font-accent);
    font-size: 1rem;
    font-style: italic;
    color: var(--burgundy);
    text-align: center;
    margin-top: 0.75rem;
}

/* =========================================================
   HISTORY
   ========================================================= */
#history .history-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2.5rem;
    align-items: start;
}

#history .history-image-label {
    font-family: var(--font-accent);
    font-size: 1rem;
    font-style: italic;
    color: var(--burgundy);
    text-align: center;
    margin-top: 0.75rem;
}

/* =========================================================
   ALTAR and SANCTUARY
   ========================================================= */
#altar .altar-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: start;
}

#altar .altar-image-label {
    font-family: var(--font-accent);
    font-size: 1rem;
    font-style: italic;
    color: var(--burgundy);
    text-align: center;
    margin-top: 0.75rem;
}


/* =========================================================
   CONTACT FORM (right side)
   ========================================================= */
#contact .contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: start;
}

.sl-input { 
    font-family: var(--font-accent);
    font-size: 2rem;
    color: var(--burgundy) !important;
}

.sl-textarea {
    font-family: var(--font-accent);
    font-size: 2rem;
    color: var(--burgundy) !important;
}

/* =========================================================
   CONTRIBUTIONS
   ========================================================= */
#contributions {
    background-color: var(--burgundy-dark);
    color: var(--cream);
    text-align: center;
}

#contributions h2 {
    color: var(--cream);
}

#contributions .section-rule::before,
#contributions .section-rule::after {
    background: rgba(255,255,255,0.2);
}

#contributions .section-rule span {
    color: var(--burgundy-muted);
}

.contributions-card {
    max-width: 480px;
    margin: 0 auto;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 4px;
    padding: 2rem 2.5rem;
}

.contributions-card p {
    color: var(--cream);
    line-height: 1.9;
}

.contributions-card strong {
    font-family: var(--font-display);
    font-size: 1.05rem;
    color: var(--cream);
    display: block;
    margin-bottom: 0.25rem;
}

.contributions-memorials {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.15);
    font-family: var(--font-accent);
    font-style: italic;
    font-size: 1.05rem;
    color: var(--burgundy-muted);
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
    background-color: var(--ink);
    color: var(--cream-dark);
    text-align: center;
    padding: 3rem 1.5rem;
}

.footer-inner {
    max-width: 600px;
    margin: 0 auto;
}

.footer-cross {
    font-size: 1.4rem;
    color: var(--burgundy-muted);
    display: block;
    margin-bottom: 0.75rem;
}

.footer-cross--bottom {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.footer-name {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--cream);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.footer-location {
    font-family: var(--font-accent);
    font-style: italic;
    color: var(--burgundy-muted);
    font-size: 0.95rem;
    margin-bottom: 0;
}

.footer-divider {
    width: 40px;
    height: 1px;
    background: var(--burgundy-muted);
    margin: 1.25rem auto;
}

.footer-contributions {
    font-size: 0.9rem;
    line-height: 1.8;
    color: var(--cream-dark);
}

.footer-contributions strong {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--cream);
}

.footer-memorials {
    font-family: var(--font-accent);
    font-style: italic;
    font-size: 0.95rem;
    color: var(--burgundy-muted);
    margin-top: 1rem;
}

.footer-copy {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.3);
    letter-spacing: 0.06em;
    margin-top: 1rem;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 768px) {
    :root { --section-pad: 2.5rem 1.25rem; }

    .header-inner { flex-direction: column; gap: 0.5rem; }
    .header-cross { display: none; }

    #history .history-grid,
    #present .present-grid,
    #weddings .weddings-grid,
    #altar .altar-grid,
    #contact .contact-grid, 
    #sanctuary .sanctuary-grid {
    	grid-template-columns: 1fr;
    }

    /* On mobile, image stacks above text */
    #present .present-grid { direction: ltr; }
    #present .present-grid .present-image { order: -1; }

    #weddings .weddings-grid { direction: ltr; }
    #weddings .weddings-grid .weddings-image { order: -1; }

    .site-nav ul li a { padding: 0.65rem 0.85rem; font-size: 0.72rem; }
}

@media (max-width: 480px) {
    .site-title { letter-spacing: 0.02em; }
    .contact-card { padding: 1.5rem; }
    .site-nav ul { gap: 0; }
    .site-nav ul li { flex: 1 1 50%; text-align: center; }
}

/*- Reduced motion- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}

/*- Focus styles- */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--burgundy);
    outline-offset: 3px;
}

/* =========================================================
   CONTACT FORM STYLES
   ========================================================= */

  .sl-section {
    background: #1a1a1a;
    color: #e8e0d0;
    padding: 3rem 2rem;
    font-family: 'EB Garamond', Georgia, serif;
    text-align: center;
  }

  .sl-cross {
    font-size: 22px;
    color: #b8a882;
    display: block;
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
  }

  .sl-heading {
    font-family: 'Cinzel', 'Times New Roman', serif;
    font-size: 22px;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #e8e0d0;
    margin: 0 0 2rem;
  }

  .sl-form {
    max-width: 480px;
    margin: 0 auto;
    text-align: left;
  }

  .sl-group {
    margin-bottom: 1.25rem;
  }

  .sl-label {
    display: block;
    font-family: 'Cinzel', serif;
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #b8a882;
    margin-bottom: 6px;
  }

  .sl-req {
    color: #c0846a;
    margin-left: 2px;
  }

  .sl-input,
  .sl-textarea {
    width: 100%;
    box-sizing: border-box;
    background: transparent;
    border: none;
    border-bottom: 1px solid #4a4438;
    padding: 8px 0;
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 16px;
    color: #e8e0d0;
    outline: none;
    transition: border-color 0.2s;
    -webkit-appearance: none;
    border-radius: 0;
  }

  .sl-input::placeholder,
  .sl-textarea::placeholder {
    color: #5a5248;
    font-style: italic;
  }

  .sl-input:focus,
  .sl-textarea:focus {
    border-bottom-color: #b8a882;
  }

  .sl-textarea {
    resize: vertical;
    min-height: 100px;
    line-height: 1.6;
  }

  .sl-btn-wrap {
    text-align: center;
    margin-top: 2rem;
  }

  .sl-btn {
    display: inline-block;
    font-family: 'Cinzel', serif;
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #1a1a1a;
    background: #b8a882;
    border: none;
    padding: 12px 36px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
  }

  .sl-btn:hover {
    background: #cbbf9a;
  }

  .sl-btn:active {
    background: #a8987a;
  }

  .sl-cross-bottom {
    display: block;
    margin-top: 2.5rem;
    font-size: 20px;
    color: #4a4438;
  }

  /* =========================================================
   CONTACT FORM THANK YOU MODAL
   ========================================================= */

  .modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: #ffffff;
    padding: 30px;
    border-radius: 8px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
