/* Fernweh Systems — Revamped UI (fernwehksa.com) */

:root {
    --fw-navy: #0f2d44;
    --fw-navy-soft: #1a3d57;
    --fw-blue: #2a5375;
    --fw-orange: #f26e21;
    --fw-orange-dark: #d85a12;
    --fw-surface: #f4f7fb;
    --fw-surface-2: #e8eef5;
    --fw-text: #1e293b;
    --fw-muted: #64748b;
    --fw-white: #ffffff;
    --fw-radius: 16px;
    --fw-radius-lg: 24px;
    --fw-shadow: 0 12px 40px rgba(15, 45, 68, 0.08);
    --fw-shadow-hover: 0 20px 50px rgba(15, 45, 68, 0.14);
    --fw-font: "Plus Jakarta Sans", "Roboto", sans-serif;
}

.fw-revamp {
    font-family: var(--fw-font);
    color: var(--fw-text);
    background: var(--fw-white);
}

.fw-revamp a {
    color: var(--fw-orange);
}

/* Header */
.fw-revamp header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(15, 45, 68, 0.08);
}

.fw-revamp header .navbar {
    padding: 0.85rem 0;
    box-shadow: none !important;
}

.fw-revamp header .nav-brand img {
    max-height: 44px;
}

.fw-revamp header .nav-link {
    color: var(--fw-navy) !important;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.5rem 1rem !important;
    border-radius: 999px;
    transition: background 0.2s, color 0.2s;
}

.fw-revamp header .nav-link:hover,
.fw-revamp header .nav-link.active {
    color: var(--fw-orange) !important;
    background: rgba(242, 110, 33, 0.08);
}

.fw-revamp header .dropdown-menu {
    border-radius: var(--fw-radius) !important;
    padding: 1rem !important;
    min-width: 520px;
    z-index: 1040;
}

.fw-revamp header .dropdown-toggle::after {
    vertical-align: 0.2em;
}

.fw-revamp header .dropdown-menu h5 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--fw-navy);
    margin-bottom: 0.25rem;
}

.fw-revamp header .menusub {
    font-size: 0.8rem;
    color: var(--fw-muted);
    line-height: 1.4;
}

.fw-revamp header .icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--fw-surface) !important;
}

.fw-revamp header .icon img {
    max-height: 32px;
    width: auto;
}

.fw-revamp .fw-nav-cta {
    background: linear-gradient(135deg, var(--fw-orange), var(--fw-orange-dark));
    color: #fff !important;
    border-radius: 999px;
    padding: 0.55rem 1.25rem !important;
    margin-left: 0.5rem;
    box-shadow: 0 8px 20px rgba(242, 110, 33, 0.35);
}

.fw-revamp .fw-nav-cta:hover {
    color: #fff !important;
    transform: translateY(-1px);
}

/* Section utilities */
.fw-section {
    padding: 5rem 0;
}

.fw-section-alt {
    background: var(--fw-surface);
}

.fw-section-dark {
    background: linear-gradient(160deg, var(--fw-navy) 0%, var(--fw-navy-soft) 100%);
    color: #fff;
}

.fw-eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--fw-orange);
    margin-bottom: 0.75rem;
}

.fw-section-title {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 800;
    line-height: 1.15;
    color: var(--fw-navy);
    margin-bottom: 0.75rem;
}

.fw-section-title span {
    font-weight: 400;
    color: var(--fw-blue);
}

.fw-section-subtitle {
    font-size: 1.05rem;
    color: var(--fw-muted);
    max-width: 640px;
    margin: 0 auto 2.5rem;
}

.fw-section-header {
    text-align: center;
    margin-bottom: 3rem;
}

/* Hero */
.fw-hero {
    background: linear-gradient(135deg, #f8fbff 0%, #eef4fa 45%, #fff5ef 100%);
    overflow: hidden;
}

.fw-hero .homebanner-section {
    padding: 3rem 0 4rem;
    min-height: 520px;
    display: flex;
    align-items: center;
}

.fw-hero .hbleft h1 {
    font-size: clamp(2rem, 4.5vw, 3.25rem);
    font-weight: 800;
    line-height: 1.1;
    color: var(--fw-navy);
    margin-bottom: 1rem;
}

.fw-hero .hbleft h1 span {
    color: var(--fw-orange);
    font-weight: 800;
}

.fw-hero .hbleft > .w-100 > p,
.fw-hero .hbleft p {
    font-size: 1.15rem;
    color: var(--fw-muted);
    margin-bottom: 1.5rem;
}

.fw-hero .icnBox ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    list-style: none;
    padding: 0;
    margin: 0 0 1.75rem;
}

.fw-hero .icnBox li span {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #fff;
    border: 1px solid rgba(15, 45, 68, 0.08);
    border-radius: 999px;
    padding: 0.45rem 0.9rem 0.45rem 0.45rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--fw-navy);
    box-shadow: var(--fw-shadow);
}

.fw-hero .icnBox i img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.fw-hero .btn-style-1 {
    background: linear-gradient(135deg, var(--fw-orange), var(--fw-orange-dark));
    border: none;
    border-radius: 999px;
    padding: 0.85rem 1.75rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    box-shadow: 0 10px 24px rgba(242, 110, 33, 0.35);
}

.fw-hero .abtsec-image {
    position: relative;
    min-height: 380px;
}

.fw-hero .owl-carousel .owl-dots {
    margin-top: 1.5rem;
}

.fw-hero .owl-carousel button.owl-dot span {
    width: 10px;
    height: 10px;
    background: rgba(15, 45, 68, 0.2);
}

.fw-hero .owl-carousel button.owl-dot.active span {
    background: var(--fw-orange);
    width: 28px;
    border-radius: 999px;
}

/* About */
.fw-about-card {
    background: #fff;
    border-radius: var(--fw-radius-lg);
    padding: 2.5rem;
    box-shadow: var(--fw-shadow);
    border: 1px solid rgba(15, 45, 68, 0.06);
}

.fw-about-card p {
    color: var(--fw-muted);
    font-size: 1rem;
    line-height: 1.75;
}

.fw-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.fw-stat {
    background: var(--fw-surface);
    border-radius: var(--fw-radius);
    padding: 1.25rem;
    text-align: center;
}

.fw-stat strong {
    display: block;
    font-size: 1.5rem;
    color: var(--fw-orange);
    font-weight: 800;
}

.fw-stat span {
    font-size: 0.8rem;
    color: var(--fw-muted);
    font-weight: 600;
}

/* Why choose */
.fw-feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
}

.fw-feature-card {
    background: #fff;
    border-radius: var(--fw-radius);
    padding: 1.75rem 1.5rem;
    border: 1px solid rgba(15, 45, 68, 0.06);
    box-shadow: var(--fw-shadow);
    transition: transform 0.25s, box-shadow 0.25s;
    height: 100%;
}

.fw-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--fw-shadow-hover);
}

.fw-feature-card img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    margin-bottom: 1rem;
}

.fw-feature-card h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--fw-navy);
    margin-bottom: 0.5rem;
}

.fw-feature-card p {
    font-size: 0.9rem;
    color: var(--fw-muted);
    margin: 0;
    line-height: 1.6;
}

/* Service / product cards */
.fw-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
}

.fw-service-card,
.fw-product-card {
    background: #fff;
    border-radius: var(--fw-radius);
    overflow: hidden;
    border: 1px solid rgba(15, 45, 68, 0.06);
    box-shadow: var(--fw-shadow);
    transition: transform 0.25s, box-shadow 0.25s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.fw-service-card:hover,
.fw-product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--fw-shadow-hover);
}

.fw-service-card .fw-card-image,
.fw-product-card .fw-card-image {
    background: linear-gradient(180deg, var(--fw-surface) 0%, #fff 100%);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 160px;
}

.fw-service-card .fw-card-image img,
.fw-product-card .fw-card-image img {
    max-height: 120px;
    width: auto;
    object-fit: contain;
}

.fw-service-card .fw-card-body,
.fw-product-card .fw-card-body {
    padding: 1.25rem 1.5rem 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.fw-service-card h3,
.fw-product-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--fw-navy);
    margin-bottom: 0.5rem;
}

.fw-service-card p,
.fw-product-card p {
    font-size: 0.9rem;
    color: var(--fw-muted);
    flex: 1;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.fw-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--fw-orange);
    text-decoration: none;
}

.fw-card-link:hover {
    color: var(--fw-orange-dark);
}

/* Brands marquee */
.fw-brands-wrap {
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.fw-brands-track {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem 2.5rem;
    align-items: center;
}

.fw-brands-track li {
    list-style: none;
}

.fw-brands-track img {
    max-height: 52px;
    width: auto;
    filter: grayscale(1);
    opacity: 0.75;
    transition: filter 0.2s, opacity 0.2s, transform 0.2s;
}

.fw-brands-track a:hover img {
    filter: grayscale(0);
    opacity: 1;
    transform: scale(1.05);
}

/* Support CTA */
.fw-support-panel {
    background: linear-gradient(135deg, var(--fw-navy) 0%, var(--fw-blue) 100%);
    border-radius: var(--fw-radius-lg);
    padding: 3rem;
    color: #fff;
    overflow: hidden;
    position: relative;
}

.fw-support-panel::after {
    content: "";
    position: absolute;
    top: -40%;
    right: -10%;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(242, 110, 33, 0.25) 0%, transparent 70%);
    pointer-events: none;
}

.fw-support-panel .fw-section-title {
    color: #fff;
}

.fw-support-panel .fw-section-title span {
    color: rgba(255, 255, 255, 0.75);
}

.fw-support-panel p {
    color: rgba(255, 255, 255, 0.82);
}

.fw-support-panel a {
    color: #fff;
    font-weight: 700;
}

/* Projects */
.fw-project-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    list-style: none;
    padding: 0;
}

.fw-project-filters li {
    padding: 0.5rem 1.1rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    color: var(--fw-muted);
    background: #fff;
    border: 1px solid rgba(15, 45, 68, 0.1);
    transition: all 0.2s;
}

.fw-project-filters li.active,
.fw-project-filters li:hover {
    background: var(--fw-orange);
    color: #fff;
    border-color: var(--fw-orange);
}

.fw-project-card {
    border-radius: var(--fw-radius);
    overflow: hidden;
    box-shadow: var(--fw-shadow);
    transition: transform 0.25s;
}

.fw-project-card:hover {
    transform: scale(1.02);
}

.fw-project-card img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    background: linear-gradient(180deg, var(--fw-surface) 0%, var(--fw-white) 100%);
    padding: 10px;
}

/* Clients */
.fw-clients-owl .blogo-block {
    background: #fff;
    border-radius: var(--fw-radius);
    padding: 1.5rem;
    box-shadow: var(--fw-shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100px;
}

.fw-clients-owl img {
    max-height: 60px;
    width: auto;
    object-fit: contain;
}

/* Contact */
.fw-contact-section {
    background: var(--fw-surface);
}

.fw-contact-panel {
    background: #fff;
    border-radius: var(--fw-radius-lg);
    padding: 2.5rem;
    box-shadow: var(--fw-shadow);
}

.fw-contact-panel .form-control {
    border-radius: 12px;
    border: 1px solid rgba(15, 45, 68, 0.12);
    padding: 0.85rem 1rem;
}

.fw-contact-panel .btn-style-1 {
    background: linear-gradient(135deg, var(--fw-orange), var(--fw-orange-dark));
    border: none;
    border-radius: 12px;
    font-weight: 700;
}

/* Footer */
.fw-revamp footer {
    background: var(--fw-navy);
    color: rgba(255, 255, 255, 0.85);
    padding: 4rem 0 2rem;
}

.fw-revamp footer h3,
.fw-revamp footer h6 {
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}

.fw-revamp footer .fclinks-1 a {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9rem;
    line-height: 2;
}

.fw-revamp footer .fclinks-1 a:hover {
    color: var(--fw-orange);
}

.fw-revamp footer .logofooter {
    max-height: 48px;
    filter: brightness(0) invert(1);
}

.fw-revamp footer p,
.fw-revamp footer address {
    font-size: 0.9rem;
    line-height: 1.7;
}

.fw-revamp footer .accordion-button {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-weight: 600;
}

.fw-revamp footer .accordion-body {
    background: rgba(255, 255, 255, 0.04);
}

/* Hide legacy duplicate why-choose mobile/desktop split */
.fw-revamp .MobHide,
.fw-revamp .DeskHide {
    display: none !important;
}

@media (max-width: 991px) {
    .fw-stat-grid {
        grid-template-columns: 1fr;
    }

    .fw-revamp header .dropdown-menu {
        min-width: 100%;
    }

    .fw-support-panel {
        padding: 2rem;
    }
}

@media (max-width: 767px) {
    .fw-section {
        padding: 3.5rem 0;
    }

    .fw-hero .homebanner-section {
        min-height: auto;
        padding: 2rem 0;
    }
}

/* Service page — digital marketing icon grid */
.abouthmd.services-section .icon-box i img.width-45px {
    width: 45px !important;
    height: 45px !important;
    display: block !important;
    margin: 0 auto;
    object-fit: contain;
}

.abouthmd.services-section .icon-box i {
    display: flex !important;
    align-items: center;
    justify-content: center;
    line-height: normal !important;
}

/* Service detail — transparent product illustrations */
.services-page .imageBoxed,
.services-page .imageBoxed2 {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent !important;
    min-height: 320px;
}

.services-page .imageBoxed img,
.services-page .imageBoxed2 img {
    object-fit: contain;
    width: 100%;
    max-width: 420px;
    max-height: 420px;
    height: auto;
    background: transparent;
}
