/* Raska Foundation - Principal Designer Refinements */

/* Fix: Always keep header fixed so it doesn't scroll away in hero section */
.header-area {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
}

/* Fix: Push page content below fixed header
   header-top (~44px) + header-bottom (~80px) = ~124px on desktop */
main {
    padding-top: 124px;
}

/* New-style hero sections already account for their own top padding */
main > .hero-section:first-child,
main > .page-hero:first-child {
    margin-top: -124px;
    padding-top: 124px;
}

/* Hero carousel sits below the solid navbar — no overlap needed */
main .hero-carousel-section:first-child,
main .slider-area:first-child {
    margin-top: 0;
}

@media (max-width: 991px) {
    main {
        padding-top: 76px;
    }
    main .slider-area:first-child {
        margin-top: -76px;
    }
}

@media (max-width: 767px) {
    main {
        padding-top: 66px;
    }
    main .slider-area:first-child {
        margin-top: -66px;
    }
}

:root {
    --p-navy: #14532d;      /* Raska Deep Forest Green */
    --p-orange: #D97706;    /* Raska Gold Accent */
    --p-bone: #f0fdf4;      /* Light green tint background */
    --p-border: #d1fae5;    /* Green hairline */
    --p-text: #374151;      /* Body text */
}

/* 1. Global Reset to "Institutional Calm" */
body {
    background-color: var(--p-bone) !important;
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* 2. Typographic Hierarchy (The 4:1 Rule) */
h1, h2, h3 {
    font-family: 'Lora', serif !important;
    color: var(--p-navy) !important;
    font-weight: 600 !important;
    letter-spacing: -0.03em !important;
}

/* Micro-captions (The "Designer" Touch) */
.section-tittle span {
    font-family: 'Inter', sans-serif !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.3em !important; /* Wide tracking */
    color: var(--p-orange) !important;
    margin-bottom: 20px !important;
}

.section-tittle h2 {
    font-size: 52px !important;
    line-height: 1.1 !important;
}

/* 3. Hero: Cinematic Gravity */
.single-slider {
    position: relative;
}

/* Green gradient overlay for hero depth */
.single-slider::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to right, rgba(15, 61, 35, 0.88) 0%, rgba(22, 101, 52, 0.3) 100%);
    z-index: 1;
}

.hero__caption {
    position: relative;
    z-index: 2; /* Bring text above overlay */
}

.hero__caption h1 {
    font-size: 82px !important; /* Commanding Scale */
    color: #ffffff !important;
    font-weight: 700 !important;
}

.hero__caption p {
    font-size: 22px !important;
    color: rgba(255,255,255,0.7) !important;
    max-width: 600px;
    font-weight: 300 !important;
    line-height: 1.6;
}

/* 4. Buttons: Institutional Sharpness */
.btn, .hero-btn {
    border-radius: 2px !important; /* Minimalist / Formal */
    padding: 25px 50px !important;
    font-size: 14px !important;
    letter-spacing: 0.1em;
    background: var(--p-orange) !important;
    box-shadow: none !important;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1) !important;
}

.btn:hover {
    background: var(--p-navy) !important;
    transform: scale(1.05);
}

/* 5. The Exhibition Gallery (Matte Framing) */
.single-cases {
    border: none !important;
    background: var(--white) !important;
    padding: 0 !important; /* Bleed to edge */
    overflow: hidden;
    transition: transform 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}

/* Lively & Clean Transitions */
.single-cases, .job-entry, .plan-card, .registry-form-box {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.single-cases:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px rgba(255, 94, 20, 0.1) !important;
    border-color: var(--p-orange) !important;
}

.btn:hover {
    transform: translateY(-3px) scale(1.05);
    background: var(--p-navy) !important;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}

/* Navbar Underline Animation */
#navigation li a {
    position: relative;
    padding-bottom: 5px;
}

#navigation li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--p-orange);
    transition: width 0.3s ease;
}

#navigation li a:hover::after, #navigation li a.active::after {
    width: 100%;
}

/* 6. Testimonials (Refined Institutional Style) */
.testimonial-area {
    background: #ffffff !important;
    border-top: 1px solid var(--p-border);
}

.testimonial-caption .testimonial-top-cap p {
    font-size: 24px !important;
    font-weight: 400 !important;
    color: var(--p-navy) !important;
    max-width: 850px;
    margin: 0 auto 40px;
    line-height: 1.6 !important;
    font-style: italic;
}

.testimonial-caption .testimonial-founder span {
    font-family: var(--sans) !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.2em !important;
    color: var(--p-orange) !important;
    display: block;
    margin-bottom: 10px;
}

.testimonial-caption .testimonial-founder p {
    font-size: 13px !important;
    color: var(--p-text) !important;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* File Input Styling */
input[type="file"].form-control {
    padding: 0 !important;
    border: 2px dashed var(--p-border) !important;
    border-radius: 6px !important;
    background: #fafafa !important;
    cursor: pointer;
    transition: border-color 0.2s ease !important;
}

input[type="file"].form-control:hover,
input[type="file"].form-control:focus {
    border-color: var(--p-orange) !important;
    background: #f5faf0 !important;
    outline: none !important;
    box-shadow: none !important;
}

input[type="file"].form-control::file-selector-button {
    background: var(--p-navy);
    color: #ffffff;
    border: none;
    padding: 10px 18px;
    margin-right: 14px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: background 0.2s ease;
}

input[type="file"].form-control::file-selector-button:hover {
    background: var(--p-orange);
}

/* Photo carousel — shared across all pages */
.photo-carousel-section { overflow: hidden; line-height: 0; background: #000; }
.photo-carousel-track .slick-slide { padding: 0 2px; }
.photo-carousel-track .slick-list { margin: 0 -2px; }
.photo-carousel-track .slick-slide img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    display: block;
}
@media (max-width: 991px) { .photo-carousel-track .slick-slide img { height: 280px; } }
@media (max-width: 767px) {
    .photo-carousel-track .slick-slide img { height: 240px; }
    .photo-carousel-track .slick-slide { padding: 0; }
    .photo-carousel-track .slick-list { margin: 0; }
}

/* Bootstrap 4 row gap polyfill — g-* classes only exist in Bootstrap 5 */
.row.g-3 > [class*="col"] { margin-bottom: 1rem; }
.row.g-4 > [class*="col"] { margin-bottom: 1.5rem; }
.row.g-5 > [class*="col"] { margin-bottom: 3rem; }
