/* base.css — shared by ALL pages (index + both calculators) */
:root {
    --navy: #061522;
    --navy-2: #09283a;
    --gold: #00c8ed;
    --gold-light: #35ddf7;
    --gold-ink: #003747;
    --gold-soft: #e5faff;
    --cream: #f6f4ef;
    --ink: #172a40;
    --muted: #5b6b7e;
    --line: #e2e6eb;
    --green: #00bfe8;
    --red: #b0354a;
    --radius: 14px;
    --shadow: 0 1px 2px rgba(15, 34, 56, .05), 0 10px 28px rgba(15, 34, 56, .07);
    --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
    --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* {
    box-sizing: border-box
}

[hidden] {
    display: none !important
}

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

body {
    margin: 0;
    background: var(--cream);
    color: var(--ink);
    font: 16px/1.6 var(--sans);
    -webkit-font-smoothing: antialiased
}

h1,
h2,
h3 {
    font-family: var(--sans);
    color: var(--navy);
    line-height: 1.18;
    margin: 0 0 .5em;
    font-weight: 700;
    letter-spacing: -.01em
}

h1 {
    font-size: clamp(2rem, 5vw, 3.2rem)
}

h2 {
    font-size: clamp(1.4rem, 3vw, 1.9rem)
}

h3 {
    font-size: 1.1rem
}

p {
    margin: 0 0 1em
}

a {
    color: var(--navy-2)
}

.container {
    width: min(1120px, 100% - 2rem);
    margin-inline: auto
}

.muted {
    color: var(--muted)
}

.note {
    font-size: .8rem;
    color: var(--muted)
}

.eyebrow {
    color: var(--gold-ink);
    text-transform: uppercase;
    letter-spacing: .14em;
    font-size: .75rem;
    font-weight: 800;
    margin-bottom: .5rem
}

:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 2px
}

.skip {
    position: absolute;
    left: -999px;
    top: 0;
    background: #fff;
    padding: .6rem 1rem;
    z-index: 100
}

.skip:focus {
    left: 0
}

section[id],
main[id] {
    scroll-margin-top: 84px
}

/* staging banner + header */
.staging-bar {
    background: #fff4d6;
    color: #6b4b05;
    font-size: .78rem;
    text-align: center;
    padding: .4rem 1rem;
    border-bottom: 1px solid #ecd9a0
}

.site-header {
    background: var(--navy);
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 50
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .75rem 0
}

.brand {
    display: flex;
    align-items: center;
    gap: .75rem;
    color: #fff;
    text-decoration: none
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    border: 1px solid var(--gold);
    color: var(--gold-light);
    font: 700 1rem var(--serif);
    letter-spacing: .04em;
    flex: none
}

.brand-text strong {
    display: block;
    font: 700 1.02rem var(--serif);
    letter-spacing: .02em;
    line-height: 1.2
}

.brand-text small {
    display: block;
    color: #b9c7d8;
    font-size: .7rem;
    letter-spacing: .05em
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.25rem
}

.nav-links a:not(.btn) {
    color: #dbe5f0;
    text-decoration: none;
    font-size: .9rem;
    font-weight: 600
}

.nav-links a:not(.btn):hover {
    color: #fff
}

/* buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    min-height: 46px;
    padding: .7rem 1.4rem;
    border: 1px solid transparent;
    border-radius: 10px;
    font: 700 .95rem var(--sans);
    text-decoration: none;
    cursor: pointer;
    transition: transform .15s, box-shadow .15s, background .15s
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(15, 34, 56, .18)
}

.btn-primary {
    background: var(--navy);
    color: #fff
}

.btn-gold {
    background: var(--gold);
    color: #101c2b
}

.btn-wa {
    background: var(--green);
    color: #fff
}

.btn-ghost {
    background: #fff;
    border-color: var(--line);
    color: var(--navy)
}

.btn-light {
    background: transparent;
    border-color: #7289a3;
    color: #fff
}

.btn-sm {
    min-height: 38px;
    padding: .4rem .95rem;
    font-size: .85rem
}

.btn[disabled] {
    opacity: .65;
    cursor: not-allowed;
    transform: none;
    box-shadow: none
}

.spinner {
    width: 1em;
    height: 1em;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spin .7s linear infinite;
    display: inline-block
}

@keyframes spin {
    to {
        transform: rotate(360deg)
    }
}

.actions {
    display: flex;
    gap: .8rem;
    flex-wrap: wrap;
    margin: 1.5rem 0
}

/* alerts */
.alert {
    background: #fff4e7;
    color: #8a3f0f;
    border: 1px solid #f0cfa8;
    border-radius: 10px;
    padding: .8rem 1rem;
    font-size: .9rem;
    margin-top: 1rem
}

/* form controls (used by calculators AND the lead form) */
label {
    display: block;
    font-size: .84rem;
    font-weight: 700;
    margin-bottom: .35rem
}

input,
select {
    width: 100%;
    min-height: 46px;
    border: 1px solid #c5cfda;
    border-radius: 10px;
    padding: .65rem .8rem;
    font: inherit;
    font-size: 1rem;
    color: var(--ink);
    background: #fff
}

input:focus,
select:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(180, 139, 69, .3)
}

input[aria-invalid=true] {
    border-color: var(--red)
}

input[type=checkbox] {
    width: 20px;
    min-height: 20px;
    height: 20px;
    flex: none;
    accent-color: var(--navy)
}

.field {
    min-width: 0
}

/* lead form */
.lead-wrap {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: clamp(1.2rem, 4vw, 2.1rem);
    box-shadow: var(--shadow);
    margin-top: 1.3rem
}

.lead-set {
    border: 0;
    padding: 0;
    margin: 0;
    min-width: 0
}

.lead-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem 1.25rem
}

.field-error {
    color: var(--red);
    font-size: .8rem;
    min-height: 1.1em;
    margin-top: .25rem
}

.consent {
    margin-top: .6rem
}

.check {
    display: flex;
    gap: .7rem;
    align-items: flex-start;
    font-weight: 400;
    font-size: .86rem;
    color: #33475c
}

.hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden
}

.lead-submit {
    margin-top: .8rem;
    min-width: 200px
}

.lead-status {
    margin-top: 1rem;
    font-size: .9rem
}

.status-error {
    background: #fdecef;
    color: #8c2336;
    border: 1px solid #f3c1ca;
    border-radius: 10px;
    padding: .8rem 1rem
}

.lead-success {
    text-align: left;
    padding: .5rem 0
}

.lead-success h2 {
    color: var(--green)
}

/* footer + floating WhatsApp */
.site-footer {
    background: var(--navy);
    color: #b9c7d8;
    padding: 2rem 0;
    font-size: .8rem;
    margin-top: 3rem
}

.site-footer a {
    color: #e0c58f
}

.wa-float {
    position: fixed;
    right: 16px;
    bottom: 16px;
    background: var(--green);
    color: #fff;
    padding: .7rem 1.1rem;
    border-radius: 30px;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .25);
    font-weight: 700;
    font-size: .85rem;
    z-index: 40
}

/* responsive (shared parts only) */
@media(max-width:640px) {
    .nav-links a:not(.btn) {
        display: none
    }

    .brand-text small {
        display: none
    }

    .lead-fields {
        grid-template-columns: 1fr
    }
}

@media(max-width:520px) {
    .btn {
        width: 100%
    }

    .nav-links .btn {
        width: auto
    }

    .actions .btn {
        flex: 1 1 100%
    }

    .wa-float {
        padding: .6rem .9rem;
        font-size: .78rem
    }
}

@media(prefers-reduced-motion:reduce) {
    * {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important
    }
}

/* print (shared parts) */
@media print {

    .staging-bar,
    .nav-links,
    .actions,
    .wa-float,
    .lead-wrap,
    .no-print,
    .site-footer {
        display: none !important
    }

    body {
        background: #fff
    }

    .site-header {
        position: static;
        background: #fff;
        color: var(--navy);
        border-bottom: 2px solid var(--navy)
    }

    .brand,
    .brand-text small {
        color: var(--navy)
    }
}
/* Header portrait replaces the PT text mark */
.brand-mark.brand-photo {
  display: block;
  width: 46px;
  height: 46px;
  min-width: 46px;
  object-fit: cover;
  object-position: center 18%;
  border-radius: 50%;
  border: 2px solid var(--gold);
  padding: 0;
  font: inherit;
  letter-spacing: normal;
}
