:root {
    --ink: #122033;
    --ink-deep: #0b1523;
    --ink-soft: #26384e;
    --paper: #f7f5f0;
    --paper-deep: #efebe3;
    --white: #ffffff;
    --gold: #b28a50;
    --gold-light: #d8bd91;
    --gold-pale: #f1e8d9;
    --text: #1e2b3c;
    --muted: #687487;
    --line: #dfe3e7;
    --success: #26745a;
    --shadow-sm: 0 12px 35px rgba(17, 30, 48, 0.08);
    --shadow-lg: 0 30px 80px rgba(7, 18, 31, 0.2);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 28px;
    --transition: 220ms ease;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    margin: 0;
    color: var(--text);
    background: var(--white);
    font-family: "DM Sans", sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body,
button,
input,
select,
textarea {
    font-family: "DM Sans", sans-serif;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

a {
    color: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

:focus-visible {
    outline: 3px solid rgba(178, 138, 80, 0.6) !important;
    outline-offset: 3px;
}

.skip-link {
    position: fixed;
    left: 16px;
    top: -80px;
    z-index: 20000;
    padding: 12px 18px;
    border-radius: 0 0 8px 8px;
    color: var(--ink);
    background: var(--gold-light);
    font-weight: 700;
    text-decoration: none;
    transition: top var(--transition);
}

.skip-link:focus {
    top: 0;
}

.section-space {
    padding: 120px 0;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    color: var(--gold);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.17em;
    text-transform: uppercase;
}

.eyebrow > span {
    width: 32px;
    height: 1px;
    background: currentColor;
}

.eyebrow-light {
    color: var(--gold-light);
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 700ms ease var(--reveal-delay, 0s), transform 700ms ease var(--reveal-delay, 0s);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 {
    --reveal-delay: 0.06s;
}

.reveal-delay-2 {
    --reveal-delay: 0.12s;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* Header */
.site-header {
    color: var(--white);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    transition: background var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.site-header.is-scrolled {
    color: var(--ink);
    background: rgba(255, 255, 255, 0.97);
    border-color: rgba(18, 32, 51, 0.08);
    box-shadow: 0 8px 30px rgba(10, 25, 43, 0.08);
    backdrop-filter: blur(14px);
}

.navbar {
    min-height: 86px;
    padding: 10px 0;
}

.navbar-brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: inherit;
    text-decoration: none;
}

.brand-mark {
    display: inline-grid;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    place-items: center;
    border: 1px solid rgba(216, 189, 145, 0.8);
    border-radius: 50%;
    color: var(--gold-light);
    font-family: "Libre Caslon Display", serif;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
}

.brand-copy,
.footer-brand > span:last-child {
    display: flex;
    flex-direction: column;
}

.brand-copy strong {
    font-family: "Libre Caslon Display", serif;
    font-size: 1.12rem;
    font-weight: 400;
    letter-spacing: 0.04em;
}

.brand-copy small {
    margin-top: 1px;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.61rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.site-header.is-scrolled .brand-mark {
    color: var(--gold);
    border-color: rgba(178, 138, 80, 0.6);
}

.site-header.is-scrolled .brand-copy small {
    color: var(--muted);
}

.navbar-nav {
    gap: 4px;
}

.navbar .nav-link {
    padding: 10px 12px !important;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.83rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    transition: color var(--transition);
}

.navbar .nav-link:hover,
.navbar .nav-link:focus {
    color: var(--gold-light);
}

.site-header.is-scrolled .nav-link {
    color: var(--ink-soft);
}

.site-header.is-scrolled .nav-link:hover,
.site-header.is-scrolled .nav-link:focus {
    color: var(--gold);
}

.btn-header {
    padding: 11px 18px;
    border: 1px solid rgba(216, 189, 145, 0.75);
    border-radius: 6px;
    color: var(--gold-light);
    font-size: 0.8rem;
    font-weight: 700;
}

.btn-header:hover,
.btn-header:focus {
    color: var(--ink);
    background: var(--gold-light);
    border-color: var(--gold-light);
}

.site-header.is-scrolled .btn-header {
    color: var(--white);
    background: var(--ink);
    border-color: var(--ink);
}

.site-header.is-scrolled .btn-header:hover {
    color: var(--white);
    background: var(--gold);
    border-color: var(--gold);
}

.navbar-toggler {
    padding: 8px;
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: none !important;
}

.site-header.is-scrolled .navbar-toggler {
    border-color: rgba(18, 32, 51, 0.2);
}

.site-header.is-scrolled .navbar-toggler-icon {
    filter: invert(1);
}

/* Hero */
.hero-section {
    position: relative;
    display: flex;
    min-height: 830px;
    padding: 150px 0 90px;
    align-items: center;
    color: var(--white);
    background:
        radial-gradient(circle at 12% 20%, rgba(178, 138, 80, 0.13), transparent 32%),
        radial-gradient(circle at 88% 78%, rgba(70, 105, 142, 0.13), transparent 28%),
        linear-gradient(135deg, #0a1422 0%, #111f31 58%, #0e1a29 100%);
    overflow: hidden;
}

.hero-section::before {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 90px 90px;
    content: "";
    mask-image: linear-gradient(to bottom, black, transparent 85%);
}

.hero-section::after {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 42%;
    height: 5px;
    background: var(--gold);
    content: "";
}

.hero-orbit {
    position: absolute;
    border: 1px solid rgba(216, 189, 145, 0.1);
    border-radius: 50%;
}

.hero-orbit-one {
    top: 10%;
    right: -180px;
    width: 580px;
    height: 580px;
}

.hero-orbit-two {
    top: 22%;
    right: -70px;
    width: 360px;
    height: 360px;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 790px;
}

.hero-content h1 {
    margin-bottom: 28px;
    font-family: "Libre Caslon Display", serif;
    font-size: clamp(3.1rem, 6vw, 5.6rem);
    font-weight: 400;
    line-height: 1.02;
    letter-spacing: -0.035em;
}

.hero-content h1 span,
.hero-content h1 em {
    color: var(--gold-light);
    font-style: normal;
}

.hero-lead {
    max-width: 650px;
    margin-bottom: 34px;
    color: rgba(255, 255, 255, 0.7);
    font-size: clamp(1.04rem, 1.5vw, 1.2rem);
    line-height: 1.75;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 42px;
}

.btn-primary-action,
.btn-secondary-action,
.btn-submit {
    min-height: 54px;
    padding: 14px 22px;
    border-radius: 7px;
    font-size: 0.9rem;
    font-weight: 700;
    transition: transform var(--transition), background var(--transition), border-color var(--transition), color var(--transition);
}

.btn-primary-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--ink-deep);
    background: var(--gold-light);
    border: 1px solid var(--gold-light);
}

.btn-primary-action:hover,
.btn-primary-action:focus {
    color: var(--white);
    background: var(--gold);
    border-color: var(--gold);
    transform: translateY(-2px);
}

.btn-secondary-action {
    color: var(--white);
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary-action:hover,
.btn-secondary-action:focus {
    color: var(--white);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.55);
}

.hero-assurance {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    color: rgba(255, 255, 255, 0.63);
    font-size: 0.78rem;
    font-weight: 600;
}

.hero-assurance span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.hero-assurance i {
    color: var(--gold-light);
}

.hero-card {
    position: relative;
    z-index: 2;
    max-width: 470px;
    margin-left: auto;
    padding: 38px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.065);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(16px);
}

.hero-card::before {
    position: absolute;
    top: -1px;
    left: 38px;
    width: 72px;
    height: 3px;
    background: var(--gold-light);
    content: "";
}

.hero-card-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    color: var(--gold-light);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero-card-topline i {
    font-size: 1.3rem;
}

.hero-card-quote {
    margin-bottom: 25px;
    font-family: "Libre Caslon Display", serif;
    font-size: 1.7rem;
    line-height: 1.35;
}

.hero-card-divider {
    height: 1px;
    margin-bottom: 26px;
    background: rgba(255, 255, 255, 0.13);
}

.process-list {
    display: grid;
    gap: 20px;
    margin: 0 0 28px;
    padding: 0;
    list-style: none;
}

.process-list li {
    display: grid;
    grid-template-columns: 36px 1fr;
    gap: 14px;
}

.process-list li > span {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 1px solid rgba(216, 189, 145, 0.4);
    border-radius: 50%;
    color: var(--gold-light);
    font-size: 0.68rem;
    font-weight: 700;
}

.process-list div {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.process-list strong {
    font-size: 0.9rem;
}

.process-list small {
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.76rem;
    line-height: 1.55;
}

.hero-card-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--gold-light);
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
}

.hero-card-link:hover {
    color: var(--white);
}

/* Principles */
.principles-section {
    position: relative;
    z-index: 3;
    background: var(--white);
    border-bottom: 1px solid var(--line);
}

.principles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.principle-item {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 18px;
    padding: 38px 34px;
    border-right: 1px solid var(--line);
}

.principle-item:first-child {
    border-left: 1px solid var(--line);
}

.principle-icon {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border-radius: 50%;
    color: var(--gold);
    background: var(--gold-pale);
}

.principle-item h2 {
    margin-bottom: 6px;
    color: var(--ink);
    font-size: 1rem;
    font-weight: 700;
}

.principle-item p {
    margin: 0;
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.55;
}

/* Section headings */
.section-heading {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
    gap: 80px;
    margin-bottom: 58px;
    align-items: end;
}

.section-heading h2,
.approach-copy h2,
.contact-info h2 {
    margin: 0;
    color: var(--ink);
    font-family: "Libre Caslon Display", serif;
    font-size: clamp(2.5rem, 4vw, 4rem);
    font-weight: 400;
    line-height: 1.08;
    letter-spacing: -0.025em;
}

.section-heading > p {
    margin: 0 0 5px;
    color: var(--muted);
    font-size: 0.96rem;
    line-height: 1.75;
}

/* Services */
.expertise-section {
    background: var(--paper);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.service-card {
    position: relative;
    display: flex;
    min-height: 350px;
    padding: 30px;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    color: var(--text);
    background: var(--white);
    border: 1px solid rgba(18, 32, 51, 0.08);
    border-radius: var(--radius-sm);
    box-shadow: none;
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition), background var(--transition);
}

.service-card::after {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 0;
    height: 3px;
    background: var(--gold);
    content: "";
    transition: width 350ms ease;
}

.service-card:hover,
.service-card:focus-visible {
    color: var(--white);
    background: var(--ink);
    border-color: var(--ink);
    box-shadow: var(--shadow-lg);
    transform: translateY(-6px);
}

.service-card:hover::after,
.service-card:focus-visible::after {
    width: 100%;
}

.service-number {
    position: absolute;
    top: 28px;
    right: 28px;
    color: #a3acb8;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.service-icon {
    display: grid;
    width: 52px;
    height: 52px;
    margin-bottom: 52px;
    place-items: center;
    border: 1px solid rgba(178, 138, 80, 0.2);
    border-radius: 50%;
    color: var(--gold);
    background: var(--gold-pale);
    transition: color var(--transition), background var(--transition);
}

.service-card:hover .service-icon,
.service-card:focus-visible .service-icon {
    color: var(--ink);
    background: var(--gold-light);
}

.service-title {
    margin-bottom: 13px;
    color: var(--ink);
    font-family: "Libre Caslon Display", serif;
    font-size: 1.55rem;
    line-height: 1.2;
    transition: color var(--transition);
}

.service-card:hover .service-title,
.service-card:focus-visible .service-title {
    color: var(--white);
}

.service-summary {
    display: -webkit-box;
    margin-bottom: 24px;
    color: var(--muted);
    font-size: 0.85rem;
    line-height: 1.7;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    transition: color var(--transition);
}

.service-card:hover .service-summary,
.service-card:focus-visible .service-summary {
    color: rgba(255, 255, 255, 0.65);
}

.service-link {
    display: inline-flex;
    margin-top: auto;
    align-items: center;
    gap: 9px;
    color: var(--gold);
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.service-card:hover .service-link,
.service-card:focus-visible .service-link {
    color: var(--gold-light);
}

.service-link i {
    transition: transform var(--transition);
}

.service-card:hover .service-link i {
    transform: translateX(5px);
}

.empty-state {
    padding: 60px;
    color: var(--muted);
    text-align: center;
    background: var(--white);
    border: 1px dashed var(--line);
    border-radius: var(--radius-md);
}

.empty-state i {
    display: block;
    margin-bottom: 15px;
    color: var(--gold);
    font-size: 2rem;
}

/* Modals */
.modal-backdrop.show {
    opacity: 0.72;
}

.service-modal .modal-content,
.legal-modal .modal-content {
    border: 0;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
}

.service-modal .modal-content {
    overflow: hidden;
}

.service-modal .modal-content::before {
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    background: var(--gold);
    content: "";
}

.modal-close {
    position: absolute;
    z-index: 2;
    top: 20px;
    right: 20px;
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    color: var(--ink);
    background: var(--paper);
    border: 0;
    border-radius: 50%;
}

.service-modal .modal-body {
    padding: 56px;
}

.modal-icon {
    display: grid;
    width: 60px;
    height: 60px;
    margin-bottom: 30px;
    place-items: center;
    color: var(--gold);
    background: var(--gold-pale);
    border-radius: 50%;
    font-size: 1.3rem;
}

.service-modal h2 {
    margin-bottom: 20px;
    color: var(--ink);
    font-family: "Libre Caslon Display", serif;
    font-size: clamp(2rem, 4vw, 3.4rem);
}

.modal-description {
    margin-bottom: 34px;
    color: var(--muted);
    font-size: 0.98rem;
    line-height: 1.85;
    white-space: pre-line;
}

.modal-action {
    display: flex;
    padding: 22px;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    background: var(--paper);
    border-radius: var(--radius-sm);
}

.modal-action div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.modal-action strong {
    color: var(--ink);
}

.modal-action small {
    color: var(--muted);
}

.modal-action .btn-primary-action {
    min-width: 165px;
    color: var(--white);
    background: var(--ink);
    border-color: var(--ink);
}

.legal-modal .modal-header {
    padding: 32px 34px 20px;
    align-items: flex-start;
    border: 0;
}

.legal-modal .modal-title {
    color: var(--ink);
    font-family: "Libre Caslon Display", serif;
    font-size: 2rem;
}

.legal-modal .modal-body {
    padding: 0 34px 38px;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.9;
}

/* Approach */
.approach-section {
    padding: 0 0 120px;
    background: var(--paper);
}

.approach-panel {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 70px;
    padding: 72px;
    color: var(--white);
    background:
        radial-gradient(circle at 0 0, rgba(178, 138, 80, 0.13), transparent 35%),
        var(--ink);
    border-radius: var(--radius-md);
}

.approach-copy h2 {
    color: var(--white);
    font-size: clamp(2.2rem, 3.5vw, 3.4rem);
}

.approach-points {
    display: grid;
}

.approach-points > div {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.approach-points > div:first-child {
    padding-top: 0;
}

.approach-points strong {
    padding-top: 2px;
    color: var(--gold-light);
    font-size: 0.72rem;
    letter-spacing: 0.1em;
}

.approach-points span {
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.82rem;
    line-height: 1.65;
}

.approach-points b {
    display: block;
    margin-bottom: 5px;
    color: var(--white);
    font-size: 1rem;
}

/* Portal */
.portal-section {
    background: var(--white);
}

.portal-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.portal-card {
    position: relative;
    display: grid;
    min-height: 210px;
    padding: 28px;
    grid-template-columns: 48px 1fr auto;
    gap: 16px;
    align-items: start;
    color: var(--text);
    background: var(--paper);
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.portal-card:hover {
    color: var(--text);
    border-color: rgba(178, 138, 80, 0.35);
    box-shadow: var(--shadow-sm);
    transform: translateY(-5px);
}

.portal-card-featured {
    color: var(--white);
    background: var(--ink);
}

.portal-card-featured:hover {
    color: var(--white);
    border-color: var(--gold);
}

.portal-icon {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    color: var(--gold);
    background: var(--gold-pale);
    border-radius: 50%;
}

.portal-card-featured .portal-icon {
    color: var(--ink);
    background: var(--gold-light);
}

.portal-content {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.portal-content small {
    margin-bottom: 18px;
    color: var(--gold);
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.portal-card-featured .portal-content small {
    color: var(--gold-light);
}

.portal-content strong {
    margin-bottom: 8px;
    color: var(--ink);
    font-family: "Libre Caslon Display", serif;
    font-size: 1.35rem;
    font-weight: 400;
}

.portal-card-featured .portal-content strong {
    color: var(--white);
}

.portal-content > span {
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.55;
}

.portal-card-featured .portal-content > span {
    color: rgba(255, 255, 255, 0.57);
}

.portal-arrow {
    color: #98a2af;
    font-size: 0.75rem;
}

.portal-card:hover .portal-arrow {
    color: var(--gold);
}

/* Contact */
.contact-section {
    background: var(--paper);
}

.contact-shell {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    overflow: hidden;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.contact-info {
    position: relative;
    padding: 58px;
    color: var(--white);
    background:
        radial-gradient(circle at 10% 0, rgba(178, 138, 80, 0.18), transparent 36%),
        var(--ink);
    overflow: hidden;
}

.contact-info::after {
    position: absolute;
    right: -110px;
    bottom: -110px;
    width: 300px;
    height: 300px;
    border: 1px solid rgba(216, 189, 145, 0.13);
    border-radius: 50%;
    content: "";
}

.contact-info h2 {
    position: relative;
    z-index: 1;
    color: var(--white);
    font-size: clamp(2.3rem, 3.5vw, 3.7rem);
}

.contact-intro {
    position: relative;
    z-index: 1;
    max-width: 530px;
    margin: 24px 0 34px;
    color: rgba(255, 255, 255, 0.64);
    font-size: 0.92rem;
    line-height: 1.75;
}

.contact-details {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 18px;
}

.contact-details > div {
    display: grid;
    grid-template-columns: 38px 1fr;
    gap: 14px;
    align-items: start;
}

.contact-details > div > i {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    color: var(--gold-light);
    border: 1px solid rgba(216, 189, 145, 0.3);
    border-radius: 50%;
    font-size: 0.78rem;
}

.contact-details span {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.contact-details small {
    color: rgba(255, 255, 255, 0.48);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.contact-details strong {
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.82rem;
    font-weight: 500;
    line-height: 1.55;
}

.map-frame {
    position: relative;
    z-index: 1;
    height: 180px;
    margin-top: 32px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-sm);
    overflow: hidden;
    filter: saturate(0.65);
}

.map-frame iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.contact-form-panel {
    padding: 58px;
}

.form-heading {
    display: flex;
    margin-bottom: 30px;
    flex-direction: column;
    gap: 5px;
}

.form-heading span {
    color: var(--ink);
    font-family: "Libre Caslon Display", serif;
    font-size: 1.8rem;
}

.form-heading small {
    color: var(--muted);
    font-size: 0.76rem;
}

.contact-form {
    display: grid;
    gap: 19px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-field {
    display: grid;
    gap: 8px;
}

.form-field label {
    color: var(--ink-soft);
    font-size: 0.76rem;
    font-weight: 700;
}

.contact-form .form-control,
.contact-form .form-select {
    width: 100%;
    max-width: none;
    min-height: 50px;
    padding: 12px 14px;
    color: var(--text);
    background-color: #fbfbfa;
    border: 1px solid var(--line);
    border-radius: 6px;
    box-shadow: none;
    font-size: 0.86rem;
    transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
}

.contact-form textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
    background: var(--white);
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(178, 138, 80, 0.1);
}

.contact-form .form-control::placeholder {
    color: #9ca4ae;
}

.phone-input {
    display: flex;
    align-items: stretch;
}

.phone-input > span {
    display: grid;
    min-width: 55px;
    place-items: center;
    color: var(--muted);
    background: var(--paper);
    border: 1px solid var(--line);
    border-right: 0;
    border-radius: 6px 0 0 6px;
    font-size: 0.82rem;
    font-weight: 700;
}

.phone-input .form-control {
    border-radius: 0 6px 6px 0;
}

.privacy-check {
    display: flex;
    gap: 10px;
    color: var(--muted);
    font-size: 0.72rem;
    line-height: 1.5;
    cursor: pointer;
}

.privacy-check input {
    width: 16px;
    height: 16px;
    margin-top: 2px;
    flex: 0 0 auto;
    accent-color: var(--gold);
}

.btn-submit {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    color: var(--white);
    background: var(--ink);
    border: 1px solid var(--ink);
}

.btn-submit:hover,
.btn-submit:focus {
    color: var(--white);
    background: var(--gold);
    border-color: var(--gold);
}

.btn-submit:disabled {
    opacity: 0.65;
}

.form-note {
    margin: -4px 0 0;
    color: #8a94a1;
    font-size: 0.69rem;
    text-align: center;
}

.form-note i {
    margin-right: 5px;
    color: var(--success);
}

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

/* Footer */
.site-footer {
    color: rgba(255, 255, 255, 0.62);
    background: var(--ink-deep);
}

.footer-main {
    padding: 76px 0 58px;
}

.footer-brand {
    color: var(--white);
}

.footer-brand:hover {
    color: var(--white);
}

.footer-brand strong {
    font-family: "Libre Caslon Display", serif;
    font-size: 1.28rem;
    font-weight: 400;
}

.footer-brand small {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.64rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.footer-intro {
    max-width: 440px;
    margin: 24px 0;
    font-size: 0.84rem;
    line-height: 1.8;
}

.social-links {
    display: flex;
    gap: 10px;
}

.footer-social-icon {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 50%;
    transition: border-color var(--transition), transform var(--transition);
}

.footer-social-icon:hover {
    border-color: var(--gold-light);
    transform: translateY(-3px);
}

.footer-social-icon img {
    width: 17px;
    height: 17px;
    object-fit: contain;
}

.footer-title {
    margin: 4px 0 24px;
    color: var(--white);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.footer-links {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-links a,
.footer-links button {
    padding: 0;
    color: rgba(255, 255, 255, 0.55);
    background: none;
    border: 0;
    font-size: 0.79rem;
    text-decoration: none;
    transition: color var(--transition);
}

.footer-links a:hover,
.footer-links button:hover {
    color: var(--gold-light);
}

.footer-contact {
    display: grid;
    gap: 17px;
    margin: 0;
    font-style: normal;
}

.footer-contact a,
.footer-contact span {
    display: grid;
    grid-template-columns: 22px 1fr;
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.8rem;
    line-height: 1.55;
    text-decoration: none;
}

.footer-contact a:hover {
    color: var(--gold-light);
}

.footer-contact i {
    padding-top: 3px;
    color: var(--gold-light);
}

.footer-bottom {
    display: flex;
    padding: 22px 0;
    justify-content: space-between;
    gap: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.footer-bottom p {
    margin: 0;
    color: rgba(255, 255, 255, 0.36);
    font-size: 0.68rem;
}

.footer-bottom a {
    color: var(--gold-light);
    text-decoration: none;
}

/* Floating actions */
.floating-actions {
    position: fixed;
    z-index: 9000;
    right: 22px;
    bottom: 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.floating-btn {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    color: var(--white);
    background: var(--ink);
    border: 0;
    border-radius: 50%;
    box-shadow: 0 10px 30px rgba(9, 22, 38, 0.2);
    text-decoration: none;
    transition: transform var(--transition), background var(--transition), opacity var(--transition);
}

.floating-btn:hover {
    color: var(--white);
    transform: translateY(-3px);
}

.ai-bot-btn {
    color: var(--ink);
    background: var(--gold-light);
}

.ai-bot-btn:hover {
    color: var(--white);
    background: var(--gold);
}

.whatsapp-btn {
    background: #248d62;
}

.whatsapp-btn:hover {
    background: #1c7450;
}

.scroll-top-btn {
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
}

.scroll-top-btn.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

/* AI chat */
.ai-chat {
    position: fixed;
    z-index: 9500;
    right: 84px;
    bottom: 22px;
    display: flex;
    width: min(390px, calc(100vw - 32px));
    height: min(610px, calc(100vh - 44px));
    flex-direction: column;
    background: var(--white);
    border: 1px solid rgba(18, 32, 51, 0.1);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    transform: translateY(18px) scale(0.97);
    transform-origin: bottom right;
    transition: opacity var(--transition), transform var(--transition);
}

.ai-chat.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.chat-header {
    display: flex;
    padding: 16px 18px;
    align-items: center;
    justify-content: space-between;
    color: var(--white);
    background: var(--ink);
}

.chat-identity {
    display: flex;
    align-items: center;
    gap: 11px;
}

.chat-avatar {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    color: var(--ink);
    background: var(--gold-light);
    border-radius: 50%;
}

.chat-identity > span:last-child {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.chat-identity strong {
    font-size: 0.84rem;
}

.chat-identity small {
    color: rgba(255, 255, 255, 0.52);
    font-size: 0.63rem;
}

.chat-close {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    color: rgba(255, 255, 255, 0.72);
    background: rgba(255, 255, 255, 0.07);
    border: 0;
    border-radius: 50%;
}

.chat-messages {
    display: flex;
    flex: 1;
    padding: 18px;
    flex-direction: column;
    gap: 11px;
    background: #f5f6f7;
    overflow-y: auto;
}

.msg {
    max-width: 86%;
    padding: 11px 13px;
    border-radius: 12px;
    font-size: 0.77rem;
    line-height: 1.6;
}

.msg-ai {
    align-self: flex-start;
    color: var(--text);
    background: var(--white);
    border: 1px solid #e7e9ec;
    border-bottom-left-radius: 3px;
}

.msg-user {
    align-self: flex-end;
    color: var(--white);
    background: var(--ink-soft);
    border-bottom-right-radius: 3px;
}

.msg-error {
    color: #9c3440;
}

.typing {
    align-self: flex-start;
    color: var(--muted);
    background: transparent;
    font-size: 0.69rem;
    font-style: italic;
}

.chat-link {
    display: block;
    margin-top: 9px;
    padding: 9px 10px;
    color: var(--ink) !important;
    background: var(--paper);
    border: 1px solid var(--gold-light);
    border-radius: 6px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
}

.chat-link.wa-link {
    color: #1d7651 !important;
    border-color: #57aa83;
}

.quick-replies {
    display: flex;
    padding: 10px 12px;
    gap: 7px;
    background: var(--white);
    border-top: 1px solid var(--line);
    overflow-x: auto;
}

.quick-btn {
    padding: 7px 10px;
    flex: 0 0 auto;
    color: var(--ink-soft);
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 0.65rem;
    font-weight: 600;
}

.quick-btn:hover {
    color: var(--ink);
    border-color: var(--gold);
}

.chat-input-area {
    display: flex;
    padding: 11px 12px;
    align-items: center;
    gap: 8px;
    background: var(--white);
    border-top: 1px solid var(--line);
}

.chat-input-area input {
    width: 100%;
    max-width: none;
    min-height: 40px;
    padding: 8px 10px;
    background: #f6f7f8;
    border: 1px solid transparent;
    border-radius: 8px;
    outline: none;
    font-size: 0.76rem;
}

.chat-input-area input:focus {
    background: var(--white);
    border-color: var(--gold);
}

.send-btn {
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    place-items: center;
    color: var(--white);
    background: var(--ink);
    border: 0;
    border-radius: 8px;
}

.send-btn:disabled {
    opacity: 0.45;
}

.chat-disclaimer {
    margin: 0;
    padding: 0 12px 10px;
    color: #929aa4;
    background: var(--white);
    font-size: 0.58rem;
    text-align: center;
}

.site-alert {
    border-radius: var(--radius-md) !important;
    font-family: "DM Sans", sans-serif !important;
}

/* Responsive */
@media (max-width: 1199.98px) {
    .hero-section {
        min-height: 780px;
    }

    .hero-card {
        padding: 30px;
    }

    .principle-item {
        padding: 32px 22px;
    }

    .contact-info,
    .contact-form-panel {
        padding: 45px;
    }
}

@media (max-width: 991.98px) {
    .section-space {
        padding: 90px 0;
    }

    .site-header,
    .site-header.is-scrolled {
        background: rgba(11, 21, 35, 0.98);
        border-color: rgba(255, 255, 255, 0.1);
    }

    .site-header.is-scrolled .navbar-brand,
    .site-header.is-scrolled .nav-link {
        color: var(--white);
    }

    .site-header.is-scrolled .brand-copy small {
        color: rgba(255, 255, 255, 0.55);
    }

    .site-header.is-scrolled .brand-mark {
        color: var(--gold-light);
    }

    .site-header.is-scrolled .navbar-toggler {
        border-color: rgba(255, 255, 255, 0.3);
    }

    .site-header.is-scrolled .navbar-toggler-icon {
        filter: none;
    }

    .navbar-collapse {
        padding: 14px 0 20px;
    }

    .navbar .nav-link,
    .site-header.is-scrolled .nav-link {
        color: rgba(255, 255, 255, 0.75);
    }

    .site-header.is-scrolled .btn-header {
        display: block;
        margin-top: 8px;
        color: var(--ink);
        background: var(--gold-light);
        border-color: var(--gold-light);
        text-align: center;
    }

    .hero-section {
        min-height: auto;
        padding: 145px 0 85px;
    }

    .hero-card {
        max-width: none;
        margin: 5px 0 0;
    }

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

    .principle-item,
    .principle-item:first-child {
        border-right: 1px solid var(--line);
        border-bottom: 1px solid var(--line);
        border-left: 1px solid var(--line);
    }

    .section-heading {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .section-heading > p {
        max-width: 650px;
    }

    .services-grid,
    .portal-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .approach-section {
        padding-bottom: 90px;
    }

    .approach-panel {
        grid-template-columns: 1fr;
        gap: 50px;
        padding: 56px;
    }

    .contact-shell {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .section-space {
        padding: 72px 0;
    }

    .navbar {
        min-height: 76px;
    }

    .brand-copy strong {
        font-size: 1rem;
    }

    .hero-section {
        padding: 125px 0 70px;
    }

    .hero-content h1 {
        font-size: clamp(2.7rem, 13vw, 4rem);
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .hero-assurance {
        gap: 13px;
        justify-content: space-between;
    }

    .hero-card {
        padding: 28px 24px;
    }

    .hero-card-quote {
        font-size: 1.45rem;
    }

    .principle-item {
        padding: 26px 20px;
    }

    .section-heading {
        margin-bottom: 40px;
    }

    .section-heading h2,
    .approach-copy h2,
    .contact-info h2 {
        font-size: clamp(2.2rem, 10vw, 3.2rem);
    }

    .services-grid,
    .portal-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        min-height: 310px;
    }

    .service-modal .modal-body {
        padding: 45px 26px 28px;
    }

    .modal-action {
        flex-direction: column;
        align-items: stretch;
    }

    .approach-section {
        padding-bottom: 72px;
    }

    .approach-panel {
        padding: 40px 26px;
        gap: 40px;
        border-radius: var(--radius-sm);
    }

    .contact-info,
    .contact-form-panel {
        padding: 40px 24px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-main {
        padding: 58px 0 42px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .ai-chat {
        right: 16px;
        bottom: 78px;
        height: min(580px, calc(100vh - 100px));
    }

    .floating-actions {
        right: 16px;
        bottom: 16px;
        flex-direction: row;
    }

    .floating-actions .ai-bot-btn {
        order: 2;
    }

    .floating-actions .whatsapp-btn {
        order: 1;
    }

    .floating-actions .scroll-top-btn {
        order: 3;
    }
}

@media (max-width: 389.98px) {
    .brand-copy small {
        display: none;
    }

    .brand-mark {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
    }

    .hero-assurance {
        flex-direction: column;
    }
}
