/* Opus Servi Website — Reverent, clean design */

:root {
    --marian-blue: #1A365D;
    --marian-blue-light: #1E4361;
    --liturgical-gold: #D69E2E;
    --liturgical-gold-light: #D3AE57;
    --parchment: #FAF5F0;
    --parchment-dark: #EFE2D5;
    --text-primary: #242C3A;
    --text-secondary: #1F252E;
    --text-muted: #2E343D;
    --white: #FFFFFF;
    --border: #EED3C2;
    --shadow: rgba(26, 54, 93, 0.13);
    --max-width: 1040px;
}

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

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    color: var(--text-primary);
    background-color: var(--parchment);
    line-height: 1.65;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: Georgia, 'Times New Roman', serif;
    color: var(--marian-blue);
    line-height: 1.3;
}

h1 { font-size: 2.95rem; font-weight: 700; }
h2 { font-size: 1.9rem; font-weight: 600; margin-bottom: 1rem; }
h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: 0.5rem; }

p { margin-bottom: 1rem; }

a {
    color: var(--marian-blue);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--liturgical-gold);
}

/* Inline links in prose content get an underline for a11y (link-in-text-block).
   Navigation, buttons, and footer link lists opt out via more specific rules
   below that don't use these context selectors. */
.page-content p a,
.page-content li a,
.faq-item p a,
.highlight-box p a,
.footer-mission a {
    text-decoration: underline;
    text-underline-offset: 0.15em;
    text-decoration-thickness: 0.05em;
}

/* Layout */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1rem;
}

/* ===== PRIMARY NAVIGATION ===== */
.nav {
    border-bottom: 1px solid var(--border);
    padding: 0.875rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

.nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--marian-blue);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-brand .cross {
    font-size: 1.5rem;
    color: var(--liturgical-gold);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--marian-blue);
}

/* ===== PRODUCT SUB-NAVIGATION ===== */
.sub-nav {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 0.5rem 0;
}

.sub-nav .container {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.sub-nav-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
}

.sub-nav-links a {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
    transition: color 0.2s;
    padding: 0.25rem 0;
}

.sub-nav-links a:hover,
.sub-nav-links a.active {
    color: var(--marian-blue);
}

/* ===== SPLIT HERO (Company Homepage) ===== */
.split-hero {
    position: relative;
    background: linear-gradient(180deg, var(--marian-blue) 0%, var(--marian-blue) 55%, var(--parchment) 55%, var(--parchment) 100%);
    padding: 4.5rem 0 3rem;
    text-align: center;
}

.split-hero .hero-content {
    color: var(--white);
    margin-bottom: 3rem;
}

.split-hero .hero-label {
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.6;
    margin-bottom: 0.75rem;
}

.split-hero h1 {
    color: var(--white);
    font-size: 2.75rem;
    margin-bottom: 1rem;
}

.split-hero .hero-description {
    max-width: 500px;
    margin: 0 auto;
    font-size: 1.05rem;
    opacity: 0.8;
    line-height: 1.7;
    color: var(--white);
}

/* ===== PRODUCT CARDS (Company Homepage) ===== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 540px;
    margin: 0 auto;
    position: relative;
}

.product-card {
    background: var(--white);
    border-radius: 14px;
    padding: 2.45rem;
    border: 1px solid var(--border);
    box-shadow: 0 4px 13px var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    color: inherit;
    display: block;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(26, 54, 93, 0.12);
    color: inherit;
}

.product-card-layout {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    text-align: left;
}

.product-card-icon-img {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    flex-shrink: 0;
    overflow: hidden;
}

.product-card-text {
    flex: 1;
}

.product-card-name {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--marian-blue);
    line-height: 1;
    padding-bottom: 0.15rem;
}

.product-card-tagline {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 0.15rem;
}

.product-card-description {
    color: var(--text-primary);
    font-size: 0.95rem;
    margin-top: 0.75rem;
    margin-bottom: 0.75rem;
}

.product-card-platforms {
    /* Darker gold than --liturgical-gold so small body text passes WCAG AAA
       on white (~7.2:1). The brighter brand gold is reserved for decorative
       elements (the cross, the button background) where it's not small text. */
    color: #6B5216;
    font-size: 0.85rem;
    font-weight: 500;
}

/* ===== MISSION BLURB (Company Homepage) ===== */
.mission-blurb {
    text-align: center;
    padding: 1.5rem 0 1.5rem;
    max-width: 600px;
    margin: 0 auto;
}

.mission-blurb p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.8;
}

/* ===== PRODUCT HERO (Angelus Landing) ===== */
.hero {
    background: linear-gradient(135deg, var(--marian-blue) 0%, var(--marian-blue-light) 100%);
    color: var(--white);
    padding: 2.88rem 0 2rem;
    text-align: center;
}

.hero h1 {
    color: var(--white);
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.hero .tagline {
    font-family: Georgia, 'Times New Roman', serif;
    font-style: italic;
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.hero .description {
    max-width: 600px;
    margin: 0 auto 2rem;
    font-size: 1.1rem;
    opacity: 0.85;
    line-height: 1.8;
}

.hero-logo {
    display: block;
    width: 102px;
    height: 102px;
    margin: 0 auto 1rem;
    border-radius: 20px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--liturgical-gold);
    /* Deeper than --marian-blue so the gold-bg primary CTA passes WCAG AAA
       (7:1) for normal text. The brand marian-blue (#1A365D) only hits 5.08:1
       on the brand gold, which is fine for body text on white but too low
       for an active link sitting on the gold field. */
    color: #0B1929;
}

.btn-primary:hover {
    background: var(--liturgical-gold-light);
    color: #0B1929;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(214, 158, 46, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.4);
}

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

.btn-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-disabled,
.btn-disabled:hover {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    background: var(--liturgical-gold);
    color: var(--marian-blue);
    pointer-events: none;
}

.btn-outline.btn-disabled,
.btn-outline.btn-disabled:hover {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.4);
}

.coming-soon-note {
    margin-top: 1.25rem;
    font-size: 0.85rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.02em;
}

/* Features Section */
.features {
    padding: 2.58rem 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.2rem;
    margin-top: 2rem;
}

.feature-card {
    background: var(--white);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    box-shadow: 0 2px 8px var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px var(--shadow);
}

.feature-icon {
    font-size: 1.5rem;
    margin-right: 0.6rem;
    vertical-align: -0.1em;
}

.feature-card h3 {
    color: var(--marian-blue);
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* Screenshots Section */
.screenshots {
    background: var(--white);
    padding: 2rem 0;
    text-align: center;
}

.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.screenshot-placeholder {
    background: var(--parchment-dark);
    border-radius: 16px;
    border: 1px solid var(--border);
    aspect-ratio: 9/16;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-style: italic;
}

.screenshot-frame {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(26, 54, 93, 0.12);
    border: 1px solid var(--border);
    background: var(--white);
}

.screenshot-frame img {
    display: block;
    width: 100%;
    height: auto;
}

/* Content Sections */
.section {
    padding: 3rem 0;
}

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

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

.section-header p {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0.5rem auto 0;
}

/* Page Content (Privacy, Support, About) */
.page-header {
    background: linear-gradient(135deg, var(--marian-blue) 0%, var(--marian-blue-light) 100%);
    color: var(--white);
    padding: 3rem 0;
    text-align: center;
}

.page-header h1 {
    color: var(--white);
    font-size: 2.25rem;
}

.page-header p {
    opacity: 0.85;
    margin-top: 0.5rem;
}

.page-content {
    padding: 3rem 0;
    max-width: 720px;
    margin: 0 auto;
}

.page-content h2 {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.page-content h2:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.page-content ul {
    margin: 0.5rem 0 1rem 1.5rem;
    color: var(--text-secondary);
}

.page-content li {
    margin-bottom: 0.4rem;
}

/* Highlight Box */
.highlight-box {
    background: linear-gradient(135deg, rgba(26, 54, 93, 0.05), rgba(214, 158, 46, 0.05));
    border: 1px solid var(--border);
    border-left: 4px solid var(--liturgical-gold);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.highlight-box p {
    margin-bottom: 0;
    color: var(--text-secondary);
}

/* FAQ Section */
.faq-item {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.faq-item h3 {
    color: var(--marian-blue);
    margin-bottom: 0.5rem;
}

.faq-item p {
    color: var(--text-secondary);
    margin-bottom: 0;
}

/* ===== COMPANY FOOTER ===== */
.footer {
    background: var(--marian-blue);
    color: rgba(255, 255, 255, 0.9);
    padding: 3rem 0 2rem;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
    list-style: none;
    flex-wrap: wrap;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--liturgical-gold);
}

.footer .cross {
    color: var(--liturgical-gold);
    font-size: 1.5rem;
    display: block;
    margin-bottom: 0.75rem;
}

.footer p {
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.footer .footer-tagline {
    margin-top: 0.5rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.85);
}

.footer .footer-mission {
    max-width: 380px;
    margin: 0 auto 1.25rem;
    font-size: 0.8rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
}

/* ===== 404 PAGE ===== */
.not-found {
    text-align: center;
    padding: 6rem 0;
}

.not-found h1 {
    font-size: 4rem;
    color: var(--liturgical-gold);
    margin-bottom: 0.5rem;
}

.not-found h2 {
    margin-bottom: 1.5rem;
}

.not-found p {
    color: var(--text-secondary);
    max-width: 400px;
    margin: 0 auto 2rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    .hero h1 { font-size: 2.25rem; }
    .hero { padding: 3rem 0; }
    .split-hero h1 { font-size: 2rem; }
    .split-hero { padding: 3rem 0 2rem; }

    .nav-links {
        gap: 1rem;
    }

    .sub-nav-links {
        gap: 1rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .screenshots-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .product-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .nav .container {
        flex-direction: column;
        gap: 0.75rem;
    }

    .sub-nav .container {
        flex-wrap: wrap;
    }

    .hero h1 { font-size: 1.75rem; }
    .hero .tagline { font-size: 1.1rem; }
    .hero .description { font-size: 1rem; }
    .split-hero h1 { font-size: 1.5rem; }

    .screenshots-grid {
        grid-template-columns: 1fr;
        max-width: 280px;
    }
}
