/* ============================================================================
   FONT FACES
   ============================================================================ */

@font-face {
    font-family: 'D-DIN';
    src: url('/assets/fonts/D-DIN.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'D-DIN';
    src: url('/assets/fonts/D-DIN-Italic.otf') format('opentype');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'D-DIN';
    src: url('/assets/fonts/D-DIN-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'D-DIN Condensed';
    src: url('/assets/fonts/D-DINCondensed.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'D-DIN Condensed';
    src: url('/assets/fonts/D-DINCondensed-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'D-DIN Exp';
    src: url('/assets/fonts/D-DINExp.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'D-DIN Exp';
    src: url('/assets/fonts/D-DINExp-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'D-DIN Exp';
    src: url('/assets/fonts/D-DINExp-Italic.otf') format('opentype');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'D-DIN';
    src: url('/assets/fonts/DIN BlackAlternate.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

/* ============================================================================
   ROOT VARIABLES
   ============================================================================ */

:root {
    /* Font Family */
    --font-primary: 'D-DIN', sans-serif;
    --font-condensed: 'D-DIN Condensed', sans-serif;
    --font-expanded: 'D-DIN Exp', sans-serif;
    /* Brand Colors */
    --color-primary: #d71635;
    --color-secondary: #212529;
    
    /* Gradient Background */
    --gradient-top: #d71635;
    --gradient-bottom: #a01535;
    --gradient-bg: linear-gradient(to bottom, var(--gradient-top), var(--gradient-bottom));
    
    /* Button Colors */
    --btn-primary: #3dad4a;
    --btn-primary-hover: #359942;
    --btn-secondary: #7a7a7a;
    --btn-secondary-hover: #666666;
    
    /* Text Colors */
    --text-dark: #221f21;
    --text-light: #ffffff;
    --text-muted: #6c757d;
    
    /* Background Colors */
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
}

/* ============================================================================
   BASE STYLES
   ============================================================================ */

html {
    height: 100%;
}

body {
    font-family: var(--font-primary);
    font-size: 1.1rem;
    color: var(--text-dark);
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

/* Main content wrapper - grows to push footer down */
main {
    flex: 1 0 auto;
}

/* Footer stays at bottom */
footer {
    flex-shrink: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 700;
}

/* Extra bold / Black font weight */
.fw-black {
    font-weight: 900 !important;
}

/* Speech marks decoration */
.speech {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--color-primary);
}

.speech::before {
    content: '';
    display: inline-block;
    width: 24px;
    height: 16px;
    background-image: url('/assets/image/icons/speech_mark.svg');
    background-size: contain;
    background-repeat: no-repeat;
    flex-shrink: 0;
}

/* Speech white variant */
.speech.speech-white {
    color: #ffffff;
}

.speech.speech-white::before {
    filter: brightness(0) invert(1);
}

/* ============================================================================
   BOOTSTRAP OVERRIDES
   ============================================================================ */

/* Primary Button */
.btn-primary {
    background-color: var(--btn-primary);
    border-color: var(--btn-primary);
    color: var(--text-light);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: var(--btn-primary-hover);
    border-color: var(--btn-primary-hover);
    color: var(--text-light);
}

/* Secondary Button */
.btn-secondary {
    background-color: var(--btn-secondary);
    border-color: var(--btn-secondary);
    color: var(--text-light);
}

.btn-secondary:hover,
.btn-secondary:focus,
.btn-secondary:active {
    background-color: var(--btn-secondary-hover);
    border-color: var(--btn-secondary-hover);
    color: var(--text-light);
}

/* ============================================================================
   UTILITY CLASSES
   ============================================================================ */

/* Background Image Utilities */
.bg-cover {
    background-size: cover !important;
}

.bg-contain {
    background-size: contain !important;
}

.bg-center {
    background-position: center !important;
}

.bg-top {
    background-position: top center !important;
}

.bg-bottom {
    background-position: bottom center !important;
}

.bg-no-repeat {
    background-repeat: no-repeat !important;
}

/* Background Colors */
.bg-light-gray {
    background-color: #eeeced;
}

/* Background Gradient */
.bg-gradient-brand {
    background: var(--gradient-bg);
}

.bg-white-fadeout {
    background: linear-gradient(to bottom, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.6) 100%);
}

.bg-red-fadeout {
    background: linear-gradient(to bottom, rgba(199, 48, 60, 1) 0%, rgba(199, 48, 60, 0.6) 100%);
}

/* Brand Colors */
.text-brand-primary {
    color: var(--color-primary);
}

.text-brand-secondary {
    color: var(--color-secondary);
}

.bg-brand-primary {
    background-color: var(--color-primary);
}

.bg-brand-secondary {
    background-color: var(--color-secondary);
}

/* ============================================================================
   HEADER STYLES
   ============================================================================ */

/* Logo Styles */
.header-logo {
    height: 90px;
    width: auto;
    max-width: 100%;
}

@media (min-width: 992px) {
    .header-logo {
        height: 90px;
    }
}

/* Phone Icon Container */
.phone-icon-circle {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Phone Icon Image */
.phone-icon-img {
    width: 40px;
    height: 40px;
}

@media (min-width: 992px) {
    .phone-icon-img {
        width: 50px;
        height: 50px;
    }
}

/* Header Phone Container */
.header-phone-container {
    margin-left: 0;
    margin-right: 0;
    align-items: flex-start !important;
}

@media (min-width: 992px) {
    .header-phone-container {
        margin-left: 20%;
        margin-right: 20%;
        align-items: center !important;
    }
}

/* Phone Link Styles */
.phone-link .phone-number {
    color: var(--color-primary);
    font-size: 1.1rem;
}

@media (min-width: 992px) {
    .phone-link .phone-number {
        font-size: 1.4rem;
    }
}

.phone-link .phone-label {
    color: var(--text-muted);
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
}

.hamburger-icon {
    width: 40px;
    height: 40px;
}

/* Navigation Links */
.nav-link-header {
    font-weight: 500;
    font-size: 1rem;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

@media (min-width: 992px) {
    .nav-link-header {
        font-size: 1.1rem;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        border-bottom: none;
        /* Fix hover detection - position relative for pseudo-element */
        position: relative;
    }
    
    /* Create invisible overlay to catch all hover events */
    .nav-link-header::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1;
    }
    
    .nav-link-header:hover {
        background-color: rgba(0, 0, 0, 0.15);
    }
    
    /* Ensure dropdown toggle works properly */
    .nav-item.dropdown .nav-link-header.dropdown-toggle {
        display: flex;
        align-items: center;
    }
}

/* Last nav item no border on mobile */
.navbar-nav .nav-item:last-child .nav-link-header {
    border-bottom: none;
}

/* Dropdown Styles */
.navbar .dropdown-menu {
    border: none;
    border-radius: 0;
    margin-top: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.navbar .dropdown-item {
    padding: 0.75rem 1.25rem;
    font-weight: 500;
}

.navbar .dropdown-item:hover {
    background-color: var(--color-primary);
    color: white;
}

.navbar .dropdown-item:hover .dropdown-icon {
    filter: brightness(0) invert(1); /* Turn black SVG to white on hover */
}

/* Dropdown Arrow */
.nav-link-header.dropdown-toggle::after {
    margin-left: 0.5rem;
}

/* Desktop: Fix hover detection on all nav items */
@media (min-width: 992px) {
    /* Dropdown-specific fixes */
    .navbar .nav-item.dropdown {
        position: relative;
    }
    
    /* Fix: Ensure dropdown arrow doesn't block hover events */
    .navbar .nav-link-header.dropdown-toggle::after {
        pointer-events: none;
        position: relative;
        z-index: 2;
    }
    
    /* Extend hover area below dropdown nav-items to connect with dropdown menu */
    .navbar .nav-item.dropdown::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 15px;
        transform: translateY(100%);
        z-index: 0;
    }
    
    /* Show dropdown on hover */
    .navbar .nav-item.dropdown:hover > .dropdown-menu {
        display: block;
        margin-top: 0;
    }
    
    /* Ensure dropdown menu connects seamlessly with nav item */
    .navbar .dropdown-menu {
        top: 100%;
        padding-top: 0;
    }
}


/* Header CTA Buttons */
.site-header .btn-sm {
    font-size: 0.7rem;
    padding: 0.35rem 0.5rem;
}

@media (min-width: 992px) {
    .site-header .btn-sm {
        font-size: 0.75rem;
        padding: 0.4rem 0.75rem;
    }
    
    /* Desktop: auto width for buttons */
    .w-lg-auto {
        width: auto !important;
    }
}

/* Mobile Phone Link Styles */
.phone-link-mobile .phone-icon-img {
    width: 32px;
    height: 32px;
}

/* ============================================================================
   HERO SECTION
   ============================================================================ */

/* Hero Section Base */
.hero-section {
    min-height: 400px;
    position: relative;
    overflow: hidden;
}

/* Hero background image as <img> for better LCP */
.hero-background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: -1;
}

/* Hero Card Base */
.hero-card {
    background: rgba(255, 255, 255, 0.4);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    color: #212529; /* Keep all text black when card is a link */
}

a.hero-card:hover {
    color: #212529; /* Stay black on hover too */
}

/* Speech bubble variant with shark fin/tail at top */
.hero-card--speech {
    position: relative;
    margin-top: 20px; /* Make room for the tail */
}

.hero-card--speech::before {
    content: '';
    position: absolute;
    top: -30px;
    left: 30px;
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-bottom: 30px solid rgba(255, 255, 255, 0.6);
    filter: drop-shadow(0 -2px 4px rgba(0, 0, 0, 0.08));
}

/* Mobile: card centered at bottom */
@media (max-width: 991.98px) {
    .hero-section {
        min-height: 350px;
        max-height: 400px;
        position: relative;
        overflow: hidden;
    }
    
    .hero-background-image {
        object-position: top center;
    }
    
    .hero-section > .container {
        position: absolute !important;
        bottom: 1rem !important;
        top: auto !important;
        left: 0;
        right: 0;
        padding-left: 1rem;
        padding-right: 1rem;
        height: auto !important;
    }
    
    .hero-section .row {
        justify-content: center;
        height: auto !important;
    }
    
    .hero-card {
        padding: 1rem;
        border-radius: 16px; /* Rounded edges all around */
        max-width: 100%;
    }
    
    .hero-card--speech {
        margin-top: 0; /* No extra margin on mobile */
    }
    
    .hero-card--speech::before {
        display: none; /* Hide shark fin on mobile */
    }
    
    .hero-card .trustpilot-badge img {
        max-width: 140px; /* Smaller Trustpilot logo */
    }
    
    .hero-card .trustpilot-badge .fs-2 {
        font-size: 1.1rem !important; /* Smaller "Rated Excellent" */
        color: #212529; /* Keep text black, not link blue */
    }
    
    .hero-card .trustpilot-badge .px-5 {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    .hero-card .trustpilot-badge .mb-3 {
        margin-bottom: 0.5rem !important;
    }
    
    .hero-card h4 {
        font-size: 0.85rem; /* Smaller quote text */
        margin-bottom: 0;
    }
}

/* Desktop: taller hero, card positioned bottom-left */
@media (min-width: 992px) {
    .hero-section {
        min-height: 70vh;
        position: relative;
    }
    
    .hero-section > .container {
        position: absolute;
        bottom: 2rem;
        left: 0;
        right: 0;
    }
    
    .hero-card {
        padding: 2rem;
        margin-bottom: 2rem;
    }
    
    .hero-card .trustpilot-badge img {
        max-width: 200px; /* Halfway between original and smaller */
    }
    
    .hero-card .trustpilot-badge .px-5 {
        padding-left: 3rem !important;
        padding-right: 3rem !important;
    }
}

/* ============================================================================
   PRICING ITEMS (Hero Card)
   ============================================================================ */

.pricing-item {
    gap: 0.75rem;
}

.pricing-content {
    flex: 1;
}

.pricing-title {
    font-size: 1.1rem;
    line-height: 1.3;
    margin-bottom: 0.25rem;
}

.pricing-price {
    color: #555;
    font-weight: 400;
    margin-left: 0.25rem;
}

.pricing-description {
    line-height: 1.4;
}

/* Info Button */
.btn-pricing-info {
    width: 28px;
    height: 28px;
    min-width: 28px;
    border-radius: 50%;
    background-color: #000000;
    border: none;
    color: #ffffff;
    font-weight: 700;
    font-size: 1rem;
    font-style: italic;
    font-family: Georgia, 'Times New Roman', serif;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    margin-top: 0.15rem;
}

.btn-pricing-info:hover {
    background-color: #333333;
    transform: scale(1.1);
}

.btn-pricing-info:focus {
    outline: 2px solid #000000;
    outline-offset: 2px;
}

/* White variant for dark backgrounds */
.btn-pricing-info-white {
    background-color: #ffffff;
    color: #000000;
}

.btn-pricing-info-white:hover {
    background-color: #f0f0f0;
    transform: scale(1.1);
}

/* Express Service Toggle */
.express-service-toggle {
    transition: background-color 0.3s ease;
}

.express-service-toggle:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.express-service-details {
    background-color: rgba(0, 0, 0, 0.8);
    border-top: 2px solid rgba(255, 255, 255, 0.1);
}

.express-service-details h3 {
    font-size: 1.5rem;
    font-weight: 700;
}

.express-service-details h4 {
    font-size: 1.2rem;
    font-weight: 600;
}

.express-service-details p {
    line-height: 1.6;
}

/* Rotate info button when expanded */
.express-service-toggle[aria-expanded="true"] .btn-pricing-info-white {
    transform: rotate(180deg);
    transition: transform 0.3s ease;
}

.express-service-toggle .btn-pricing-info-white {
    transition: transform 0.3s ease;
}

/* Mobile adjustments for pricing */
@media (max-width: 991.98px) {
    .pricing-title {
        font-size: 0.95rem;
    }
    
    .pricing-description {
        font-size: 0.8rem !important;
    }
    
    .btn-pricing-info {
        width: 24px;
        height: 24px;
        min-width: 24px;
        font-size: 0.85rem;
    }
}

/* ============================================================================
   SECTION IMAGE (Reusable background image container)
   ============================================================================ */

.section-image {
    background-size: cover;
    background-position: center 20%; /* Prioritizes top portion, but crops 20% from top */
    background-repeat: no-repeat;
    width: 100%;
    min-height: 350px;


}

@media (min-width: 992px) {
    .section-image {
        min-height: 100%;
      
    }
}

/* ============================================================================
   EMERGENCY BANNER
   ============================================================================ */

@media (min-width: 992px) {
    .bg-gradient-brand h2 {
        font-size: 2.5rem;
    }
    
    .bg-gradient-brand p {
        font-size: 1.25rem;
    }
    
    .bg-gradient-brand .btn {
        font-size: 1.1rem;
        padding: 0.75rem 2rem;
    }
}

/* ============================================================================
   FOOTER
   ============================================================================ */

.footer-logo {
    max-width: 80px;
}

/* Footer Links */
.footer-links li {
    margin-bottom: 0.25rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: underline;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: white;
}

/* Footer Text */
.footer-text li {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

/* Footer Contact */
.footer-contact li {
    margin-bottom: 0.5rem;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.footer-contact a:hover {
    color: white;
}

.footer-phone-icon {
    width: 20px;
    height: 20px;
}

.footer-phone-green {
    filter: hue-rotate(90deg) saturate(1.5);
}

/* ============================================================================
   FAQ ACCORDION
   ============================================================================ */

.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.faq-accordion .accordion-item {
    background: #ffffff;
    border: none;
    border-radius: 0 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.faq-accordion .accordion-header {
    margin: 0;
}

.faq-accordion .accordion-button {
    background: transparent;
    border: none;
    border-radius: 0 !important;
    padding: 1rem 1.25rem;
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-dark);
    box-shadow: none !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-accordion .accordion-button:focus {
    box-shadow: none;
    border-color: transparent;
}

.faq-accordion .accordion-button:not(.collapsed) {
    background: transparent;
    color: var(--color-primary);
    box-shadow: none;
}

/* Custom plus/minus icons */
.faq-accordion .accordion-button::after {
    display: none; /* Hide default Bootstrap arrow */
}

.faq-accordion .accordion-button .faq-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--color-primary);
    transition: transform 0.2s ease;
}

.faq-accordion .accordion-button .faq-icon-plus {
    display: block;
}

.faq-accordion .accordion-button .faq-icon-minus {
    display: none;
}

.faq-accordion .accordion-button:not(.collapsed) .faq-icon-plus {
    display: none;
}

.faq-accordion .accordion-button:not(.collapsed) .faq-icon-minus {
    display: block;
}

.faq-accordion .accordion-body {
    padding: 0 1.25rem 1.25rem 1.25rem;
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-dark);
}

/* Hover effect */
.faq-accordion .accordion-button:hover {
    color: var(--color-primary);
}

/* ============================================================================
   REVIEW CARDS
   ============================================================================ */

.review-card {
    background: #ffffff;
    border-radius: 8px;
    padding: 1.5rem;
    height: 100%;
    text-align: left;
    border: 1px solid #dee2e6;
}

.review-stars-img {
    height: 24px;
    width: auto;
    margin-bottom: 1rem;
}

.review-title {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.review-content {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.review-author {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-dark);
}

/* ============================================================================
   BRAND LOGOS
   ============================================================================ */

/* Brands Section */
.brands-flex {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1.25rem 1rem;
}

.brand-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: calc(33.333% - 0.75rem);
}

.brand-logo {
    max-height: 35px;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Specific brand adjustments */
.brand-logo[alt="Cardale"] {
    max-height: 60px;
    max-width: 100%;
}

/* Desktop */
@media (min-width: 768px) {
    .brands-flex {
        gap: 2rem 3.5rem;
    }
    
    .brand-item {
        width: auto;
    }
    
    .brand-logo {
        max-height: 50px;
        max-width: 160px;
    }
    
    .brand-logo[alt="Cardale"] {
        max-height: 95px;
        max-width: 220px;
    }
}

/* ============================================================================
   CONTACT FORM
   ============================================================================ */

.contact-form {
    max-width: 100%;
}

.contact-input {
    background: rgba(255, 255, 255, 1);
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 4px;
    color: #000000;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.contact-input::placeholder {
    color: rgba(0, 0, 0, 0.5);
}

.contact-input:focus {
    background: rgba(255, 255, 255, 1);
    border-color: #ffffff;
    border-color: #000000;
    color: #000000;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
    outline: none;
}

.contact-textarea {
    resize: vertical;
    min-height: 120px;
}


.btn-contact-send {
    background-color: #ffffff;
    color: var(--color-primary);
    border: none;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.05em;
    transition: all 0.2s ease;
}

.btn-contact-send:hover {
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--color-primary);
    transform: translateY(-2px);
}

/* Button styled as link (for semantic HTML while maintaining link appearance) */
.btn-link-style {
    background: none;
    border: none;
    padding: 0;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    display: inline;
}

.btn-link-style:hover {
    text-decoration: underline;
}

/* Hide reCAPTCHA v3 badge */
.grecaptcha-badge {
    visibility: hidden !important;
}