/* dev.lesaintpaul.qc.ca - Main stylesheet
   Navy + blanc + or | Responsive | Core Web Vitals optimized */

:root {
    --navy: #1a2744;
    --navy-light: #2a3a5c;
    --white: #fafbfc;
    --gold: #c9a227;
    --gold-light: #e4c04a;
    --gold-muted: rgba(201, 162, 39, 0.15);
    --text: #2d3748;
    --text-muted: #5a6578;
    --border: #e2e8f0;
    --font-serif: 'Cormorant Garamond', 'Georgia', serif;
    --font-sans: 'Source Sans 3', 'Segoe UI', sans-serif;
    --space: 1.25rem;
    --container: min(1200px, 92vw);
    --header-h: 4.5rem;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--text);
    background: var(--white);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--navy);
    text-decoration: none;
}

a:hover {
    color: var(--gold);
}

h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 600;
    line-height: 1.2;
    margin-top: 0;
}

h1 { font-size: clamp(2rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

/* Layout */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--navy);
    color: var(--white);
    padding: 0.75rem 0;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.site-header a {
    color: inherit;
}

.site-header a:hover {
    color: var(--gold-light);
}

.header-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--space);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space);
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-img {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

.logo-text {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 600;
}

.nav-main {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-main a {
    padding: 0.35rem 0.5rem;
    font-size: 0.95rem;
}

/* Mobile menu toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: inherit;
    padding: 0.5rem;
    cursor: pointer;
    font-size: 1.5rem;
}

@media (max-width: 768px) {
    .nav-toggle { display: block; }
    .nav-main {
        display: none;
        width: 100%;
        flex-direction: column;
        padding-top: 0.5rem;
    }
    .nav-main.is-open { display: flex; }
}

/* Banner */
.page-banner {
    position: relative;
    min-height: 42vh;
    max-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--navy) linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    color: var(--white);
    text-align: center;
    overflow: hidden;
}

.page-banner img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.35;
}

.page-banner-content {
    position: relative;
    z-index: 1;
    padding: 2rem var(--space);
    max-width: 36rem;
}

.page-banner h1 {
    margin-bottom: 0.5rem;
    color: inherit;
}

.page-banner .breadcrumb {
    font-size: 0.9rem;
    opacity: 0.9;
}

.page-banner .breadcrumb a {
    color: var(--gold-light);
}

/* Container & sections */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--space);
}

.section {
    padding: 3.5rem 0;
}

.section--alt {
    background: #f0f2f5;
}

.section-title {
    margin-bottom: 1.5rem;
    color: var(--navy);
}

.section-title::after {
    content: '';
    display: block;
    width: 3rem;
    height: 3px;
    background: var(--gold);
    margin-top: 0.5rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.65rem 1.5rem;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
    border-radius: 4px;
    transition: background 0.2s, color 0.2s;
    border: none;
    cursor: pointer;
}

.btn--primary {
    background: var(--gold);
    color: var(--navy);
}

.btn--primary:hover {
    background: var(--gold-light);
    color: var(--navy);
}

.btn--outline {
    background: transparent;
    color: var(--navy);
    border: 2px solid var(--navy);
}

.btn--outline:hover {
    background: var(--navy);
    color: var(--white);
}

/* Cards */
.card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 1.5rem;
    transition: box-shadow 0.2s;
}

.card:hover {
    box-shadow: 0 8px 24px rgba(26, 39, 68, 0.08);
}

/* Footer */
.site-footer {
    background: var(--navy);
    color: var(--white);
    padding: 2.5rem 0 1.5rem;
    margin-top: 3rem;
}

.site-footer a {
    color: var(--gold-light);
}

.site-footer a:hover {
    text-decoration: underline;
}

.footer-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--space);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-bottom {
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.15);
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Hero homepage */
.hero {
    min-height: 75vh;
    display: flex;
    align-items: center;
    background: var(--navy) linear-gradient(160deg, var(--navy) 0%, var(--navy-light) 60%);
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 4rem var(--space);
    max-width: 42rem;
    margin: 0 auto;
}

.hero h1 {
    margin-bottom: 1rem;
    color: inherit;
}

.hero .lead {
    font-size: 1.2rem;
    opacity: 0.95;
    margin-bottom: 1.5rem;
}

/* Homepage sections one-page */
.home-section {
    padding: 4rem 0;
    scroll-margin-top: var(--header-h);
}

.home-section:nth-child(even) {
    background: #f5f6f8;
}

/* FAQ */
.faq-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.faq-item {
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
}

.faq-item:first-child { padding-top: 0; }

.faq-q {
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 0.5rem;
}

.faq-a {
    color: var(--text-muted);
    margin: 0;
}

/* Contact form */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.35rem;
    color: var(--navy);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.6rem 0.75rem;
    font-family: var(--font-sans);
    font-size: 1rem;
    border: 1px solid var(--border);
    border-radius: 4px;
}

.form-group textarea {
    min-height: 140px;
    resize: vertical;
}

/* Utility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-2 { margin-bottom: 1.5rem; }

/* Reduce layout shift - reserve space for banners */
.page-banner,
.hero {
    contain: layout style paint;
}

/* Print */
@media print {
    .site-header { position: static; }
    .nav-toggle { display: none; }
    .nav-main { display: flex; }
}
