/* Base */
:root {
    --color-text: #233142;
    --color-text-soft: #5f6d79;
    --color-bg: #eef1f4;
    --color-dark: #10161d;
    --color-accent: #3b6f9f;
    --color-accent-strong: #2b577d;
    --color-steel: #223244;
    --shadow-sm: 0 8px 22px rgba(16, 22, 29, 0.08);
    --shadow-md: 0 14px 38px rgba(16, 22, 29, 0.13);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Source Sans Pro', sans-serif;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    background-image:
        radial-gradient(circle at 8% 10%, rgba(34, 50, 68, 0.08) 0%, transparent 45%),
        radial-gradient(circle at 90% 18%, rgba(59, 111, 159, 0.11) 0%, transparent 40%),
        linear-gradient(180deg, #f6f8fa 0%, #edf1f5 100%);
    font-weight: 400;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.2;
}

.section__title {
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--color-steel);
    position: relative;
    padding-bottom: 1.5rem;
}

.section__title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-steel), var(--color-accent));
}

.section__subtitle {
    font-size: 1.3rem;
    text-align: center;
    color: var(--color-text-soft);
    margin-bottom: 4rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 300;
    line-height: 1.8;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(249, 251, 253, 0.96);
    backdrop-filter: blur(20px);
    z-index: 1000;
    box-shadow: 0 8px 28px rgba(16, 22, 29, 0.08);
    transition: background 0.3s ease, box-shadow 0.3s ease;
    border-bottom: 1px solid rgba(34, 50, 68, 0.16);
}

.header--scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.nav {
    padding: 1.5rem 0;
}

.nav__wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo__link {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    text-decoration: none;
}

.logo__img {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.logo__text {
    display: inline-block;
    font-size: 1.4rem;
    font-weight: 700;
    color: #1a1a1a;
    font-family: 'Playfair Display', serif;
    letter-spacing: -0.5px;
    transition: opacity 0.2s ease;
}

.logo__link:hover .logo__text {
    opacity: 0.85;
}

.nav__menu {
    display: flex;
    list-style: none;
    gap: 3rem;
}

.nav__link {
    text-decoration: none;
    color: #34485a;
    font-weight: 500;
    transition: color 0.2s ease;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-steel), var(--color-accent));
    transition: width 0.2s ease;
}

.nav__link:hover {
    color: #1a1a1a;
}

.nav__link:hover::after {
    width: 100%;
}

.nav__link.active {
    color: var(--color-accent-strong);
}

.nav__link:focus-visible,
.btn:focus-visible,
.logo__text:focus-visible {
    outline: 2px solid var(--color-accent-strong);
    outline-offset: 3px;
}

.nav__toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav__toggle span {
    width: 25px;
    height: 2px;
    background: var(--color-accent);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #10161d 0%, #1b2a39 58%, #2d3f52 100%);
    overflow: hidden;
}

.hero__content {
    text-align: center;
    color: #f7f9fb;
    max-width: 800px;
    margin: 0 auto;
}

.hero__title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-family: 'Playfair Display', serif;
    line-height: 1.1;
    animation: fadeInUp 1s ease;
    color: #ffffff;
    text-shadow: 0 6px 18px rgba(0, 0, 0, 0.42);
}

.hero__subtitle {
    font-size: 1.4rem;
    margin-bottom: 3rem;
    opacity: 0.95;
    font-weight: 300;
    animation: fadeInUp 1s ease 0.2s;
    animation-fill-mode: both;
    color: rgba(239, 244, 248, 0.92);
    line-height: 1.6;
}

.hero__buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    animation: fadeInUp 1s ease 0.4s;
    animation-fill-mode: both;
}

/* Buttons */
.btn {
    padding: 18px 45px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    display: inline-block;
    cursor: pointer;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 26px rgba(16, 22, 29, 0.18);
}

.btn--primary {
    background: linear-gradient(135deg, var(--color-steel) 0%, #30465d 100%);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.btn--primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #3a536d 0%, #1f2f40 75%, #2f5d8a 100%);
    transition: left 0.2s ease;
    z-index: -1;
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(16, 22, 29, 0.34);
}

.btn--primary:hover::before {
    left: 0;
}

.btn--secondary {
    background: rgba(255, 255, 255, 0.06);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(10px);
}

.btn--secondary:hover {
    background: rgba(255, 255, 255, 0.94);
    color: var(--color-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
    border-color: white;
}

.hero__buttons .btn {
    min-width: 235px;
    text-align: center;
    letter-spacing: 1.2px;
    transform: none;
    animation: none;
    transition: box-shadow 0.18s ease, border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.hero__buttons .btn--primary {
    background: linear-gradient(135deg, #223244 0%, #2f445a 100%);
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.hero__buttons .btn--primary::before {
    content: none;
}

.hero__buttons .btn--primary:hover,
.hero__buttons .btn--primary:focus-visible {
    transform: none;
    background: linear-gradient(135deg, #283a4d 0%, #364f67 100%);
    border-color: rgba(95, 150, 204, 0.52);
    box-shadow: 0 10px 22px rgba(16, 22, 29, 0.28);
}

.hero__buttons .btn--primary:active {
    transform: none;
    background: linear-gradient(135deg, #1b2836 0%, #263849 100%);
    border-color: rgba(95, 150, 204, 0.56);
    box-shadow: inset 0 0 0 1px rgba(95, 150, 204, 0.3), 0 6px 14px rgba(16, 22, 29, 0.24);
}

.hero__buttons .btn--secondary {
    background: rgba(255, 255, 255, 0.08);
    color: #f4f8fc;
    border-color: rgba(255, 255, 255, 0.62);
    box-shadow: 0 10px 22px rgba(11, 18, 27, 0.2);
}

.hero__buttons .btn--secondary:hover,
.hero__buttons .btn--secondary:focus-visible {
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    transform: none;
    box-shadow: 0 10px 22px rgba(11, 18, 27, 0.24);
    border-color: rgba(95, 150, 204, 0.52);
}

.hero__buttons .btn--secondary:active {
    transform: none;
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    border-color: rgba(95, 150, 204, 0.56);
    box-shadow: inset 0 0 0 1px rgba(95, 150, 204, 0.26), 0 6px 14px rgba(11, 18, 27, 0.2);
}

.hero__buttons .btn:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.85);
    outline-offset: 3px;
}

/* About Section */
.about {
    padding: 84px 0 56px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.about__header {
    text-align: center;
    margin-bottom: 3.6rem;
}

.mission__quote {
    font-size: 1.6rem;
    font-style: italic;
    color: #4a4a4a;
    max-width: 750px;
    margin: 2rem auto 0;
    font-family: 'Playfair Display', serif;
    line-height: 1.6;
    position: relative;
    padding: 0 2rem;
}

.mission__quote::before,
.mission__quote::after {
    content: '"';
    font-size: 4rem;
    color: rgba(52, 73, 94, 0.2);
    position: absolute;
    font-family: 'Playfair Display', serif;
}

.mission__quote::before {
    top: -1rem;
    left: 0;
}

.mission__quote::after {
    bottom: -3rem;
    right: 0;
}

.about__features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.2rem;
    margin-bottom: 1.2rem;
}

.feature {
    text-align: center;
    padding: 1.35rem 1.1rem;
}

.feature__title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--color-steel);
    font-family: 'Playfair Display', serif;
}

.feature__description {
    color: var(--color-text-soft);
    line-height: 1.8;
    font-weight: 300;
}

/* Services Section */
.services {
    padding: 100px 0;
    background:
        linear-gradient(180deg, #edf2f7 0%, #e7edf4 100%),
        radial-gradient(circle at 12% 14%, rgba(59, 111, 159, 0.08) 0%, transparent 44%);
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    column-gap: 1.8rem;
    row-gap: 3.2rem;
    align-items: center;
}

.service-card {
    background: #ffffff;
    padding: 0 1.25rem 1.35rem;
    text-align: left;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
    border: 1px solid rgba(34, 50, 68, 0.14);
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
}

.service-card__media {
    margin: 0 -1.25rem 1rem;
    height: 220px;
    overflow: hidden;
    background: #dce5ef;
}

.service-card--featured .service-card__media {
    height: 330px;
}

.service-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: filter 0.2s ease;
}

.service-card:hover {
    box-shadow: var(--shadow-md);
    border-color: rgba(59, 111, 159, 0.34);
}

.service-card:hover .service-card__media img {
    filter: brightness(1.02);
}

.service-card__meta {
    padding-top: 0.2rem;
}

.service-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: linear-gradient(145deg, #253f59 0%, #3b6693 100%);
    color: #eef4fb;
    margin-bottom: 0.7rem;
    box-shadow: 0 6px 14px rgba(16, 22, 29, 0.18);
}

.service-card:hover .service-card__icon {
    background: linear-gradient(145deg, #2b4a67 0%, #4a78a7 100%);
}

.service-card__title {
    font-size: 1.24rem;
    margin-bottom: 0.55rem;
    color: var(--color-steel);
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 700;
    line-height: 1.3;
}

.service-card__description {
    color: var(--color-text-soft);
    line-height: 1.6;
    font-size: 0.97rem;
    font-weight: 400;
    margin-bottom: 0;
}

/* Icon set (no emoji, SVG mask icons) */
.service-card__icon::before,
.contact-item__icon::before {
    content: '';
    display: block;
    background-color: currentColor;
    -webkit-mask: var(--icon) center / contain no-repeat;
    mask: var(--icon) center / contain no-repeat;
}

.service-card__icon::before {
    width: 20px;
    height: 20px;
}

.contact-item__icon::before {
    width: 26px;
    height: 26px;
}

.icon-renovation {
    --icon: url("images/icons/tabler/home.svg");
}

.icon-kitchen {
    --icon: url("images/icons/tabler/tools-kitchen-2.svg");
}

.icon-bathroom {
    --icon: url("images/icons/tabler/bath.svg");
}

.icon-floor {
    --icon: url("images/icons/tabler/layout-grid.svg");
}

.icon-paint {
    --icon: url("images/icons/tabler/paint.svg");
}

.icon-handyman {
    --icon: url("images/icons/tabler/tool.svg");
}

.icon-phone {
    --icon: url("images/icons/tabler/phone.svg");
}

.icon-email {
    --icon: url("images/icons/tabler/at.svg");
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background: linear-gradient(180deg, #eef3f8 0%, #e8eef5 100%);
}

.contact__header {
    text-align: center;
    margin-bottom: 3.2rem;
}

.contact__content {
    max-width: 940px;
    margin: 0 auto;
}

.contact__info {
    display: grid;
    grid-template-columns: repeat(2, minmax(280px, 1fr));
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.7rem 1.8rem;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.97) 0%, rgba(245, 249, 254, 0.97) 100%);
    box-shadow: 0 10px 24px rgba(16, 22, 29, 0.09);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid rgba(34, 50, 68, 0.14);
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.contact-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #2f4f70, #3f6f9f);
    opacity: 0.8;
}

.contact-item:hover {
    box-shadow: 0 16px 32px rgba(16, 22, 29, 0.13);
    border-color: rgba(63, 111, 159, 0.38);
}

.contact-item__icon {
    flex: 0 0 58px;
    height: 58px;
    background: linear-gradient(145deg, #243a52 0%, #355a80 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f1f5f9;
    transition: box-shadow 0.2s ease, background 0.2s ease;
    position: relative;
}

.contact-item__icon::before {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.contact-item:hover .contact-item__icon {
    background: linear-gradient(145deg, #2a4561 0%, #3f6d9a 100%);
    box-shadow: 0 8px 18px rgba(16, 22, 29, 0.24);
}

.contact-item__text {
    min-width: 0;
}

.contact-item__text h4 {
    font-size: 0.84rem;
    margin-bottom: 0.34rem;
    color: var(--color-steel);
    text-transform: uppercase;
    letter-spacing: 0.11em;
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 700;
}

.contact-item__text p {
    color: #3a4d61;
    font-weight: 500;
    font-size: 1.02rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

a.contact-item {
    text-decoration: none;
    color: inherit;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #10161d 0%, #1b2a39 58%, #2d3f52 100%);
    color: #edf3f8;
    padding: 80px 0 40px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
}

.footer__content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer__brand h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: white;
    font-weight: 700;
}

.footer__logo {
    width: 92px;
    height: auto;
    object-fit: contain;
    margin-bottom: 1rem;
}

.footer__brand p {
    opacity: 0.8;
    font-weight: 300;
    line-height: 1.6;
    color: #c1ccd7;
}

.footer__links h4,
.footer__contact h4 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: #7eadd4;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.footer__links ul {
    list-style: none;
}

.footer__links li {
    margin-bottom: 0.5rem;
}

.footer__links a {
    color: #ecf0f1;
    text-decoration: none;
    opacity: 0.7;
    transition: opacity 0.25s ease;
    position: relative;
    display: inline-block;
}

.footer__links a::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #7eadd4;
    transition: width 0.3s ease;
}

.footer__links a:hover {
    opacity: 1;
}

.footer__links a:hover::before {
    width: 100%;
}

.footer__contact p {
    margin-bottom: 0.8rem;
}

.footer__contact a {
    color: #ecf0f1;
    text-decoration: none;
    opacity: 0.7;
    font-weight: 300;
    transition: opacity 0.25s ease;
}

.footer__contact a:hover {
    opacity: 1;
}

.footer__bottom {
    text-align: center;
    padding-top: 3rem;
    border-top: 1px solid rgba(44, 62, 80, 0.2);
    opacity: 0.6;
    margin-top: 3rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .services__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .service-card--featured .service-card__media {
        height: 280px;
    }
}

@media (max-width: 768px) {
    .nav__menu {
        position: fixed;
        top: 70px;
        right: -100%;
        background: white;
        flex-direction: column;
        padding: 2rem;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        border-left: 1px solid #f0f0f0;
    }

    .nav__menu.active {
        right: 0;
    }

    .hero__buttons {
        flex-direction: column;
        align-items: center;
    }

    .section__title {
        font-size: 2.5rem;
    }

    .about__features {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .services__grid {
        grid-template-columns: 1fr;
    }

    .contact__info {
        grid-template-columns: 1fr;
    }

    .footer__content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .logo__img {
        width: 34px;
        height: 34px;
    }

    .logo__text {
        font-size: 1.15rem;
    }

    .nav__toggle {
        display: flex;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    section {
        padding: 60px 0;
    }

    .hero {
        min-height: 80vh;
        padding: 100px 0 80px;
    }

    .hero__title {
        font-size: 2rem;
    }

    .mission__quote {
        font-size: 1.2rem;
    }

    .feature {
        padding: 1.5rem;
    }

    .service-card {
        padding: 0 1rem 1.15rem;
    }

    .service-card__media {
        margin: 0 -1rem 0.9rem;
        height: 190px;
    }

    .service-card--featured .service-card__media {
        height: 190px;
    }

    .service-card__title {
        font-size: 1.08rem;
    }

    .service-card__description {
        font-size: 0.9rem;
    }

    .contact-item {
        padding: 1rem;
    }

    .btn {
        padding: 12px 30px;
        font-size: 0.9rem;
    }
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}