/* ============================================================
   POWDER RIVER ENTERPRISES — PAGES CSS
   pages.css — contact, gallery, about, CTA banner
   Add <link rel="stylesheet" href="assets/css/pages.css"> in header.php
   ============================================================ */

/* ============================================================
   SHARED: Page Hero Banner (used on contact, gallery, about)
   ============================================================ */
.page-hero {
    position: relative;
    width: 100%;
    height: 260px;
    background: url('../images/hero1.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.page-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(5,5,10,0.82) 0%, rgba(10,20,40,0.72) 100%);
}

.page-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 0 20px;
}

.page-hero-content h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0 0 10px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

.page-hero-content p {
    font-size: clamp(0.95rem, 2vw, 1.15rem);
    color: rgba(255,255,255,0.75);
    margin: 0;
}

/* ============================================================
   CTA BANNER (index.php — below hero)
   ============================================================ */
.cta-banner {
    background: linear-gradient(135deg, #1a1400 0%, #2a1f00 50%, #1a1400 100%);
    border-top: 2px solid #f0a832;
    border-bottom: 2px solid rgba(240,168,50,0.3);
    padding: 28px 24px;
}

.cta-banner-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.cta-banner-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cta-banner-headline {
    font-size: clamp(1.1rem, 2.5vw, 1.45rem);
    font-weight: 700;
    color: #f0a832;
    letter-spacing: 0.02em;
}

.cta-banner-sub {
    font-size: clamp(0.85rem, 1.5vw, 0.98rem);
    color: rgba(255,255,255,0.72);
}

.cta-banner-btn {
    display: inline-block;
    padding: 14px 32px;
    background: linear-gradient(135deg, #f0a832 0%, #e07b10 100%);
    color: #111;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 5px;
    white-space: nowrap;
    box-shadow: 0 4px 20px rgba(240,168,50,0.4);
    transition: transform 0.15s, box-shadow 0.15s;
    flex-shrink: 0;
}

.cta-banner-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(240,168,50,0.6);
}

@media (max-width: 640px) {
    .cta-banner-inner {
        flex-direction: column;
        text-align: center;
        align-items: stretch;
    }
    .cta-banner-btn {
        text-align: center;
    }
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-page {
    min-height: 100vh;
    background: #0a0a0e;
}

.contact-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 24px 40px;
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 60px;
    align-items: start;
}

/* ---- Form Column ---- */
.contact-col-title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 0 0 8px;
}

.contact-col-rule {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #f0a832, #e07b10);
    border-radius: 2px;
    margin-bottom: 28px;
}

.quote-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 0.88rem;
    font-weight: 600;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.form-group input,
.form-group select,
.form-group textarea {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 5px;
    color: #fff;
    font-size: 1rem;
    padding: 12px 14px;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
    width: 100%;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
}

.form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23aaa' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
    background-color: rgba(255,255,255,0.05);
}

.form-group select option {
    background: #1a1a24;
    color: #fff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #f0a832;
    background: rgba(240,168,50,0.06);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255,255,255,0.3);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
    line-height: 1.5;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.req {
    color: #f0a832;
}

/* Honeypot */
.hp-field {
    position: absolute !important;
    left: -9999px !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
    overflow: hidden !important;
}

.form-submit-btn {
    padding: 15px 32px;
    background: linear-gradient(135deg, #f0a832 0%, #e07b10 100%);
    color: #111;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    box-shadow: 0 4px 18px rgba(240,168,50,0.35);
    transition: transform 0.15s, box-shadow 0.15s;
    align-self: flex-start;
}

.form-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 26px rgba(240,168,50,0.55);
}

.form-note {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.38);
    margin: -8px 0 0;
}

.form-error-msg {
    background: rgba(220,50,50,0.12);
    border: 1px solid rgba(220,50,50,0.4);
    border-left: 3px solid #dc3232;
    color: #ff8080;
    padding: 12px 16px;
    border-radius: 4px;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Success state */
.form-success {
    background: rgba(50,200,100,0.07);
    border: 1px solid rgba(50,200,100,0.3);
    border-radius: 8px;
    padding: 40px 32px;
    text-align: center;
}

.success-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #f0a832, #e07b10);
    color: #111;
    font-size: 1.6rem;
    font-weight: 800;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.form-success h3 {
    font-size: 1.6rem;
    color: #fff;
    margin: 0 0 10px;
}

.form-success p {
    color: rgba(255,255,255,0.7);
    line-height: 1.6;
    margin: 0;
}

.form-success a {
    color: #f0a832;
}

/* ---- Info Column ---- */
.contact-info-col {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.contact-info-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 18px 20px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    transition: background 0.2s, border-color 0.2s;
}

.contact-info-card:hover {
    background: rgba(240,168,50,0.05);
    border-color: rgba(240,168,50,0.2);
}

.cic-icon {
    font-size: 1.5rem;
    line-height: 1;
    margin-top: 2px;
    flex-shrink: 0;
}

.cic-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: rgba(255,255,255,0.45);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 3px;
}

.cic-value {
    font-size: 1rem;
    color: #fff;
    text-decoration: none;
    line-height: 1.5;
    display: block;
    overflow-wrap: break-word;
    word-break: break-all;
}

a.cic-value:hover {
    color: #f0a832;
}

a.cic-value[href^="mailto"] {
    font-size: 0.82rem;
}

.contact-service-area {
    margin-top: 8px;
    padding: 20px;
    background: rgba(240,168,50,0.05);
    border: 1px solid rgba(240,168,50,0.18);
    border-radius: 8px;
}

.csa-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: #f0a832;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
}

.contact-service-area p {
    font-size: 0.92rem;
    color: rgba(255,255,255,0.65);
    line-height: 1.6;
    margin: 0;
}

/* Contact responsive */
@media (max-width: 860px) {
    .contact-wrap {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 40px 20px 60px;
    }

    .contact-info-col {
        order: -1; /* Info above form on mobile */
    }
}

@media (max-width: 540px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    .form-submit-btn {
        width: 100%;
    }
}

/* ============================================================
   GALLERY PAGE
   ============================================================ */
.gallery-page {
    min-height: 100vh;
    background: #0a0a0e;
}

.gallery-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 24px 80px;
}

.gallery-intro {
    text-align: center;
    margin-bottom: 48px;
}

.gallery-intro-text {
    max-width: 640px;
    margin: 0 auto;
    color: rgba(255,255,255,0.65);
    font-size: 1.05rem;
    line-height: 1.7;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.gallery-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.gallery-img-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 4/3;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
}

.gallery-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.gallery-item.img-missing .gallery-img-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 60%);
    display: flex;
    align-items: flex-end;
    padding: 14px;
    opacity: 0;
    transition: opacity 0.3s;
}

.gallery-img-overlay span {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.3;
}

.gallery-img-wrap:hover img {
    transform: scale(1.04);
}

.gallery-img-wrap:hover .gallery-img-overlay {
    opacity: 1;
}

.gallery-caption {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
    margin: 0;
    padding: 0 2px;
}

.gallery-cta {
    margin-top: 60px;
    text-align: center;
    padding: 48px 24px;
    background: rgba(240,168,50,0.05);
    border: 1px solid rgba(240,168,50,0.15);
    border-radius: 10px;
}

.gallery-cta p {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.8);
    margin: 0 0 20px;
}

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

@media (max-width: 540px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    .gallery-section {
        padding: 40px 16px 60px;
    }
}

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-page {
    min-height: 100vh;
    background: #0a0a0e;
}

.about-story {
    max-width: 1100px;
    margin: 0 auto;
    padding: 60px 24px;
}

.about-story-inner {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 60px;
    align-items: start;
}

.about-story-text p {
    color: rgba(255,255,255,0.72);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 16px;
}

.about-story-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.about-logo {
    max-width: 200px;
    width: 100%;
    filter: drop-shadow(0 0 20px rgba(240,168,50,0.2));
}
.about-license-box {
    background: rgba(240,168,50,0.06);
    border: 1px solid rgba(240,168,50,0.2);
    border-radius: 10px;
    padding: 20px 24px;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.alb-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: rgba(255,255,255,0.45);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
}

.alb-ccb {
    font-size: 1.4rem;
    font-weight: 800;
    color: #f0a832;
    margin-bottom: 4px;
}

.alb-location {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.55);
}

/* Why Us */
.why-us {
    background: rgba(255,255,255,0.02);
    padding: 60px 24px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.why-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.why-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    padding: 28px 24px;
    transition: border-color 0.2s, background 0.2s;
}

.why-card:hover {
    background: rgba(240,168,50,0.04);
    border-color: rgba(240,168,50,0.2);
}

.why-icon {
    font-size: 2rem;
    margin-bottom: 14px;
}

.why-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 10px;
    letter-spacing: 0.02em;
}

.why-card p {
    font-size: 0.92rem;
    color: rgba(255,255,255,0.62);
    line-height: 1.6;
    margin: 0;
}

/* Service Area */
.service-area-section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 60px 24px 80px;
    text-align: center;
}

.service-area-text {
    max-width: 680px;
    margin: 0 auto;
    color: rgba(255,255,255,0.7);
    font-size: 1.05rem;
    line-height: 1.8;
}

/* About responsive */
@media (max-width: 860px) {
    .about-story-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .about-story-badge {
        flex-direction: row;
        align-items: center;
    }
    .about-logo {
        max-width: 120px;
    }
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 540px) {
    .about-story-badge {
        flex-direction: column;
    }
    .about-logo {
        max-width: 160px;
    }
    .why-grid {
        grid-template-columns: 1fr;
    }
    .about-story {
        padding: 40px 16px;
    }
    .why-us {
        padding: 40px 16px;
    }
    .service-area-section {
        padding: 40px 16px 60px;
    }
}

/* ============================================================
   INLINE LINK STYLE (used in service cards)
   ============================================================ */
.inline-link {
    color: #f0a832;
    text-decoration: none;
    border-bottom: 1px solid rgba(240,168,50,0.4);
    transition: color 0.2s, border-color 0.2s;
}

.inline-link:hover {
    color: #ffc84a;
    border-color: #ffc84a;
}

/* ============================================================
   SERVICES PAGE
   ============================================================ */
.services-page {
    min-height: 100vh;
    background: #0a0a0e;
}

.services-section {
    padding: 60px 24px;
}

.services-section-alt {
    background: rgba(255,255,255,0.02);
    border-top: 1px solid rgba(255,255,255,0.06);
}

.services-section-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.services-section-header {
    text-align: center;
    margin-bottom: 40px;
}

.services-section-intro {
    max-width: 740px;
    margin: 0 auto;
    color: rgba(255,255,255,0.65);
    font-size: 1.05rem;
    line-height: 1.7;
}

.services-grid-full {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
}

.service-detail-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    padding: 28px 24px;
    transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

.service-detail-card:hover {
    background: rgba(240,168,50,0.04);
    border-color: rgba(240,168,50,0.25);
    transform: translateY(-3px);
}

.sdc-icon {
    font-size: 2.2rem;
    margin-bottom: 14px;
    display: block;
}

.service-detail-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 10px;
    letter-spacing: 0.02em;
}

.service-detail-card p {
    font-size: 0.93rem;
    color: rgba(255,255,255,0.62);
    line-height: 1.65;
    margin: 0;
}

/* Services CTA */
.services-cta {
    padding: 70px 24px;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.06);
}

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

.services-cta h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: 12px;
}

.services-cta p {
    color: rgba(255,255,255,0.65);
    font-size: 1.05rem;
    margin-bottom: 28px;
}

.services-cta-btns {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

@media (max-width: 540px) {
    .services-section {
        padding: 40px 16px;
    }
    .services-cta {
        padding: 50px 16px;
    }
    .services-cta-btns {
        flex-direction: column;
        align-items: stretch;
    }
    .services-cta-btns a {
        text-align: center;
    }
}