/*
 * Site-wide brand layer (v2). Loaded on every page after main.css, brand.css.
 * Restyles the shared old-theme pieces (header, banners, headings, buttons,
 * forms, cards, footer) so inner pages match the new homepage.
 */

/* ============================== Header ============================== */
.header {
    background-color: var(--tc-navy) !important;
}

.header:not(.fixed-header) {
    position: relative;
    z-index: 20;
}

.header.fixed-header {
    z-index: 20;
    background-color: rgba(5, 17, 51, 0.94) !important;
    backdrop-filter: blur(14px);
    box-shadow: 0 8px 28px rgba(5, 17, 51, 0.35);
}

.header .logo img,
.mobile-menu__logo img {
    filter: brightness(0) invert(1); /* white logo on navy, same as logo-h-white */
}

.header-inner { flex-wrap: nowrap; }
.header .nav-menu { gap: clamp(14px, 1.6vw, 26px); }

.header .nav-menu__link {
    color: #fff;
    font-family: var(--tc-font);
    font-weight: 500;
    font-size: 0.92rem;
    padding: 28px 0;
}

.header .nav-menu__item:hover > a,
.header .nav-menu__item.is-current > a {
    color: var(--tc-sky) !important; /* the old theme forces orange here with !important */
}

.header-right { gap: 14px; }

.tc-header-cta {
    margin-left: 22px;
    min-height: 44px;
    padding: 10px 22px;
    font-size: 0.88rem;
    box-shadow: 0 0 0 1px rgba(132, 216, 255, 0.55), 0 8px 20px rgba(2, 136, 209, 0.3);
}

.header .toggle-mobileMenu {
    color: #fff;
    min-width: 44px;
    min-height: 44px;
}

.header .toggle-mobileMenu:focus-visible,
.header .nav-menu__link:focus-visible,
.mobile-menu a:focus-visible {
    outline: 2px solid var(--tc-sky);
    outline-offset: 4px;
}

/* ---- Mobile menu drawer ---- */
.mobile-menu { background-color: var(--tc-navy); }
.mobile-menu .close-button { color: #fff; }

.mobile-menu .nav-menu--mobile { flex-direction: column; align-items: stretch; gap: 0; }

.mobile-menu .nav-menu__link {
    display: block;
    color: #fff;
    font-family: var(--tc-font);
    font-weight: 500;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.mobile-menu .nav-menu__item.is-current > a,
.mobile-menu .nav-menu__item:hover > a { color: var(--tc-sky) !important; }

.mobile-menu__cta { margin-top: 22px; width: 100%; }

/* ======================== Inner-page banner ======================== */
.breadcrumb {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(640px 380px at 82% 30%, rgba(2, 136, 209, 0.5), rgba(2, 136, 209, 0) 70%),
        linear-gradient(180deg, #0a2a6b 0%, var(--tc-navy) 100%) !important;
    padding: clamp(52px, 8vw, 96px) 0 !important;
}

.breadcrumb__img { display: none; }

.breadcrumb::before {
    content: "";
    position: absolute;
    left: -120px;
    top: -20px;
    width: 400px;
    height: 400px;
    background: url("../images/home/pattern.webp") no-repeat center / contain;
    opacity: 0.06;
    pointer-events: none;
}

.breadcrumb::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--tc-blue) 0 33%, var(--tc-bright) 33% 66%, var(--tc-sky) 66%);
}

.breadcrumb__title {
    font-family: var(--tc-font);
    font-weight: 800;
    letter-spacing: -0.025em;
    font-size: clamp(2rem, 5.6vw, 3.5rem);
    line-height: 1.08;
}

.breadcrumb__item,
.breadcrumb__link { font-family: var(--tc-font); font-size: 0.95rem; }
.breadcrumb__link:hover { color: var(--tc-sky); }
.breadcrumb__item-text { color: var(--tc-sky); }

/* ===================== Section headings (eyebrow) ===================== */
.section-heading__subtitle {
    display: inline-flex !important;
    align-items: center;
    gap: 12px;
    padding: 0 !important;
    border-radius: 0;
    background: transparent !important;
    margin-bottom: 14px;
}

.section-heading__subtitle::before {
    content: "";
    width: 34px;
    height: 2px;
    background: var(--tc-bright);
}

.section-heading__subtitle .text-gradient {
    background: none !important;
    -webkit-text-fill-color: var(--tc-blue) !important;
    color: var(--tc-blue) !important;
    font-family: var(--tc-font);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.26em;
}

.section-heading__title {
    font-family: var(--tc-font);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
    color: var(--tc-navy);
    font-size: clamp(1.7rem, 4vw, 2.6rem);
}

/* ============================ Buttons ============================ */
.btn {
    border-radius: 999px;
    font-family: var(--tc-font);
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    font-size: 0.95rem;
    padding: 16px 30px;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn::before,
.btn::after { border-radius: inherit; }

.btn-outline-main { color: var(--tc-blue) !important; }
.btn-outline-light { color: #fff !important; border-color: rgba(255, 255, 255, 0.8); }
.btn-outline-light:hover { background: #fff; color: var(--tc-navy) !important; }

a:focus-visible,
button:focus-visible,
.common-input:focus-visible { outline: 3px solid var(--tc-bright); outline-offset: 2px; }

/* ============================= Forms ============================= */
.common-input {
    border-radius: 14px;
    border: 1px solid var(--tc-line);
    font-family: var(--tc-font);
    font-size: 1rem;
    line-height: 1.4;
}

.common-input:focus {
    border-color: var(--tc-bright);
    box-shadow: 0 0 0 3px rgba(2, 136, 209, 0.18);
}

.contact-form {
    border-radius: 0 var(--tc-radius) 0 var(--tc-radius);
}

/* ============================== Cards ============================== */
.property-item,
.blog-item,
.project-item,
.team-item,
.contact-card {
    border-radius: 0 var(--tc-radius) 0 var(--tc-radius);
    overflow: hidden;
}

/* =========================== Footer (brand) =========================== */
.tc-footer {
    position: relative;
    background: var(--tc-navy);
    color: #c3cde6;
    padding: clamp(48px, 7vw, 88px) 0 0;
    font-family: var(--tc-font);
    overflow: hidden;
}

.tc-footer::before {
    content: "";
    position: absolute;
    right: -140px;
    bottom: 60px;
    width: 420px;
    height: 420px;
    background: url("../images/home/pattern.webp") no-repeat center / contain;
    opacity: 0.06;
    pointer-events: none;
}

.tc-footer .tc-container { position: relative; z-index: 2; }

.tc-footer__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 36px;
    padding-bottom: 44px;
}

.tc-footer__logo img { max-width: 170px; max-height: 52px; width: auto; height: auto; filter: brightness(0) invert(1); }
.tc-footer__about { margin: 18px 0 0; max-width: 40ch; font-size: 0.95rem; line-height: 1.7; }

.tc-footer h3 {
    font-family: var(--tc-font);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--tc-sky);
    margin: 0 0 18px;
}

.tc-footer ul { list-style: none; margin: 0; padding: 0; }
.tc-footer li + li { margin-top: 2px; }

.tc-footer a { color: #fff; text-decoration: none; }
.tc-footer a:hover { color: var(--tc-sky); }

.tc-footer__links a {
    display: inline-block;
    padding: 7px 0;
    font-size: 0.95rem;
    min-height: 36px;
}

.tc-footer__contact li { display: flex; gap: 14px; align-items: flex-start; padding: 7px 0; font-size: 0.95rem; }
.tc-footer__contact i { color: var(--tc-sky); width: 18px; margin-top: 5px; text-align: center; flex-shrink: 0; }
.tc-footer__contact span, .tc-footer__contact a { overflow-wrap: break-word; min-width: 0; }
.tc-footer__contact li > a { font-size: 0.9rem; }

.tc-footer__social { display: flex; gap: 10px; margin-top: 22px; }

.tc-footer__social a {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 0 14px 0 14px;
    color: #fff;
}

.tc-footer__social a:hover { background: var(--tc-blue); border-color: var(--tc-blue); color: #fff; }

.tc-footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    padding: 22px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 24px;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #8e9bbd;
}

.tc-footer__bottom a { color: #c3cde6; display: inline-block; padding: 6px 0; }
.tc-footer__bottom-links { display: flex; flex-wrap: wrap; gap: 4px 22px; }

.tc-footer__stripe {
    height: 5px;
    background: linear-gradient(90deg, var(--tc-blue) 0 33%, var(--tc-bright) 33% 66%, var(--tc-sky) 66%);
}

@media (min-width: 576px) {
    .tc-footer__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 992px) {
    .tc-footer__grid { grid-template-columns: 1.3fr 0.8fr 0.9fr 1.6fr; gap: 40px; }
}

/* =========================== Newsletter band =========================== */
.tc-news {
    position: relative;
    overflow: hidden;
    background: #fff;
    border-top: 1px solid var(--tc-line);
    padding: clamp(44px, 6vw, 72px) 0;
    font-family: var(--tc-font);
    color: var(--tc-ink);
}

.tc-news__inner {
    position: relative;
    z-index: 2;
    display: grid;
    gap: 26px;
    align-items: center;
}

.tc-news h2 { font-family: var(--tc-font); font-weight: 700; font-size: clamp(1.4rem, 3.2vw, 2rem); letter-spacing: -0.02em; color: var(--tc-navy); margin: 12px 0 10px; }
.tc-news h2 em { font-style: normal; color: var(--tc-blue); }
.tc-news p { margin: 0; color: var(--tc-muted); max-width: 52ch; }

.tc-news__form { display: flex; flex-wrap: wrap; gap: 12px; }
.tc-news__form input[type="email"] {
    flex: 1 1 240px;
    min-height: 52px;
    padding: 12px 20px;
    border-radius: 999px;
    border: 1px solid var(--tc-line);
    background: #fff;
    color: var(--tc-ink);
    font-family: var(--tc-font);
    font-size: 1rem;
}
.tc-news__form input::placeholder { color: #6b7694; }
.tc-news__form input:focus { outline: none; border-color: var(--tc-bright); box-shadow: 0 0 0 3px rgba(2, 136, 209, 0.2); }
.tc-news__msg { flex-basis: 100%; font-size: 0.9rem; }
.tc-news__msg--ok { color: #0b6b3a; }
.tc-news__msg--err { color: #b3261e; }

@media (min-width: 992px) {
    .tc-news__inner { grid-template-columns: 1.1fr 1fr; gap: 56px; }
}

/* ====================== Misc old-theme leftovers ====================== */
.progress-wrap::after { color: var(--tc-blue) !important; }
.progress-wrap svg.progress-circle path { stroke: var(--tc-blue); }

/* ===================== Services / Academy page pieces ===================== */
.tc-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 18px;
    grid-template-columns: 1fr;
    counter-reset: none;
}

.tc-step {
    position: relative;
    background: #fff;
    border: 1px solid var(--tc-line);
    border-radius: 0 var(--tc-radius) 0 var(--tc-radius);
    padding: 28px 24px;
    font-family: var(--tc-font);
}

.tc-step__no {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-bottom: 14px;
    border-radius: 0 14px 0 14px;
    background: var(--tc-blue);
    color: #fff;
    font-weight: 700;
}

.tc-step h3 { font-family: var(--tc-font); font-size: 1.15rem; font-weight: 600; color: var(--tc-navy); margin: 0 0 6px; }
.tc-step p { margin: 0; color: var(--tc-muted); }

.tc-academy-page { display: grid; gap: 32px; align-items: center; }
.tc-academy-page__media { overflow: hidden; box-shadow: var(--tc-shadow); }
.tc-academy-page__media img { display: block; width: 100%; height: auto; }
.tc-cta__buttons--left { justify-content: flex-start; }
.tc-academy__stats--wide { max-width: 860px; margin-inline: auto; text-align: center; gap: 20px; }
.tc-academy__stats--wide b { font-size: clamp(2rem, 6vw, 3.4rem); }
.tc-academy__stats--wide span { font-size: 0.95rem; }

@media (min-width: 768px) {
    .tc-steps { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 992px) {
    .tc-steps { grid-template-columns: repeat(4, 1fr); }
    .tc-academy-page { grid-template-columns: 1.1fr 1fr; gap: 56px; }
}

/* ===================== Page container and contact cards ===================== */
.container-two { padding-inline: 24px; }
@media (min-width: 1199px) { .container-two { max-width: 1240px; } }

.contact-card { padding: 28px 22px; border-radius: 0 var(--tc-radius) 0 var(--tc-radius); background: #fff; }
.contact-card__icon { border-radius: 0 18px 0 18px; }
.contact-card__text { font-size: 1rem !important; overflow-wrap: anywhere; }
.contact-card__title { font-family: var(--tc-font); font-weight: 600; color: var(--tc-navy); }

/* ============================== About page ============================== */
.tc-mv { display: grid; gap: 16px; margin-top: 24px; }
.tc-mv__item { border-left: 3px solid var(--tc-bright); padding: 4px 0 4px 18px; }
.tc-mv__item h3 { font-family: var(--tc-font); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--tc-blue); margin: 0 0 6px; }
.tc-mv__item p { margin: 0 !important; }

.tc-team { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.tc-team__item { position: relative; margin: 0; overflow: hidden; background: var(--tc-navy); border-radius: 0 var(--tc-radius) 0 var(--tc-radius); aspect-ratio: 4 / 5; }
.tc-team__item img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
.tc-team__item figcaption { position: absolute; inset: auto 0 0 0; padding: 38px 14px 14px; background: linear-gradient(180deg, rgba(5, 17, 51, 0), rgba(5, 17, 51, 0.92)); color: #fff; }
.tc-team__item b { display: block; font-size: 0.95rem; font-weight: 600; line-height: 1.25; }
.tc-team__item span { display: block; font-size: 0.78rem; color: var(--tc-sky); margin-top: 2px; }

@media (min-width: 768px) { .tc-team { grid-template-columns: repeat(3, 1fr); gap: 22px; } .tc-team__item b { font-size: 1.05rem; } .tc-team__item figcaption { padding: 48px 20px 18px; } }
@media (min-width: 1100px) { .tc-team { grid-template-columns: repeat(4, 1fr); } }

.tc-pager { margin-top: 36px; }
.tc-pager .common-pagination { margin: 0; }

/* The theme's orange line-icons (SVG, orange gradient fill) are recoloured to the brand blue. */
.amenities-content__icon img,
.property-type-three-item__icon img { filter: hue-rotate(175deg) saturate(1.1); }

/* Blog list: the uploaded banners carry their own title text, so show them in a 4:3 frame above the text instead of cropping them in a narrow column. */
.blog-classic-item { flex-direction: column !important; margin-bottom: 28px; background: #fff; box-shadow: var(--tc-shadow); }
.blog-classic-item .blog-item__thumb { width: 100%; max-width: 100% !important; max-height: none !important; aspect-ratio: 4 / 3; }
.blog-classic-item .blog-item__thumb-link { display: block; }
.blog-classic-item .blog-item__thumb .cover-img { width: 100%; height: 100%; object-fit: cover; }
.blog-classic-item .blog-item__content { width: 100%; border: 0; padding: 26px 26px 30px; border-radius: 0; }
.blog-item__title, .blog-item__title-link { font-family: var(--tc-font); font-weight: 700; color: var(--tc-navy); }
