/* === Base Reset === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

:root {
    --color-bg: #f4f6fb;
    --color-surface: #ffffff;
    --color-surface-alt: #fff1e6;
    --color-primary: #ff6600;
    --color-primary-accent: #ff8c32;
    --color-primary-dark: #cc5200;
    --color-text: #1d1f24;
    --color-text-muted: #5f6675;
    --color-border: rgba(24, 32, 44, 0.12);
    --color-border-strong: rgba(24, 32, 44, 0.18);
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 10px;
    --shadow-sm: 0 10px 25px rgba(15, 23, 42, 0.08);
    --shadow-md: 0 18px 50px rgba(15, 23, 42, 0.12);
    --shadow-lg: 0 32px 70px rgba(15, 23, 42, 0.18);
    --transition-base: 0.25s ease;
    --gradient-primary: linear-gradient(135deg, #ff6600 0%, #ff8c32 50%, #ffb347 100%);
    --gradient-page: linear-gradient(180deg, #f7f9fc 0%, #fef1e5 60%, #ffe0c5 100%);
    --gradient-page-dark: radial-gradient(ellipse at top right, rgba(255, 138, 43, 0.28), transparent 60%), radial-gradient(ellipse at bottom left, rgba(4, 5, 11, 0.8), transparent 65%), #04060d;
}

body {
    font-family: "Segoe UI", sans-serif;
    line-height: 1.65;
    background: var(--gradient-page);
    color: var(--color-text);
    transition: background-color var(--transition-base), color var(--transition-base);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-synthesis: none;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}


.container {
    width: min(1200px, 100%);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

a {
    text-decoration: none;
    color: inherit;
}

    a:hover,
    a:focus {
        text-decoration: none;
    }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.85rem 1.75rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    line-height: 1;
    cursor: pointer;
    transition: transform var(--transition-base), box-shadow var(--transition-base), background-color var(--transition-base), color var(--transition-base), border-color var(--transition-base);
}

    .btn:focus-visible {
        outline: 3px solid rgba(255, 102, 0, 0.35);
        outline-offset: 2px;
    }

    .btn:disabled,
    .btn[disabled] {
        opacity: 0.45;
        cursor: not-allowed;
        transform: none;
        box-shadow: none;
    }

.btn--primary {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: var(--shadow-md);
}

    .btn--primary:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-lg);
    }

.btn--ghost {
    background: transparent;
    color: var(--color-text);
    border-color: var(--color-border);
}

    .btn--ghost:hover {
        border-color: var(--color-primary);
        color: var(--color-primary);
    }

.btn--soft {
    background: rgba(255, 102, 0, 0.12);
    color: var(--color-primary);
    border-color: transparent;
}

    .btn--soft:hover {
        background: rgba(255, 102, 0, 0.2);
    }
/* === Header === */
header,
.main-header {
    background: transparent;
    color: #fff;
    text-align: center;
    padding: 1rem 0;
}

header {
    padding: 3rem 1rem;
}

    header h1 {
        font-size: 2.5rem;
    }

    header p {
        font-size: 1.2rem;
        margin-bottom: 1.5rem;
    }

.main-header .container {
    max-width: 1200px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
}

.logo a {
    color: #fff;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
}

/* === Navigation === */
.main-nav {
    position: relative;
}

    .main-nav ul {
        list-style: none;
        display: flex;
        gap: 1.5rem;
    }

    .main-nav a {
        color: #fff;
        text-decoration: none;
        font-weight: 500;
    }


#mainMenu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.4s ease;
    border-radius: 0 0 8px 8px;
    z-index: 10;
}

    #mainMenu.show {
        max-height: 500px;
        opacity: 1;
        transform: translateY(0);
        padding: 1rem;
    }

.menu-toggle {
    display: none;
}

/* === Hero === */
.hero {
    background: transparent;
    color: var(--color-text);
    padding: 6rem 1rem;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: auto;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--color-text-muted);
}

.hero .cta-button {
    background: #fff;
    color: #ff6600;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

    .hero .cta-button:hover {
        background: #f5f5f5;
    }

/* === CTA Button === */
.cta-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: #ff6600;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.3s ease;
}

    .cta-button:hover {
        background: #e65c00;
    }

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* === Sections === */
.section {
    width: 100%;
    padding: 4.75rem 0;
    margin: 0;
}

    .section h2 {
        text-align: center;
        font-size: 2rem;
        margin-bottom: 2rem;
    }

/* === Grid Layouts === */
.services-grid,
.testimonials-grid,
.posts-grid {
    display: grid;
    gap: 2rem;
}

.services-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.testimonials-grid,
.posts-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* === Service Items === */
.service-item {
    text-align: center;
}

    .service-item img {
        width: 100%;
        height: 200px;
        object-fit: cover;
        border-radius: 8px;
        margin-bottom: 1rem;
    }

    .service-item h3 {
        font-size: 1.1rem;
        color: #333;
    }

/* === Before & After === */
.before-after-carousel {
    position: relative;
    max-width: 720px;
    margin: 0 auto;
    overflow: hidden;
}

    .before-after-carousel .carousel-track {
        display: flex;
        transition: transform 0.6s ease;
        will-change: transform;
    }

.carousel-slide {
    flex: 0 0 100%;
    opacity: 0;
    transition: opacity 0.4s ease;
    text-align: center;
}

    .carousel-slide.is-active {
        opacity: 1;
    }

    .carousel-slide img {
        width: 100%;
        max-height: 400px;
        object-fit: cover;
        border-radius: 12px;
    }

    .carousel-slide p {
        margin-top: 1rem;
        color: #555;
        font-weight: 600;
    }

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: transform 0.3s ease, background 0.3s ease;
}

    .carousel-dot.is-active {
        background: #ff6600;
        transform: scale(1.1);
    }

.before-after-empty {
    text-align: center;
    color: #777;
    font-style: italic;
}

@media (max-width: 768px) {
    .carousel-slide img {
        max-height: 320px;
    }
}

@media (max-width: 480px) {
    .carousel-indicators {
        gap: 0.5rem;
    }
}

/* === Testimonials === */
.testimonial {
    background: #f4f4f4;
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

    .testimonial img {
        width: 80px;
        height: 80px;
        border-radius: 50%;
        object-fit: cover;
        margin-bottom: 1rem;
    }

    .testimonial blockquote {
        font-style: italic;
        color: #666;
        margin-bottom: 1rem;
    }

    .testimonial p {
        font-weight: bold;
    }

/* === Blog Cards === */
.card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

    .card img {
        width: 100%;
        height: 180px;
        object-fit: cover;
    }

.card-body {
    font-family: "Segoe UI", sans-serif;
    line-height: 1.65;
    background: var(--color-bg);
    color: var(--color-text);
    transition: background-color var(--transition-base), color var(--transition-base);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-synthesis: none;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

    .card-body h3 {
        margin-bottom: 0.5rem;
    }

    .card-body p {
        font-size: 0.9rem;
        color: #555;
    }

    .card-body a {
        display: inline-block;
        margin-top: 1rem;
        text-decoration: none;
        font-weight: bold;
    }

/* === Blog Detail === */
.blog-detail {
    max-width: 800px;
    margin: auto;
    padding: 2rem 1rem;
}

.blog-header {
    text-align: center;
}

    .blog-header .blog-hero {
        width: 100%;
        max-height: 400px;
        object-fit: cover;
        border-radius: 10px;
        margin-bottom: 1.5rem;
    }

.blog-body {
    font-family: "Segoe UI", sans-serif;
    line-height: 1.65;
    color: var(--color-text);
    transition: background-color var(--transition-base), color var(--transition-base);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-synthesis: none;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

/* === Pagination === */
.pagination {
    margin-top: 2rem;
    text-align: center;
}

    .pagination a,
    .pagination .current {
        margin: 0 6px;
        padding: 0.5rem 1rem;
        text-decoration: none;
        border-radius: 5px;
        border: 1px solid #ccc;
        color: #333;
    }

    .pagination .current {
        background: #ff6600;
        color: #fff;
        border-color: #ff6600;
    }

    .pagination a:hover {
        background: #eee;
    }

/* === Blog Filters === */
.blog-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
    padding: 1rem;
    background: #f7f7f7;
    border-radius: 12px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05);
}

    .blog-filters select,
    .blog-filters button {
        padding: 0.6rem 1rem;
        font-size: 0.95rem;
        border-radius: 8px;
        min-width: 160px;
    }

    .blog-filters select {
        border: 1px solid #ccc;
    }

    .blog-filters button {
        background: #ff6600;
        color: #fff;
        border: none;
        cursor: pointer;
        transition: background-color 0.3s ease;
    }

        .blog-filters button:hover {
            background: #e65c00;
        }

/* === Footer === */
footer {
    background: #080c17;
    color: rgba(255, 255, 255, 0.75);
    padding: 1.5rem 1rem;
    font-size: 0.9rem;
    overflow: hidden;
    margin-top: auto;
}

.footer-container {
    max-width: 1200px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    gap: 0.8rem;
}

.footer-socials {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

    .footer-socials a {
        font-size: 1.2rem;
        color: #ccc;
        transition: color 0.3s ease;
    }

        .footer-socials a:hover {
            color: #ff6600;
        }

/* === Theme Toggle === */
#toggle-theme,
.theme-toggle {
    background: #222;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-size: 1rem;
}

#toggle-theme {
    margin-left: 1rem;
}

    #toggle-theme:hover,
    .theme-toggle:hover {
        background: #444;
    }

/* === Visibility Classes === */
.desktop-only {
    display: inline-block;
}

.mobile-only {
    display: none;
}

/* === Dark Mode === */
body.dark-mode {
    background: var(--gradient-page-dark);
    color: #e0e0e0;
}

    body.dark-mode .main-header,
    body.dark-mode footer {
        background: #111;
        color: #aaa;
    }

    body.dark-mode .hero {
        background: transparent;
        color: #fff;
    }

    body.dark-mode .hero__eyebrow {
        color: rgba(255, 255, 255, 0.7);
    }

    body.dark-mode .hero p {
        color: rgba(255, 255, 255, 0.82);
    }

    body.dark-mode .hero__actions .btn--ghost {
        color: rgba(255, 255, 255, 0.85);
        border-color: rgba(255, 255, 255, 0.35);
    }




    body.dark-mode .cta-button,
    body.dark-mode .blog-filters button {
        background: #ffa726;
        color: #000;
    }

    body.dark-mode .hero .cta-button {
        background: #222;
        color: #ffa726;
    }

        body.dark-mode .hero .cta-button:hover {
            background: #444;
        }

    body.dark-mode .section,
    body.dark-mode .testimonial,
    body.dark-mode .card,
    body.dark-mode .blog-body,
    body.dark-mode .about-us {
        background: transparent;
        color: #e0e0e0;
    }

    body.dark-mode .pagination a,
    body.dark-mode .pagination .current {
        border-color: #444;
        color: #ccc;
    }

    body.dark-mode .pagination .current {
        background: #ffa726;
        color: #000;
    }

    body.dark-mode .blog-filters {
        background: #2a2a2a;
        border: 1px solid #444;
    }

    body.dark-mode .blog-header h1 {
        color: #fff;
    }

    body.dark-mode .blog-filters select {
        background: #333;
        color: #eee;
        border: 1px solid #555;
    }

    body.dark-mode .blog-filters button:hover {
        background: #ffc56c;
    }

    body.dark-mode .footer-socials a:hover {
        color: #ffa726;
    }

    body.dark-mode .about-values li {
        color: #ccc;
    }

/* === About === */
.about-us {
    padding: 4rem 1rem;
    background: #fff;
    color: #222;
}

    .about-us h2 {
        text-align: center;
        font-size: 2.2rem;
        margin-bottom: 2rem;
    }

.about-content {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
    justify-content: center;
}

.about-text {
    flex: 1 1 400px;
    font-size: 1.1rem;
    line-height: 1.8;
}

.about-image {
    flex: 1 1 300px;
    text-align: center;
}

    .about-image img {
        max-width: 100%;
        height: auto;
        border-radius: 10px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

.about-values {
    max-width: 800px;
    margin: 3rem auto 0;
    text-align: center;
}

    .about-values h3 {
        font-size: 1.6rem;
        margin-bottom: 1rem;
    }

    .about-values ul {
        list-style: none;
        padding: 0;
    }

    .about-values li {
        margin-bottom: 1rem;
        font-size: 1rem;
        line-height: 1.5;
    }

/* === Scroll Animation === */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

    .animate-on-scroll.visible {
        opacity: 1;
        transform: translateY(0);
    }

/* === Responsive Typography === */
@media (max-width: 600px) {
    header h1 {
        font-size: 1.75rem;
    }

    .section h2 {
        font-size: 1.5rem;
    }
}

/* === Responsive Navigation === */
@media (min-width: 769px) {
    .menu-toggle {
        display: none !important;
    }

    #mainMenu {
        position: static;
        display: flex !important;
        flex-direction: row;
        overflow: visible;
        max-height: none !important;
        opacity: 1 !important;
        transform: none !important;
        padding: 0;
        background: none;
    }

    .desktop-only {
        display: inline-block;
    }

    .mobile-only {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .carousel-slide img {
        max-height: 320px;
    }
}

@media (max-width: 768px) {
    .main-header .container {
        flex-wrap: wrap;
        align-items: center;
    }

    .menu-toggle {
        display: block;
        margin-left: auto;
        background: none;
        color: #fff;
        font-size: 1.8rem;
        border: none;
        cursor: pointer;
        order: 2;
    }

    .main-nav {
        display: none;
        width: 100%;
        margin-top: 1rem;
        order: 3;
    }

        .main-nav.show {
            display: block;
        }

        .main-nav ul {
            display: none;
            flex-direction: column;
            width: 100%;
            padding: 1rem;
            gap: 1rem;
            border-radius: 0 0 8px 8px;
        }

            .main-nav ul.show {
                display: flex;
            }

    #mainMenu {
        position: static;
        max-height: none !important;
        opacity: 1 !important;
        transform: none;
        flex-direction: column;
        align-items: stretch;
        padding: 0;
        gap: 1rem;
    }

        #mainMenu li {
            width: 100%;
        }

        #mainMenu a {
            display: block;
            width: 100%;
        }

    .mobile-controls {
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }

        .mobile-controls .mobile-language {
            flex: 1 1 auto;
        }

        .mobile-controls select {
            width: 100%;
        }

        .mobile-controls .theme-toggle {
            flex: 0 0 auto;
        }

    .nav-buttons {
        display: none;
    }

    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: block;
    }

    .language-switcher-item .language-switcher {
        width: 100%;
    }

    .language-switcher-item select {
        width: 100%;
    }
}

/* === Extras === */


.language-switcher-value {
    border-radius: 6px;
}

.nav-buttons {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* === Toggle Refinements (overrides legacy styles) === */
#toggle-theme,
.theme-toggle {
    /* Transparent, icon-centric toggle used across header and mobile menus */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    padding: 0.45rem 0.8rem;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

#toggle-theme {
    /* Maintain spacing between toggle and header navigation */
    margin-left: 1rem;
}

    #toggle-theme:hover,
    .theme-toggle:hover {
        /* Provide gentle hover feedback without heavy fills */
        background: rgba(255, 255, 255, 0.15);
        border-color: rgba(255, 255, 255, 0.5);
    }

/* === Mobile Navigation Under Header === */


/* === Experience Refresh === */
main {
    flex: 1 0 auto;
    width: 100%;
}

.section {
    width: 100%;
    padding: 4.75rem 0;
    margin: 0;
}

    .section > .container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 1.5rem;
        width: 100%;
    }

    .section + .section {
        padding-top: 0;
    }

.section-panel {
    position: relative;
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    padding: 3rem;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    width: 100%;
    margin: 0 auto;
}

    .section-panel::after {
        content: "";
        position: absolute;
        inset: -40% 55% 45% -35%;
        background: radial-gradient(circle at top, rgba(255, 102, 0, 0.12), transparent 68%);
        opacity: 0.6;
        pointer-events: none;
        z-index: 0;
    }

    .section-panel > * {
        position: relative;
        z-index: 1;
    }

.section-panel--split {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 2.75rem;
    align-items: center;
}

.section-panel__content {
    display: flex;
    flex-direction: column;
    gap: 2.25rem;
}

.section-panel__media img {
    width: 100%;
    border-radius: calc(var(--radius-lg) - 8px);
    object-fit: cover;
    box-shadow: var(--shadow-sm);
}

.section-heading {
    max-width: 680px;
    margin-bottom: 2.5rem;
}

.section-panel > .section-heading:last-child {
    margin-bottom: 0;
}

.section-heading__eyebrow {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.28em;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.85rem;
}

.section-heading__title {
    font-size: 2.4rem;
    line-height: 1.18;
    color: var(--color-text);
    margin-bottom: 1rem;
}

.section-heading__lead {
    font-size: 1.05rem;
    color: var(--color-text-muted);
    line-height: 1.8;
    margin: 0;
}

.hero {
    position: relative;
    padding: 6.5rem 0 7.5rem;
    background: transparent;
    color: var(--color-text);
    overflow: hidden;
    text-align: left;
}

    .hero::after {
        content: none;
    }


.hero__container {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    max-width: 1100px;
}

.hero__content {
    max-width: 560px;
}

.hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    font-weight: 600;
    margin-bottom: 1rem;
}

.hero h1 {
    font-size: clamp(2.6rem, 4vw, 3.4rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.1rem;
    line-height: 1.85;
    color: var(--color-text-muted);
    margin-bottom: 2rem;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

    .hero__actions .btn--ghost {
        color: var(--color-text);
        border-color: var(--color-border);
    }

        .hero__actions .btn--ghost:hover {
            border-color: var(--color-primary);
            color: var(--color-primary);
        }

.hero__visual {
    flex: 1 1 320px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 1.5rem;
}

.hero__visual-image {
    width: min(360px, 100%);
    height: auto;
    filter: drop-shadow(0 20px 45px rgba(0, 0, 0, 0.18));
    transition: transform 0.3s ease, filter 0.3s ease;
}

.hero__visual-image--dark {
    display: none;
}

body.dark-mode .hero__visual-image--light {
    display: none;
}

body.dark-mode .hero__visual-image--dark {
    display: block;
}

@media (min-width: 900px) {
    .hero__container {
        flex-direction: row;
        align-items: center;
    }

    .hero__content {
        flex: 1 1 420px;
    }

    .hero__visual {
        margin-top: 0;
        justify-content: flex-end;
    }
}


.main-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(8, 11, 23, 0.92);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    padding: 1.1rem 0;
}

    .main-header .container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1.5rem;
    }

.logo a {
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.main-nav ul {
    gap: 1.25rem;
}

.main-nav a {
    position: relative;
    padding: 0.25rem 0;
    color: rgba(255, 255, 255, 0.78);
    font-weight: 600;
    letter-spacing: 0.03em;
}

    .main-nav a::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: -0.45rem;
        width: 0;
        height: 2px;
        background: #ff8c32;
        transition: width var(--transition-base);
        border-radius: 2px;
    }

    .main-nav a:hover::after,
    .main-nav a:focus-visible::after {
        width: 100%;
    }

.language-switcher select {
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
    background: #222;
    color: #fff;
    font-size: 0.95rem;
    border: 1px solid #555;
}

.nav-buttons .theme-toggle {
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
}

footer {
    background: #080c17;
    color: rgba(255, 255, 255, 0.75);
    padding: 2.5rem 0;
}

.footer-container {
    width: min(1100px, 100%);
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.footer-socials a {
    color: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.15);
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color var(--transition-base), color var(--transition-base), border-color var(--transition-base);
}

    .footer-socials a:hover {
        background: var(--gradient-primary);
        color: #fff;
        border-color: transparent;
    }

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
}

.service-card {
    background: linear-gradient(150deg, rgba(255, 102, 0, 0.1), rgba(255, 255, 255, 0.92));
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    padding: 1.75rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

    .service-card:hover {
        transform: translateY(-6px);
        box-shadow: var(--shadow-md);
    }

    .service-card img {
        width: 100%;
        height: 210px;
        object-fit: cover;
        border-radius: calc(var(--radius-md) - 6px);
    }

.service-card__body h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--color-text);
}

.service-card__body p {
    color: var(--color-text-muted);
    line-height: 1.7;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    box-shadow: var(--shadow-sm);
    padding: 2.35rem;
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}

.testimonial-card__avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 102, 0, 0.3);
}

.testimonial-card blockquote {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--color-text);
    quotes: "\201C" "\201D";
}

    .testimonial-card blockquote::before {
        content: open-quote;
        color: rgba(255, 102, 0, 0.5);
        font-size: 2.4rem;
        line-height: 0;
        margin-right: 0.5rem;
    }

.testimonial-card__author {
    font-weight: 600;
    color: var(--color-text-muted);
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.post-card {
    background: var(--color-surface);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

    .post-card:hover {
        transform: translateY(-6px);
        box-shadow: var(--shadow-md);
    }

    .post-card img {
        width: 100%;
        height: 210px;
        object-fit: cover;
    }

.post-card__body {
    padding: 1.85rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.post-card__meta {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-primary);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.blog-filters {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
    background: rgba(255, 255, 255, 0.65);
    border-radius: var(--radius-md);
    padding: 1.25rem 1.5rem;
    border: 1px solid var(--color-border);
}

    .blog-filters select {
        padding: 0.75rem 1rem;
        border-radius: 999px;
        border: 1px solid var(--color-border);
        background: #fff;
        color: var(--color-text);
        min-width: 180px;
    }

    .blog-filters button {
        padding-inline: 1.5rem;
    }

    .blog-filters .btn--primary {
        background: var(--gradient-primary);
        color: #fff;
        border: none;
        box-shadow: var(--shadow-sm);
    }

        .blog-filters .btn--primary:hover {
            box-shadow: var(--shadow-md);
            transform: translateY(-2px);
        }

.pagination {
    margin-top: 3rem;
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}

.pagination__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    border: 1px solid var(--color-border);
    color: var(--color-text);
    text-decoration: none;
    font-weight: 600;
    transition: background-color var(--transition-base), color var(--transition-base), border-color var(--transition-base);
}

    .pagination__link:hover {
        border-color: var(--color-primary);
        color: var(--color-primary);
    }

    .pagination__link.current {
        background: var(--gradient-primary);
        border-color: transparent;
        color: #fff;
    }

.blog-article {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    padding: 3rem;
    box-shadow: var(--shadow-sm);
}

.blog-header {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
    margin-bottom: 2.5rem;
}

    .blog-header h1 {
        color: var(--color-text);
    }

.blog-header__meta {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--color-primary);
}

.blog-hero {
    width: 100%;
    border-radius: calc(var(--radius-lg) - 8px);
    box-shadow: var(--shadow-sm);
}

.blog-body {
    font-family: "Segoe UI", sans-serif;
    line-height: 1.65;
    color: var(--color-text);
    transition: background-color var(--transition-base), color var(--transition-base);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-synthesis: none;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

    .blog-body p + p {
        margin-top: 1.15rem;
    }

    .blog-body h2,
    .blog-body h3,
    .blog-body h4 {
        margin-top: 2.5rem;
        margin-bottom: 1rem;
    }

    .blog-body ul,
    .blog-body ol {
        margin: 1.5rem 0;
        padding-left: 1.5rem;
    }

.about-values {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

    .about-values ul {
        list-style: none;
        display: grid;
        gap: 0.85rem;
    }

    .about-values li {
        padding: 0.85rem 1.15rem;
        border-radius: var(--radius-sm);
        background: rgba(255, 102, 0, 0.08);
        color: var(--color-text);
        font-weight: 600;
    }

.before-after-carousel {
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    padding: 2rem;
    background: var(--color-surface);
}

    .before-after-carousel img {
        border-radius: var(--radius-sm);
        box-shadow: var(--shadow-sm);
    }

.before-after-empty {
    color: var(--color-text-muted);
    font-style: italic;
}

body.dark-mode {
    background: var(--gradient-page-dark);
    color: #f1f4ff;
}

    body.dark-mode .main-header {
        background: rgba(7, 9, 18, 0.94);
        border-bottom-color: rgba(255, 255, 255, 0.08);
    }



    body.dark-mode .section-panel,
    body.dark-mode .post-card,
    body.dark-mode .service-card,
    body.dark-mode .testimonial-card,
    body.dark-mode .blog-article,
    body.dark-mode .before-after-carousel {
        background: rgba(14, 17, 27, 0.95);
        border-color: rgba(255, 255, 255, 0.08);
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
    }

        body.dark-mode .section-heading__title,
        body.dark-mode .blog-body,
        body.dark-mode .testimonial-card blockquote,
        body.dark-mode .service-card__body h3,
        body.dark-mode .about-values li {
            color: #f5f7ff;
        }

            body.dark-mode .section-heading__lead,
            body.dark-mode .service-card__body p,
            body.dark-mode .testimonial-card__author,
            body.dark-mode .post-card__meta,
            body.dark-mode .blog-body p,
            body.dark-mode .before-after-empty {
                color: rgba(226, 232, 255, 0.75);
            }


    body.dark-mode .btn--ghost {
        color: rgba(255, 255, 255, 0.85);
        border-color: rgba(255, 255, 255, 0.28);
    }

    body.dark-mode .btn--soft {
        background: rgba(255, 140, 50, 0.2);
        color: #ffdcb1;
    }

    body.dark-mode .blog-filters {
        background: rgba(12, 15, 25, 0.8);
        border-color: rgba(255, 255, 255, 0.1);
    }

        body.dark-mode .blog-filters select {
            background: rgba(6, 8, 14, 0.85);
            color: #f4f6ff;
            border-color: rgba(255, 255, 255, 0.12);
        }

    body.dark-mode .pagination__link {
        border-color: rgba(255, 255, 255, 0.12);
        color: #f1f4ff;
    }

        body.dark-mode .pagination__link:hover {
            border-color: rgba(255, 140, 50, 0.6);
            color: #ffb878;
        }

    body.dark-mode footer {
        background: rgba(7, 9, 18, 0.94);
        color: var(--color-text-muted);
    }

@media (max-width: 1024px) {
    .section-panel {
        padding: 2.5rem;
    }

    .section-panel--split {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 5.5rem 0 6.5rem;
    }

    .hero__container {
        align-items: flex-start;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 4.5rem 0 5.5rem;
    }

    .hero__container {
        gap: 2rem;
    }

    .hero__actions {
        width: 100%;
    }

        .hero__actions .btn {
            flex: 1 1 auto;
            justify-content: center;
        }

    .footer-container {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 640px) {
    .section {
        padding: 3.5rem 0;
    }

    .section-panel {
        padding: 1.5rem 1.25rem;
    }

    .section-heading__title {
        font-size: 2.05rem;
    }

    .blog-filters {
        flex-direction: column;
        align-items: stretch;
    }

        .blog-filters select,
        .blog-filters button {
            width: 100%;
        }
}
/* === Contact Page === */
.section.contact-page {
    background: transparent;
}

.contact-panel {
    gap: 3rem;
}

    .contact-panel .section-heading {
        margin-bottom: 1.5rem;
    }

.contact-panel__info {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.contact-panel__copy {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--color-text-muted);
}

    .contact-panel__copy p + p,
    .contact-panel__copy ul,
    .contact-panel__copy ol {
        margin-top: 1rem;
    }

    .contact-panel__copy ul,
    .contact-panel__copy ol {
        padding-left: 1.25rem;
    }

.contact-panel__form {
    display: flex;
    align-items: stretch;
}

.contact-panel__card {
    position: relative;
    background: linear-gradient(150deg, rgba(255, 102, 0, 0.1), rgba(255, 255, 255, 0.92));
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    padding: 2.5rem;
    width: 100%;
    overflow: hidden;
}


.contact-form-card__title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 1.75rem;
}

.contact-form-card form {
    display: grid;
    gap: 1.5rem;
}

.contact-form-card fieldset {
    border: 0;
    padding: 0;
    margin: 0;
}

.contact-form-card form > :where(div, p, fieldset) {
    margin: 0;
}

.contact-form-card label {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--color-text);
    margin-bottom: 0.45rem;
}

.contact-form-card input[type="text"],
.contact-form-card input[type="email"],
.contact-form-card input[type="tel"],
.contact-form-card input[type="number"],
.contact-form-card input[type="url"],
.contact-form-card select,
.contact-form-card textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(34, 34, 34, 0.15);
    background: var(--color-surface);
    font-size: 1rem;
    color: var(--color-text);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.contact-form-card textarea {
    min-height: 170px;
    resize: vertical;
    line-height: 1.6;
}

    .contact-form-card input::placeholder,
    .contact-form-card textarea::placeholder {
        color: rgba(34, 34, 34, 0.45);
    }

    .contact-form-card input:focus,
    .contact-form-card select:focus,
    .contact-form-card textarea:focus {
        border-color: #ff6600;
        box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.18);
        outline: none;
        transform: translateY(-1px);
    }

.contact-form-card input[type="checkbox"],
.contact-form-card input[type="radio"] {
    width: auto;
    margin-right: 0.5rem;
    accent-color: #ff6600;
}

.contact-form-card .u-form-kit-response-output {
    display: block;
    margin-bottom: 1rem;
    padding: 0.9rem 1.1rem;
    border-radius: 12px;
    background: rgba(83, 194, 123, 0.15);
    color: #2c7a45;
    font-weight: 600;
}

.contact-form-card .validation-summary-errors {
    border-left: 4px solid #d94b2b;
    background: rgba(217, 75, 43, 0.12);
    padding: 1rem 1.25rem;
    border-radius: 12px;
    color: #8f2e1a;
    font-size: 0.95rem;
}

    .contact-form-card .validation-summary-errors ul {
        margin: 0;
        padding-left: 1.2rem;
    }

.contact-form-card .field-validation-error {
    color: #b23a00;
    font-size: 0.85rem;
    margin-top: 0.45rem;
    display: block;
}

.contact-form-card button,
.contact-form-card input[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    background: linear-gradient(135deg, #ff6600, #ff9933);
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 0.95rem 2.35rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 16px 35px rgba(255, 102, 0, 0.25);
}

    .contact-form-card button:hover,
    .contact-form-card input[type="submit"]:hover {
        transform: translateY(-2px);
        box-shadow: 0 20px 40px rgba(255, 102, 0, 0.28);
    }

    .contact-form-card button:focus-visible,
    .contact-form-card input[type="submit"]:focus-visible {
        outline: 3px solid rgba(255, 102, 0, 0.45);
        outline-offset: 2px;
    }

    .contact-form-card button:disabled,
    .contact-form-card input[type="submit"]:disabled {
        opacity: 0.5;
        cursor: not-allowed;
        transform: none;
        box-shadow: none;
    }
/* === Contact Page Responsive === */
@media (max-width: 480px) {
    .section.section--latest-posts .section-panel {
        padding: 1.5rem 1.25rem;
    }

    .section.section--latest-posts .posts-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.5rem;
    }

    .section.section--latest-posts .post-card {
        width: 100%;
    }
}

@media (max-width: 1024px) {
    .contact-panel.section-panel--split {
        grid-template-columns: 1fr;
    }

    .contact-panel__card {
        padding: 2.25rem;
    }
}

@media (max-width: 720px) {
    .contact-panel.section-panel--split {
        gap: 2rem;
    }

    .contact-panel__card {
        padding: 2rem;
    }
}
/* === Contact Page Dark Mode === */
body.dark-mode .contact-panel__copy {
    color: rgba(226, 232, 255, 0.75);
}

body.dark-mode .contact-panel__card {
    background: rgba(14, 17, 27, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.55);
}

body.dark-mode .contact-form-card__title,
body.dark-mode .contact-form-card label {
    color: #f7f7f7;
}

body.dark-mode .contact-form-card input[type="text"],
body.dark-mode .contact-form-card input[type="email"],
body.dark-mode .contact-form-card input[type="tel"],
body.dark-mode .contact-form-card input[type="number"],
body.dark-mode .contact-form-card input[type="url"],
body.dark-mode .contact-form-card select,
body.dark-mode .contact-form-card textarea {
    background: rgba(18, 18, 18, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #f0f0f0;
}

    body.dark-mode .contact-form-card input::placeholder,
    body.dark-mode .contact-form-card textarea::placeholder {
        color: rgba(240, 240, 240, 0.45);
    }

    body.dark-mode .contact-form-card input:focus,
    body.dark-mode .contact-form-card select:focus,
    body.dark-mode .contact-form-card textarea:focus {
        border-color: #ffa726;
        box-shadow: 0 0 0 3px rgba(255, 167, 38, 0.2);
    }

body.dark-mode .contact-form-card .validation-summary-errors {
    border-left-color: rgba(255, 167, 38, 0.65);
    background: rgba(255, 167, 38, 0.1);
    color: #ffc56c;
}

body.dark-mode .contact-form-card .field-validation-error {
    color: #ffb657;
}

body.dark-mode .contact-form-card button,
body.dark-mode .contact-form-card input[type="submit"] {
    background: linear-gradient(135deg, #ffa726, #ff8c00);
    color: #151515;
    box-shadow: 0 18px 36px rgba(255, 167, 38, 0.25);
}

    body.dark-mode .contact-form-card button:hover,
    body.dark-mode .contact-form-card input[type="submit"]:hover {
        box-shadow: 0 20px 44px rgba(255, 167, 38, 0.32);
    }
