
/*
Theme Name: French Business Sofia
Author: SOAPI
Description: Custom directory theme for French businesses in Sofia.
Version: 1.0.0
Text Domain: french-business-sofia
*/

:root {
    --green: #00977A;
    --green-dark: #08745F;
    --navy: #173A43;
    --text: #24363D;
    --muted: #687A80;
    --light: #F4F8F6;
    --white: #FFFFFF;
    --border: #E1EAE6;
    --radius: 16px;
    --shadow: 0 8px 28px rgba(23, 58, 67, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.6;
}

a {
    color: var(--green-dark);
    text-decoration: none;
}

a:hover {
    color: var(--green);
}

img {
    max-width: 100%;
    height: auto;
}

button,
input {
    font: inherit;
}

.fbs-container {
    width: min(1160px, calc(100% - 40px));
    margin-inline: auto;
}

/* HEADER */

.fbs-header {
    position: relative;
    z-index: 10;
    background: #FFFFFF;
    border-bottom: 1px solid var(--border);
}

.fbs-header .fbs-container {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.fbs-brand {
    color: var(--navy);
    font-size: 23px;
    font-weight: 800;
    letter-spacing: -0.5px;
    white-space: nowrap;
}

.fbs-header nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 23px;
}

.fbs-header nav a {
    color: #344A50;
    font-size: 14px;
    font-weight: 600;
    transition: color 0.2s ease;
}

.fbs-header nav a:hover {
    color: var(--green);
}

/* HERO */

.fbs-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 100px 0 82px;
    color: #FFFFFF;
    background-color: #173A43;
    background-image:
        linear-gradient(
            90deg,
            rgba(12, 43, 49, 0.91) 0%,
            rgba(12, 43, 49, 0.73) 52%,
            rgba(12, 43, 49, 0.35) 100%
        ),
        url("https://frbusinessofia.com/wp-content/uploads/2026/10/gradska-panorama-sas-zlatni-kupoli-e1787899226521-3.png");
    background-size: cover;
    background-position: center 52%;
}

.fbs-hero .fbs-container {
    position: relative;
    z-index: 1;
}

.fbs-eyebrow {
    margin: 0 0 13px;
    color: var(--green);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.fbs-hero .fbs-eyebrow {
    color: #A7E5D3;
}

.fbs-hero h1 {
    max-width: 760px;
    margin: 0 0 20px;
    color: #FFFFFF;
    font-size: clamp(36px, 5vw, 58px);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -1.5px;
}

.fbs-intro {
    max-width: 620px;
    margin: 0 0 30px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
    line-height: 1.7;
}

/* SEARCH */

.fbs-search {
    display: flex;
    width: min(760px, 100%);
    gap: 10px;
    padding: 8px;
    background: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 12px 38px rgba(0, 0, 0, 0.2);
}

.fbs-search input[type="search"] {
    flex: 1;
    min-width: 0;
    padding: 13px 16px;
    color: var(--text);
    background: #FFFFFF;
    border: 0;
    outline: none;
}

.fbs-search input[type="search"]::placeholder {
    color: #849398;
}

.fbs-search button,
.fbs-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 21px;
    color: #FFFFFF;
    background: var(--green);
    border: 0;
    border-radius: 9px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.fbs-search button:hover,
.fbs-button:hover {
    color: #FFFFFF;
    background: var(--green-dark);
    transform: translateY(-1px);
}

.fbs-count {
    margin: 22px 0 0;
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
}

.fbs-count strong {
    margin: 0 4px;
    color: #FFFFFF;
}

/* SECTIONS */

.fbs-section {
    padding: 76px 0;
}

.fbs-section:nth-of-type(odd) {
    background: var(--light);
}

.fbs-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 30px;
}

.fbs-section-heading h2,
.fbs-cta h2 {
    margin: 0 0 10px;
    color: var(--navy);
    font-size: clamp(27px, 3vw, 36px);
    line-height: 1.25;
    letter-spacing: -0.7px;
}

.fbs-section-heading p:not(.fbs-eyebrow) {
    margin: 0;
    color: var(--muted);
}

.fbs-section-heading > a {
    flex-shrink: 0;
    margin-bottom: 5px;
    font-weight: 700;
}

/* SECTOR CARDS */

.fbs-sectors {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.fbs-sector {
    display: block;
    min-height: 180px;
    padding: 24px;
    color: var(--text);
    background: #FFFFFF;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 3px 12px rgba(23, 58, 67, 0.03);
    transition: transform 0.2s ease, box-shadow 0.2s ease,
                border-color 0.2s ease;
}

.fbs-sector:hover {
    color: var(--text);
    border-color: #A7DCCD;
    box-shadow: var(--shadow);
    transform: translateY(-4px);
}

.fbs-sector-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 43px;
    height: 43px;
    margin-bottom: 14px;
    color: var(--green-dark);
    background: #E4F5EF;
    border-radius: 12px;
    font-size: 23px;
    font-weight: 700;
}

.fbs-sector h3 {
    margin: 0 0 6px;
    color: var(--navy);
    font-size: 17px;
    line-height: 1.4;
}

.fbs-sector p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

/* COMPANY CARDS */

.fbs-companies {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.fbs-card {
    min-width: 0;
    overflow: hidden;
    padding: 24px;
    background: #FFFFFF;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 3px 12px rgba(23, 58, 67, 0.03);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fbs-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-3px);
}

.fbs-card > a:first-child {
    color: var(--navy);
}

.fbs-card > a:first-child img {
    display: block;
    width: 100%;
    height: 160px;
    margin-bottom: 18px;
    object-fit: contain;
    background: #F7F9F8;
    border-radius: 10px;
}

.fbs-card > a:first-child .fbs-sector-icon {
    width: 48px;
    height: 48px;
}

.fbs-card h3,
.fbs-card .fbs-title {
    margin: 0 0 12px;
    color: var(--navy);
    font-size: 20px;
    line-height: 1.4;
}

.fbs-card p {
    color: var(--muted);
    font-size: 14px;
}

.fbs-badge {
    display: inline-block;
    padding: 5px 10px;
    color: var(--green-dark);
    background: #E4F5EF;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

.fbs-card > a:last-child {
    display: inline-block;
    margin-top: 8px;
    font-size: 14px;
    font-weight: 700;
}

.fbs-empty {
    grid-column: 1 / -1;
    padding: 35px;
    text-align: center;
    background: #FFFFFF;
    border: 1px dashed #B8D1C8;
    border-radius: var(--radius);
}

.fbs-empty h3 {
    margin-top: 0;
    color: var(--navy);
}

/* CALL TO ACTION */

.fbs-cta {
    padding: 65px 0;
    background: #EAF6F1;
}

.fbs-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 35px;
}

.fbs-cta-inner > div {
    max-width: 740px;
}

.fbs-cta h2 {
    max-width: 700px;
}

.fbs-cta p:not(.fbs-eyebrow) {
    margin-bottom: 0;
    color: var(--muted);
}

.fbs-cta .fbs-button {
    flex-shrink: 0;
}

/* FOOTER */

.fbs-footer {
    padding: 42px 0;
    color: #D6E3E0;
    background: #15363E;
}

.fbs-footer .fbs-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.fbs-footer p {
    margin: 0;
    font-size: 14px;
}

.fbs-footer a {
    color: #FFFFFF;
}

/* ACCESSIBILITY */

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 3px solid #70CDB4;
    outline-offset: 3px;
}

/* TABLET */

@media (max-width: 900px) {
    .fbs-header .fbs-container {
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        padding-top: 18px;
        padding-bottom: 18px;
        gap: 14px;
    }

    .fbs-header nav {
        justify-content: flex-start;
        gap: 12px 20px;
    }

    .fbs-sectors {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .fbs-companies {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .fbs-hero {
        padding: 80px 0 68px;
    }
}

/* MOBILE */

@media (max-width: 600px) {
    .fbs-container {
        width: calc(100% - 32px);
    }

    .fbs-brand {
        font-size: 20px;
        white-space: normal;
    }

    .fbs-header nav {
        gap: 10px 16px;
    }

    .fbs-header nav a {
        font-size: 13px;
    }

    .fbs-hero {
        padding: 65px 0 55px;
        background-position: center;
    }

    .fbs-hero h1 {
        font-size: 38px;
        letter-spacing: -0.8px;
    }

    .fbs-intro {
        font-size: 16px;
    }

    .fbs-search {
        flex-direction: column;
        padding: 8px;
    }

    .fbs-search input[type="search"] {
        width: 100%;
        padding: 13px 10px;
    }

    .fbs-search button {
        width: 100%;
    }

    .fbs-section {
        padding: 52px 0;
    }

    .fbs-section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .fbs-sectors,
    .fbs-companies {
        grid-template-columns: 1fr;
    }

    .fbs-sector {
        min-height: auto;
    }

    .fbs-card {
        padding: 20px;
    }

    .fbs-cta {
        padding: 48px 0;
    }

    .fbs-cta-inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 22px;
    }

    .fbs-footer .fbs-container {
        align-items: flex-start;
        flex-direction: column;
    }
}
