/* ==========================================================================
   Texas Panhandle Real Estate Imaging - Main Stylesheet
   Colors: Molten Lava, Mahogany Red, Papaya Whip, Deep Space Blue, Steel Blue
   Fonts: Futura Medium (headings/UI), Adobe Garamond Semi Bold (body/serif)
   ========================================================================== */

/* --- CSS Custom Properties --- */
:root {
    /* Brand palette - from official style guide */
    --molten-lava: #760000;
    --mahogany-red: #C0111F;
    --papaya-whip: #FFEDD4;
    --deep-space-blue: #023049;
    --steel-blue: #659ABA;

    /* Legacy aliases - kept so nothing breaks during transition */
    --burnt-umber: var(--molten-lava);
    --redwood: var(--mahogany-red);
    --macadamia: var(--papaya-whip);
    --cool-blue: var(--deep-space-blue);
    --light-gray: var(--steel-blue);

    --white: #FFFFFF;
    --off-white: #FAFAF7;
    --dark-text: #1A1A1A;
    --medium-text: #4A4A4A;
    --light-text: #FFEDD4;

    --font-heading: 'futura-pt', 'Futura', 'Helvetica Neue', Arial, sans-serif;
    --font-body: 'adobe-garamond-pro', 'Garamond', 'Georgia', serif;

    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.15);

    --radius: 4px;
    --transition: 0.3s ease;
}

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

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

body {
    font-family: var(--font-body);
    color: var(--dark-text);
    background-color: var(--white);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: var(--cool-blue);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--redwood);
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--cool-blue);
    line-height: 1.3;
}

h1 { font-size: 2.5rem; margin-bottom: 1rem; }
h2 { font-size: 2rem; margin-bottom: 0.75rem; }
h3 { font-size: 1.4rem; margin-bottom: 0.5rem; }
h4 { font-size: 1.15rem; margin-bottom: 0.5rem; }

p {
    margin-bottom: 1rem;
    color: var(--medium-text);
}

/* --- Layout --- */
.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 5rem 0;
}

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

.section--dark {
    background-color: var(--cool-blue);
    color: var(--light-text);
}

.section--dark h2,
.section--dark h3,
.section--dark h4 {
    color: var(--macadamia);
}

.section--dark p {
    color: rgba(255, 237, 212, 0.85);
}

.section--accent {
    background-color: var(--burnt-umber);
    color: var(--light-text);
}

.section--accent h2,
.section--accent h3 {
    color: var(--macadamia);
}

.section--accent p {
    color: rgba(255, 237, 212, 0.85);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
}

.section-header p {
    font-size: 1.1rem;
}

/* --- Grid helpers --- */
.grid {
    display: grid;
    gap: 2rem;
}

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

@media (max-width: 768px) {
    .grid--2, .grid--3, .grid--4 {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .grid--3, .grid--4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* --- Header / Navigation --- */
.site-header {
    background: var(--papaya-whip);
    border-bottom: 3px solid var(--molten-lava);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.site-logo__img {
    height: 100px;
    width: auto;
}

.site-logo__mark {
    font-family: var(--font-heading);
    font-size: 1.65rem;
    font-weight: 700;
    color: var(--cool-blue);
    letter-spacing: -0.02em;
    line-height: 1;
    border-right: 3px solid var(--redwood);
    padding-right: 0.75rem;
    margin-right: 0.75rem;
}

.site-logo__mark span {
    color: var(--redwood);
}

.site-logo__text {
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: var(--cool-blue);
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: 0.02em;
}

.site-logo__text small {
    display: block;
    font-size: 0.65rem;
    font-weight: 400;
    color: var(--light-gray);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-top: 0.15rem;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--deep-space-blue);
    margin: 5px 0;
    transition: var(--transition);
}

.main-nav > ul {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 0.25rem;
}

.main-nav a {
    display: block;
    padding: 0.5rem 0.85rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--deep-space-blue);
    border-radius: var(--radius);
    transition: all var(--transition);
}

.main-nav a:hover,
.main-nav a.active {
    background-color: var(--deep-space-blue);
    color: var(--white);
}

.main-nav a.nav-login {
    background-color: var(--mahogany-red);
    color: var(--white);
    border-radius: var(--radius);
}

.main-nav a.nav-login:hover {
    background-color: var(--deep-space-blue);
}

/* Services dropdown */
.nav-dropdown {
    position: relative;
}

.nav-dropdown > a::after {
    content: ' \25BE';
    font-size: 0.7em;
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    border: 1px solid #E0E0E0;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    min-width: 260px;
    z-index: 100;
    padding: 0.5rem 0;
    list-style: none;
}

.nav-dropdown.open .nav-dropdown-menu {
    display: block;
}

.nav-dropdown-menu a {
    padding: 0.6rem 1.25rem;
    font-size: 0.85rem;
    border-radius: 0;
    color: var(--deep-space-blue);
}

.nav-dropdown-menu a:hover {
    background-color: var(--steel-blue);
    color: var(--white);
}

/* Mobile nav */
@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--papaya-whip);
        border-bottom: 3px solid var(--molten-lava);
        box-shadow: var(--shadow-md);
    }

    .main-nav.open {
        display: block;
    }

    .main-nav > ul {
        flex-direction: column;
        padding: 1rem;
        gap: 0;
    }

    .main-nav a {
        padding: 0.75rem 1rem;
        width: 100%;
    }

    .nav-dropdown-menu {
        position: static;
        box-shadow: none;
        border: none;
        padding-left: 1rem;
        background: rgba(2, 48, 73, 0.08);
    }

    .nav-dropdown.open .nav-dropdown-menu {
        display: block;
    }
}

/* --- Hero --- */
.hero {
    position: relative;
    background: linear-gradient(135deg, var(--cool-blue) 0%, var(--burnt-umber) 100%);
    color: var(--white);
    padding: 6rem 0;
    overflow: hidden;
}

.hero--home {
    padding: 8rem 0 6rem;
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.hero__content {
    position: relative;
    z-index: 2;
    max-width: 650px;
}

.hero__tagline {
    font-size: 1.1rem;
    color: var(--macadamia);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 500;
    margin-bottom: 1rem;
}

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

.hero p {
    color: rgba(255,255,255,0.85);
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.hero__bg {
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.2;
    z-index: 1;
}

/* Hero slideshow */
.hero-slide {
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease;
    z-index: 1;
}

.hero-slide.active {
    opacity: 1;
}

.hero--slideshow {
    background: var(--deep-space-blue);
}

.hero--slideshow .hero-slide {
    opacity: 0;
}

.hero--slideshow .hero-slide.active {
    opacity: 0.35;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 0.85rem 2rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition);
    border: 2px solid transparent;
    text-align: center;
    letter-spacing: 0.02em;
}

.btn--primary {
    background-color: var(--redwood);
    color: var(--white);
    border-color: var(--redwood);
}

.btn--primary:hover {
    background-color: var(--burnt-umber);
    border-color: var(--burnt-umber);
    color: var(--white);
}

.btn--secondary {
    background-color: transparent;
    color: var(--white);
    border-color: var(--macadamia);
}

.btn--secondary:hover {
    background-color: var(--macadamia);
    color: var(--cool-blue);
}

.btn--outline {
    background-color: transparent;
    color: var(--cool-blue);
    border-color: var(--cool-blue);
}

.btn--outline:hover {
    background-color: var(--cool-blue);
    color: var(--white);
}

.btn--sm {
    padding: 0.5rem 1.25rem;
    font-size: 0.85rem;
}

/* --- Cards --- */
.card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.card__image {
    width: 100%;
    height: 220px;
    background-size: cover;
    background-position: center;
    background-color: var(--steel-blue);
}

.card__body {
    padding: 1.75rem;
}

.card__body h3 {
    margin-bottom: 0.75rem;
}

.card__body p {
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
}

/* --- Service page content --- */
.service-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

@media (max-width: 768px) {
    .service-intro {
        grid-template-columns: 1fr;
    }
}

.service-intro__image {
    width: 100%;
    height: 400px;
    background-size: cover;
    background-position: center;
    border-radius: var(--radius);
    background-color: var(--steel-blue);
}

/* Feature lists within service pages */
.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    position: relative;
    padding: 0.6rem 0 0.6rem 1.75rem;
    color: var(--medium-text);
}

.feature-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 1rem;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--redwood);
}

/* --- Vimeo lazy-load facade --- */
.aspect-video {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    border-radius: var(--radius);
    overflow: hidden;
    background: #111;
}

.vimeo-facade {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    background: #111;
}

.vimeo-facade img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.3s ease;
}

.vimeo-facade:hover img {
    opacity: 0.85;
}

.vimeo-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
    pointer-events: none;
}

.vimeo-facade:hover .vimeo-play-btn {
    background: rgba(0, 0, 0, 0.88);
    border-color: #fff;
    transform: translate(-50%, -50%) scale(1.08);
}

.vimeo-play-btn svg {
    width: 28px;
    height: 28px;
    fill: #fff;
}

/* --- Matterport facade --- */
.matterport-facade {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.matterport-facade img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.3s ease;
}

.matterport-facade:hover img {
    opacity: 0.85;
}

.matterport-explore-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.75);
    border: 2px solid rgba(255, 255, 255, 0.9);
    border-radius: var(--radius);
    padding: 0.75rem 1.5rem;
    color: #fff;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: all 0.2s ease;
    pointer-events: none;
}

.matterport-facade:hover .matterport-explore-btn {
    background: rgba(0, 0, 0, 0.88);
    border-color: #fff;
    transform: translate(-50%, -50%) scale(1.05);
}

/* --- Deliverables grid (for MAPP3D page) --- */
.deliverable {
    text-align: center;
    padding: 2rem 1.5rem;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.deliverable__icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    background: var(--macadamia);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--cool-blue);
}

/* --- Package cards --- */
.package {
    background: var(--white);
    border: 2px solid #E8E8E8;
    border-radius: var(--radius);
    padding: 2.5rem 2rem;
    text-align: center;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.package:hover {
    border-color: var(--redwood);
    box-shadow: var(--shadow-md);
}

.package--featured {
    border-color: var(--redwood);
    position: relative;
}

.package--featured::before {
    content: 'One Flat Rate';
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--redwood);
    color: var(--white);
    padding: 0.25rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.package h3 {
    font-size: 1.35rem;
    margin-bottom: 0.5rem;
}

.package__price {
    font-size: 1.1rem;
    color: var(--redwood);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.package ul {
    list-style: none;
    text-align: left;
    margin-bottom: 2rem;
}

.package ul li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #F0F0F0;
    font-size: 0.9rem;
    color: var(--medium-text);
    padding-left: 1.25rem;
    position: relative;
}

.package ul li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: var(--redwood);
    font-weight: 600;
}

/* --- CTA Banner --- */
.cta-banner {
    text-align: center;
    padding: 4rem 0;
}

.cta-banner h2 {
    margin-bottom: 1rem;
}

.cta-banner p {
    max-width: 600px;
    margin: 0 auto 2rem;
    font-size: 1.1rem;
}

/* --- Service gallery --- */
.service-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.service-gallery__item {
    width: 100%;
    height: 240px;
    background-size: cover;
    background-position: center;
    border-radius: var(--radius);
    background-color: var(--steel-blue);
}

@media (max-width: 768px) {
    .service-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .service-gallery {
        grid-template-columns: 1fr;
    }
    .service-gallery__item {
        height: 200px;
    }
}

/* --- Contact Form --- */
.contact-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

@media (max-width: 768px) {
    .contact-section {
        grid-template-columns: 1fr;
    }
}

.contact-info h3 {
    margin-bottom: 1rem;
}

.contact-info__item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.contact-info__icon {
    width: 40px;
    height: 40px;
    background: var(--macadamia);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--cool-blue);
    font-size: 1rem;
}

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

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--cool-blue);
    margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #D0D0D0;
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: border-color var(--transition);
    background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--cool-blue);
    box-shadow: 0 0 0 3px rgba(2, 48, 73, 0.1);
}

.form-group textarea {
    min-height: 140px;
    resize: vertical;
}

.form-status {
    padding: 1rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    display: none;
}

.form-status--success {
    display: block;
    background: #E8F5E9;
    color: #2E7D32;
    border: 1px solid #A5D6A7;
}

.form-status--error {
    display: block;
    background: #FFEBEE;
    color: #C62828;
    border: 1px solid #EF9A9A;
}

/* --- Credentials / Trust bar --- */
.trust-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
    padding: 2rem 0;
}

.trust-item {
    text-align: center;
    color: var(--medium-text);
    font-size: 0.85rem;
    font-weight: 500;
}

.trust-item strong {
    display: block;
    font-size: 1.1rem;
    color: var(--cool-blue);
}

/* --- Footer --- */
.site-footer {
    background: var(--cool-blue);
    color: var(--macadamia);
    padding: 3.5rem 0 1.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

.site-footer h4 {
    color: var(--macadamia);
    font-size: 1rem;
    margin-bottom: 1rem;
}

.site-footer p {
    color: var(--macadamia);
}

.site-footer a {
    color: var(--macadamia);
}

.site-footer a:hover {
    color: var(--macadamia);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    font-size: 0.9rem;
}

.footer-logo {
    height: 72px;
    width: auto;
    margin-bottom: 1rem;
}

.footer-logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--macadamia);
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
    line-height: 1;
}

.footer-logo-text span {
    color: var(--redwood);
}

.footer-social {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.footer-social__link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 237, 212, 0.1);
    color: var(--macadamia);
    transition: background 0.2s, color 0.2s;
}

.footer-social__link:hover {
    background: var(--redwood);
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 237, 212, 0.15);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    flex-wrap: wrap;
    gap: 1rem;
}

/* --- Utility classes --- */
.text-center { text-align: center; }
.text-left { text-align: left; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}

/* --- Page-specific: service page hero (shorter) --- */
.hero--page {
    padding: 4rem 0 3rem;
    min-height: auto;
}

.hero--page h1 {
    font-size: 2.5rem;
}

/* --- Partnership badge --- */
.partnership-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--macadamia);
    color: var(--cool-blue);
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

/* --- Responsive typography --- */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }
    .hero h1 { font-size: 2.2rem; }
    .hero--home { padding: 5rem 0 4rem; min-height: auto; }
    .section { padding: 3.5rem 0; }

    .site-logo__mark {
        font-size: 1.35rem;
        padding-right: 0.6rem;
        margin-right: 0.6rem;
    }

    .site-logo__text {
        font-size: 0.7rem;
    }

    .site-logo__text small {
        font-size: 0.58rem;
    }
}

/* --- Agent Portal Feature Cards --- */
.portal-feature {
    text-align: center;
    padding: 1.5rem 1rem;
}

.portal-feature__icon {
    margin-bottom: 1rem;
    color: var(--steel-blue);
}

.portal-feature h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.portal-feature p {
    font-size: 0.95rem;
    line-height: 1.6;
}

@media (max-width: 768px) {
    #agent-portal .grid--4 {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    #agent-portal .grid--4 {
        grid-template-columns: 1fr;
    }
}

/* --- Agent Portal Detail Page --- */
.portal-detail {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 3rem;
    align-items: center;
    padding: 2.5rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.portal-detail:last-of-type {
    border-bottom: none;
}

.portal-detail--reverse {
    grid-template-columns: auto 1fr;
}

.portal-detail--reverse .portal-detail__icon {
    order: -1;
}

.portal-detail__content h3 {
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
    color: var(--deep-space-blue);
}

.portal-detail__content p {
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

.portal-detail__content p:last-child {
    margin-bottom: 0;
}

.portal-detail__icon {
    color: var(--steel-blue);
    opacity: 0.6;
    padding: 1rem;
}

.portal-step {
    text-align: center;
    padding: 2rem 1.5rem;
}

.portal-step__number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--deep-space-blue);
    color: var(--papaya-whip);
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.portal-step h3 {
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
    color: var(--deep-space-blue);
}

.portal-step p {
    line-height: 1.6;
}

.hero--short {
    padding: 6rem 0 5rem;
    min-height: auto;
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero--short::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(2, 48, 73, 0.85), rgba(2, 48, 73, 0.6));
}

.hero--short .container {
    position: relative;
    z-index: 2;
}

.hero--short h1 {
    color: var(--papaya-whip);
}

.hero--short p {
    color: rgba(255, 237, 212, 0.9);
}

.hero--short .hero__tagline {
    color: var(--steel-blue);
}

@media (max-width: 768px) {
    .portal-detail,
    .portal-detail--reverse {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .portal-detail--reverse .portal-detail__icon {
        order: 0;
    }

    .portal-detail__icon {
        padding: 0;
    }

    .hero--short {
        padding: 4rem 0 3rem;
    }
}

/* --- Print --- */
@media print {
    .site-header, .site-footer, .nav-toggle, .btn { display: none; }
    body { font-size: 12pt; color: #000; }
    a { color: #000; text-decoration: underline; }
}
