/*
 * Paulsun Development: the site's only stylesheet.
 *
 *  1. Fonts            6. Home page             11. Contact forms
 *  2. Base             7. Page headings         12. Blog lists and sidebar
 *  3. Buttons          8. Shared sections       13. Blog post
 *  4. Header and menu  9. Projects              14. Not found
 *  5. Footer          10. Project page          15. Motion
 *
 * Colours: gold #ce9e51, light gold #febd59, brown #6b4b17, grey text #888.
 * Breakpoints: 1100px (menu becomes ☰), 1024px (tablet), 767px (phone).
 */

/* ===== 1. Fonts (self-hosted, Latin only) ===== */

@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 300; font-display: swap; src: url(../fonts/poppins-300.woff2) format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/poppins-400.woff2) format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/poppins-500.woff2) format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/poppins-600.woff2) format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/poppins-700.woff2) format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 800; font-display: swap; src: url(../fonts/poppins-800.woff2) format('woff2'); }
@font-face { font-family: 'Roboto'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/roboto-400.woff2) format('woff2'); }
@font-face { font-family: 'Roboto'; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/roboto-500.woff2) format('woff2'); }
@font-face { font-family: 'Roboto'; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/roboto-600.woff2) format('woff2'); }
@font-face { font-family: 'Roboto'; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/roboto-700.woff2) format('woff2'); }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/montserrat-700.woff2) format('woff2'); }
@font-face { font-family: 'Teko'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/teko-400.woff2) format('woff2'); }
@font-face { font-family: 'Merriweather'; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/merriweather-700.woff2) format('woff2'); }
@font-face { font-family: 'Playfair Display'; font-style: italic; font-weight: 700; font-display: swap; src: url(../fonts/playfair-display-700i.woff2) format('woff2'); }
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/archivo-600.woff2) format('woff2'); }

/* ===== 2. Base ===== */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    font: 400 14px/25px 'Poppins', Arial, sans-serif;
    color: #000;
    background: #fff;
}

h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }

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

img, video { max-width: 100%; height: auto; display: block; }

button, input, textarea { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid #ce9e51; outline-offset: 2px; }

.icon { width: 1em; height: 1em; flex: none; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 10px; }
.container--wide { max-width: 1400px; }
.container--full { max-width: 1316px; }

.center { text-align: center; }

.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute; left: 10px; top: -60px; z-index: 300;
    padding: 10px 16px;
    background: #fff; color: #000;
    font-weight: 600;
}
.skip-link:focus { top: 10px; }

/* Dotted background pattern. */
.dots { background-image: radial-gradient(circle, rgba(0, 0, 0, .13) 1px, transparent 1.6px); background-size: 21px 21px; }

/* Background photos (used by the page headings and the photo cards). */
.bg-home { background-image: url(../images/heroes/home.webp); }
.bg-house-at-night { background-image: url(../images/heroes/house-at-night.webp); }
.bg-living-room { background-image: url(../images/heroes/living-room.webp); }
.bg-modern-house { background-image: url(../images/heroes/modern-house.webp); }
.bg-house-keys { background-image: url(../images/heroes/house-keys.webp); }
.bg-ravir { background-image: url(../images/heroes/ravir.webp); }
.bg-projects { background-image: url(../images/heroes/projects.webp); }
.bg-blueprint { background-image: url(../images/heroes/blueprint.webp); }
.bg-house-front { background-image: url(../images/home/house-front.webp); }

/* Small uppercase-ish heading above a title ("About us", "Why Choose Us"). */
.eyebrow {
    margin: 0 0 15px;
    font: 400 25px/1 'Teko', sans-serif;
    letter-spacing: 2px;
    color: #000;
}

/* "Our Recent Projects" style title. */
.section-title {
    margin: 0 0 10px;
    font: 600 45px/1.05 'Archivo', sans-serif;
    letter-spacing: -1px;
    color: #101010;
    text-align: center;
}
.section-title span { font: italic 700 1em/1 'Playfair Display', serif; letter-spacing: 0; color: #febd59; }

/* ===== 3. Buttons ===== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 0;
    cursor: pointer;
    transition: background-color .3s, color .3s, border-color .3s;
}
.btn svg { width: 12px; height: 12px; }

.btn--dark { padding: 16px 36px; background: #000; color: #fff; font: 500 15px/1 'Roboto', sans-serif; }
.btn--dark:hover { background: #ce9e51; }

.btn--hero {
    margin-top: 10px;
    padding: 10px 25px;
    border: 2px solid #fff;
    background: #fff;
    color: #ce9e51;
    font: 500 14px/20px 'Poppins', sans-serif;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.btn--hero:hover { background: transparent; color: #fff; }

.btn--white {
    margin-top: 20px;
    padding: 14px 30px 12px;
    background: #fff;
    color: #54595f;
    font: 500 15px/1 'Roboto', sans-serif;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.btn--white:hover { color: #ce9e51; }

.btn--outline {
    padding: 8px 20px;
    border: 1px solid #ce9e51;
    color: #ce9e51;
    font: 400 14px/25px 'Poppins', sans-serif;
}
.btn--outline .icon { width: 14px; height: 14px; }
.btn--outline:hover { background: #ce9e51; color: #fff; }
.btn--outline:hover .icon path { stroke: #ce9e51; }

.btn--pill {
    padding: 8px 28px;
    border: 1px solid #ce9e51;
    border-radius: 50px;
    background: transparent;
    color: #ce9e51;
    font: 400 14px/25px 'Poppins', sans-serif;
    letter-spacing: 1.1px;
    text-transform: uppercase;
}
.btn--pill:hover { background: #ce9e51; color: #fff; }
.btn--pill[disabled] { opacity: .6; cursor: wait; }

.btn--gold { padding: 12px 24px; border-radius: 3px; background: #cc9f52; color: #000; font: 500 15px/1 'Roboto', sans-serif; }
.btn--gold:hover { background: #000; color: #fff; }

/* ===== 4. Header and menu ===== */

.site-header { position: sticky; top: 0; z-index: 100; background: #000; }

.site-header__inner {
    display: flex;
    align-items: center;
    max-width: 1250px;
    height: 75px;
    margin: 0 auto;
    padding: 0 10px;
}

.site-logo__img { width: 223px; height: auto; }

.site-nav { margin: 0 auto; }

.menu { display: flex; list-style: none; padding: 0; }

.menu__item { position: relative; }

.menu__link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 25px 18px;
    font: 500 12px/25px 'Poppins', sans-serif;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #fff;
}
.menu__link svg { width: 9px; height: 6px; }
.menu__link::after {
    content: '';
    position: absolute; left: 18px; bottom: 20px;
    width: 12px; height: 1px;
    background: #ce9e51;
    opacity: 0;
    transition: opacity .3s;
}
.menu__link:hover::after, .menu__link:focus-visible::after, .menu__item.is-current > .menu__link::after { opacity: 1; }

.menu__expand { display: none; }

.menu__sub {
    position: absolute; top: 100%; left: 18px; z-index: 10;
    width: 185px;
    padding: 0 0 15px;
    list-style: none;
    background: #000;
    border-top: 2px solid #d5b27a;
    box-shadow: 0 2px 14px 2px rgba(0, 0, 0, .1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity .25s, transform .25s, visibility .25s;
}
.menu__item--parent:hover .menu__sub, .menu__item--parent:focus-within .menu__sub { opacity: 1; visibility: visible; transform: none; }

.menu__sublink {
    display: block;
    padding: 15px 20px 0 25px;
    font: 500 12px/21.6px 'Poppins', sans-serif;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #fff;
}
.menu__sublink:hover, .menu__sublink[aria-current] { color: #ce9e51; }

.nav-toggle, .site-nav__close { display: none; }

@media (max-width: 1100px) {
    .site-header__inner { height: 68px; justify-content: space-between; }
    .site-logo__img { width: 172px; }

    .nav-toggle {
        display: block;
        width: 40px; height: 40px;
        padding: 0;
        border: 0;
        background: none;
        cursor: pointer;
    }
    .nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
        display: block;
        width: 20px; height: 2px;
        margin: 0 auto;
        background: #fff;
    }
    .nav-toggle__bars { position: relative; }
    .nav-toggle__bars::before, .nav-toggle__bars::after { content: ''; position: absolute; left: 0; }
    .nav-toggle__bars::before { top: -7px; }
    .nav-toggle__bars::after { top: 7px; }

    .site-nav {
        position: fixed; inset: 0; z-index: 200;
        margin: 0;
        padding: 90px 15px 30px;
        overflow-y: auto;
        background: #fff;
        opacity: 0;
        visibility: hidden;
        transform: translateX(-30px);
        transition: opacity .3s, transform .3s, visibility .3s;
    }
    .site-nav.is-open { opacity: 1; visibility: visible; transform: none; }

    .site-nav__close {
        display: block;
        position: absolute; top: 18px; right: 15px;
        width: 40px; height: 40px;
        border: 0;
        background: none;
        cursor: pointer;
    }
    .site-nav__close::before, .site-nav__close::after {
        content: '';
        position: absolute; left: 10px; top: 19px;
        width: 20px; height: 2px;
        background: #555;
        transform: rotate(45deg);
    }
    .site-nav__close::after { transform: rotate(-45deg); }

    .menu { display: block; border-top: 1px solid #e5e5e5; }
    .menu__item { border-bottom: 1px solid #e5e5e5; }
    .menu__link { padding: 10px 50px 10px 0; font-size: 14px; color: #666; }
    .menu__link svg, .menu__link::after { display: none; }
    .menu__expand {
        display: block;
        position: absolute; top: 3px; right: 0;
        width: 40px; height: 40px;
        border: 0;
        background: none;
        color: #555;
        cursor: pointer;
    }
    .menu__expand svg { width: 12px; height: 8px; margin: 0 auto; transition: transform .3s; }
    .menu__expand[aria-expanded="true"] svg { transform: rotate(180deg); }
    .menu__sub {
        position: static;
        display: none;
        width: auto;
        padding: 0 0 12px 15px;
        border: 0;
        background: none;
        box-shadow: none;
        opacity: 1; visibility: visible; transform: none;
    }
    .menu__sub.is-open { display: block; }
    .menu__sublink { padding: 6px 0; color: #666; }

    body.menu-open { overflow: hidden; }
}

/* ===== 5. Footer ===== */

.site-footer__brand {
    position: relative;
    padding: 85px 20px 75px;
    background: #6b4b17;
    text-align: center;
}
.site-footer__brand::before {
    content: '';
    position: absolute; inset: 0;
    background: url(../images/site/world-map.webp) center / cover no-repeat;
    opacity: .2;
}
.site-footer__brand a { position: relative; display: inline-block; }
.site-footer__logo { width: 558px; margin: 0 auto; }

.site-footer__bar { padding: 15px 10px; background: #000; text-align: center; }
.site-footer__bar p { color: #a5a5a5; font: 400 15px/1.2 'Roboto', sans-serif; }

.back-to-top {
    position: fixed; right: 30px; bottom: 30px; z-index: 90;
    display: grid; place-items: center;
    width: 50px; height: 50px;
    border-radius: 50%;
    background: #ce9e51;
    color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, .15);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s, visibility .3s, background-color .3s;
}
.back-to-top svg { width: 14px; height: 18px; }
.back-to-top.is-visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: #000; }

@media (max-width: 767px) {
    .site-footer__brand { padding: 60px 20px; }
    .site-footer__bar p { font-size: 14px; }
    .back-to-top { right: 16px; bottom: 16px; width: 44px; height: 44px; }
}

/* ===== 6. Home page ===== */

.home-hero {
    position: relative;
    background-color: #2b2118;
    background-position: center;
    background-size: cover;
    color: #fff;
}
.home-hero::before { content: ''; position: absolute; inset: 0; background: rgba(0, 0, 0, .42); }
.home-hero__inner { position: relative; padding-top: 12%; padding-bottom: 10%; }
.home-hero__title {
    max-width: 900px;
    margin: 0 0 25px;
    font: 800 65px/91px 'Poppins', sans-serif;
    letter-spacing: 4px;
}
.outline { font-weight: 700; color: transparent; -webkit-text-stroke: 1px #fff; }
.home-hero__text { max-width: 750px; margin: 0 0 25px; font-size: 18px; font-weight: 300; line-height: 35px; }

/* About block with the photo card. */
.intro { padding: 120px 0; }
.intro__grid { display: grid; grid-template-columns: 41.66% 58.34%; align-items: center; }
.intro__text { padding: 40px 0 40px 40px; }
.intro__title { margin: 0 0 20px; font: 700 45px/48px 'Montserrat', sans-serif; color: #000; }
.intro__text p:not(.eyebrow) { color: #888; font-size: 16px; line-height: 2; }
.intro__text .btn { margin-top: 30px; }

.intro--about { padding: 90px 30px 120px; }
.intro--about .intro__grid { grid-template-columns: 1fr 1fr; }
.intro--about .years-badge .years-badge__big { font-size: 96px; }

.pillars { display: flex; list-style: none; padding: 0; }
.pillars li {
    padding: 0 10px;
    border-left: 2px solid #ddd;
    color: #888;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
}
.pillars li:first-child { padding-left: 0; border-left: 0; }

.years-badge {
    position: relative;
    isolation: isolate;
    width: 90%;
    height: 500px;
    background-position: center;
    background-size: cover;
}
.years-badge::after { content: ''; position: absolute; inset: 40px; z-index: -1; background: rgba(255, 255, 255, .95); }
.years-badge__since { position: absolute; top: 70px; right: 70px; color: #b19777; line-height: 1; text-transform: uppercase; }
.years-badge__since span { display: block; font-size: 22px; font-weight: 700; }
.years-badge__since span:first-child { font-size: 16px; font-weight: 600; letter-spacing: 2px; }
.years-badge__years { position: absolute; left: 70px; bottom: 70px; }
.years-badge .years-badge__big {
    margin: 20px 0 10px;
    font-size: 140px;
    font-weight: 800;
    line-height: 1;
    background-position: 18% 65%;
    background-size: auto;
    background-repeat: no-repeat;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.years-badge__small { margin: 10px 0; color: #b19777; font-size: 20px; font-weight: 500; line-height: 18px; letter-spacing: 5px; }

/* Our Recent Projects: photos that widen on hover. */
.featured { padding: 75px 0; }
.accordion { display: flex; gap: 6px; height: 460px; margin: 30px 0; }
.accordion__item {
    position: relative;
    flex: 1;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background: #222;
    transition: flex .6s ease;
}
.accordion__item--phone { display: none; }
.accordion__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.accordion__item.is-open, .accordion__item:hover, .accordion__item:focus-visible { flex: 3; }
.accordion:hover .accordion__item.is-open:not(:hover) { flex: 1; }
.accordion__caption {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 19px;
    width: 100%;
    padding: 70px 15px 30px;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, .85));
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .4s, transform .4s;
}
.accordion__item.is-open .accordion__caption, .accordion__item:hover .accordion__caption, .accordion__item:focus-visible .accordion__caption { opacity: 1; transform: none; }
.accordion:hover .accordion__item.is-open:not(:hover) .accordion__caption { opacity: 0; }
.accordion__icon {
    display: grid; place-items: center;
    width: 40px; height: 40px;
    border-radius: 50%;
    background: #fff;
    color: #000;
    transition: background-color .3s, color .3s;
}
.accordion__icon svg { width: 16px; height: 16px; }
.accordion__item:hover .accordion__icon { background: #ce9e51; color: #fff; }
.accordion__name { color: #fff; font: 600 23px/1.2 'Archivo', sans-serif; text-align: center; }

/* Numbers. */
.stats { padding: 30px 0 80px; background: #fff url(../images/site/world-map.webp) center top / cover no-repeat; }
.stats__grid { display: flex; justify-content: center; max-width: 1277px; }
.stat { width: 25%; text-align: center; }
.stat__icon { width: 150px; margin: 0 auto; }
.stat__number { margin-top: 10px; font: 700 25px/37px 'Montserrat', sans-serif; }
.stat__label { font: 600 25px/40px 'Poppins', sans-serif; }

/* Latest blog posts. */
.home-blog { padding: 80px 0; background-color: rgba(0, 0, 0, .19); }
.home-blog__title {
    margin: 10px 0 30px;
    color: #ce9e51;
    font: 700 30px/1.2 'Roboto', sans-serif;
    letter-spacing: 1px;
    text-align: center;
    text-transform: uppercase;
}
.home-blog .container { max-width: 1120px; }

@media (max-width: 1024px) {
    .home-hero__title { font-size: 52px; line-height: 70px; }
    .intro { padding: 60px 0; }
    .intro__title { font-size: 34px; line-height: 40px; }
    .years-badge__big { font-size: 110px; }
    .intro--about .years-badge .years-badge__big { font-size: 80px; }
    .promise__text { font-size: 30px; line-height: 42px; }
}

@media (max-width: 767px) {
    .home-hero__inner { padding-top: 32%; padding-bottom: 30%; }
    .home-hero__title { font-size: 44px; line-height: 58px; letter-spacing: 2px; }
    .home-hero__text { font-size: 14px; line-height: 22px; }

    .intro, .intro--about { padding: 0; }
    .intro__grid, .intro--about .intro__grid { grid-template-columns: 1fr; }
    .intro__text { padding: 30px 10px; }
    .intro__title { font-size: 22px; line-height: 28px; }
    .intro__text p:not(.eyebrow) { font-size: 14px; line-height: 1.7; }
    .intro--about .intro__media { padding: 10px; }

    .years-badge, .intro--about .years-badge { width: 100%; height: 420px; }
    .years-badge::after { inset: 24px; }
    .years-badge__since { top: 44px; right: 44px; }
    .years-badge__years { left: 44px; bottom: 44px; }
    .years-badge .years-badge__big { font-size: 120px; }
    .intro--about .years-badge { height: 210px; }
    .intro--about .years-badge::after { inset: 8px; }
    .intro--about .years-badge__since { top: 18px; right: 18px; }
    .intro--about .years-badge__since span { font-size: 12px; }
    .intro--about .years-badge__years { left: 20px; bottom: 16px; }
    .intro--about .years-badge .years-badge__big { font-size: 56px; margin: 0; }
    .intro--about .years-badge__small { font-size: 10px; letter-spacing: 2px; margin: 4px 0 0; }

    .featured { padding: 40px 0 30px; }
    .section-title { font-size: 30px; line-height: 1.1; }
    .accordion { flex-direction: column; height: 460px; margin: 20px 0 30px; }
    .accordion__item--phone { display: flex; }
    .accordion__caption { padding: 30px 15px 16px; gap: 8px; }
    .accordion__icon { width: 32px; height: 32px; }

    .stats { padding: 40px 0; }
    .stats__grid { flex-wrap: wrap; }
    .stat { width: 50%; }
    .stat__icon { width: 30%; min-width: 45px; }
    .stat__number, .stat__label { font-size: 15px; line-height: 1.6; }

    .home-blog { padding: 30px 0 0; }
    .home-blog .container { padding: 0; }
}

/* ===== 7. Page headings ===== */

.page-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    background-color: #1a1a1a;
    background-position: center;
    background-size: cover;
    color: #fff;
    text-align: center;
}
.page-hero::before { content: ''; position: absolute; inset: 0; background: #000; opacity: .5; }
.page-hero__inner { position: relative; max-width: 1140px; padding: 20px; }
.page-hero__title { font: 700 54px/1.1 'Roboto', sans-serif; letter-spacing: 10px; }

.page-hero--page-short { min-height: 396px; }

.page-hero--project { min-height: 290px; padding-top: 30px; }
.page-hero--project::before { opacity: .63; }
.page-hero--project .page-hero__title { font: 700 45px/1.1 'Montserrat', sans-serif; letter-spacing: 0; }

.page-hero--post { min-height: 450px; }
.page-hero--post::before { opacity: .85; }
.page-hero--post .page-hero__title { font: 600 36px/1.2 'Roboto', sans-serif; letter-spacing: 0; }

.breadcrumb { display: flex; justify-content: center; list-style: none; padding: 0; font: 400 18px/25px 'Roboto', sans-serif; }
.breadcrumb li + li::before { content: '\203A'; padding: 0 12px; font-size: 22px; font-weight: 700; }
.breadcrumb a:hover { color: #ce9e51; }

/* Customer care heading: text on the left. */
.care-hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 500px;
    background-position: center;
    background-size: cover;
    color: #fff;
}
.care-hero::before { content: ''; position: absolute; inset: 0; background: #000; opacity: .77; }
.care-hero .container { position: relative; width: 100%; }
.care-hero__title, .care-hero__text { max-width: 800px; }
.care-hero__title { font: 600 46px/47px 'Roboto', sans-serif; }
.care-hero__text { font: 200 23px/25px Arial, sans-serif; letter-spacing: -.7px; }

@media (max-width: 767px) {
    .page-hero, .page-hero--page-short { min-height: 172px; }
    .page-hero__title { font-size: 30px; letter-spacing: 6px; }
    .breadcrumb { font-size: 16px; }
    .page-hero--project { min-height: 160px; padding-top: 0; }
    .page-hero--project .page-hero__title { font-size: 35px; }
    .page-hero--post { min-height: 340px; }
    .page-hero--post .page-hero__title { font-size: 30px; }
    .care-hero { min-height: 315px; }
    .care-hero__title { font-size: 20px; line-height: 1.3; margin-bottom: 10px; }
    .care-hero__text { font-size: 12px; line-height: 1.5; letter-spacing: 0; }
}

/* ===== 8. Shared sections ===== */

/* Why choose us. */
.why-us { padding: 50px 0; background: #ececec; text-align: center; }
.why-us__title { margin: 0 0 10px; font: 600 38px/1.3 'Poppins', sans-serif; letter-spacing: 2px; color: #232323; }
.why-us__title span { color: #ce9e51; }
.why-us__intro { max-width: 60%; margin: 0 auto 35px; color: #616161; font: 400 16px/30px 'Roboto', sans-serif; }
.why-us__points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.why-us__number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 193px; height: 193px;
    margin-bottom: 5px;
    border: 2px solid #d3303a;
    border-radius: 50%;
    background: #000;
    color: #fff;
    font: 600 80px/1 'Poppins', sans-serif;
}
.why-us__point h3 { margin: 20px 0 10px; font: 600 24px/33.6px 'Poppins', sans-serif; color: #000; }
.why-us__point p { max-width: 380px; margin: 0 auto; color: #7a7a7a; font: 600 14px/25px 'Roboto', sans-serif; }

/* Promise banner. */
.promise {
    padding: 40px 0;
    background-color: #ce9e51;
    background-position: center;
    background-size: cover;
    background-blend-mode: multiply;
    color: #fff;
    text-align: center;
}
.promise__eyebrow { margin: 0 0 10px; font: 600 17px/1 'Roboto', sans-serif; text-transform: uppercase; }
.promise__text { font: 700 36px/48px 'Merriweather', serif; letter-spacing: 1px; }

@media (max-width: 767px) {
    .why-us { padding: 40px 0; }
    .why-us__title { font-size: 17px; line-height: 24px; }
    .why-us__intro { max-width: none; margin: 25px 6px; }
    .why-us__points { grid-template-columns: 1fr; gap: 30px; }
    .why-us__number { width: 157px; height: 157px; font-size: 66px; }
    .promise { padding: 30px 0; }
    .promise__eyebrow { margin-bottom: 20px; }
    .promise__text { font-size: 17px; line-height: 22px; }
}

/* ===== 9. Projects (Our Projects / Upcoming Projects) ===== */

.projects-page { padding: 60px 0 45px; text-align: center; }
.projects-page__intro { max-width: 780px; margin: 25px auto 0; color: #666; font: 400 16px/30px 'Roboto', sans-serif; }
.projects-list { padding: 30px 0 110px; }
.project-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 262px)); justify-content: center; gap: 50px 30px; }
.project-card { display: block; text-align: center; }
.project-card__img { width: 100%; aspect-ratio: 5 / 3; object-fit: cover; border-radius: 7px; box-shadow: 0 0 10px rgba(0, 0, 0, .5); transition: transform .3s; }
.project-card:hover .project-card__img { transform: translateY(-4px); }
.project-card__name { display: block; margin-top: 10px; font: 600 25px/1.1 'Poppins', sans-serif; color: #000; }

@media (max-width: 767px) {
    .projects-page { padding: 50px 0 30px; }
    .projects-list { padding: 10px 0 60px; }
    .project-grid { grid-template-columns: minmax(0, 280px); justify-content: center; gap: 30px; }
}

/* ===== 10. Project page ===== */

.gallery { display: grid; grid-template-columns: minmax(0, 67.4fr) minmax(0, 32.6fr); gap: 20px; align-items: start; padding: 30px 90px 0; }
.gallery__side { display: flex; flex-direction: column; gap: 10px; }
.gallery__photo, .gallery__side .carousel { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.gallery__video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #000; }

.carousel { position: relative; min-height: 0; overflow: hidden; aspect-ratio: 3 / 2; background: #eee; }
.carousel__track { display: flex; height: 100%; transition: transform .5s ease; }
.carousel__slide { position: relative; flex: 0 0 100%; height: 100%; }
.carousel__slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.carousel__arrow {
    position: absolute; top: 50%; z-index: 2;
    width: 26px; height: 26px;
    padding: 0;
    border: 0;
    background: none;
    color: #febd59;
    cursor: pointer;
    transform: translateY(-50%);
}
.carousel__arrow--prev { left: 10px; }
.carousel__arrow--next { right: 10px; }
.carousel__arrow svg { width: 100%; height: 100%; }
.carousel__arrow:hover { color: #ce9e51; }

.project-bar {
    display: grid;
    grid-template-columns: minmax(200px, 15.3%) 1fr;
    align-items: center;
    margin: 15px 0;
    padding: 20px 50px 20px 0;
    background: #000;
    box-shadow: 0 0 10px rgba(0, 0, 0, .5);
    color: #fff;
}
.project-bar__name { padding: 10px; font: 700 30px/33px 'Montserrat', sans-serif; letter-spacing: 1px; }
.project-bar__caption { font: 400 28px/1.2 'Roboto', sans-serif; text-align: center; }

.project-intro { display: grid; grid-template-columns: 65.5% 1fr; gap: 20px; padding: 30px 90px 0; }
.project-intro__photo img { width: 100%; }
.project-intro__text h2 { margin: 0 0 15px 10px; font: 600 30px/1.2 'Roboto', sans-serif; }
.project-intro__text p { margin: 0 0 10px; color: #7a7a7a; font: 400 14px/25px 'Roboto', sans-serif; text-align: justify; }

.register { padding: 25px 20px; text-align: center; }
.register__title { margin: 0 0 20px; font: 600 30px/1.2 'Roboto', sans-serif; }

@media (max-width: 1024px) {
    .gallery, .project-intro { grid-template-columns: 1fr; padding: 20px 20px 0; }
    .gallery__side { display: none; }
    .project-bar__caption { font-size: 22px; }
}
@media (max-width: 767px) {
    .gallery, .project-intro { padding: 10px 10px 0; }
    .project-bar { grid-template-columns: 1fr; padding: 10px; text-align: center; }
    .project-bar__name { padding: 0 0 6px; font-size: 30px; }
    .project-bar__caption { font-size: 15px; font-weight: 500; line-height: 25px; }
    .project-intro__text h2 { margin: 10px 0 12px; }
    .register__title { font-size: 28px; }
}

/* ===== 11. Contact forms ===== */

.contact { padding: 80px 0 150px; background: #f8f4f3; }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.contact__form-box { padding: 55px 40px 42px 50px; background: #fff; }
.contact__card { padding: 40px 20px 50px; background: #fff; box-shadow: 0 0 10px rgba(0, 0, 0, .1); text-align: center; }
.contact__photo { width: 500px; margin: 0 auto; }
.contact__icon { width: 30px; height: 30px; margin: 64px auto 20px; color: rgba(153, 153, 153, .66); }
.contact__heading { margin-bottom: 15px; color: #ce9e51; font: 400 20px/1 'Roboto', sans-serif; text-transform: uppercase; }
.contact__email { color: #888; font: 600 13px/26px 'Poppins', sans-serif; letter-spacing: 1px; }
.contact__email a:hover { color: #ce9e51; }

.contact-form { position: relative; }
.field { margin: 0 0 30px; }
.field input, .field textarea {
    display: block;
    width: 100%;
    border: 1px solid #ddd;
    background: #fdfdfd;
    color: #555;
    font: 400 15px/25px 'Poppins', sans-serif;
    transition: border-color .3s;
}
.field input { height: 43px; padding: 8px 15px 8px 40px; border-radius: 50px; }
.field textarea { height: 150px; padding: 6px 13px 6px 40px; border-radius: 15px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #888; opacity: 1; }
.field input:focus, .field textarea:focus { outline: none; border-color: #ce9e51; }
.field.is-invalid input, .field.is-invalid textarea { border-color: #dc3232; }
.field__error { display: block; margin: 4px 0 0 20px; color: #dc3232; font-size: 13px; line-height: 1.4; }

.contact-form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form__status { margin-top: 20px; font-size: 14px; line-height: 1.5; }
.contact-form__status:empty { display: none; }
.contact-form__status.is-sent { padding: 6px 14px; border: 2px solid #46b450; }
.contact-form__status.is-error { padding: 6px 14px; border: 2px solid #dc3232; }
.contact-form__status.is-invalid { padding: 6px 14px; border: 2px solid #ffb900; }
.contact-form__legal { margin-top: 15px; color: #888; font-size: 12px; line-height: 1.5; }
.contact-form__legal a { text-decoration: underline; }

@media (max-width: 767px) {
    .contact { padding: 10px 0 70px; }
    .contact__grid { grid-template-columns: 1fr; gap: 15px; }
    .contact__form-box { padding: 50px 10px 30px; }
    .contact__card { padding: 0 0 20px; }
    .contact__icon { margin-top: 60px; }
}

/* ===== 12. Blog lists and sidebar ===== */

.blog-list { padding: 60px 0 80px; }
.blog-list .container { max-width: 1140px; }

.post-card { display: grid; grid-template-columns: 1fr 1fr; align-items: center; }
.post-card__photo { position: relative; display: block; background: #ce9e51; }
.post-card__photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; opacity: .8; transition: opacity .3s; }
.post-card__photo:hover img { opacity: 1; }
.post-card__date { position: absolute; top: 5px; left: 5px; padding: 3px 10px; background: #1f1f1f; color: #fff; letter-spacing: .5px; }
.post-card__body {
    position: relative; z-index: 2;
    margin-left: -40px;
    padding: 36px;
    background: #fff;
    box-shadow: 0 1px 5px rgba(3, 3, 3, .15);
}
.post-card--reverse .post-card__photo { order: 2; }
.post-card--reverse .post-card__date { left: auto; right: 5px; }
.post-card--reverse .post-card__body { margin: 0 -40px 0 0; }

.post-card__tags { display: flex; align-items: center; gap: 6px; color: #ce9e51; font-size: 14px; font-weight: 500; line-height: 21px; }
.post-card__tags a:hover { color: #000; }
.post-card__title { margin: 10px 0 15px; font: 700 24px/33.6px 'Poppins', sans-serif; }
.post-card__title a:hover { color: #ce9e51; }
.post-card__excerpt { margin: 0 0 20px; }
.post-card__meta { display: flex; flex-wrap: wrap; gap: 0 18px; padding: 20px 0 0; list-style: none; border-top: 1px dashed #ddd; color: #888; font-size: 13px; line-height: 19.5px; }
.post-card__meta li { display: flex; align-items: center; gap: 5px; }
.post-card__meta a:hover { color: #ce9e51; }
.post-card__meta .icon { width: 12px; height: 12px; }

.post-card--flat { align-items: stretch; background: #fff; }
.post-card--flat .post-card__photo img { height: 100%; }
.post-card--flat .post-card__body { margin: 0; box-shadow: none; }
.post-card--flat .post-card__title { font-weight: 500; }

/* Category, tag and search pages. */
.archive { padding: 80px 0; }
.archive__grid { display: grid; grid-template-columns: minmax(0, 750px) 324px; justify-content: space-between; gap: 40px; }
.archive__heading { margin: 0 0 40px; padding-bottom: 20px; border-bottom: 1px solid #eee; font: 600 20px/1.3 'Poppins', sans-serif; text-transform: uppercase; }
.archive__empty { margin-bottom: 30px; }

.entry { margin-bottom: 60px; padding-bottom: 60px; border-bottom: 1px solid #eee; }
.entry__photo { display: block; margin-bottom: 30px; background: #000; }
.entry__photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.entry__title { margin: 0 0 20px; font: 600 30px/42px 'Poppins', sans-serif; }
.entry__title a:hover { color: #ce9e51; }
.entry__meta { display: flex; flex-wrap: wrap; gap: 0 20px; list-style: none; padding: 0; color: #888; }
.entry__meta li { display: flex; align-items: center; gap: 6px; margin-bottom: 15px; }
.entry__meta .icon { width: 15px; height: 15px; color: #ce9e51; }
.entry__meta a:hover { color: #ce9e51; }
.entry__excerpt { margin: 5px 0 30px; }

.sidebar .widget { padding-bottom: 60px; }
.search-box { position: relative; margin-bottom: 60px; }
.search-box input {
    width: 100%; height: 45px;
    padding: 5px 50px 5px 10px;
    border: 1px solid rgba(0, 0, 0, .1);
    background: #fdfdfd;
    color: #555;
    font-size: 15px;
}
.search-box input:focus { outline: none; border-color: #ce9e51; }
.search-box button {
    position: absolute; top: 0; right: 0;
    width: 45px; height: 45px;
    border: 0; border-left: 1px solid rgba(0, 0, 0, .1);
    background: none;
    color: #ce9e51;
    cursor: pointer;
}
.search-box .icon { width: 14px; height: 14px; margin: 0 auto; }

.widget__title {
    position: relative;
    margin: 0 0 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    font: 600 17px/1 'Poppins', sans-serif;
    text-transform: uppercase;
}
.widget__title::after { content: ''; position: absolute; left: 0; bottom: -1px; width: 50px; height: 2px; background: #ce9e51; }

.mini-post { display: flex; gap: 15px; margin-bottom: 15px; padding-bottom: 15px; border-bottom: 1px solid #eee; }
.mini-post__img { width: 75px; height: 75px; object-fit: cover; }
.mini-post__title { display: block; margin-bottom: 4px; font-size: 13px; line-height: 18.2px; }
.mini-post:hover .mini-post__title { color: #ce9e51; }
.mini-post time { font-size: 12px; }

.tag-cloud { display: flex; flex-wrap: wrap; gap: 5px; }
.tag-cloud a { padding: 4px 10px; border: 1px solid #ebebeb; color: #777; font-size: 13px; letter-spacing: 1px; transition: border-color .3s, color .3s; }
.tag-cloud a:hover { border-color: #ce9e51; color: #ce9e51; }

.category-list { list-style: none; padding: 0; }
.category-list li { display: flex; align-items: center; justify-content: space-between; margin: 15px 0; }
.category-list a::before { content: '\203A'; margin-right: 8px; color: #ce9e51; }
.category-list a:hover { color: #ce9e51; }
.category-list span { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; background: #f1f1f1; font-size: 13px; }

@media (max-width: 1024px) {
    .archive__grid { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
    .blog-list { padding: 60px 10px 40px; }
    .post-card, .post-card--flat { grid-template-columns: 1fr; margin-bottom: 20px; }
    .post-card--reverse .post-card__photo { order: 0; }
    .post-card__body, .post-card--reverse .post-card__body { margin: 0; box-shadow: none; }
    .post-card__title { font-size: 22px; line-height: 1.4; }
    .archive { padding: 50px 0; }
    .entry__title { font-size: 24px; line-height: 1.4; }
}

/* ===== 13. Blog post ===== */

.article-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 350px;
    gap: 40px;
    max-width: 1400px;
    margin: 30px auto;
    padding: 0 60px;
}
.article__title { margin: 0 0 12px; font: 600 36px/1.15 'Roboto', sans-serif; }
.article__meta { margin-bottom: 20px; color: #888; }
.article__meta a:hover { color: #ce9e51; }
.article__photo { width: 100%; margin-bottom: 20px; }
.article__body { color: #7a7a7a; font: 400 14px/25px 'Roboto', sans-serif; text-align: justify; }
.article__body p { margin: 0 0 30px; }
.article__body ul, .article__body ol { margin: 0 0 30px; padding-left: 15px; }
.article__body ul { list-style: square; }
.article__body li { margin: 0; }
.article__body strong { color: #555; }
.article__body a { color: #ce9e51; text-decoration: underline; }

.latest { padding-top: 10px; }
.latest__title { margin: 0 0 40px; font: 600 32px/1 'Roboto', sans-serif; }
.latest__item { display: flex; align-items: center; gap: 15px; margin-bottom: 25px; }
.latest__img { flex: none; width: 100px; height: 67px; object-fit: cover; }
.latest__text time { display: flex; align-items: center; gap: 6px; color: #7f8595; font-size: 12px; line-height: 1.4; }
.latest__name { display: block; padding-left: 10px; }
.latest__item:hover .latest__name { color: #ce9e51; }

@media (max-width: 1024px) {
    .article-layout { grid-template-columns: 1fr; padding: 0 30px; }
}
@media (max-width: 767px) {
    .article-layout { padding: 0 20px; }
    .article__title { font-size: 32px; }
    .article__body { text-align: left; }
}

/* ===== 14. Not found ===== */

.not-found { padding: 80px 0; text-align: center; }
.not-found__code {
    display: inline-block;
    margin: 20px 0 40px;
    padding: 10px 60px;
    border: 15px double #ce9e51;
    color: #333;
    font: 600 200px/280px 'Roboto', sans-serif;
}
.not-found__text { margin: 0 0 30px; color: #333; font: 400 20px/25px 'Roboto', sans-serif; }

@media (max-width: 767px) {
    .not-found { padding: 50px 0; }
    .not-found__code { padding: 10px 30px; font-size: 100px; line-height: 150px; }
}

/* ===== 15. Motion ===== */

/* Hero heading: letters rise in one after another (assets/js/main.js splits them). */
.is-split .char { display: inline-block; opacity: 0; transform: translateY(40%); animation: char-in .6s ease forwards; animation-delay: calc(var(--i) * 45ms + .2s); }
.home-hero__text, .home-hero .btn { animation: fade-up .8s ease both; }
.home-hero__text { animation-delay: 1s; }
.home-hero .btn { animation-delay: 1.5s; }

@keyframes char-in { to { opacity: 1; transform: none; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    .is-split .char { opacity: 1; transform: none; }
}
