/* =====================================================================
   ČISTUNAC — stylesheet
   Professional cleaning for villas & apartments, Dubrovnik.
   Fresh coastal palette (own identity — distinct from plat-it and patating).
   ===================================================================== */

:root {
    --bg: #f5fafb;
    --bg-card: #ffffff;
    --text: #0f2733;
    --text-soft: #4b6470;
    --text-mute: #8fa4ac;
    --border: #dfeaec;
    --border-soft: #eaf3f4;

    --sea: #0e7490;
    --sea-deep: #0b5b73;
    --aqua: #22d3ee;
    --sand: #e8b56a;

    --grad: linear-gradient(135deg, var(--sea), var(--aqua));
    --grad-soft: linear-gradient(135deg, rgba(14, 116, 144, 0.09), rgba(34, 211, 238, 0.09));
    --shadow-brand: rgba(14, 116, 144, 0.16);
    --shadow-card: rgba(15, 39, 51, 0.07);
}

/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

h1, h2, h3, h4 {
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.25;
}

:focus-visible {
    outline: 2px solid var(--sea);
    outline-offset: 3px;
    border-radius: 4px;
}

.eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--sea-deep);
    background: var(--grad-soft);
    padding: 0.4rem 0.9rem;
    border-radius: 50px;
    margin-bottom: 1.2rem;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 0.85rem 1.9rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 10px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    color: #fff;
    background: var(--grad);
    box-shadow: 0 10px 30px var(--shadow-brand);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 40px var(--shadow-brand);
}

.btn-ghost {
    color: var(--text);
    background: transparent;
    border: 1.5px solid var(--border);
}

.btn-ghost:hover {
    border-color: var(--sea);
    color: var(--sea-deep);
}

/* ===== NAVIGATION ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.1rem 2.5rem;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1.6rem;
    background: rgba(245, 250, 251, 0.85);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-soft);
}

.navbar .brand {
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    background: var(--grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-right: auto;
}

.navbar .nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.navbar .nav-links a {
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text-soft);
    transition: color 0.2s ease;
}

.navbar .nav-links a:hover {
    color: var(--sea-deep);
}

.navbar .nav-cta {
    font-size: 0.88rem;
    font-weight: 600;
    padding: 0.6rem 1.3rem;
    border-radius: 8px;
    background: var(--text);
    color: #fff;
    transition: transform 0.2s ease, background 0.2s ease;
}

.navbar .nav-cta:hover {
    transform: translateY(-1px);
    background: var(--sea-deep);
}

.nav-cta--mobile {
    display: none;
}

/* Language switch */
.lang-switch {
    display: flex;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.lang-btn {
    border: none;
    background: transparent;
    color: var(--text-mute);
    font-family: 'Poppins', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 0.4rem 0.7rem;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.lang-btn.active {
    background: var(--grad);
    color: #fff;
}

.lang-btn:not(.active):hover {
    color: var(--sea-deep);
}

.nav-toggle {
    display: none;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    background: none;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    cursor: pointer;
}

.nav-toggle svg {
    width: 20px;
    height: 20px;
}

/* ===== HERO ===== */
.hero {
    min-height: 92vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 8rem 2rem 4rem;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: -20%;
    z-index: 0;
    background:
        radial-gradient(circle at 18% 20%, rgba(14, 116, 144, 0.14) 0%, transparent 45%),
        radial-gradient(circle at 84% 15%, rgba(34, 211, 238, 0.14) 0%, transparent 42%),
        radial-gradient(circle at 50% 92%, rgba(232, 181, 106, 0.10) 0%, transparent 45%);
    animation: bgDrift 16s ease-in-out infinite alternate;
    filter: blur(10px);
}

@keyframes bgDrift {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(3%, -3%) scale(1.05); }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 760px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1.4rem;
}

.hero-sub {
    font-size: 1.1rem;
    color: var(--text-soft);
    max-width: 620px;
    margin: 0 auto 2.4rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== SECTION SHARED ===== */
.section {
    padding: 6rem 2rem;
    max-width: 1160px;
    margin: 0 auto;
}

.section-head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 3.5rem;
}

.section-head h2 {
    font-size: 2rem;
    margin-bottom: 0.9rem;
}

.section-sub {
    color: var(--text-soft);
    font-size: 1.02rem;
}

/* ===== DIVIDER ===== */
.divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
    max-width: 1160px;
    margin: 0 auto;
}

/* ===== FADE-IN ===== */
.fade-in {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== SERVICES ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.75rem;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2.1rem 1.8rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 45px var(--shadow-card);
    border-color: rgba(14, 116, 144, 0.25);
}

.service-icon,
.why-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--grad-soft);
    color: var(--sea-deep);
    margin-bottom: 1.3rem;
}

.service-icon svg,
.why-icon svg {
    width: 22px;
    height: 22px;
}

.service-card h3,
.why-card h3 {
    font-size: 1.06rem;
    margin-bottom: 0.55rem;
    min-height: 2.6em;
}

.service-card p,
.why-card p {
    font-size: 0.92rem;
    color: var(--text-soft);
    line-height: 1.6;
}

/* ===== WHY US ===== */
.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.75rem;
}

.why-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2.1rem 1.8rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.why-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 45px var(--shadow-card);
    border-color: rgba(34, 211, 238, 0.3);
}

/* ===== CONTACT ===== */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 3rem;
    max-width: 900px;
    margin: 0 auto;
    align-items: start;
}

.contact-info p {
    color: var(--text-soft);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.contact-email {
    display: inline-block;
    font-size: 1.3rem;
    font-weight: 700;
    background: var(--grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.2rem;
}

.contact-area {
    font-size: 0.88rem !important;
    color: var(--text-mute) !important;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    padding: 0.95rem 1.15rem;
    font-size: 0.95rem;
    font-family: 'Poppins', sans-serif;
    background: var(--bg-card);
    border: 1.5px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    outline: none;
    width: 100%;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--text-mute);
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--sea);
    box-shadow: 0 0 0 3px rgba(14, 116, 144, 0.12);
}

.contact-form textarea {
    resize: vertical;
    min-height: 130px;
}

.contact-form button {
    padding: 0.95rem 2rem;
    font-size: 0.95rem;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    color: #fff;
    background: var(--grad);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    width: auto;
}

.contact-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px var(--shadow-brand);
}

.form-note {
    font-size: 0.85rem;
    color: var(--sea-deep);
    min-height: 1.2em;
}

/* ===== FOOTER ===== */
.footer {
    text-align: center;
    padding: 3rem 2rem 2.5rem;
    color: var(--text-mute);
    font-size: 0.9rem;
    background: var(--bg);
    border-top: 1px solid var(--border-soft);
}

.footer .footer-brand {
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    background: var(--grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.4rem;
    display: block;
}

.footer-email {
    display: inline-block;
    color: var(--text-soft);
    font-weight: 600;
    margin-bottom: 0.7rem;
    transition: color 0.2s ease;
}

.footer-email:hover {
    color: var(--sea-deep);
}

.footer-legal {
    font-size: 0.78rem;
    color: var(--text-mute);
    margin-bottom: 0.6rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 1rem 1.3rem;
    }

    .nav-cta--desktop {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .navbar .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: var(--bg);
        border-bottom: 1px solid var(--border-soft);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .navbar .nav-links.open {
        max-height: 400px;
    }

    .navbar .nav-links a {
        padding: 1rem 1.5rem;
        border-top: 1px solid var(--border-soft);
    }

    .nav-cta--mobile {
        display: inline-block;
        margin: 1rem 1.5rem 1.3rem;
        text-align: center;
        border-top: none !important;
    }

    .hero {
        padding: 7rem 1.3rem 3rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-sub {
        font-size: 1rem;
    }

    .section {
        padding: 4rem 1.3rem;
    }

    .service-card h3,
    .why-card h3 {
        min-height: 0;
    }
}

@media (max-width: 520px) {
    .hero h1 {
        font-size: 1.7rem;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        text-align: center;
    }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
}
