@import url("fonts.css");

/* =========================================================
   Trust & Estates — non-WordPress rebuild
   Brand: navy #0b1220 / gold #caa45a / gold-light #e2c47a
   Body font: Roboto Slab. Display/hero font: Cormorant Garamond.
   ========================================================= */

:root {
    --te-ink: #0b1220;
    --te-mid: #0f1f36;
    --te-gold: #caa45a;
    --te-gold2: #e2c47a;
    --te-paper: #ffffff;
    --te-body-font: 'Roboto Slab', Georgia, 'Times New Roman', serif;
    --te-display-font: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: #0a0a0a; overflow-x: hidden; }
body { overflow-x: hidden; max-width: 100%; }

body {
    font-family: var(--te-body-font);
    color: #1a1f2b;
    background: #ffffff;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

/* ===================== SITE HEADER / NAV ===================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.site-header__inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.site-logo {
    display: flex;
    align-items: center;
    height: 100%;
}
.site-logo img { height: 100%; width: auto; display: block; padding: 4px 0; }
.site-nav { display: flex; align-items: center; }
.site-nav ul {
    list-style: none;
    display: flex;
    gap: 1.75rem;
    align-items: center;
}
.site-nav a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.82);
    font-family: var(--te-display-font);
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: color 0.2s ease;
    position: relative;
    padding: 0.25rem 0;
}
.site-nav a:hover,
.site-nav a.is-active { color: var(--te-gold2); }
.site-nav a.is-active::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -2px;
    height: 2px;
    background: linear-gradient(90deg, var(--te-gold2), var(--te-gold));
    border-radius: 2px;
}
.nav-toggle {
    display: none;
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    border-radius: 0.5rem;
    padding: 0.4rem 0.55rem;
    cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }

@media (max-width: 820px) {
    .nav-toggle { display: inline-flex; }
    .site-nav {
        position: absolute;
        top: 100%; left: 0; right: 0;
        background: rgba(10, 10, 10, 0.98);
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease;
    }
    .site-nav.is-open { max-height: 320px; }
    .site-nav ul {
        flex-direction: column;
        gap: 0;
        padding: 0.5rem 1.5rem 1rem;
        align-items: flex-start;
        width: 100%;
    }
    .site-nav a { display: block; padding: 0.75rem 0; width: 100%; font-size: 1.2rem; }
}

/* ===================== INNER PAGE HERO BAND ===================== */
.page-hero {
    position: relative;
    background:
        radial-gradient(1200px circle at 20% 10%, rgba(202, 164, 90, 0.18), transparent 42%),
        radial-gradient(900px circle at 90% 20%, rgba(226, 196, 122, 0.10), transparent 45%),
        linear-gradient(120deg, #000000, #0a0a0a);
    color: #fff;
    overflow: hidden;
    padding: clamp(4rem, 12vw, 8rem) 1.5rem clamp(3.5rem, 10vw, 7rem);
}
.page-hero__grid {
    position: absolute; inset: 0;
    opacity: 0.12;
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.12) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.12) 1px, transparent 1px);
    background-size: 44px 44px;
    pointer-events: none;
}
.page-hero__inner {
    position: relative;
    z-index: 2;
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}
.page-hero__eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--te-gold2);
    margin-bottom: 1.25rem;
}
.page-hero__title {
    font-family: var(--te-display-font);
    font-weight: 600;
    font-size: clamp(2.4rem, 6vw, 4.25rem);
    line-height: 1.08;
    letter-spacing: -0.02em;
}
.page-hero__title .gold { color: var(--te-gold2); }
.page-hero__title .dim { color: rgba(255, 255, 255, 0.78); }
.page-hero__lead {
    margin: 1.5rem auto 0;
    max-width: 44rem;
    font-size: clamp(1rem, 2.2vw, 1.2rem);
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.7;
}
.page-hero__tag {
    margin-top: 2rem;
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    font-size: 0.75rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
}
.page-hero__tag::before,
.page-hero__tag::after {
    content: "";
    width: 3rem; height: 1px;
    background: rgba(255, 255, 255, 0.2);
}

/* ===================== GENERIC CONTENT SECTION ===================== */
.section { padding: clamp(3.5rem, 9vw, 6.5rem) 1.5rem; }
.section--alt { background: #f7f5f0; }
.container { max-width: 1100px; margin: 0 auto; }
.section h2 {
    font-family: var(--te-display-font);
    font-weight: 600;
    font-size: clamp(1.9rem, 4vw, 2.8rem);
    color: var(--te-ink);
    line-height: 1.15;
    letter-spacing: -0.01em;
}
.section p { margin-top: 1rem; color: #3a4150; font-size: 1.05rem; }
.section .lead { font-size: 1.2rem; color: #2a3140; }

/* Service / feature cards */
.cards {
    margin-top: 2.75rem;
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.card {
    background: #fff;
    border: 1px solid #ece7dc;
    border-radius: 1.25rem;
    padding: 2rem 1.75rem;
    box-shadow: 0 18px 40px -28px rgba(11, 18, 32, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 28px 55px -28px rgba(11, 18, 32, 0.45);
    border-color: var(--te-gold);
}
.card__icon {
    width: 3rem; height: 3rem;
    border-radius: 0.9rem;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(180deg, rgba(226, 196, 122, 0.9), rgba(202, 164, 90, 0.85));
    color: var(--te-ink);
    margin-bottom: 1.25rem;
}
.card__icon svg { width: 1.5rem; height: 1.5rem; }
.card h3 {
    font-family: var(--te-display-font);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--te-ink);
}
.card p { margin-top: 0.6rem; font-size: 0.98rem; color: #5a616e; }

/* Two-column split (about) */
.split {
    display: grid;
    gap: 3rem;
    grid-template-columns: 1fr;
    align-items: center;
}
@media (min-width: 900px) { .split { grid-template-columns: 1.1fr 0.9fr; } }
.split__media img {
    border-radius: 1.5rem;
    box-shadow: 0 30px 60px -30px rgba(11, 18, 32, 0.5);
}
.stat-badge {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 0.6rem 1.2rem;
    border-radius: 999px;
    background: var(--te-ink);
    color: var(--te-gold2);
    font-family: var(--te-display-font);
    letter-spacing: 0.05em;
    font-size: 0.95rem;
}

/* ===================== SITE FOOTER ===================== */
.site-footer {
    background: #000000;
    color: rgba(255, 255, 255, 0.7);
    padding: clamp(3rem, 7vw, 4.5rem) 1.5rem 2rem;
}
.site-footer__grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    gap: 2.5rem;
    grid-template-columns: 1fr;
}
@media (min-width: 760px) {
    .site-footer__grid { grid-template-columns: 1.4fr 1fr 1.4fr; }
}
.site-footer__logo img { max-width: 280px; opacity: 0.95; }
.site-footer h4 {
    color: #fff;
    font-family: var(--te-display-font);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
}
.site-footer ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.site-footer a { text-decoration: none; transition: color 0.2s ease; }
.site-footer a:hover { color: var(--te-gold2); }
.footer-form { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-form input,
.footer-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0.7rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    font-family: var(--te-body-font);
    font-size: 0.95rem;
}
.footer-form input::placeholder,
.footer-form textarea::placeholder { color: rgba(255, 255, 255, 0.4); }
.footer-form input:focus,
.footer-form textarea:focus { outline: none; border-color: var(--te-gold); }
.footer-form button {
    align-self: flex-start;
    padding: 0.7rem 1.6rem;
    border: none;
    border-radius: 0.8rem;
    background: linear-gradient(180deg, rgba(226, 196, 122, 0.95), rgba(202, 164, 90, 0.88));
    color: var(--te-ink);
    font-family: var(--te-display-font);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.footer-form button:hover { opacity: 0.95; transform: translateY(-1px); }
.site-footer__legal {
    max-width: 1200px;
    margin: 2.5rem auto 0;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.45);
    text-align: center;
    line-height: 1.7;
}

/* ===================== HOME: COMPREHENSIVE SOLUTIONS (star icon boxes) ===================== */
.te-eyebrow {
    display: block;
    text-align: center;
    color: var(--te-gold);
    font-family: var(--te-display-font);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}
.section h2.te-section-title,
.te-section-title {
    text-align: center;
    font-family: var(--te-display-font);
    font-weight: 600;
    color: var(--te-gold);
    font-size: clamp(1.7rem, 3.4vw, 2rem);
    line-height: 1.25;
}
.te-section-intro {
    max-width: 46rem;
    margin: 1rem auto 0;
    text-align: center;
    color: #5a616e;
    font-size: 1.08rem;
    line-height: 1.6;
}
.te-iconboxes {
    margin-top: 3.5rem;
    display: grid;
    gap: 2.5rem 1.5rem;
    grid-template-columns: repeat(6, 1fr);   /* single row of 6, matching original */
    max-width: 1320px;
    margin-left: auto;
    margin-right: auto;
}
@media (max-width: 1100px) { .te-iconboxes { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px)  { .te-iconboxes { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px)  { .te-iconboxes { grid-template-columns: 1fr; } }
.te-iconbox { text-align: center; }
.te-iconbox__star {
    width: 56px;
    height: 56px;
    margin: 0 auto 1.1rem;
    transition: transform 0.3s ease;
}
.te-iconbox:hover .te-iconbox__star { transform: scale(1.12); }
.te-iconbox h3 {
    font-family: var(--te-display-font);
    font-weight: 600;
    color: var(--te-ink);
    font-size: 1.3rem;
    line-height: 1.15;
    margin-bottom: 0.75rem;
}
.te-iconbox p { color: #5a616e; font-size: 0.92rem; line-height: 1.55; }

/* ===================== HOME: UNDERSTANDING TRUSTS (dark split) ===================== */
.te-dark {
    background: #000000;
    color: rgba(255, 255, 255, 0.85);
}
.te-dark .te-eyebrow { text-align: left; margin-bottom: 1rem; }
.te-understand {
    display: grid;
    gap: 3rem;
    grid-template-columns: 1fr;
    align-items: center;
}
@media (min-width: 900px) { .te-understand { grid-template-columns: 0.85fr 1.15fr; } }
.te-understand__media img {
    border-radius: 0.4rem;
    width: 100%;
    box-shadow: 0 30px 70px -30px rgba(0,0,0,0.8);
}
.te-understand h2 {
    font-family: var(--te-display-font);
    font-weight: 600;
    color: var(--te-gold);
    font-size: clamp(1.7rem, 3.4vw, 2rem);
    line-height: 1.25;
    margin-bottom: 1.25rem;
}
.te-understand p {
    color: rgba(255, 255, 255, 0.72);
    font-size: 1.02rem;
    line-height: 1.75;
    margin-bottom: 1rem;
}

/* ===================== HOME: FAQ ACCORDION ===================== */
.te-faq { margin-top: 3rem; max-width: 1000px; margin-left: auto; margin-right: auto; }
.te-faq__item { border-bottom: 1px solid #e6ddca; }
.te-faq__q {
    width: 100%;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.3rem 0.25rem;
    text-align: left;
    font-family: var(--te-display-font);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--te-ink);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
}
.te-faq__icon {
    flex: 0 0 auto;
    width: 1.4rem; height: 1.4rem;
    position: relative;
    color: var(--te-gold);
    font-weight: 700;
    font-size: 1.5rem;
    line-height: 1;
    transition: transform 0.3s ease;
}
.te-faq__item.open .te-faq__icon { transform: rotate(45deg); }
.te-faq__a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s cubic-bezier(0.4,0,0.2,1);
}
.te-faq__a-inner {
    padding: 0 0.25rem 1.5rem;
    color: #4a515e;
    font-size: 1rem;
    line-height: 1.75;
}
.te-faq__a-inner p { margin-bottom: 0.8rem; }
.te-faq__a-inner strong { color: var(--te-ink); }

/* ===================== HOME: CTA BAND ===================== */
.te-cta-band {
    background: #000000;
    text-align: center;
    padding: clamp(4rem, 9vw, 6rem) 1.5rem;
}
.te-cta-band h2 {
    font-family: var(--te-display-font);
    font-weight: 600;
    color: var(--te-gold2);
    font-size: clamp(2rem, 5vw, 2.85rem);
}
.te-cta-band p {
    max-width: 44rem;
    margin: 1.25rem auto 2rem;
    color: rgba(255, 255, 255, 0.78);
    font-size: 1.08rem;
    line-height: 1.6;
}
.te-cta-band__btn {
    display: inline-block;
    padding: 1rem 2.25rem;
    border-radius: 0.4rem;
    background: linear-gradient(180deg, rgba(226,196,122,0.95), rgba(202,164,90,0.9));
    color: #1a1208;
    font-family: var(--te-display-font);
    font-size: 1.05rem;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.te-cta-band__btn:hover { opacity: 0.95; transform: translateY(-2px); }

/* ===================== SCROLL-REVEAL ENTRANCE ANIMATIONS =====================
   Mirrors the original Elementor fadeInUp/Left/Right/zoomIn/bounceIn. Forced on
   (no prefers-reduced-motion gate) per spec: animations always run. */
/* Only hide reveal elements when JS is active (html.js), so content is never
   permanently invisible if scripts fail or are disabled. */
html.js [data-reveal] { opacity: 0; will-change: transform, opacity; }
[data-reveal].te-revealed { opacity: 1; animation-duration: 0.9s; animation-fill-mode: both; animation-timing-function: cubic-bezier(0.2, 0.7, 0.2, 1); }
[data-reveal="fadeInUp"].te-revealed    { animation-name: teFadeInUp; }
[data-reveal="fadeInLeft"].te-revealed  { animation-name: teFadeInLeft; }
[data-reveal="fadeInRight"].te-revealed { animation-name: teFadeInRight; }
[data-reveal="zoomIn"].te-revealed      { animation-name: teZoomIn; }
[data-reveal="bounceIn"].te-revealed    { animation-name: teBounceIn; animation-timing-function: cubic-bezier(0.215,0.61,0.355,1); }

@keyframes teFadeInUp    { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
@keyframes teFadeInLeft  { from { opacity: 0; transform: translateX(-50px); } to { opacity: 1; transform: none; } }
@keyframes teFadeInRight { from { opacity: 0; transform: translateX(50px); } to { opacity: 1; transform: none; } }
@keyframes teZoomIn      { from { opacity: 0; transform: scale(0.85); } to { opacity: 1; transform: none; } }
@keyframes teBounceIn {
    0%   { opacity: 0; transform: scale(0.3); }
    50%  { opacity: 1; transform: scale(1.05); }
    70%  { transform: scale(0.95); }
    100% { transform: scale(1); }
}

/* ===================== PAGE TRANSITION CURTAIN ===================== */
.te-transition {
    position: fixed;
    inset: 0;
    z-index: 99998;
    display: none;
    background: linear-gradient(135deg, #000000 0%, #0b1220 55%, #0f1f36 100%);
    transform: translateY(100%);
    pointer-events: none;
    overflow: hidden;
}
.te-transition__bar {
    position: absolute;
    left: 0; top: 50%;
    transform: translateY(-50%) scaleX(0);
    transform-origin: left center;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--te-gold2), var(--te-gold), transparent);
    box-shadow: 0 0 30px rgba(226, 196, 122, 0.5);
}
/* keep barba's leaving/entering containers stacked cleanly */
main[data-barba="container"] { will-change: opacity, transform; }

/* Contact info blocks */
.contact-grid {
    margin-top: 2.5rem;
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.contact-block {
    border: 1px solid #ece7dc;
    border-radius: 1.1rem;
    padding: 1.75rem;
    background: #fff;
}
.contact-block h4 {
    font-family: var(--te-display-font);
    font-size: 1.25rem;
    color: var(--te-ink);
    margin-bottom: 0.6rem;
}
.contact-block p, .contact-block a { color: #4a515e; font-size: 0.98rem; text-decoration: none; }
.contact-block a:hover { color: var(--te-gold); }

/* Generic AJAX form status */
.form-status { margin-top: 1rem; font-size: 0.9rem; }
.form-status.ok { color: #2e7d4f; }
.form-status.err { color: #c0392b; }
.site-footer .form-status.ok { color: #86efac; }
.site-footer .form-status.err { color: #fca5a5; }
