@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@600;700;800&display=swap');

:root {
  --blue: #009fe3;
  --blue-dark: #006b92;
  --navy: #073447;
  --ink: #14252c;
  --muted: #5f727a;
  --mist: #eef8fb;
  --line: #dce9ee;
  --white: #ffffff;
  --radius: 22px;
  --shadow: 0 18px 50px rgba(7, 52, 71, .12);
  --wrap: min(1180px, calc(100% - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "DM Sans", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }

.skip-link { position: fixed; top: -100px; left: 16px; z-index: 999; padding: 10px 16px; color: white; background: var(--navy); }
.skip-link:focus { top: 16px; }
.container { width: var(--wrap); margin-inline: auto; }
.eyebrow { margin: 0 0 12px; color: var(--blue-dark); font-weight: 800; letter-spacing: .13em; text-transform: uppercase; font-size: .78rem; }
.section-title { margin: 0 0 18px; font: 800 clamp(2rem, 4vw, 3.8rem)/1.06 "Manrope", sans-serif; letter-spacing: -.05em; }
.lead { max-width: 760px; margin: 0; color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.25rem); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.94);
  border-bottom: 1px solid rgba(220,233,238,.85);
  backdrop-filter: blur(16px);
}
.header-inner { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: block; width: 146px; flex: 0 0 auto; }
.brand img { width: 100%; height: 58px; object-fit: contain; }
.main-nav { display: flex; align-items: center; gap: 24px; }
.main-nav a { position: relative; color: #253b44; font-size: .9rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.main-nav a:not(.nav-cta)::after { content: ""; position: absolute; left: 0; bottom: -7px; width: 0; height: 2px; background: var(--blue); transition: width .25s ease; }
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { width: 100%; }
.main-nav a[aria-current="page"] { color: var(--blue-dark); }
.nav-cta, .button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 22px; gap: 9px; color: #fff !important; background: var(--blue-dark); border: 1px solid var(--blue-dark); border-radius: 999px; font-weight: 800; text-decoration: none; cursor: pointer; transition: transform .2s ease, background .2s ease, box-shadow .2s ease; }
.nav-cta:hover, .button:hover { transform: translateY(-2px); background: var(--navy); box-shadow: 0 10px 24px rgba(0,107,146,.18); }
.button.light { color: var(--navy) !important; background: white; border-color: white; }
.button.outline { color: var(--blue-dark) !important; background: transparent; }
.menu-toggle { display: none; width: 46px; height: 46px; padding: 0; border: 0; border-radius: 50%; background: var(--mist); cursor: pointer; }
.menu-toggle span { display: block; width: 20px; height: 2px; margin: 5px auto; background: var(--navy); transition: .2s ease; }

.hero { position: relative; min-height: 690px; display: grid; align-items: end; overflow: hidden; color: white; background: var(--navy); }
.hero::before { content: ""; position: absolute; z-index: 1; inset: 0; background: linear-gradient(90deg, rgba(2,35,50,.9) 0%, rgba(2,35,50,.58) 50%, rgba(2,35,50,.16) 100%); }
.hero::after { content: ""; position: absolute; z-index: 1; right: -110px; bottom: -280px; width: 520px; height: 520px; border: 72px solid rgba(0,159,227,.45); border-radius: 50%; }
.hero-slider { position: absolute; inset: 0; }
.hero-slide { position: absolute; inset: 0; opacity: 0; background-position: center; background-size: cover; transform: scale(1.03); transition: opacity 1s ease, transform 7s ease; }
.hero-slide.active { opacity: 1; transform: scale(1.09); }
.hero-content { position: relative; z-index: 2; max-width: 790px; padding: 120px 0 92px; }
.hero .eyebrow { color: #85dcff; }
.hero h1 { margin: 0 0 24px; font: 800 clamp(3.3rem, 7.5vw, 6.7rem)/.92 "Manrope", sans-serif; letter-spacing: -.075em; }
.hero p { max-width: 650px; margin: 0 0 32px; color: rgba(255,255,255,.84); font-size: clamp(1.08rem, 2vw, 1.3rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-stat { position: absolute; z-index: 2; right: max(20px, calc((100vw - 1180px)/2)); bottom: 44px; padding: 20px 24px; border: 1px solid rgba(255,255,255,.24); border-radius: 18px; background: rgba(2,35,50,.54); backdrop-filter: blur(12px); }
.hero-stat strong { display: block; max-width: 180px; font: 800 1.25rem/1.25 "Manrope"; }
.hero-stat span { color: rgba(255,255,255,.72); font-size: .88rem; }
.hero-controls { position: absolute; z-index: 3; left: max(20px, calc((100vw - 1180px)/2)); bottom: 34px; display: flex; align-items: center; gap: 10px; }
.hero-dot { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.45); cursor: pointer; transition: width .25s ease, border-radius .25s ease, background .25s ease; }
.hero-dot.active { width: 30px; border-radius: 999px; background: white; }

.section { padding: 100px 0; }
.section.soft { background: var(--mist); }
.intro-row { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 46px; }
.intro-row .button { flex: 0 0 auto; }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.area-card { position: relative; min-height: 340px; display: flex; flex-direction: column; justify-content: flex-end; padding: 26px; color: white; background: var(--navy); border-radius: var(--radius); overflow: hidden; text-decoration: none; box-shadow: var(--shadow); }
.area-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(2,35,50,.9), rgba(2,35,50,.02) 75%); z-index: 1; }
.area-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.area-card:hover img { transform: scale(1.06); }
.area-card > *:not(img) { position: relative; z-index: 2; }
.area-card small { color: #8de1ff; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.area-card h3 { margin: 7px 0 0; font: 800 1.65rem "Manrope", sans-serif; }
.area-card .arrow { margin-top: 18px; font-size: 1.5rem; transition: transform .2s ease; }
.area-card:hover .arrow { transform: translateX(6px); }

.client-references { padding: 78px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #f8fbfc; }
.references-inner h2 { margin: 0 0 36px; font: 800 clamp(1.9rem, 3vw, 3rem)/1.1 "Manrope", sans-serif; letter-spacing: -.04em; }
.references-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.reference-item { display: grid; place-items: center; min-height: 130px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: white; transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.reference-item:hover { border-color: #b8dce9; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(7,52,71,.08); }
.reference-item img { width: 100%; max-width: 201px; height: 104px; object-fit: contain; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 8vw, 100px); align-items: center; }
.split-media { position: relative; }
.split-media img { width: 100%; aspect-ratio: 4/4.3; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.split-media::before { content: ""; position: absolute; z-index: -1; left: -24px; bottom: -24px; width: 58%; height: 58%; border-radius: var(--radius); background: var(--blue); opacity: .14; }
.split-copy p { color: var(--muted); }
.pillars { margin-top: 30px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.pillar { padding: 18px; background: var(--mist); border-radius: 14px; }
.pillar b { display: block; color: var(--blue-dark); font: 800 1.1rem "Manrope"; }
.pillar span { color: var(--muted); font-size: .87rem; }

.image-strip { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 10px; }
.image-strip img { width: 100%; height: 300px; object-fit: cover; }
.image-strip img:first-child { border-radius: 20px 0 0 20px; }
.image-strip img:last-child { border-radius: 0 20px 20px 0; }

.institutional-support { padding: 36px 0; border-top: 1px solid var(--line);border-bottom: 1px solid var(--line); background: #fff; }
.support-inner { display: flex; align-items: center; justify-content: center; gap: 24px; }
.support-inner span { color: var(--muted); font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.support-inner img { width: 300px; height: auto; }

.cta-band { padding: 76px 0; color: white; background: var(--blue-dark); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.cta-band h2 { max-width: 760px; margin: 0; font: 800 clamp(2rem, 4vw, 3.6rem)/1.08 "Manrope"; letter-spacing: -.05em; }

.page-hero { padding: 96px 0 80px; color: white; background: radial-gradient(circle at 86% 5%, rgba(0,159,227,.58), transparent 30%), var(--navy); overflow: hidden; }
.breadcrumbs { margin-bottom: 40px; color: #9fcee0; font-size: .87rem; }
.breadcrumbs a { text-decoration: none; }
.page-hero h1 { max-width: 900px; margin: 0 0 20px; font: 800 clamp(3rem, 7vw, 6rem)/.95 "Manrope"; letter-spacing: -.07em; }
.page-hero p { max-width: 740px; margin: 0; color: rgba(255,255,255,.74); font-size: 1.16rem; }
.content-section { padding: 86px 0; }
.content-section + .content-section { border-top: 1px solid var(--line); }
.content-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr); gap: clamp(40px, 8vw, 100px); align-items: start; }
.content-grid.reverse { grid-template-columns: minmax(300px, .8fr) minmax(0, 1.2fr); }
.content-grid.reverse .content-image { order: -1; }
.content-image { position: sticky; top: 115px; }
.content-image img { width: 100%; max-height: 590px; aspect-ratio: 1/1; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.prose h2 { margin: 0 0 22px; font: 800 clamp(2rem, 4vw, 3.4rem)/1.08 "Manrope"; letter-spacing: -.045em; }
.prose h3 { margin: 32px 0 10px; color: var(--navy); font: 800 1.35rem "Manrope"; }
.prose h4 { margin: 26px 0 8px; font: 800 1.05rem "Manrope"; }
.prose p { color: var(--muted); }
.prose ul { margin: 16px 0 24px; padding: 0; list-style: none; }
.prose li { position: relative; margin: 10px 0; padding-left: 24px; color: #38505a; }
.prose li::before { content: ""; position: absolute; left: 0; top: .7em; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px rgba(0,159,227,.12); }
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.feature-card { padding: 25px; border: 1px solid var(--line); border-radius: 18px; background: white; }
.feature-card h3 { margin-top: 0; }
.feature-card ul { margin-bottom: 0; }
.quality-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 35px; }
.quality-card { padding: 28px; border-radius: 18px; background: var(--mist); }
.quality-card h3 { margin: 0 0 10px; font: 800 1.25rem "Manrope"; }
.quality-card p { margin: 0; color: var(--muted); }

.tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.tab-button { padding: 10px 17px; color: var(--navy); border: 1px solid var(--line); border-radius: 999px; background: white; font-weight: 800; cursor: pointer; }
.tab-button.active { color: white; background: var(--blue-dark); border-color: var(--blue-dark); }
.tab-panel[hidden] { display: none; }
.download-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.download-card { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 92px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 15px; text-decoration: none; transition: border-color .2s, transform .2s; }
.download-card:hover { border-color: var(--blue); transform: translateY(-2px); }
.download-card span { color: var(--navy); font-weight: 700; }
.download-card b { flex: 0 0 auto; color: var(--blue-dark); font-size: .78rem; letter-spacing: .08em; }

.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 70px; align-items: start; }
.contact-list { display: grid; gap: 14px; }
.contact-item { padding: 20px; border: 1px solid var(--line); border-radius: 16px; }
.contact-item small { display: block; color: var(--blue-dark); font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.contact-item a { color: var(--navy); font-weight: 700; text-decoration: none; }
.contact-form { padding: 32px; border-radius: var(--radius); background: var(--mist); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; margin-bottom: 6px; font-weight: 700; }
.field input, .field textarea { width: 100%; padding: 13px 14px; border: 1px solid #c9dce3; border-radius: 10px; background: white; outline: none; }
.field input:focus, .field textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,159,227,.13); }
.field textarea { min-height: 160px; resize: vertical; }
.form-note { color: var(--muted); font-size: .87rem; }
.form-status { display: none; margin-top: 14px; padding: 12px 14px; border-radius: 10px; background: #dcf5e8; color: #145b37; }
.form-status.show { display: block; }

.legal { max-width: 900px; }
.legal h2 { margin: 40px 0 12px; color: var(--navy); font: 800 1.5rem "Manrope"; }
.legal p, .legal li { color: var(--muted); }

.site-footer { color: rgba(255,255,255,.74); background: #052b3b; }
.footer-ad { padding: 34px 0; color: white; background: #008c4d; }
.footer-ad-inner { display: grid; grid-template-columns: minmax(260px, 1fr) auto; align-items: center; gap: 36px; }
.casa-ribo { display: flex; align-items: center; gap: 24px; color: white; text-decoration: none; }
.casa-ribo img { width: min(360px, 100%); max-height: 120px; object-fit: cover; object-position: center; border-radius: 14px; }
.casa-ribo-copy { min-width: 210px; }
.casa-ribo-copy strong { display: block; font: 800 1.25rem "Manrope"; }
.casa-ribo-copy span { color: rgba(255,255,255,.82); font-size: .9rem; }
.stay-links { display: flex; align-items: center; gap: 12px; }
.stay-links a { display: grid; place-items: center; width: 64px; height: 64px; padding: 10px; border-radius: 14px; background: white; transition: transform .2s ease; }
.stay-links a:hover { transform: translateY(-3px); }
.stay-links img { width: 100%; height: 100%; object-fit: contain; }
.footer-main { display: grid; grid-template-columns: 1.25fr .8fr 1fr; gap: 70px; padding: 70px 0 54px; }
.footer-logo { width: 180px; margin-bottom: 18px; filter: brightness(0) invert(1); }
.footer-title { margin: 0 0 17px; color: white; font: 800 1rem "Manrope"; text-transform: uppercase; letter-spacing: .08em; }
.footer-links { display: grid; gap: 9px; }
.footer-links a { color: rgba(255,255,255,.72); text-decoration: none; }
.footer-links a:hover { color: white; }
.footer-bottom { display: flex; justify-content: space-between; gap: 25px; padding: 22px 0; border-top: 1px solid rgba(255,255,255,.11); font-size: .84rem; }

.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 1050px) {
  .main-nav { gap: 15px; }
  .main-nav a { font-size: .83rem; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .hero-stat { display: none; }
}

@media (max-width: 860px) {
  .menu-toggle { display: block; position: relative; z-index: 102; }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-7px) rotate(-45deg); }
  .main-nav { position: fixed; inset: 0 0 0 28%; z-index: 101; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 22px; padding: 50px; background: white; box-shadow: -20px 0 50px rgba(7,52,71,.14); transform: translateX(105%); transition: transform .28s ease; }
  .main-nav.open { transform: translateX(0); }
  .main-nav a { font-size: 1.1rem; }
  .split, .content-grid, .content-grid.reverse, .contact-grid { grid-template-columns: 1fr; }
  .content-grid.reverse .content-image { order: 0; }
  .content-image { position: static; }
  .content-image img { aspect-ratio: 16/9; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .footer-main > div:first-child { grid-column: 1 / -1; }
  .footer-ad-inner { grid-template-columns: 1fr; }
  .stay-links { justify-content: flex-start; }
  .references-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  :root { --wrap: min(100% - 28px, 1180px); }
  .header-inner { min-height: 72px; }
  .brand { width: 122px; }
  .brand img { height: 50px; }
  .main-nav { left: 8%; padding: 34px; }
  .hero { min-height: 660px; }
  .hero-content { padding: 100px 0 65px; }
  .hero h1 { font-size: clamp(3.15rem, 17vw, 4.7rem); }
  .section, .content-section { padding: 68px 0; }
  .page-hero { padding: 65px 0 58px; }
  .intro-row, .cta-inner { align-items: flex-start; flex-direction: column; }
  .references-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .reference-item { min-height: 112px; padding: 10px; }
  .reference-item img { height: 88px; }
  .cards, .feature-grid, .quality-list, .download-grid, .form-row, .footer-main { grid-template-columns: 1fr; }
  .area-card { min-height: 300px; }
  .pillars { grid-template-columns: 1fr; }
  .image-strip { grid-template-columns: 1fr; }
  .image-strip img { height: 240px; border-radius: 16px !important; }
  .support-inner, .casa-ribo { align-items: flex-start; flex-direction: column; }
  .support-inner { align-items: center; text-align: center; }
  .casa-ribo img { width: 100%; }
  .contact-form { padding: 22px; }
  .footer-main { gap: 35px; padding-top: 55px; }
  .footer-main > div:first-child { grid-column: auto; }
  .footer-bottom { flex-direction: column; }
}

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