/* ===========================
   GLOBAL STYLES — Kteam Architects
   =========================== */

/* ---------- CSS Variables ---------- */
:root {
    --color-cream: #fbfaf5;
    --color-white: #ffffff;
    --color-dark: #292929;
    --color-black: #000000;
    --color-gray: #505050;
    --color-gray-lt: #888888;
    --color-border: #d1d1d1;
    --color-gold: #de9633;
    --color-step-1: #fbfaf5;
    --color-step-2: #f3f0e1;
    --color-step-3: #e6dfc2;

    --font-serif: 'Lora', Georgia, serif;
    --font-sans: 'Poppins', sans-serif;

    --side-rail-w: clamp(80px, 9.66vw, 146px); /* consistent across all sections */
    --header-h: clamp(64px, 6.08vw, 92px);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html {
    scroll-behavior: smooth;
}
body {
    font-family: var(--font-sans);
    font-size: 16px;
    color: var(--color-black);
    background: var(--color-white);
    -webkit-font-smoothing: antialiased;
}
img,
svg {
    display: block;
    max-width: 100%;
}
a {
    text-decoration: none;
    color: inherit;
}
ul,
ol {
    list-style: none;
}

/* ---------- Scroll Reveal ---------- */
.scroll-fx {
    opacity: 0;
    transform: translateY(18px);
    transition:
        opacity 0.6s ease,
        transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--scroll-delay, 0ms);
    will-change: opacity, transform;
}

.scroll-fx.is-visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .scroll-fx {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* ---------- Typography ---------- */
.t-label {
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 1.68px;
    line-height: 1.3;
    color: var(--color-gray-lt);
    text-transform: uppercase;
}

.t-h1 {
    font-family: var(--font-serif);
    font-size: clamp(36px, 4.23vw, 64px);
    font-weight: 400;
    line-height: 1.1;
    text-transform: uppercase;
}

.t-h2 {
    font-family: var(--font-serif);
    font-size: clamp(28px, 3.7vw, 56px);
    font-weight: 400;
    line-height: 1.15;
    text-transform: uppercase;
}

.t-h3 {
    font-family: var(--font-serif);
    font-size: clamp(22px, 2.65vw, 40px);
    font-weight: 400;
    line-height: 1.25;
}

.t-h4 {
    font-family: var(--font-serif);
    font-size: clamp(18px, 2.12vw, 32px);
    font-weight: 400;
    line-height: 1.3;
}

.t-h5 {
    font-family: var(--font-serif);
    font-size: clamp(16px, 1.59vw, 24px);
    font-weight: 400;
    line-height: 1.35;
}
h1,
h2 {
    text-transform: uppercase;
}

.t-body {
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 300;
    line-height: 1.65;
    color: var(--color-gray);
}

.t-nav {
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.65;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 16px;
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.65;
    cursor: pointer;
    border: none;
    background: transparent;
    transition: opacity 0.2s;
}
.btn:hover {
    opacity: 0.8;
}

/* Filled white — used in hero CTA and hero main button */
.btn--white {
    background: var(--color-white);
    color: var(--color-black);
}

/* Ghost white — nav "Get free consultation" */
.btn--ghost-white {
    background: transparent;
    color: var(--color-white);
}

/* Text only — "Read more", "Leave review", etc. */
.btn--text {
    padding: 8px 0;
    background: transparent;
    color: var(--color-black);
}
.btn--text svg {
    transition: all 0.3s ease 0s;
}
.btn--text:hover svg {
    transform: rotate(45deg);
}

/* Round circle button (arrow down) */
.btn--circle {
    width: 42px;
    height: 42px;
    padding: 8px 16px;
    border-radius: 100px;
    border: 1px solid var(--color-white);
    color: var(--color-white);
}
.btn--circle-dark {
    width: 42px;
    height: 42px;
    padding: 8px 16px;
    border-radius: 100px;
    border: 1px solid var(--color-border);
    color: var(--color-black);
}
.btn--circle-solid {
    border-color: var(--color-black);
}

/* ---------- Icon helpers ---------- */
.icon {
    display: flex;
    align-items: center;
    justify-content: center;
    
}
.icon-20 {
    width: 20px;
    height: 20px;
}
.icon-24 {
    width: 24px;
    height: 24px;
}

/* ---------- Side rail ---------- */
.side-rail {
    width: var(--side-rail-w);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid var(--color-border);
}

.side-rail__label {
    writing-mode: vertical-rl;
    text-orientation: upright;
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 1.68px;
    line-height: 1.3;
    color: var(--color-gray-lt);
    text-transform: uppercase;
    padding: 10px;
}

/* ---------- Container ---------- */
.container {
    width: 100%;
    max-width: 1520px;
    margin: 0 auto;
    display: flex;
}

/* ---------- Unified Header ---------- */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--color-cream);

    /* border-bottom: 1px solid var(--color-border); */
}
.header .header__right svg {
    filter: invert(1);
}
.header.sticky {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.header--home {
    background: transparent;
    border-bottom: 0px solid rgba(255, 255, 255, 0.28);
}

.header--home.sticky {
    box-shadow: none;
    background: #252424;
}

.header--home .main-nav > li > a,
.header--home .main-nav > li > a.current-ref {
    color: #fff;
}

.header--home .logo {
    border-right: 1px solid rgba(255, 255, 255, 0.28);
}

.header--home .header__right .btn {
    color: #fff;
    background: transparent;
    padding: 8px 0;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.header__right .btn:hover svg {
    transform: rotate(45deg);
}
.header__right .btn svg {
    transition: all 0.3s ease 0s;
}
.header--home .menu-toggle::before,
.header--home .menu-toggle::after,
.header--home .menu-toggle small {
    background: #fff;
}
.header--home .header__right svg {
    filter: invert(0);
}
.header.sticky {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.header > .container {
    display: block;
}

.header-box {
    padding-right: clamp(24px, 3.17vw, 48px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: var(--header-h);
}

.logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    height: var(--header-h);
    padding: 0;
    width: var(--side-rail-w);
    border-right: 1px solid var(--color-border);
}

.logo img {
    width: clamp(98px, 6.48vw, 98px);
    height: auto;
    display: block;
}

.header-box > nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex: 1;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 0;
}

.main-nav > li {
    position: relative;
}

.main-nav > li > a {
    display: inline-flex;
    align-items: center;
    padding: 8px clamp(8px, 1.06vw, 16px);
    color: var(--color-dark);
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.65;
    transition: opacity 0.2s;
}

.main-nav > li > a:hover {
    opacity: 0.65;
}

.main-nav > li > a.current-ref {
    opacity: 0.65;
}

.main-nav > li > i {
    display: none;
}

.header__right {
    display: flex;
    align-items: center;
}

.header__right .btn {
    text-decoration: underline;
    color: #000;
    border: none;
    padding: 8px 16px;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.65;
}

.menu-toggle-box {
    display: none;
}

.menu-toggle {
    position: relative;
    width: 24px;
    height: 18px;
    display: block;
    cursor: pointer;
}

.menu-toggle::before,
.menu-toggle::after,
.menu-toggle small {
    content: '';
    position: absolute;
    left: 0;
    width: 24px;
    height: 2px;
    background: #000;
    transition:
        transform 0.25s ease,
        opacity 0.25s ease,
        top 0.25s ease;
}

.menu-toggle::before {
    top: 0;
}
.menu-toggle small {
    top: 8px;
}
.menu-toggle::after {
    top: 16px;
}

.menu-toggle.is-active::before {
    top: 8px;
    transform: rotate(45deg);
}

.menu-toggle.is-active small {
    opacity: 0;
}

.menu-toggle.is-active::after {
    top: 8px;
    transform: rotate(-45deg);
}
.logo-mob {
    display: none;
}
@media (max-width: 767px) {
    :root {
        --header-h: 72px;
    }

    .logo-mob {
        display: block;
    }
    .logo {
        padding: 0;
        border-right: 0px solid var(--color-border) !important;
    }
    .header-box {
        min-height: 72px;
        gap: 12px;
        padding: 0 16px;
    }
    .menu-menu-container {
        width: 100%;
        border-top: 1px solid var(--color-border);
        border-bottom: 1px solid var(--color-border);
    }
    body.is-active .header--home .menu-toggle::before,
    body.is-active .header--home .menu-toggle::after,
    body.is-active.header--home .menu-toggle small {
        background: #1a1a1a;
    }
    .header-box > nav {
        box-shadow: 0px 4px 20px 0px rgba(41, 41, 41, 0.08);

        position: fixed;
        top: 0px;
        right: 0;
        height: fit-content;
        width: 100%;
        background: var(--color-cream);
        border-left: 1px solid var(--color-border);
        transform: translateX(100%);
        transition: transform 0.28s ease;
        z-index: 91;
        padding: 12px 24px 24px;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 24px;
        overflow-y: auto;
    }

    .header nav.is-active {
        transform: translateX(0);
    }

    .main-nav {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
    }

    .main-nav > li {
        width: 100%;
    }

    .main-nav > li > a {
        width: 100%;
        padding: 14px 0;
        font-size: 16px;
    }

    .header--home .main-nav > li > a,
    .header--home .main-nav > li > a.current-ref {
        color: var(--color-dark);
    }

    .main-nav > li > i {
        display: inline-flex;
        position: absolute;
        right: 0;
        top: 17px;
        font-size: 16px;
        color: var(--color-gray);
        cursor: pointer;
    }

    .main-nav .sub-menu {
        display: none;
        width: 100%;
        padding: 0 0 12px 12px;
    }

    .main-nav .sub-menu.toggled,
    .main-nav > li.is-active > .sub-menu {
        display: block;
    }

    .main-nav .sub-menu li a {
        display: block;
        padding: 10px 0;
        font-size: 16px;
        color: var(--color-gray);
    }

    .header__right {
        margin-top: auto;
        width: 100%;
    }

    .header__right .btn {
        width: 100%;
        justify-content: center;
        color: rgba(41, 41, 41, 1) !important;
        justify-content: flex-start;
    }
    .header__right .btn svg {
        filter: brightness(0);
    }

    .menu-toggle-box {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        position: relative;
        z-index: 99;
    }

    body.is-active {
        overflow: hidden;
    }
}

/* ---------- Global Consultation ---------- */
.arch-consult {
    position: relative;
    overflow: hidden;
    background: #1f1f1f;
}

.arch-consult__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.arch-consult__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.arch-consult__inner {
    position: relative;
    z-index: 1;
    align-items: stretch;
    min-height: clamp(540px, 52vw, 780px);
}

.arch-consult__rail {
    border-right-color: rgba(255, 255, 255, 0.2);
    align-items: start !important;
    padding-top: 0;
}

.arch-consult__label {
    color: rgba(255, 255, 255, 0.56);
}

.arch-consult__content {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: clamp(24px, 3.17vw, 48px);
    padding: clamp(60px, 7.94vw, 120px) clamp(24px, 3.17vw, 48px) clamp(60px, 7.94vw, 120px) 24px;
    min-width: 0;
}

.arch-consult__left {
    max-width: 640px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: clamp(48px, 8vw, 120px);
    height: 100%;
}

.arch-consult__title {
    margin: 0;
    font-family: var(--font-serif);
    font-size: clamp(34px, 3.7vw, 56px);
    font-weight: 400;
    line-height: 1.1;
    color: #fff;
    text-transform: uppercase;
}

.arch-consult__text {
    margin: 0;
    max-width: 520px;
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 300;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.78);
}

.arch-consult__form-card {
    width: 100%;
    max-width: 588px;
    background: #fff;
    padding: 24px;
}

@media (max-width: 767px) {
    .arch-consult__inner {
        flex-direction: column;
        min-height: unset;
    }

    .arch-consult__rail {
        width: 100%;
        border-right: none;
        justify-content: flex-start;
        padding: 48px 16px 0;
    }

    .arch-consult__label {
        writing-mode: horizontal-tb;
        text-orientation: mixed;
        padding: 0;
    }

    .arch-consult__content {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 24px;
        padding: 16px 16px 48px;
    }

    .arch-consult__left {
        gap: 16px;
    }

    .arch-consult__title {
        font-size: 36px;
    }

    .arch-consult__form-card {
        max-width: 100%;
        padding: 16px;
    }
}

/* ---------- Consultation Popup ---------- */
body.popup-open {
    overflow: hidden;
}

.arch-popup {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
        opacity 0.25s ease,
        visibility 0.25s ease;
}

.arch-popup.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.arch-popup__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.56);
}

.arch-popup__dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 760px);
    max-height: calc(100vh - 32px);
    overflow: auto;
    background: #fff;
    padding: 24px;
}

.arch-popup__close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    background: #fff;
    color: #000;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.arch-popup__content {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-top: 16px;
}

.arch-popup__title {
    margin: 0;
    font-family: var(--font-serif);
    font-size: clamp(28px, 2.85vw, 40px);
    font-weight: 400;
    line-height: 1.15;
    color: #000;
    text-transform: uppercase;
}

.arch-popup__text {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 300;
    line-height: 1.65;
    color: var(--color-gray);
}

.arch-popup .arch-consult__form-card {
    max-width: 100%;
    padding: 0;
    background: transparent;
}

@media (max-width: 767px) {
    .arch-popup {
        padding: 12px;
    }

    .arch-popup__dialog {
        max-height: calc(100vh - 24px);
        padding: 16px;
    }
}

/* ---------- Stars ---------- */
.stars {
    display: flex;
    gap: 4px;
}
.star-icon {
    width: 24px;
    height: 24px;
    color: #e68f03;
}

.contact-form .form-group {
    margin-bottom: 20px;
}
.contact-form .form-group:last-child {
    margin-bottom: 0px;
}
.form-checkbox {
    margin-top: 48px;
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid #ddd;
    border-radius: 0 !important;
}
input:active,
input:focus,
textarea:active,
textarea:focus {
    border: 1px solid black;
    outline: black;
}
.contact-form textarea {
    height: 120px;
    font-family: 'Poppins';
}
textarea::placeholder,
input::placeholder {
    font-family: 'Poppins';
    font-size: 16px;
    font-weight: 300;
}
.wpcf7-spinner {
    display: none;
}
.contact-form input[type='submit'] {
    width: 100%;
    background: #000;
    color: #fff;
    border: none;
    padding: 16px;
    cursor: pointer !important;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Poppins';
}
.contact-form label {
    margin-bottom: 5px;
    display: block;
}
.contact-form br {
    display: none;
}

.contact-form .wpcf7-list-item label {
    display: flex;
    align-items: center;
    gap: 12px;
}
.contact-form .wpcf7-list-item {
    margin-left: 0;
}
.contact-form .wpcf7-list-item label input {
    width: fit-content;
}

/* ---------- Custom Checkbox ---------- */
.contact-form .wpcf7-list-item label input[type='checkbox'] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    min-width: 20px;
    padding: 0;
    box-sizing: border-box;
    border: 1px solid #b0b0b0;
    background: transparent;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    transition: border-color 0.2s;
    border-radius: 4px !important;
    top: 1px;
}

.contact-form .wpcf7-list-item label input[type='checkbox']:checked {
    border-color: var(--color-black);
}

.contact-form .wpcf7-list-item label input[type='checkbox']:checked::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: 1.5px solid var(--color-black);
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
}

.wpcf7-list-item-label {
    color: rgba(80, 80, 80, 1);
}

/* ---------- Quick Call Button ---------- */
.call-tel {
    position: fixed;
    right: 48px;
    bottom: 48px;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: #292929;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 1300;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(12px) scale(0.96);
    transition:
        transform 0.25s ease,
        opacity 0.25s ease,
        visibility 0.25s ease;
}

.call-tel.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.call-tel::before,
.call-tel::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px solid rgba(41, 41, 41, 0.35);
    animation: callTelPulse 2.2s ease-out infinite;
    pointer-events: none;
}

.call-tel::after {
    animation-delay: 1.1s;
}

.call-tel:hover {
    transform: translateY(-2px) scale(1.04);
    opacity: 0.95;
}

.call-tel__icon {
    width: 26px;
    height: 26px;
}

@keyframes callTelPulse {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }
    75% {
        transform: scale(1.55);
        opacity: 0;
    }
    100% {
        transform: scale(1.55);
        opacity: 0;
    }
}

@media (max-width: 767px) {
    .call-tel {
        width: 56px;
        height: 56px;
        right: 16px;
        bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    }

    .call-tel__icon {
        width: 24px;
        height: 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .call-tel,
    .call-tel::before,
    .call-tel::after {
        transition: none;
        animation: none;
    }
}

.pp-hero .section__label,
.arch-consult .section__label {
    color: #d1d1d1;
}

.blog-card__link {
    text-decoration: underline;
}
.svc-hero__image img {
    object-fit: contain;
}

#consultation .section__label {
    color: #d1d1d1;
}

.btn--text {
    text-decoration: underline !important;
}
.pp-info__stat {
    padding-bottom: 25px;
}
.phil-item__row {
    cursor: auto;
}

.arch-popup__title {
    text-align: center;
}

.rv__header {
    width: 100%;
    border-bottom: 0px solid var(--color-border);
}
.glsr-review-avatar {
    filter: grayscale(1);
}
span.glsr-tag-value {
    font-size: 18px;
}
.rv__list .glsr-review-rating {
    margin-bottom: 0px;
}
.glsr-review-date span.glsr-tag-value {
    font-size: 12px;
}
@media (max-width: 767px) {
    .breadcrumb__item {
        max-width: 400px;
        white-space: normal;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    .header__right .btn {
        padding: 0;
    }
}
