/* Contact-section update, 21 October 2026. No fixed-height content or clipping. */
:root { --nav-height: 76px; --contact-ink: #173248; --contact-muted: #536878; --contact-line: #dce8ec; }
html { scroll-padding-top: var(--nav-height); }
section[id], #home { scroll-margin-top: 12px; }
#contact { scroll-margin-top: 0; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #0b8d87; outline-offset: 3px; }
.contact-section { padding: 30px 0; border-top: 1px solid #edf2f4; }
.contact-grid { display: grid; grid-template-columns: .97fr 1.03fr; gap: 40px; align-items: start; }
.contact-info { padding: 3px 0; min-width: 0; }
.contact-info .eyebrow { font-size: 11px; line-height: 1.4; letter-spacing: .16em; }
.contact-info h2 { max-width: 19ch; margin: 9px 0 11px; font-size: clamp(28px,2.6vw,36px); font-weight: 760; letter-spacing: -.045em; line-height: 1.13; text-wrap: balance; }
.contact-info .contact-intro { max-width: 460px; margin: 0; font-size: 14px; line-height: 1.55; color: var(--contact-muted); }
.contact-company { margin: 21px 0 15px; font-size: 18px; line-height: 1.3; }
.branch-grid { display: grid; grid-template-columns: 1.12fr 1fr; gap: 20px; }
.branch { min-width: 0; font-style: normal; padding-left: 13px; border-left: 2px solid #c5e5e2; }
.branch h4 { margin: 0 0 7px; font-size: 14px; line-height: 1.3; color: var(--contact-ink); }
.branch p { margin: 0 0 10px; font-size: 13px; line-height: 1.6; color: var(--contact-muted); }
.branch-phone { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 650; line-height: 1.5; white-space: nowrap; }
.branch-phone:hover { color: #087d76; }
.branch svg, .contact-whatsapp svg, .security-badge svg { width: 15px; height: 15px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.contact-whatsapp { display: inline-flex; gap: 12px; align-items: center; margin-top: 20px; padding: 10px 15px; border: 1px solid #d5eae5; border-radius: 12px; background: #f2faf7; color: #176c5f; transition: background .2s, transform .2s; }
.contact-whatsapp:hover { background: #e5f4ee; transform: translateY(-1px); }
.contact-whatsapp svg { width: 24px; height: 24px; }
.contact-whatsapp > span:not(.external-arrow) { display: flex; flex-direction: column; gap: 2px; }
.contact-whatsapp span span { font-size: 11px; line-height: 1.25; }
.contact-whatsapp strong { font-size: 15px; line-height: 1.3; letter-spacing: .025em; }
.contact-whatsapp .external-arrow { margin-left: 10px; font-size: 20px; }
.contact-form { min-width: 0; padding: 22px; border-radius: 19px; box-shadow: 0 12px 34px #17324807; }
.form-heading { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 17px; }
.form-heading h3 { margin: 0; font-size: 19px; line-height: 1.3; letter-spacing: -.025em; }
.security-badge { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; line-height: 1.3; color: #276e61; white-space: nowrap; }
.security-badge svg { width: 14px; height: 14px; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px 15px; }
.field { min-width: 0; }
.field-full { grid-column: 1/-1; }
.contact-form label { margin: 0 0 5px; color: var(--contact-ink); font-size: 12px; line-height: 1.5; font-weight: 650; }
.contact-form .required { color: #087b75; }
.optional { font-size: 10px; font-weight: 400; color: var(--contact-muted); }
.contact-form input:not([type="hidden"]), .contact-form select, .contact-form textarea { width: 100%; min-width: 0; border-color: var(--contact-line); border-radius: 8px; background: white; color: var(--contact-ink); font-size: 14px; padding: 10px 11px; line-height: 1.35; }
.contact-form input:not([type="hidden"]), .contact-form select { height: 42px; }
.contact-form select { padding-right: 24px; text-overflow: ellipsis; }
.contact-form textarea { display: block; height: 76px; min-height: 76px; resize: vertical; }
.contact-form textarea::placeholder { color: #72838e; font-size: 12px; }
.contact-form .trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); left: -10000px; }
.form-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 15px; }
.contact-form .submit-button { display: inline-flex; align-items: center; justify-content: space-between; gap: 25px; min-height: 42px; padding: 11px 17px; margin: 0; border-radius: 9px; font: inherit; font-size: 13px; font-weight: 700; transition: background .2s; }
.submit-button:hover { background: #0e4b5f; }
.submit-button:disabled { opacity: .65; cursor: wait; }
.required-note { color: var(--contact-muted); font-size: 10px; line-height: 1.4; }
.contact-form .form-privacy { margin: 12px 0 0; color: var(--contact-muted); font-size: 11px; line-height: 1.45; }
.contact-form .form-status { margin: 12px 0 0; padding: 9px 11px; border-radius: 7px; font-size: 12px; line-height: 1.5; background: #f0f7f6; color: #245d52; }
.contact-form .form-status[data-kind="error"] { background: #fff3ee; color: #913e24; }
.turnstile-container { margin-top: 12px; max-width: 100%; }
[hidden] { display: none !important; }
footer.site-footer { padding: 19px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.footer-brand { font-size: 20px; font-weight: 800; letter-spacing: -1px; }
.site-footer .footer-credit { margin: 0; color: #d5e2e9; font-size: 12px; line-height: 1.5; }
.footer-credit a { text-underline-offset: 3px; }
.footer-credit a:hover, .footer-whatsapp:hover { text-decoration: underline; color: white; }
.footer-whatsapp { font-size: 12px; color: #d5e2e9; white-space: nowrap; }
@media(min-width:901px) and (max-height:740px) {
  .contact-section { padding: 22px 0; }
  .contact-info h2 { font-size: 31px; margin-bottom: 9px; }
  .contact-company { margin-top: 17px; margin-bottom: 13px; }
  .contact-whatsapp { margin-top: 17px; }
  .contact-form { padding: 20px; }
  .form-heading { margin-bottom: 14px; }
  .form-grid { gap: 11px 14px; }
  .contact-form textarea { height: 70px; min-height: 70px; }
  .form-actions { margin-top: 13px; }
  .contact-form .form-privacy { margin-top: 10px; }
  footer.site-footer { padding: 15px 0; }
}
@media(min-width:901px) and (max-width:1100px) {
  .contact-grid { gap: 25px; grid-template-columns: .93fr 1.07fr; }
  .branch-grid { gap: 13px; }
  .contact-form { padding: 19px; }
  .security-badge { font-size: 9px; gap: 3px; }
  .form-heading h3 { font-size: 18px; }
}
@media(max-width:900px) {
  .contact-grid { grid-template-columns: 1fr; gap: 25px; }
  .contact-section { padding: 35px 0; }
  .contact-info h2 { max-width: 24ch; }
  .contact-intro { max-width: none; }
  .branch-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .footer-inner { flex-wrap: wrap; gap: 10px 22px; }
  .footer-credit { flex: 1; }
}
@media(max-width:550px) {
  :root { --nav-height: 70px; }
  .nav { min-height: var(--nav-height); }
  .contact-section { padding: 28px 0; }
  .contact-grid { padding: 0 18px; }
  .contact-info h2 { font-size: 29px; }
  .contact-company { margin-top: 19px; }
  .branch-grid { gap: 17px; }
  .branch { padding-left: 10px; }
  .branch p { font-size: 12px; }
  .branch-phone { font-size: 12px; gap: 4px; }
  .contact-form { padding: 18px; }
  .form-heading { align-items: flex-start; }
  .form-heading h3 { font-size: 18px; }
  .security-badge { font-size: 9px; }
  .form-grid { grid-template-columns: 1fr; gap: 12px; }
  .contact-form label { font-size: 13px; }
  .contact-form input:not([type="hidden"]), .contact-form select, .contact-form textarea { font-size: 16px; }
  .contact-form input:not([type="hidden"]), .contact-form select { height: 44px; }
  .contact-form textarea { height: 86px; }
  .footer-inner { display: grid; grid-template-columns: 1fr; gap: 9px; }
  footer.site-footer { padding: 22px 0; }
}
@media(max-width:360px) {
  .branch-grid { grid-template-columns: 1fr; }
  .security-badge { white-space: normal; max-width: 105px; }
}
@media(prefers-reduced-motion:reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
  .contact-whatsapp, .submit-button { transition: none; }
}
/* Let a desktop Contact anchor fill the screen cleanly, without showing the
   previous section above it. Minimum sizing never clips zoomed/long content. */
@media(min-width:901px) {
  .contact-section { min-height: calc(100vh - var(--nav-height) - 62px); min-height: calc(100svh - var(--nav-height) - 62px); display: flex; align-items: center; }
  .contact-grid { width: 100%; }
}
@media(min-width:901px) and (max-height:740px) {
  .contact-section { min-height: calc(100vh - var(--nav-height) - 54px); min-height: calc(100svh - var(--nav-height) - 54px); }
}
@media(min-width:901px) and (max-height:740px) {
  .contact-section.has-turnstile { padding-top: 14px; padding-bottom: 14px; }
}
