@import url('../../../design_system/colors_and_type.css');

:root {
    --edifica-blue: #12495d;
    --edifica-petrol: #045d74;
    --edifica-mid: #33829f;
    --edifica-gold: #e1ad01;
    --edifica-ink: #183b49;
    --edifica-body: #38515c;
    --edifica-muted: #526875;
    --edifica-line: #c9d9de;
    --edifica-cloud: #eef5f6;
    --edifica-white: #fff;
    --font-edifica: var(--font-family, 'Montserrat', Arial, sans-serif);
    --ease-edifica: cubic-bezier(.2, .75, .25, 1);
    color-scheme: light;
    font-family: var(--font-edifica);
    color: var(--edifica-body);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-edifica);
    color: var(--edifica-body);
    line-height: 1.6;
    background: var(--edifica-cloud);
    -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; }

button, input, select { font: inherit; }

.skip-link {
    position: fixed;
    z-index: 20;
    top: 8px;
    left: 8px;
    padding: 10px 14px;
    color: #fff;
    background: #0b2935;
    transform: translateY(-150%);
}

.skip-link:focus { transform: translateY(0); }

:focus-visible {
    outline: 3px solid #b88600;
    outline-offset: 4px;
}

.site-header {
    min-height: 92px;
    padding: 14px max(22px, calc((100vw - 1180px) / 2));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    background: #fff;
}

.brand-mark { width: 118px; flex: 0 0 auto; }
.brand-mark img { width: 100%; height: 64px; object-fit: contain; }
.header-note { font-size: 13px; font-weight: 600; letter-spacing: .035em; color: var(--edifica-muted); }

.hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background: var(--edifica-blue);
    isolation: isolate;
}

.hero::before {
    content: "";
    position: absolute;
    z-index: -1;
    width: min(58vw, 700px);
    aspect-ratio: 1;
    border: 1px solid rgb(225 173 1 / 22%);
    border-radius: 50%;
    top: -46%;
    right: -13%;
    box-shadow: 0 0 0 42px rgb(225 173 1 / 4%), 0 0 0 84px rgb(225 173 1 / 3%);
    animation: orbit-breathe 14s ease-in-out infinite alternate;
}

.hero::after {
    content: "";
    position: absolute;
    z-index: -1;
    width: 250px;
    height: 250px;
    right: 15%;
    bottom: -190px;
    border: 1px solid rgb(255 255 255 / 16%);
    border-radius: 50%;
}

.hero-layout {
    width: min(1120px, calc(100% - 44px));
    min-height: 570px;
    margin: 0 auto;
    padding: clamp(54px, 8vw, 108px) 0;
    display: grid;
    grid-template-columns: minmax(0, .92fr) minmax(360px, 1.08fr);
    align-items: center;
    gap: clamp(44px, 8vw, 110px);
}

.hero-copy { max-width: 490px; }

.hero-eyebrow {
    margin: 0 0 20px;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .04em;
}

.hero-eyebrow::before {
    content: "";
    display: inline-block;
    width: 26px;
    height: 3px;
    margin: 0 10px 4px 0;
    background: var(--edifica-gold);
}

.hero h1 {
    max-width: 11ch;
    margin: 0;
    font-size: clamp(2.5rem, 5.5vw, 4.25rem);
    line-height: 1.06;
    letter-spacing: -.035em;
    font-weight: 800;
    text-wrap: balance;
}

.hero-subtitle {
    max-width: 39ch;
    margin: 24px 0 0;
    color: #f4f8f9;
    font-size: clamp(1rem, 1.45vw, 1.15rem);
    line-height: 1.65;
    text-wrap: pretty;
}

.hero-nudge {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    margin: 40px 0 0;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}

.hero-nudge span { color: var(--edifica-gold); font-size: 22px; }

.link-list { display: grid; gap: 12px; }

.link-item {
    min-height: 68px;
    padding: 13px 18px;
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) 22px;
    align-items: center;
    gap: 16px;
    color: var(--edifica-blue);
    background: #fff;
    border: 1px solid rgb(255 255 255 / 60%);
    border-radius: 14px;
    text-decoration: none;
    transition: transform 220ms var(--ease-edifica), background-color 220ms var(--ease-edifica), box-shadow 220ms var(--ease-edifica);
    animation: link-enter 520ms var(--ease-edifica) both;
    animation-delay: calc(var(--item-order, 0) * 65ms);
}

.link-item:hover { transform: translateY(-3px); box-shadow: 0 7px 14px rgb(3 36 48 / 18%); }
.link-item:active { transform: translateY(-1px) scale(.99); }
.link-item-contact { background: var(--edifica-gold); border-color: var(--edifica-gold); color: #142f39; }
.link-item-contact:hover { background: #f1c52d; }
.link-icon-wrap { width: 38px; height: 38px; display: grid; place-items: center; color: var(--edifica-mid); }
.link-item-contact .link-icon-wrap { color: #142f39; }
.link-icon { width: 28px; height: 28px; flex: 0 0 auto; }
.link-label { min-width: 0; overflow-wrap: anywhere; font-size: 15px; font-weight: 800; letter-spacing: .055em; text-transform: uppercase; }
.link-arrow { justify-self: end; color: var(--edifica-muted); font-size: 20px; transition: transform 180ms var(--ease-edifica); }
.link-item:hover .link-arrow { transform: translate(2px, -2px); }
.link-item-contact .link-arrow { color: #142f39; }
.link-empty { margin: 0; padding: 20px; color: #fff; border: 1px solid rgb(255 255 255 / 35%); border-radius: 12px; }

.portfolio-section { padding: clamp(66px, 9vw, 112px) 22px; background: var(--edifica-cloud); }

.portfolio-layout {
    width: min(1040px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, .82fr) minmax(400px, 1fr);
    align-items: center;
    gap: clamp(38px, 7vw, 84px);
}

.portfolio-copy { max-width: 430px; }
.section-mark { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; color: #173b49; background: var(--edifica-gold); font-size: 12px; font-weight: 900; letter-spacing: .04em; transform: rotate(-5deg); }
.portfolio-copy h2 { margin: 22px 0 16px; color: var(--edifica-blue); font-size: clamp(2rem, 3.5vw, 3rem); line-height: 1.12; letter-spacing: -.03em; text-wrap: balance; }
.portfolio-copy > p { max-width: 40ch; margin: 0; color: var(--edifica-body); font-size: 16px; }
.portfolio-note { display: flex; align-items: center; gap: 10px; margin-top: 28px; color: var(--edifica-muted); font-size: 13px; font-weight: 600; }
.portfolio-note span { color: #795d00; font-size: 20px; }

.form-card {
    padding: clamp(24px, 4vw, 38px);
    background: #fff;
    border: 1px solid var(--edifica-line);
    border-radius: 16px;
}

.lead-form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field-group { min-width: 0; display: grid; gap: 7px; }
.field-group label { color: var(--edifica-blue); font-size: 13px; font-weight: 800; }
.field-group input, .field-group select {
    width: 100%;
    min-height: 48px;
    padding: 11px 13px;
    color: #233d48;
    background: #fff;
    border: 1px solid #9bafb7;
    border-radius: 8px;
}

.field-group input::placeholder { color: #526875; opacity: 1; }
.field-group input:hover, .field-group select:hover { border-color: var(--edifica-mid); }
.field-group input:focus-visible, .field-group select:focus-visible { outline: 3px solid rgb(51 130 159 / 35%); outline-offset: 1px; border-color: var(--edifica-blue); }
.consent-row { display: flex; align-items: flex-start; gap: 11px; color: #334c57; font-size: 13px; line-height: 1.5; cursor: pointer; }
.consent-row input { width: 19px; height: 19px; flex: 0 0 auto; margin: 1px 0 0; accent-color: var(--edifica-blue); }
.form-privacy { margin: -8px 0 0; color: #526875; font-size: 12px; }
.honeypot { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.button {
    min-height: 52px;
    padding: 13px 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border: 0;
    border-radius: 999px;
    color: #172f39;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: .045em;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: transform 180ms var(--ease-edifica), background-color 180ms var(--ease-edifica);
}

.button-gold { background: var(--edifica-gold); }
.button-gold:hover { background: #f0c129; transform: translateY(-2px); }
.button-gold:active { transform: translateY(0) scale(.99); }
.submit-button { width: 100%; }
.submit-button span { font-size: 20px; }

.form-alert { padding: 12px 14px; color: #812e18; background: #fff0e9; border: 1px solid #dc9b7e; border-radius: 8px; font-size: 14px; font-weight: 700; }
.success-card { display: grid; justify-items: start; gap: 16px; }
.success-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; color: #153b49; background: var(--edifica-gold); font-size: 27px; font-weight: 800; }
.success-card h3 { margin: 0; color: var(--edifica-blue); font-size: 27px; line-height: 1.2; }
.success-card p { margin: 0 0 5px; }

.site-footer { padding: 38px 22px 18px; color: #fff; background: #103d50; }
.footer-main, .footer-bottom { width: min(1120px, 100%); margin: 0 auto; }
.footer-main { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding-bottom: 27px; }
.footer-brand { width: 180px; display: grid; gap: 7px; color: #fff; font-size: 11px; letter-spacing: .09em; text-decoration: none; }
.footer-brand img { width: 154px; height: 67px; object-fit: contain; filter: brightness(0) invert(1); }
.footer-contact { display: grid; gap: 5px; font-size: 13px; }
.footer-contact a { text-underline-offset: 3px; }
.footer-site-link { color: #fff; font-size: 14px; font-weight: 700; text-underline-offset: 4px; }
.footer-bottom { padding-top: 15px; display: flex; justify-content: space-between; gap: 18px; border-top: 1px solid rgb(255 255 255 / 18%); color: #e4edef; font-size: 11px; }

@keyframes link-enter { from { opacity: .4; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes orbit-breathe { to { transform: translate3d(-10px, 14px, 0) scale(1.02); opacity: .75; } }

/* WordPress link editor */
.admin-body { background: #f2f6f7; }
.admin-shell { width: min(960px, calc(100% - 32px)); margin: 36px auto 60px; }
.admin-topbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.admin-brand { display: flex; align-items: center; gap: 16px; }
.admin-brand img { width: 64px; height: 64px; object-fit: contain; }
.admin-brand strong { display: block; color: var(--edifica-blue); font-size: 15px; }
.admin-brand span { color: #526875; font-size: 13px; }
.admin-back { color: var(--edifica-blue); font-size: 14px; font-weight: 700; text-underline-offset: 3px; }
.admin-heading { margin-bottom: 24px; }
.admin-heading h1 { margin: 0 0 7px; color: var(--edifica-blue); font-size: 30px; line-height: 1.2; letter-spacing: -.025em; }
.admin-heading p { margin: 0; color: #465f69; }
.admin-panel { padding: 22px; background: #fff; border: 1px solid var(--edifica-line); border-radius: 12px; }
.admin-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 0 0 14px; }
.admin-toolbar p { margin: 0; color: #465f69; font-size: 13px; }
.admin-link-row { padding: 15px; display: grid; grid-template-columns: minmax(150px, 1fr) minmax(180px, 1.3fr) 145px auto; align-items: end; gap: 12px; background: #f8fbfb; border: 1px solid #c9d9de; border-radius: 10px; }
.admin-link-row + .admin-link-row { margin-top: 10px; }
.admin-link-row .field-group label { font-size: 12px; }
.admin-link-row input, .admin-link-row select { min-height: 42px; padding: 8px 10px; }
.admin-row-actions { display: flex; align-items: center; justify-content: flex-end; gap: 4px; }
.icon-button { width: 38px; min-height: 38px; display: inline-grid; place-items: center; color: var(--edifica-blue); background: #fff; border: 1px solid #90aab4; border-radius: 7px; font-size: 17px; cursor: pointer; }
.icon-button:hover { background: #e7f0f2; }
.icon-button:disabled { opacity: .5; cursor: not-allowed; }
.icon-button-delete { color: #8e3521; }
.admin-enabled { display: flex; align-items: center; gap: 8px; color: #334c57; font-size: 12px; font-weight: 700; }
.admin-enabled input { width: 17px; height: 17px; accent-color: var(--edifica-blue); }
.button-blue { color: #fff; background: var(--edifica-blue); }
.button-blue:hover { background: #0b6075; transform: translateY(-1px); }
.admin-save-row { display: flex; justify-content: flex-end; gap: 12px; margin-top: 22px; }
.admin-notice { margin: 0 0 17px; padding: 12px 14px; border-radius: 8px; font-size: 14px; }
.admin-notice-success { color: #164e3b; background: #e7f4ed; border: 1px solid #79b69b; }
.admin-notice-error { color: #812e18; background: #fff0e9; border: 1px solid #dc9b7e; }
.admin-empty { padding: 24px 12px; color: #526875; text-align: center; }
.admin-help { margin: 14px 0 0; color: #526875; font-size: 12px; }
.admin-login-note { margin-top: 20px; color: #526875; font-size: 12px; text-align: center; }

@media (max-width: 820px) {
    .hero-layout { min-height: 0; grid-template-columns: 1fr; gap: 32px; padding: 58px 0 64px; }
    .hero-copy { max-width: 620px; }
    .hero h1 { max-width: 14ch; font-size: clamp(2.7rem, 8vw, 4rem); }
    .hero-nudge { margin-top: 25px; }
    .link-list { width: min(620px, 100%); }
    .portfolio-layout { grid-template-columns: 1fr; gap: 30px; }
    .portfolio-copy { max-width: 620px; }
    .form-card { width: min(680px, 100%); }
    .admin-link-row { grid-template-columns: 1fr 1fr; }
    .admin-row-actions { grid-column: 2; grid-row: 3; }
    .admin-enabled { grid-column: 1; grid-row: 3; }
}

@media (max-width: 560px) {
    .site-header { min-height: 76px; padding: 9px 18px; }
    .brand-mark { width: 88px; }
    .brand-mark img { height: 56px; }
    .header-note { max-width: 190px; font-size: 11px; text-align: right; }
    .hero-layout { width: calc(100% - 36px); padding: 48px 0 52px; }
    .hero h1 { max-width: 12ch; font-size: clamp(2.4rem, 11vw, 3.3rem); }
    .hero-subtitle { margin-top: 17px; font-size: 15px; }
    .link-list { gap: 9px; }
    .link-item { min-height: 61px; padding: 10px 12px; grid-template-columns: 34px minmax(0, 1fr) 20px; gap: 11px; border-radius: 11px; }
    .link-icon-wrap { width: 32px; height: 32px; }
    .link-icon { width: 24px; height: 24px; }
    .link-label { font-size: 13px; }
    .portfolio-section { padding: 54px 18px; }
    .portfolio-copy h2 { font-size: 2.2rem; }
    .form-card { padding: 21px 17px; }
    .lead-form { gap: 15px; }
    .form-row { grid-template-columns: 1fr; gap: 15px; }
    .footer-main { align-items: flex-start; flex-direction: column; gap: 20px; }
    .footer-contact { gap: 3px; }
    .footer-bottom { flex-direction: column; gap: 4px; }
    .admin-shell { width: min(100% - 24px, 700px); margin: 20px auto 40px; }
    .admin-topbar { align-items: flex-start; }
    .admin-brand { gap: 9px; }
    .admin-brand img { width: 48px; height: 48px; }
    .admin-back { font-size: 12px; }
    .admin-heading h1 { font-size: 25px; }
    .admin-panel { padding: 14px; }
    .admin-toolbar { align-items: flex-start; flex-direction: column; }
    .admin-link-row { padding: 11px; grid-template-columns: 1fr; gap: 10px; }
    .admin-enabled, .admin-row-actions { grid-column: auto; grid-row: auto; justify-content: flex-start; }
    .admin-save-row { flex-direction: column-reverse; }
    .admin-save-row .button { width: 100%; }
}

/* Preview direction v2: glass tiles inspired by site signage and construction samples. */
.site-header { min-height: 82px; background: rgb(248 253 254 / 92%); backdrop-filter: blur(14px); }
.header-note { color: var(--edifica-blue); }
.hero {
    overflow: visible;
    background: radial-gradient(ellipse at 78% 15%, #126b78 0, transparent 38%), #082e3c;
}
.hero::before {
    width: min(43vw, 530px);
    top: -38%;
    right: 5%;
    border: 0;
    background: #55d9e3;
    filter: blur(95px);
    opacity: .2;
    box-shadow: none;
}
.hero::after {
    width: 250px;
    height: 250px;
    right: auto;
    bottom: 5%;
    left: -150px;
    border: 0;
    background: #e1ad01;
    filter: blur(95px);
    opacity: .11;
}
.hero-layout {
    width: min(1200px, calc(100% - 56px));
    min-height: 720px;
    padding: 82px 0 92px;
    grid-template-columns: minmax(0, .76fr) minmax(0, 1.24fr);
    align-items: center;
    gap: clamp(38px, 6vw, 88px);
}
.hero-copy { max-width: 470px; }
.hero-eyebrow { color: #a9f4ee; }
.hero-eyebrow::before { background: #d8ff69; }
.hero h1 { max-width: 13ch; font-size: clamp(2.75rem, 4vw, 3.55rem); line-height: 1.1; }
.hero-subtitle { max-width: 34ch; color: #d8eef0; }
.hero-nudge { color: #e5fbfa; }
.hero-eyebrow::before { background: #e1ad01; }
.hero-nudge span { color: #e1ad01; }
.link-list {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px;
    overflow: visible;
}
.link-item:nth-child(3n + 1):last-child { grid-column: 3 / span 2; }
.link-item:nth-child(3n + 1):nth-last-child(2) { grid-column: 2 / span 2; }
.link-item {
    grid-column: span 2;
    position: relative;
    z-index: 1;
    min-width: 0;
    min-height: 0;
    aspect-ratio: 1;
    padding: clamp(16px, 2vw, 24px);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    overflow: visible;
    color: #f4ffff;
    background: linear-gradient(145deg, rgb(224 249 255 / 18%), rgb(224 249 255 / 7%));
    border: 1px solid rgb(208 250 255 / 38%);
    border-radius: 20px;
    box-shadow: inset 0 1px rgb(255 255 255 / 24%), 0 18px 40px rgb(0 14 23 / 18%);
    backdrop-filter: blur(22px) saturate(145%);
    -webkit-backdrop-filter: blur(22px) saturate(145%);
    transition: transform 260ms var(--ease-edifica), background 260ms var(--ease-edifica), box-shadow 260ms var(--ease-edifica), border-color 260ms var(--ease-edifica);
    animation: link-enter 500ms var(--ease-edifica) both;
    animation-delay: calc(var(--item-order, 0) * 55ms);
}
.link-icon-wrap { width: 48px; height: 48px; color: #79efea; }
.link-icon { width: 34px; height: 34px; }
.link-label { max-width: calc(100% - 24px); color: inherit; font-size: clamp(13px, 1.25vw, 16px); font-weight: 800; letter-spacing: -.01em; text-transform: none; line-height: 1.2; }
.link-arrow { position: absolute; right: 18px; bottom: 18px; color: #bfe8e8; font-size: 22px; }
.link-item-contact { color: #f4ffff; background: linear-gradient(145deg, rgb(224 249 255 / 18%), rgb(224 249 255 / 7%)); border-color: rgb(208 250 255 / 38%); }
.link-item-contact .link-icon-wrap { color: #25d366; }
.link-item-contact .link-arrow { color: #bfe8e8; }
.link-item[data-icon="portfolio"] { color: #17323a; background: linear-gradient(145deg, #f3d76f, #e1ad01); border-color: #f6df8e; }
.link-item[data-icon="portfolio"] .link-icon-wrap, .link-item[data-icon="portfolio"] .link-arrow { color: #3a371f; }
.link-bubble {
    position: absolute;
    z-index: 8;
    left: 50%;
    bottom: calc(100% + 14px);
    width: min(270px, calc(100vw - 42px));
    padding: 13px 16px;
    color: #102f39;
    background: #f3ffff;
    border: 1px solid rgb(255 255 255 / 90%);
    border-radius: 14px;
    box-shadow: 0 15px 36px rgb(0 17 28 / 28%);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(-50%, 8px) scale(.97);
    transition: opacity 180ms ease, transform 220ms var(--ease-edifica), visibility 180ms;
}
.link-bubble::after {
    content: "";
    position: absolute;
    top: 100%;
    left: calc(50% - 7px);
    border: 7px solid transparent;
    border-top-color: #f3ffff;
}
.link-item:hover, .link-item:focus-visible {
    z-index: 5;
    color: #fff;
    background: linear-gradient(145deg, rgb(255 255 255 / 25%), rgb(91 228 229 / 15%));
    border-color: #a8fffa;
    box-shadow: 0 0 0 1px rgb(168 255 250 / 32%), 0 24px 56px rgb(0 12 22 / 38%), 0 0 32px rgb(75 228 227 / 22%);
    transform: translateY(-7px) scale(1.035);
}
.link-item:hover .link-bubble, .link-item:focus-visible .link-bubble { opacity: 1; visibility: visible; transform: translate(-50%, 0) scale(1); }
.link-item[data-icon="portfolio"]:hover, .link-item[data-icon="portfolio"]:focus-visible { color: #17323a; background: linear-gradient(145deg, #f7df8d, #e8b715); }
.link-item-contact:hover, .link-item-contact:focus-visible { color: #f4ffff; background: linear-gradient(145deg, rgb(255 255 255 / 25%), rgb(91 228 229 / 15%)); }
.link-item:hover .link-arrow, .link-item:focus-visible .link-arrow { transform: translate(2px, -2px); color: currentColor; }
.link-item:focus-visible { outline-color: #e1ad01; }
.portfolio-section { background: linear-gradient(135deg, #f2fbfc, #e4f2f3); }
.form-card { border-color: #c5e1e4; border-radius: 22px; box-shadow: 0 24px 60px rgb(15 65 80 / 10%); }
.site-footer { border-top: 1px solid rgb(99 230 226 / 50%); }
.footer-main { display: grid; grid-template-columns: 180px minmax(130px, 1fr) minmax(130px, 1fr) minmax(260px, 1.25fr); align-items: start; gap: 28px; }
.footer-brand-block { display: grid; gap: 10px; }
.footer-tagline { color: #b6cbd2; font-size: 10px; letter-spacing: .12em; white-space: nowrap; }
.footer-nav { display: grid; justify-items: start; gap: 14px; font-size: 13px; }
.footer-nav h2 { margin: 1px 0 1px; color: #fff; font-size: 14px; line-height: 1.2; text-transform: uppercase; }
.footer-nav a, .footer-contact a { color: #d2e1e5; text-decoration: none; }
.footer-nav a:hover, .footer-contact a:hover { color: #f1c532; text-decoration: underline; text-underline-offset: 3px; }
.footer-contact { gap: 12px; line-height: 1.55; }
.footer-contact i { display: inline-block; width: 18px; margin-right: 5px; color: #e1ad01; font-style: normal; text-align: center; }
.admin-link-row { grid-template-columns: minmax(120px, .8fr) minmax(145px, 1fr) minmax(165px, 1.15fr) 115px auto auto; }
.admin-link-row textarea {
    width: 100%;
    min-height: 42px;
    padding: 8px 10px;
    font: inherit;
    color: #243f4b;
    background: #fff;
    border: 1px solid #a9bec5;
    border-radius: 7px;
    resize: vertical;
}
.admin-link-row textarea:focus-visible { outline: 3px solid #73c9da; outline-offset: 2px; border-color: var(--edifica-blue); }
.admin-help + .admin-help { margin-top: 3px; }
@keyframes link-enter { from { opacity: 0; } to { opacity: 1; } }

@media (min-width: 761px) and (max-width: 960px) {
    .footer-main { grid-template-columns: 150px 1fr 1fr; }
    .footer-contact { grid-column: 2 / 4; }
    .admin-link-row { grid-template-columns: 1fr 1fr; }
    .admin-row-actions { grid-column: 2; grid-row: 4; }
    .admin-enabled { grid-column: 1; grid-row: 4; }
}
@media (max-width: 960px) {
    .hero-layout { width: min(620px, calc(100% - 40px)); min-height: 0; grid-template-columns: 1fr; gap: 42px; padding: 62px 0 68px; }
    .hero-copy { max-width: 600px; }
    .hero h1 { max-width: 14ch; font-size: clamp(3rem, 9vw, 4.3rem); }
    .hero-nudge { margin-top: 24px; }
    .link-list { width: 100%; grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .link-item:nth-child(3n + 1):last-child, .link-item:nth-child(3n + 1):nth-last-child(2) { grid-column: auto; }
    .link-item:nth-child(2n + 1):last-child { grid-column: 2 / span 2; }
    .link-list { width: min(100%, 540px); margin-inline: auto; }
    .link-item { padding: clamp(14px, 4vw, 22px); }
    .link-label { font-size: clamp(14px, 2.2vw, 17px); }
    .link-bubble { position: static; display: block; width: 100%; padding: 0; color: #d9f2f1; background: transparent; border: 0; border-radius: 0; box-shadow: none; font-size: clamp(10px, 2.7vw, 12px); font-weight: 600; line-height: 1.32; text-align: left; opacity: 1; visibility: visible; transform: none; transition: none; }
    .link-item-contact .link-bubble { color: #d9f2f1; }
    .link-item[data-icon="portfolio"] .link-bubble { color: #12353c; }
    .link-bubble::after { display: none; }
}
@media (max-width: 560px) {
    .site-header { min-height: 72px; }
    .hero-layout { width: calc(100% - 48px); padding: 42px 0 52px; gap: 26px; }
    .hero h1 { max-width: 15ch; font-size: clamp(2.1rem, 8.5vw, 2.5rem); line-height: 1.12; }
    .hero-subtitle { max-width: 34ch; }
    .link-list { width: calc(100% - 16px); gap: 10px; }
    .link-item { padding: 12px; gap: 4px; border-radius: 16px; }
    .link-icon-wrap { width: 34px; height: 34px; }
    .link-icon { width: 26px; height: 26px; }
    .link-label { max-width: calc(100% - 14px); font-size: 14px; }
    .link-arrow { right: 11px; bottom: 11px; font-size: 18px; }
    .footer-main { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 24px 18px; }
    .footer-brand-block { grid-column: 1 / -1; }
    .footer-contact { grid-column: 1 / -1; }
    .footer-nav { gap: 10px; }
    .admin-link-row { grid-template-columns: 1fr; }
    .admin-enabled, .admin-row-actions { grid-column: auto; grid-row: auto; }
}

.portfolio-page .site-header { border-bottom: 1px solid #d7e8eb; }
.portfolio-back { color: var(--edifica-blue); text-decoration: none; }
.portfolio-page-section { min-height: calc(100vh - 260px); display: grid; align-items: center; }
.portfolio-page .portfolio-copy h1 { margin: 22px 0 16px; color: var(--edifica-blue); font-size: clamp(2.2rem, 3.5vw, 3rem); line-height: 1.12; letter-spacing: -.03em; text-wrap: balance; }
.whatsapp-float {
    position: fixed;
    z-index: 30;
    right: 24px;
    bottom: max(24px, env(safe-area-inset-bottom));
    width: 66px;
    height: 66px;
    display: grid;
    place-items: center;
    color: #fff;
    background: #25d366;
    border: 3px solid #fff;
    border-radius: 50%;
    box-shadow: 0 10px 28px rgb(3 45 32 / 32%);
    text-decoration: none;
    transition: transform 180ms var(--ease-edifica), box-shadow 180ms var(--ease-edifica);
}
.whatsapp-float::before { content: ""; position: absolute; inset: -6px; border: 2px solid rgb(37 211 102 / 65%); border-radius: 50%; animation: whatsapp-pulse 2.4s ease-out infinite; }
.whatsapp-float svg { width: 39px; height: 39px; }
.whatsapp-float:hover, .whatsapp-float:focus-visible { transform: translateY(-3px) scale(1.04); box-shadow: 0 14px 32px rgb(3 45 32 / 42%); }
.whatsapp-float:focus-visible { outline-color: #e1ad01; }
.whatsapp-float-label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@keyframes whatsapp-pulse { 0% { opacity: .75; transform: scale(.92); } 85%, 100% { opacity: 0; transform: scale(1.35); } }
@media (max-width: 560px) { .whatsapp-float { right: 18px; bottom: max(18px, env(safe-area-inset-bottom)); width: 58px; height: 58px; } .whatsapp-float svg { width: 34px; height: 34px; } .portfolio-page-section { min-height: 0; } }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}





