/* Stanton Spiff - Brand Styles */
/* Based on Stanton Carpet corporate website (stantoncarpet.com) */

:root {
    /* Primary brand colors */
    --stanton-leather: #875F45;
    --stanton-leather-dark: #6d4c37;
    --stanton-slate: #2F2E2C;
    --stanton-white: #FCF9F4;
    --stanton-burlap: #C9BCA9;
    --stanton-burlap-light: rgba(201, 188, 169, 0.4);
    --stanton-black: #1a1a1a;

    /* Spacing & Borders */
    --stanton-radius: 0;
    --stanton-radius-btn: 4px;
    --stanton-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    --stanton-navy: #183566;
    --stanton-shadow-premium: 0px 12px 135px -6px rgba(0, 0, 0, 0.18);
}

html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    font-family: 'proxima-nova', 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--stanton-black);
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--stanton-black);
}

a {
    color: var(--stanton-black);
    text-decoration: none;
}

a:hover {
    color: var(--stanton-leather-dark);
}

/* Navigation */
.navbar-stanton {
    background-color: var(--stanton-slate);
    padding: 1rem 0;
    position: relative;
}

.navbar-stanton .container {
    position: relative;
}

.navbar-stanton .navbar-brand {
    display: flex;
    align-items: center;
}

.navbar-stanton .navbar-brand img {
    height: 60px;
    width: auto;
    filter: brightness(0) invert(1);
}

.navbar-stanton .nav-link {
    color: var(--stanton-white);
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: color 0.2s ease;
}

.navbar-stanton .nav-link:hover,
.navbar-stanton .nav-link:focus {
    color: var(--stanton-leather);
}

.navbar-stanton .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.5);
}

.navbar-stanton .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Buttons */
.btn-stanton-primary {
    background-color: var(--stanton-leather);
    border-color: var(--stanton-leather);
    color: #ffffff;
    font-weight: 600;
    padding: 0.5rem 1.5rem;
    border-radius: var(--stanton-radius-btn);
    transition: all 0.2s ease;
}

.btn-stanton-primary:hover,
.btn-stanton-primary:focus {
    background-color: var(--stanton-leather-dark);
    border-color: var(--stanton-leather-dark);
    color: #ffffff;
}

.btn-stanton-outline {
    background-color: transparent;
    border: 2px solid var(--stanton-leather);
    color: var(--stanton-leather);
    font-weight: 600;
    padding: 0.5rem 1.5rem;
    border-radius: var(--stanton-radius-btn);
    transition: all 0.2s ease;
}

.btn-stanton-outline:hover,
.btn-stanton-outline:focus {
    background-color: var(--stanton-leather);
    color: #ffffff;
}

/* =============================================
   HOMEPAGE — hp-* classes
   ============================================= */

/* Narrow container for editorial feel */
.container-narrow {
    max-width: 1080px;
    width: 85%;
    margin-left: auto;
    margin-right: auto;
}

/* Section 1: Hero */
.hp-hero {
    position: relative;
    min-height: 70vh;
    background-image: url('/images/Saybrook Frosted Taupe-ROOM.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    display: flex;
    align-items: center;
}

.hp-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(0, 0, 0, 0.55) 0%,
        rgba(0, 0, 0, 0.35) 40%,
        rgba(0, 0, 0, 0.10) 100%
    );
    z-index: 1;
}

.hp-hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 4rem 0;
}

.hp-hero-eyebrow {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 3px;
    color: var(--stanton-burlap);
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.hp-hero-title {
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 3px 12px rgba(0, 0, 0, 0.5);
    margin-bottom: 1.25rem;
}

.hp-hero-subtitle {
    font-size: 1.1rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    max-width: 500px;
    line-height: 1.7;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.4);
}

/* Corporate-style button */
.btn-stanton-corporate {
    display: inline-block;
    padding: 0.75rem 2rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    border: 2px solid #ffffff;
    border-radius: 3px;
    color: #ffffff;
    background: transparent;
    transition: all 0.25s ease;
}

.btn-stanton-corporate:hover,
.btn-stanton-corporate:focus {
    background: #ffffff;
    color: var(--stanton-slate);
}

.btn-stanton-corporate-outline {
    border-color: rgba(255, 255, 255, 0.5);
    color: rgba(255, 255, 255, 0.85);
}

.btn-stanton-corporate-outline:hover,
.btn-stanton-corporate-outline:focus {
    border-color: #ffffff;
    background: #ffffff;
    color: var(--stanton-slate);
}

/* Light variant for dark backgrounds */
.btn-stanton-corporate-light {
    border-color: #ffffff;
    color: #ffffff;
}

.btn-stanton-corporate-light:hover,
.btn-stanton-corporate-light:focus {
    background: #ffffff;
    color: var(--stanton-navy);
}

/* Section 2: Value Proposition Strip */
.hp-values {
    background-color: var(--stanton-white);
    padding: 4rem 0;
}

.hp-values-grid {
    display: flex;
    justify-content: center;
    gap: 0;
}

.hp-value-item {
    flex: 1;
    text-align: center;
    padding: 1rem 2rem;
}

.hp-value-item + .hp-value-item {
    border-left: 1px solid var(--stanton-burlap);
}

.hp-value-item i {
    font-size: 1.75rem;
    color: var(--stanton-leather);
    margin-bottom: 0.75rem;
    display: block;
}

.hp-value-item h6 {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--stanton-black);
    margin-bottom: 0.5rem;
}

.hp-value-item p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0;
    line-height: 1.6;
}

/* Section heading style */
.hp-section-heading {
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--stanton-navy);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    position: relative;
}

.hp-section-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--stanton-leather);
}

/* Section 3: How It Works */
.hp-how-it-works {
    background-color: #ffffff;
    padding: 5rem 0;
}

.hp-feature-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    box-shadow: var(--stanton-shadow-premium);
}

.hp-step {
    display: flex;
    gap: 1.25rem;
    margin-bottom: 2rem;
    align-items: flex-start;
}

.hp-step:last-child {
    margin-bottom: 0;
}

.hp-step-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--stanton-navy);
    line-height: 1;
    min-width: 50px;
    opacity: 0.3;
}

.hp-step h5 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
    color: var(--stanton-black);
}

.hp-step p {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 0;
    line-height: 1.6;
}

/* Section 4: Parallax Quote Band */
.hp-parallax-band {
    position: relative;
    min-height: 320px;
    background-image: url('/images/Arcadia Java Jetty-SCENE.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hp-parallax-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.hp-parallax-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
}

.hp-parallax-rule {
    width: 60px;
    margin: 0 auto 1.25rem;
    border: none;
    border-top: 1px solid var(--stanton-leather);
    opacity: 1;
}

.hp-parallax-rule:last-child {
    margin: 1.25rem auto 0;
}

.hp-parallax-text {
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    font-weight: 600;
    letter-spacing: 4px;
    color: #ffffff;
    text-transform: uppercase;
    margin-bottom: 0;
}

/* Section 5: Rewards Card */
.hp-rewards-card {
    background-color: var(--stanton-white);
    padding: 5rem 0;
}

.hp-rewards-card p {
    font-size: 1rem;
    color: #555;
    line-height: 1.7;
}

.hp-rewards-list {
    list-style: none;
    padding-left: 0;
    margin-top: 1.5rem;
}

.hp-rewards-list li {
    padding: 0.4rem 0;
    padding-left: 1.5rem;
    position: relative;
    font-size: 0.95rem;
    color: #555;
}

.hp-rewards-list li::before {
    content: '\F26A';
    font-family: 'bootstrap-icons';
    position: absolute;
    left: 0;
    color: var(--stanton-leather);
    font-size: 0.8rem;
}

/* Section 6: Final CTA */
.hp-cta {
    background-color: var(--stanton-navy);
    padding: 5rem 0;
}

.hp-cta h2 {
    color: #ffffff;
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.hp-cta p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 1.05rem;
    margin-bottom: 2rem;
}

/* =============================================
   HOMEPAGE RESPONSIVE
   ============================================= */

@media (max-width: 991.98px) {
    .hp-hero {
        min-height: 80vh;
    }

    .hp-hero-title {
        font-size: clamp(2rem, 5vw, 3rem);
    }

    .hp-values-grid {
        flex-direction: column;
        gap: 0;
    }

    .hp-value-item + .hp-value-item {
        border-left: none;
        border-top: 1px solid var(--stanton-burlap);
        padding-top: 1.5rem;
        margin-top: 1.5rem;
    }

    .hp-how-it-works .col-lg-6:first-child {
        margin-bottom: 2rem;
    }
}

@media (max-width: 767.98px) {
    .container-narrow {
        width: 90%;
    }

    .hp-hero {
        min-height: 85vh;
    }

    .hp-hero-content {
        padding: 4rem 0;
    }

    .hp-hero-title {
        letter-spacing: 1px;
    }

    .hp-how-it-works,
    .hp-rewards-card {
        padding: 3.5rem 0;
    }

    .hp-parallax-band {
        min-height: 240px;
    }

    .hp-cta {
        padding: 3.5rem 0;
    }

    .hp-rewards-card .row {
        flex-direction: column-reverse;
    }
}

@media (max-width: 575.98px) {
    .hp-hero-eyebrow {
        font-size: 0.7rem;
        letter-spacing: 2px;
    }

    .hp-hero-subtitle {
        font-size: 1rem;
    }

    .btn-stanton-corporate {
        padding: 0.65rem 1.5rem;
        font-size: 0.75rem;
    }

    .hp-step-number {
        font-size: 1.5rem;
        min-width: 35px;
    }

    .hp-parallax-text {
        letter-spacing: 2px;
    }
}

/* Mobile parallax fallback — iOS/mobile doesn't support background-attachment: fixed */
@supports (-webkit-touch-callout: none) {
    .hp-hero,
    .hp-parallax-band {
        background-attachment: scroll;
    }
}

@media (hover: none) and (pointer: coarse) {
    .hp-hero,
    .hp-parallax-band {
        background-attachment: scroll;
    }
}

/* Page Header */
.page-header {
    background-color: var(--stanton-white);
    padding: 2rem 0;
    margin-bottom: 2rem;
}

.page-header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

/* Cards */
.card-stanton {
    border-radius: 12px;
    background: #ffffff;
    transition: all 0.3s ease;
    border: 2px solid var(--stanton-burlap);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.card-stanton .card-body i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--stanton-leather);
    color: #ffffff !important;
    font-size: 2rem !important;
}

.card-stanton:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

.card-stanton.h-100 {
    display: flex;
    flex-direction: column;
}

.card-stanton.h-100 .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

/* Login Card */
.login-card {
    background: #ffffff;
    border: 1px solid #eee;
    border-radius: var(--stanton-radius-btn);
    padding: 2rem;
    box-shadow: var(--stanton-shadow);
    max-width: 400px;
    margin: 0 auto;
}

.login-card h2 {
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Form Styles */
.form-control {
    border-color: #ddd;
    padding: 0.75rem 1rem;
    border-radius: var(--stanton-radius-btn);
}

.form-control:focus {
    border-color: var(--stanton-leather);
    box-shadow: 0 0 0 0.2rem rgba(135, 95, 69, 0.25);
}

.form-label {
    font-weight: 500;
    color: var(--stanton-black);
    margin-bottom: 0.5rem;
}

/* Footer */
.footer-stanton {
    background-color: var(--stanton-slate);
    color: var(--stanton-white);
    padding: 3rem 0 1.5rem;
    margin-top: auto;
    position: relative;
}

/* Accent stripe above footer */
.footer-stanton::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--stanton-leather);
}

.footer-stanton h5 {
    color: var(--stanton-white);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-stanton a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-stanton a:hover {
    color: var(--stanton-leather);
}

.footer-stanton .footer-logo {
    height: 80px;
    width: auto;
    margin-bottom: 1rem;
    filter: brightness(0) invert(1);
}

.footer-stanton .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    margin-top: 2rem;
    font-size: 0.875rem;
    opacity: 0.7;
}

.footer-stanton .contact-info p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

/* Section Spacing */
.section {
    padding: 4rem 0;
}

/* Alert Styles */
.alert-stanton {
    border-radius: var(--stanton-radius-btn);
}

.alert-success {
    background-color: rgba(135, 95, 69, 0.1);
    border-color: var(--stanton-leather);
    color: var(--stanton-black);
}

.alert-danger {
    background-color: rgba(220, 53, 69, 0.1);
    border-color: #dc3545;
    color: #842029;
}

/* Utility Classes */
.text-stanton-leather {
    color: var(--stanton-leather) !important;
}

.bg-stanton-leather {
    background-color: var(--stanton-leather) !important;
}

.bg-stanton-slate {
    background-color: var(--stanton-slate) !important;
}

.bg-stanton-white {
    background-color: var(--stanton-white) !important;
}

/* Focus States */
.btn:focus,
.btn:active:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(135, 95, 69, 0.25);
}

/* FAQ Accordion */
.accordion-item {
    border: 1px solid #eee;
    margin-bottom: 0.5rem;
    border-radius: var(--stanton-radius-btn) !important;
}

.accordion-button {
    font-weight: 500;
    color: var(--stanton-black);
    background-color: #ffffff;
}

.accordion-button:not(.collapsed) {
    color: var(--stanton-black);
    background-color: var(--stanton-white);
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.2rem rgba(135, 95, 69, 0.25);
    border-color: var(--stanton-leather);
}

/* Terms/Privacy Content */
.content-page h3 {
    font-size: 1.25rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--stanton-white);
}

.content-page h3:first-of-type {
    margin-top: 0;
}

.content-page ul {
    padding-left: 1.5rem;
}

.content-page li {
    margin-bottom: 0.5rem;
}

/* Dashboard Tables */
.table-statement thead,
.table-styles thead,
.table-tracking thead {
    background-color: var(--stanton-slate);
    color: var(--stanton-white);
}

.table-statement thead th,
.table-styles thead th,
.table-tracking thead th {
    background-color: var(--stanton-slate);
    color: var(--stanton-white);
    font-weight: 600;
    padding: 0.75rem;
    border-color: var(--stanton-slate);
}

.table-statement tbody tr:nth-of-type(odd),
.table-styles tbody tr:nth-of-type(odd),
.table-tracking tbody tr:nth-of-type(odd) {
    background-color: #fbfbfb;
}

.table-statement tbody tr:nth-of-type(even),
.table-styles tbody tr:nth-of-type(even),
.table-tracking tbody tr:nth-of-type(even) {
    background-color: #f4f4f4;
}

.table-statement tfoot,
.table-styles tfoot,
.table-tracking tfoot {
    background-color: var(--stanton-slate);
    color: var(--stanton-white);
}

.table-statement tfoot td,
.table-styles tfoot td,
.table-tracking tfoot td {
    padding: 0.75rem;
    font-weight: 600;
}

/* Scrolling table container for Tracking page */
.table-tracking-container {
    max-height: calc((100vh - 380px) * 0.6);
    min-height: 200px;
    overflow-y: auto;
}

.table-tracking-container .table-tracking thead th {
    position: sticky;
    top: 0;
    z-index: 1;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .navbar-stanton .navbar-nav {
        padding-top: 1rem;
    }

    .navbar-stanton .nav-link {
        padding: 0.75rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

}
