:root {
  --navy: #0b1d33;
  --navy-2: #12375c;
  --blue: #175b94;
  --yellow: #f5c542;
  --yellow-dark: #d9a816;
  --ink: #152536;
  --muted: #637487;
  --surface: #f4f7fa;
  --white: #fff;
  --border: #dce4eb;
  --shadow: 0 22px 55px rgba(11, 29, 51, .12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; overflow-x: clip; }
body { min-width: 320px; overflow-x: hidden; color: var(--ink); background: var(--white); font-family: "Segoe UI", Arial, sans-serif; line-height: 1.65; }
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid rgba(245, 197, 66, .7); outline-offset: 3px; }
.container { width: min(1140px, calc(100% - 40px)); margin-inline: auto; }
.section { padding: 96px 0; }
.section--soft { background: var(--surface); }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; color: var(--blue); font-size: .73rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow::before { width: 24px; height: 3px; content: ""; background: var(--yellow); }
h1, h2, h3 { line-height: 1.13; }
h1 { font-size: clamp(2.8rem, 5.6vw, 5.25rem); letter-spacing: -.055em; }
h2 { font-size: clamp(2rem, 4vw, 3.4rem); letter-spacing: -.04em; }
.lead { margin-top: 20px; color: var(--muted); font-size: 1.08rem; }
.section-heading { max-width: 720px; margin-bottom: 42px; }
.section-heading h2 { margin-top: 12px; }
.section-heading p { margin-top: 15px; color: var(--muted); }

.header { position: fixed; z-index: 60; top: 0; right: 0; left: 0; border-bottom: 1px solid rgba(11, 29, 51, .09); background: rgba(255, 255, 255, .94); backdrop-filter: blur(15px); }
.nav { display: flex; min-height: 78px; align-items: center; justify-content: space-between; gap: 25px; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand-mark { display: block; width: 165px; height: auto; flex: none; border-radius: 8px; object-fit: contain; object-position: center; }
.brand strong, .brand small { display: block; }
.brand strong { color: var(--navy); font-size: .9rem; }
.brand small { color: var(--muted); font-size: .61rem; }
.nav-menu { display: flex; align-items: center; gap: 25px; color: #425469; font-size: .78rem; font-weight: 700; }
.nav-menu a { position: relative; padding: 28px 0; }
.nav-menu a.active, .nav-menu a:hover { color: var(--blue); }
.nav-menu a.active::after { position: absolute; right: 0; bottom: 18px; left: 0; height: 3px; border-radius: 4px; content: ""; background: var(--yellow); }
.nav-menu .nav-cta { padding: 11px 16px; border-radius: 8px; color: var(--white); background: var(--blue); }
.nav-menu .nav-cta::after { display: none; }
.menu-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--border); border-radius: 9px; background: var(--white); cursor: pointer; }
.menu-toggle span { display: block; width: 22px; height: 2px; margin: 5px auto; background: var(--navy); transition: .25s; }

.button { display: inline-flex; min-height: 50px; align-items: center; justify-content: center; gap: 9px; padding: 12px 21px; border: 0; border-radius: 8px; font-weight: 800; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s; }
.button:hover { transform: translateY(-2px); }
.button--primary { color: var(--navy); background: var(--yellow); box-shadow: 0 12px 25px rgba(217, 168, 22, .23); }
.button--secondary { border: 1px solid rgba(255, 255, 255, .3); color: var(--white); background: rgba(255, 255, 255, .08); }
.button--blue { color: var(--white); background: var(--blue); }

.hero { position: relative; overflow: hidden; padding: 148px 0 88px; color: var(--white); background: linear-gradient(125deg, #08182b, #12375c 66%, #174b77); }
.hero::before { position: absolute; inset: 0; content: ""; background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px); background-size: 46px 46px; mask-image: linear-gradient(to right, #000, transparent 75%); }
.hero-grid { position: relative; display: grid; align-items: center; grid-template-columns: 1.08fr .92fr; gap: 70px; }
.hero h1 { margin-top: 18px; }
.hero .eyebrow { color: var(--white); }
.hero .lead { max-width: 680px; color: #c5d3df; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 31px; }
.media-frame { position: relative; overflow: hidden; min-height: 360px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 20px; background: linear-gradient(145deg, #183f65, #0d2947); box-shadow: 0 30px 65px rgba(0, 0, 0, .28); }
.media-frame::before { position: absolute; inset: 0; display: grid; place-items: center; content: attr(data-placeholder); color: rgba(255, 255, 255, .68); font-size: .76rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.media-frame img { position: relative; z-index: 1; display: block; width: 100%; height: 100%; min-height: inherit; object-fit: cover; object-position: center; }
.media-frame img.image-missing { display: none; }
.media-frame--light { border-color: var(--border); background: linear-gradient(145deg, #dfe9f1, #b9cada); box-shadow: var(--shadow); }
.media-frame--light::before { color: #4d657c; }

.service-grid, .value-grid, .project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 19px; }
.service-card, .value-card, .project-card { overflow: hidden; border: 1px solid var(--border); border-radius: 15px; background: var(--white); box-shadow: 0 12px 35px rgba(11, 29, 51, .06); }
.service-card { padding: 25px; }
.service-icon, .value-number { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 10px; color: var(--navy); background: #fff4c7; font-weight: 900; }
.service-card h3, .value-card h3 { margin-top: 18px; font-size: 1.05rem; }
.service-card p, .value-card p { margin-top: 9px; color: var(--muted); font-size: .82rem; }
.service-card .button { margin-top: 20px; }
.trust-strip { padding: 30px 0; background: var(--navy); color: var(--white); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-grid div { padding: 8px 24px; border-right: 1px solid rgba(255, 255, 255, .12); }
.trust-grid div:last-child { border: 0; }
.trust-grid strong, .trust-grid span { display: block; }
.trust-grid strong { color: var(--yellow); font-size: .86rem; }
.trust-grid span { margin-top: 3px; color: #b9c7d4; font-size: .7rem; }

.page-hero { padding: 145px 0 70px; color: var(--white); background: linear-gradient(120deg, var(--navy), var(--navy-2)); }
.page-hero .eyebrow { color: var(--white); }
.page-hero h1 { max-width: 850px; margin-top: 15px; font-size: clamp(2.7rem, 5vw, 4.6rem); }
.page-hero p { max-width: 720px; margin-top: 17px; color: #c3d1dd; }
.split-grid { display: grid; align-items: center; grid-template-columns: 1fr 1fr; gap: 70px; }
.split-copy h2 { margin-top: 12px; }
.split-copy p { margin-top: 17px; color: var(--muted); }
.value-grid { grid-template-columns: repeat(4, 1fr); margin-top: 45px; }
.value-card { padding: 23px; }
.mission { padding: 42px; border-left: 6px solid var(--yellow); border-radius: 0 16px 16px 0; background: var(--navy); color: var(--white); }
.mission p { margin-top: 10px; color: #c6d4df; }

.service-page-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service-page-card { overflow: hidden; border: 1px solid var(--border); border-radius: 16px; background: var(--white); box-shadow: 0 14px 35px rgba(11, 29, 51, .07); }
.service-page-card .media-frame { min-height: 195px; border: 0; border-radius: 0; box-shadow: none; }
.card-body { padding: 24px; }
.card-body h2, .card-body h3 { font-size: 1.1rem; }
.card-body p { margin-top: 9px; color: var(--muted); font-size: .82rem; }
.card-body .button { margin-top: 20px; font-size: .76rem; }

.project-card .media-frame { min-height: 240px; border: 0; border-radius: 0; box-shadow: none; }
.project-label { display: inline-block; margin-bottom: 10px; padding: 5px 8px; border-radius: 5px; color: var(--navy); background: #fff0b5; font-size: .63rem; font-weight: 900; text-transform: uppercase; }

.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 65px; }
.contact-copy .media-frame { min-height: 280px; margin-top: 28px; }
.contact-details { display: grid; gap: 12px; margin-top: 25px; }
.contact-details div { padding: 14px 0; border-bottom: 1px solid var(--border); }
.contact-details span, .contact-details strong { display: block; }
.contact-details span { color: var(--blue); font-size: .68rem; font-weight: 800; text-transform: uppercase; }
.contact-form { display: grid; padding: 30px; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); grid-template-columns: 1fr 1fr; gap: 17px; }
.contact-form label { color: #425469; font-size: .74rem; font-weight: 700; }
.contact-form input, .contact-form select, .contact-form textarea { display: block; width: 100%; margin-top: 7px; border: 1px solid #cdd8e2; border-radius: 8px; outline: 0; background: var(--white); }
.contact-form input, .contact-form select { height: 47px; padding: 0 13px; }
.contact-form textarea { min-height: 120px; padding: 12px 13px; resize: vertical; }
.field-full { grid-column: 1 / -1; }
.form-message { min-height: 24px; color: var(--blue); font-size: .8rem; font-weight: 800; }

.cta-section { padding: 75px 0; color: var(--white); background: var(--blue); }
.cta-content { display: flex; align-items: center; justify-content: space-between; gap: 35px; }
.cta-content h2 { max-width: 760px; }
.footer { padding: 42px 0 25px; color: #c4d1dc; background: #071524; }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 45px; }
.footer h3 { color: var(--white); font-size: .9rem; }
.footer p, .footer a { color: #9dafbd; font-size: .74rem; }
.footer p { margin-top: 9px; }
.footer-links { display: grid; gap: 7px; margin-top: 12px; }
.footer a[href="https://brayantorres.online/"] { display: inline-flex; width: fit-content; margin-top: 8px; padding: 9px 13px; border: 1px solid rgba(245, 197, 66, .5); border-radius: 7px; color: var(--navy); background: var(--yellow); font-weight: 800; box-shadow: 0 8px 20px rgba(245, 197, 66, .14); transition: transform .2s, box-shadow .2s; }
.footer a[href="https://brayantorres.online/"]:hover { color: var(--navy); box-shadow: 0 11px 26px rgba(245, 197, 66, .24); transform: translateY(-2px); }
.footer-note { margin-top: 30px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .09); text-align: center; font-size: .7rem; }
.toast { position: fixed; z-index: 100; right: 22px; bottom: 22px; width: min(390px, calc(100% - 32px)); padding: 17px 19px; border-left: 4px solid var(--yellow); border-radius: 10px; color: var(--white); background: var(--navy); box-shadow: 0 20px 50px rgba(0, 0, 0, .28); opacity: 0; pointer-events: none; transform: translateY(25px); transition: .25s; }
.toast.visible { opacity: 1; transform: translateY(0); }
.toast strong, .toast span { display: block; }
.toast span { margin-top: 3px; color: #c4d1dc; font-size: .76rem; }

@media (max-width: 940px) {
  .menu-toggle { display: block; }
  .nav-menu { position: fixed; inset: 78px 0 auto 0; display: none; padding: 24px 20px 30px; align-items: stretch; flex-direction: column; gap: 4px; background: var(--white); box-shadow: 0 22px 35px rgba(11, 29, 51, .13); text-align: center; }
  .nav-menu.open { display: flex; }
  .nav-menu a { padding: 11px; }
  .nav-menu a.active::after { display: none; }
  .menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle.active span:nth-child(2) { opacity: 0; }
  .menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .hero-grid, .split-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-grid { gap: 40px; }
  .service-page-grid, .project-grid { grid-template-columns: repeat(2, 1fr); }
  .value-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 650px) {
  .container { width: min(100% - 28px, 1140px); }
  .brand-mark { width: 130px; height: auto; }
  .section { padding: 72px 0; }
  .hero { padding: 125px 0 70px; }
  .page-hero { padding: 125px 0 58px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .media-frame { min-height: 280px; }
  .service-grid, .service-page-grid, .project-grid, .value-grid, .trust-grid { grid-template-columns: 1fr; }
  .trust-grid div { border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, .12); }
  .trust-grid div:last-child { border-bottom: 0; }
  .contact-form { padding: 20px; grid-template-columns: 1fr; }
  .contact-form label, .field-full { grid-column: 1; }
  .cta-content { align-items: flex-start; flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
