/* ==========================================================================
   Lastbilsservice i Linköping - Custom Theme CSS
   Matchar originalsidans design: acumin-pro, #0074B7 primär, Bootstrap 4 layout
   ========================================================================== */

/* ---------- Fonts ---------- */
@import url("https://use.typekit.net/iiv2qev.css");
@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;700&display=swap");
@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css");

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body,
.wp-site-blocks {
    font-family: acumin-pro, sans-serif !important;
    font-size: 20px;
    line-height: 1.9;
    letter-spacing: 0.3px;
    font-weight: 400;
    color: #4d4d4d;
    background-color: #f0f0f0;
    -webkit-font-smoothing: antialiased;
}

::selection { background-color: #0074B7; color: #fff; }
img { max-width: 100%; height: auto; }
a { color: #0074B7; text-decoration: none; transition: color 0.2s; }
a:hover { color: #333; }

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 { font-family: acumin-pro, sans-serif !important; color: #333; }
h1 { font-size: 4rem; font-weight: 700; letter-spacing: 2px; line-height: 1.1; }
h2 { font-size: 3rem; font-weight: 700; letter-spacing: 1px; line-height: 1.3; }
h3 { font-size: 2.5rem; font-weight: 700; letter-spacing: 1px; line-height: 1.1; }
h5 { font-size: 1.5rem; font-weight: 500; letter-spacing: 0.5px; line-height: 1.6; }
h6 { font-size: 0.75rem; font-weight: 500; letter-spacing: 3px; text-transform: uppercase; line-height: 1.9; }

/* WP heading block color fix */
.has-dark-color { color: #333 !important; }
.has-white-color { color: #fff !important; }
.has-primary-color { color: #0074B7 !important; }
.has-body-text-color { color: #4d4d4d !important; }
.has-gray-light-color { color: #e6e6e6 !important; }
.has-secondary-color { color: #BFD7ED !important; }
.has-light-gray-color { color: #f8f9fa !important; }

/* Background overrides */
.has-primary-background-color { background-color: #0074B7 !important; }
.has-dark-background-color { background-color: #333 !important; }
.has-light-gray-background-color { background-color: #f0f0f0 !important; }
.has-white-background-color { background-color: #fff !important; }

/* ---------- Buttons (pill shape, original style) ---------- */
.wp-block-button__link {
    border-radius: 30px !important;
    padding: 15px 50px !important;
    font-size: 0.75rem !important;
    letter-spacing: 2px !important;
    text-transform: uppercase !important;
    border: none !important;
    font-weight: 400 !important;
    font-family: acumin-pro, sans-serif !important;
    transition: all 0.3s !important;
    line-height: 1.5 !important;
}

.wp-block-button__link.has-primary-background-color { background-color: #0074B7 !important; color: #fff !important; }
.wp-block-button__link.has-primary-background-color:hover { background-color: #333 !important; }
.wp-block-button__link.has-dark-background-color { background-color: #333 !important; color: #fff !important; }
.wp-block-button__link.has-dark-background-color:hover { background-color: #0074B7 !important; }

.is-style-outline .wp-block-button__link {
    background: transparent !important;
    border: 2px solid #fff !important;
    color: #fff !important;
}
.is-style-outline .wp-block-button__link:hover {
    background: #fff !important;
    color: #333 !important;
}

/* Hero CTA button - outline style */
.hero-cta-btn .wp-block-button__link {
    background: transparent !important;
    border: 2px solid rgba(255,255,255,0.7) !important;
    color: #fff !important;
    border-radius: 5px !important;
}
.hero-cta-btn .wp-block-button__link:hover {
    background: rgba(255,255,255,0.15) !important;
    border-color: #fff !important;
}

/* ---------- Home About Section (truck silhouette + white card) ---------- */
.home-about-section {
    padding: 75px 0 98px;
    overflow: hidden;
}

.home-about-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: flex-end;
    position: relative;
}

.home-about-truck {
    flex: 0 0 auto;
    display: flex;
    align-items: flex-end;
    z-index: 2;
}

.home-about-truck img {
    max-width: 520px;
    width: 100%;
    height: auto;
    display: block;
}

.home-about-card {
    flex: 1;
    background: #fff;
    padding: 45px 50px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.06);
    position: relative;
    z-index: 1;
    margin-left: -10px;
    margin-top: 25px;
    margin-bottom: 100px;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.home-about-card h6 {
    font-size: 0.75rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 500;
    color: #4d4d4d;
    margin: 0 0 10px;
}

.home-about-card h2 {
    font-size: 3rem;
    font-weight: 700;
    color: #333;
    margin: 0 0 25px;
}

.home-about-card p {
    font-size: 15px;
    line-height: 1.9;
    color: #4d4d4d;
    margin: 0 0 30px;
}

.about-btn {
    display: inline-block;
    background: #333;
    color: #fff !important;
    padding: 15px 50px;
    border-radius: 30px;
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    transition: background 0.3s;
}

.about-btn:hover {
    background: #0074B7;
    color: #fff !important;
}

/* ---------- Remove gap between header and hero ---------- */
.wp-site-blocks > .wp-block-template-part:first-child + main,
.wp-site-blocks > .wp-block-template-part:first-child + .wp-block-group {
    margin-top: 0 !important;
}

.wp-site-blocks > * + * {
    margin-block-start: 0 !important;
}

/* Sticky header: template-part wrapper must also be sticky */
.wp-site-blocks > .wp-block-template-part:first-child {
    position: sticky;
    top: 0;
    z-index: 1000;
}

.site-header {
    margin-bottom: 0 !important;
    display: flex !important;
    align-items: center !important;
    position: sticky !important;
    top: 0;
    z-index: 1000;
    transition: box-shadow 0.3s ease, min-height 0.3s ease;
}

.site-header.scrolled {
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    min-height: 60px !important;
}

.site-header > .wp-block-group {
    width: 100%;
}

/* Inner flex row padding shrinks on scroll */
.site-header .is-content-justification-space-between {
    transition: padding 0.3s ease;
}

.site-header.scrolled .is-content-justification-space-between {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
}

/* Logo shrinks slightly on scroll */
.site-header .navbar-brand {
    transition: width 0.3s ease;
}

.site-header.scrolled .navbar-brand {
    width: 220px !important;
}

.site-header.scrolled .navbar-brand img {
    transition: all 0.3s ease;
}

.hero-cover {
    margin-top: 0 !important;
}

/* ---------- Hero Cover full-width ---------- */
.hero-cover .wp-block-cover__image-background {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    z-index: 1;
}

.hero-cover .wp-block-cover__inner-container {
    position: relative;
    z-index: 2;
    width: 100% !important;
    max-width: 900px !important;
    margin: 0 auto !important;
    flex: 1 !important;
}

/* ---------- Navigation ---------- */
.wp-block-navigation a {
    text-transform: uppercase !important;
    letter-spacing: 0.3px;
    font-size: 15px !important;
    font-weight: 500;
    font-family: acumin-pro, sans-serif !important;
}

/* Nav phone link with icon */
a[href^="tel:"] {
    font-weight: 500;
    white-space: nowrap;
}

.nav-phone a::before {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    content: "\f879";
    margin-right: 6px;
    font-size: 0.85em;
}

/* ---------- Hero (WP Cover block) ---------- */
.wp-block-cover {
    overflow: hidden;
}

/* The hero cover with dark overlay like original (#333 @ 45%) */
.wp-block-cover.has-dark-background-color .wp-block-cover__background {
    background-color: #333 !important;
    opacity: 0.45 !important;
}

.wp-block-cover h1 {
    font-size: 4vw !important;
    color: #fff !important;
    letter-spacing: 1px;
    line-height: 1.1 !important;
    text-shadow: none;
}

.wp-block-cover .hero-subtitle {
    color: #e6e6e6;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 1rem;
}

/* ---------- Feature Boxes (4-col with border-right dividers + Lordicon) ---------- */
.feature-columns {
    padding: 75px 0 98px;
}

.feature-columns-inner {
    max-width: 1140px;
    margin: 0 auto;
    display: flex;
    padding: 0 20px;
}

.feature-box {
    flex: 1;
    padding: 45px 30px;
    text-align: center;
    position: relative;
}

/* Border between columns */
.feature-box:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    height: 60%;
    width: 2px;
    background: #DEE2E6;
}

.feature-box lord-icon {
    display: block;
    margin: 0 auto 20px;
}

.feature-columns h6,
.feature-box h6 {
    font-size: 0.75rem;
    font-weight: 500;
    color: #333;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.feature-columns p,
.feature-box p {
    font-size: 15px;
    color: #4d4d4d;
    line-height: 1.9;
}

/* ---------- About Section (truck image + info card) ---------- */
.about-hero-section {
    background: #f0f0f0;
}

.about-info-card {
    background-color: #e8e8e8 !important;
    box-shadow: rgba(0,0,0,0.08) 0px 10px 30px;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.about-info-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: url('/wp-content/themes/lastbilsservice/assets/images/truck-head.png');
    background-size: 120%;
    background-position: right center;
    background-repeat: no-repeat;
    opacity: 0.08;
    z-index: 0;
}

.about-info-card > * {
    position: relative;
    z-index: 1;
}

.about-info-card h2 { color: #333 !important; }
.about-info-card h6 { color: #666 !important; }
.about-info-card p { color: #4d4d4d !important; }

.about-truck-img {
    margin: 0 !important;
    height: 100%;
}

.about-truck-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ---------- Service Gallery (3 panels, grayscale + zoom) ---------- */
.service-gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

.service-panel {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.service-panel-inner {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-size: cover;
    background-position: center;
    filter: grayscale(100%);
    transition: filter 0.5s ease, transform 0.5s ease;
}

.service-panel:hover .service-panel-inner {
    filter: grayscale(0%);
    transform: scale(1.25);
}

.service-panel-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.3);
    z-index: 1;
}

.service-panel-label {
    position: absolute;
    bottom: 40px;
    left: 40px;
    z-index: 2;
    color: #fff;
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    font-family: acumin-pro, sans-serif;
}

/* ---------- Quote / Testimonial Section ---------- */
.quote-section {
    position: relative;
    padding: 75px 20px 98px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-size: cover;
    background-position: center;
}

.quote-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255,255,255,0.85);
}

.quote-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.quote-content h5 {
    color: #333;
    font-weight: 500;
    font-style: italic;
    line-height: 1.8;
}

.quote-stars {
    color: #333;
    font-size: 1.5rem;
    margin-top: 20px;
}

/* ---------- Contact Form ---------- */
.contact-section {
    background-size: cover;
    background-position: center;
    padding: 75px 0 98px;
}

.block-form input[type="text"],
.block-form input[type="email"],
.block-form input[type="tel"],
.block-form textarea,
.wp-block-search__input {
    border: none;
    background: #fff;
    border-radius: 20px;
    padding: 15px;
    font-size: 0.75rem;
    color: #333;
    width: 100%;
    margin-bottom: 15px;
    font-family: acumin-pro, sans-serif;
    -webkit-appearance: none;
    box-shadow: none;
    outline: none;
}

/* ---------- Contact Info Cards ---------- */
.contact-cards-row {
    padding: 75px 0 98px;
    background: #fff;
    text-align: center;
}

.contact-info-card {
    background: #f0f0f0;
    padding: 45px 20px;
    text-align: center;
}

.contact-info-card .fa,
.contact-info-card .fas,
.contact-info-card .far,
.contact-info-card .fab {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 20px;
}

/* ---------- Staff Section (blue background, matching original) ---------- */
.staff-section {
    background-color: #0074B7;
    padding: 75px 0 98px;
}

.staff-section-inner {
    max-width: 1050px;
    margin: 0 auto;
    padding: 0 20px;
}

.staff-row {
    display: flex;
    gap: 25px;
    justify-content: center;
    margin-bottom: 25px;
}

.staff-row-2 .staff-card { flex: 0 1 50%; max-width: 50%; }
.staff-row-3 .staff-card { flex: 0 1 33.333%; max-width: 33.333%; }

.staff-card {
    background: linear-gradient(to bottom, #fff 200px, #333 200px);
    border: 1px solid #e6e6e6;
    border-radius: 20px;
    box-shadow: 3px 3px 7px rgba(0,0,0,0.1);
    text-align: center;
    padding: 22px;
    overflow: hidden;
}

.staff-card img:first-of-type {
    border-radius: 50%;
    width: 200px;
    height: 200px;
    object-fit: cover;
    background: #fff;
    padding: 8px;
    transition: transform 0.3s, box-shadow 0.3s;
    display: block;
    margin: 0 auto;
}

.staff-card img:first-of-type:hover {
    transform: scale(1.1);
    box-shadow: 0 14px 28px rgba(0,0,0,0.25), 0 10px 10px rgba(0,0,0,0.10);
}

.staff-card .staff-name {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 500;
    margin-top: 15px;
    font-family: acumin-pro, sans-serif;
}

.staff-card .staff-role {
    color: #e6e6e6;
    font-size: 0.8rem;
    font-family: acumin-pro, sans-serif;
    margin-top: 5px;
}

.staff-card .staff-role em {
    font-style: italic;
}

.staff-card .staff-email {
    margin-top: 8px;
}

.staff-card .staff-email a {
    color: #fff !important;
    font-size: 0.75rem;
    text-decoration: none;
    word-break: break-all;
}

/* ---------- Partners Section ---------- */
.partners-section {
    padding: 75px 0 98px;
    text-align: center;
    background: #333 !important;
}

.partners-section h2 { margin-bottom: 40px; color: #fff !important; }

.partner-logo {
    max-height: 80px;
    margin: 20px 30px;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.partner-logo:hover { opacity: 1; }

/* ---------- Footer ---------- */
footer.has-primary-background-color,
.site-footer {
    background-color: #0074B7 !important;
    padding: 80px 45px 45px !important;
}

footer a,
footer .wp-block-social-link a {
    color: #fff !important;
}
footer a:hover { color: #BFD7ED !important; }

footer h5, footer h3 {
    color: #fff !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    font-size: 1rem !important;
    letter-spacing: 1px;
}

footer p { color: #f8f9fa !important; font-weight: 300; }

footer img {
    max-width: 200px;
    margin: 10px auto;
    display: block;
}

.footer-copyright {
    border-top: 1px solid rgba(255,255,255,0.3);
    padding-top: 20px;
    margin-top: 40px;
    font-size: 0.85rem;
    text-align: center;
    color: #f8f9fa;
}

/* ---------- Subpage Hero Banner ---------- */
.subpage-hero {
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.subpage-hero h1 {
    color: #fff !important;
    font-size: 3rem;
}

/* ---------- Section Spacing ---------- */
.section-padding {
    padding: 75px 0 98px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.75rem; }

    .service-gallery-grid { grid-template-columns: 1fr; }
    .service-panel { height: 50vh; }
}

@media (max-width: 768px) {
    body, .wp-site-blocks { font-size: 16px; }

    /* Hide diesel brand on mobile */
    .diesel-brand { display: none !important; }

    /* Contact form stack on mobile */
    .contact-section [style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }

    .wp-block-cover h1 { font-size: 2rem !important; }

    .feature-columns-inner { flex-direction: column; }
    .feature-box:not(:last-child)::after { display: none; }
    .feature-box + .feature-box {
        border-top: 2px solid #DEE2E6;
    }

    .wp-block-columns { flex-wrap: wrap !important; }
    .wp-block-columns > .wp-block-column { flex-basis: 100% !important; }

    .about-info-card { margin-top: 0; }

    footer { padding: 40px 20px 20px !important; text-align: center; }
    footer .wp-block-social-links { justify-content: center; }

    .wp-block-cover { min-height: 70vh !important; }

    .wp-block-button__link { padding: 12px 30px !important; }
    .wp-block-buttons { flex-direction: column; align-items: center; }

    .staff-row { flex-wrap: wrap; }
    .staff-row-2 .staff-card,
    .staff-row-3 .staff-card { flex: 0 1 100%; max-width: 100%; }
    .staff-card img:first-of-type { width: 150px; height: 150px; }
    .staff-card { background: linear-gradient(to bottom, #fff 160px, #333 160px); }

    /* Jobba form responsive */
    div[style*="gap:60px"],
    div[style*="gap: 60px"] {
        grid-template-columns: 1fr !important;
    }

    .web-modal { width: 100%; }
    .sticky-booking-btn { right: 15px; bottom: 15px; padding: 12px 20px; font-size: 0.65rem; }
}

@media (max-width: 414px) {
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.5rem; }
}

/* ---------- Sticky Booking Button ---------- */
.sticky-booking-btn {
    position: fixed;
    right: 30px;
    bottom: 30px;
    z-index: 9999;
    background: #0074B7;
    color: #fff !important;
    padding: 15px 30px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    font-family: acumin-pro, sans-serif;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: all 0.3s;
    align-items: center;
    gap: 10px;
    animation: slideInUp 0.4s ease-out;
}

.sticky-booking-btn:hover {
    background: #333;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

.sticky-booking-btn i {
    font-size: 1rem;
}

@keyframes slideInUp {
    from { transform: translateY(100px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* ---------- Form Input Shadows ---------- */
.block-form input:focus,
.block-form textarea:focus {
    box-shadow: 0 2px 8px rgba(0,116,183,0.2);
    outline: none;
}

/* ---------- Accessibility ---------- */
a:focus-visible,
button:focus-visible,
.wp-block-button__link:focus-visible {
    outline: 3px solid #0074B7;
    outline-offset: 2px;
}

/* ---------- Print ---------- */
@media print {
    header, footer, .wp-block-cover, .service-gallery-grid, .web-modal { display: none; }
}
