:root {
  --navy: #0b3a5b;
  --navy-dark: #072840;
  --teal: #0a7573;
  --teal-light: #0fa3a0;
  --ink: #1b2733;
  --muted: #536472;
  --line: #d9e3ea;
  --bg-soft: #f2f7f9;
  --radius: 12px;
  --max: 1160px;
  --shadow: 0 12px 32px rgba(11, 58, 91, .10);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; font-size: 17px; line-height: 1.6; color: var(--ink); background: #fff; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--teal-light); outline-offset: 2px; border-radius: 4px; }
address { font-style: normal; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 14px; z-index: 100; border-radius: 6px; }
.skip-link:focus { left: 8px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.brand { flex-shrink: 0; }
.brand img { width: 168px; height: auto; }
.main-nav { margin-left: auto; }
.main-nav > ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.main-nav li { position: relative; }
.main-nav a { display: block; white-space: nowrap; padding: 10px 11px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; border-radius: 8px; transition: background .15s, color .15s; }
.main-nav a:hover, .main-nav .active > a { color: var(--navy); background: var(--bg-soft); }
.main-nav .active > a { box-shadow: inset 0 -2px 0 var(--teal); }
.main-nav .has-sub > a::after { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 0 3px 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); opacity: .6; }
.main-nav .sub { visibility: hidden; opacity: 0; transform: translateY(6px); transition: opacity .15s, transform .15s, visibility .15s; position: absolute; top: calc(100% + 4px); left: 0; min-width: 250px; list-style: none; margin: 0; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.main-nav .sub::before { content: ""; position: absolute; top: -8px; left: 0; right: 0; height: 8px; }
.main-nav .sub a { font-weight: 500; box-shadow: none; }
.main-nav .has-sub:hover > .sub, .main-nav .has-sub:focus-within > .sub { visibility: visible; opacity: 1; transform: none; }
.lang-nav { display: flex; align-items: center; gap: 6px; padding-left: 16px; border-left: 1px solid var(--line); }
.lang-nav .globe { width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 1.6; }
.lang-nav ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.lang-nav a { display: block; min-width: 34px; padding: 6px 8px; text-align: center; font-size: 13px; font-weight: 700; color: var(--muted); text-decoration: none; border-radius: 6px; }
.lang-nav a:hover { color: var(--navy); background: var(--bg-soft); }
.lang-nav a.active { color: #fff; background: var(--navy); }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; border-radius: 8px; }
.nav-toggle .bar { display: block; width: 24px; height: 2px; margin: 5px 0; background: var(--navy); transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(2) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar:nth-child(3) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(4) { transform: translateY(-7px) rotate(-45deg); }

/* Portfolio popup: always visible below the menu, cannot be closed */
.project-popup { position: absolute; z-index: 1; top: calc(100% + 14px); left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 12px; width: max-content; max-width: calc(100% - 32px); padding: 10px 12px 10px 14px; background: #fff; color: var(--ink); font-size: 14px; line-height: 1.4; border: 1px solid var(--line); border-left: 4px solid var(--teal); border-radius: 12px; box-shadow: 0 14px 36px rgba(7, 40, 64, .22); animation: popup-in .4s ease-out both; }
.project-popup-badge { display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--teal); color: #fff; font-size: 13px; }
.project-popup a { flex: none; padding: 7px 12px; background: var(--navy); color: #fff; font-weight: 700; text-decoration: none; border-radius: 8px; white-space: nowrap; }
.project-popup a:hover { background: var(--teal); color: #fff; }
@keyframes popup-in { from { opacity: 0; transform: translate(-50%, -8px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* Leave room for the popup so it never hides content on first view */
.hero-inner { padding-top: 112px !important; }
.page-band { padding-top: 66px; }

/* Breadcrumb band on subpages */
.page-band { background: linear-gradient(180deg, var(--bg-soft), #fff); border-bottom: 1px solid var(--line); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 14px 0; font-size: 14px; color: var(--muted); }
.breadcrumb li + li::before { content: "›"; margin-right: 6px; }
.breadcrumb a { color: var(--muted); }

/* Content elements (fluid_styled_content) */
.content > .frame { max-width: var(--max); margin: 0 auto; padding: 32px 24px; }
.is-subpage .content > .frame:first-child { padding-top: 40px; }
.content > .frame-type-fluvenco_hero { max-width: none; padding: 0; }
.is-home .content > .frame:not(.frame-type-fluvenco_hero) { padding-top: 56px; padding-bottom: 56px; }
.is-home .content > .frame:nth-child(odd):not(.frame-type-fluvenco_hero) { max-width: none; background: var(--bg-soft); }
.is-home .content > .frame:nth-child(odd):not(.frame-type-fluvenco_hero) > * { max-width: calc(var(--max) - 48px); margin-left: auto; margin-right: auto; }
.content h1 { font-size: clamp(32px, 4.2vw, 46px); line-height: 1.12; color: var(--navy); margin: 0 0 14px; letter-spacing: -.01em; }
.content h2 { font-size: clamp(25px, 3vw, 32px); line-height: 1.2; color: var(--navy); margin: 0 0 12px; letter-spacing: -.005em; }
.content h3 { font-size: 20px; color: var(--navy); margin: 0 0 8px; }
.content header h2 + h3 { font-size: 17px; font-weight: 500; color: var(--muted); margin-top: -4px; }
.content p { margin: 0 0 14px; max-width: 72ch; }
.is-subpage .content > .frame:first-child p { font-size: 19px; color: #2c3a47; }
.ce-bodytext ul, ul.ce-bullets { padding-left: 0; list-style: none; margin: 8px 0 0; }
ul.ce-bullets li { position: relative; padding-left: 30px; margin-bottom: 10px; }
ul.ce-bullets li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.ce-textpic.ce-intext { display: flex; gap: 48px; align-items: center; }
.ce-textpic.ce-intext.ce-right { flex-direction: row-reverse; }
.ce-textpic .ce-gallery { flex: 0 0 44%; margin: 0; }
.ce-textpic .ce-bodytext { flex: 1; min-width: 0; }
.ce-gallery figure { margin: 0; }
.ce-gallery img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
.ce-gallery .ce-row, .ce-gallery .ce-outer, .ce-gallery .ce-inner, .ce-gallery .ce-column { width: 100%; }
.ce-table { width: 100%; max-width: 780px; border-collapse: separate; border-spacing: 0; font-size: 16px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.ce-table th, .ce-table td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.ce-table tr:last-child td { border-bottom: 0; }
.ce-table thead th { background: var(--navy); color: #fff; font-weight: 600; }
.ce-table tbody tr:nth-child(even) { background: var(--bg-soft); }
.ce-table td:first-child { color: var(--muted); }

/* Hero */
.hero { background: radial-gradient(circle at 85% 20%, rgba(15, 163, 160, .25), transparent 40%), linear-gradient(120deg, var(--navy-dark), var(--navy) 60%, #0e4d73); color: #fff; }
.hero-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 72px; }
.hero h1 { color: #fff; font-size: clamp(34px, 5vw, 54px); }
.hero .eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: 13px; font-weight: 700; color: #7fe0dc; margin-bottom: 12px; }
.hero .lead { font-size: 20px; color: #dbe9f1; margin-bottom: 24px; }
.hero-image { border-radius: 16px; box-shadow: 0 24px 60px rgba(0, 0, 0, .3); width: 100%; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 24px; background: var(--teal); color: #fff; font-weight: 700; text-decoration: none; border-radius: 10px; transition: background .15s, color .15s, transform .15s; }
.btn::after { content: "→"; transition: transform .15s; }
.btn:hover { background: #fff; color: var(--navy); }
.btn:hover::after { transform: translateX(3px); }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; list-style: none; margin: 20px 0 0; padding: 0; }
.card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .2s, transform .2s, border-color .2s; }
.card:hover, .card:focus-within { box-shadow: var(--shadow); transform: translateY(-3px); border-color: #b9ccd8; }
.card img { aspect-ratio: 8 / 5; object-fit: cover; width: 100%; }
.card-body { padding: 18px 20px 22px; }
.card h3 { font-size: 19px; }
.card h3 a { color: var(--navy); text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; }
.card h3 a:focus-visible { outline: none; }
.card:focus-within { outline: 3px solid var(--teal-light); outline-offset: 2px; }
.card p { font-size: 15px; color: var(--muted); margin: 0; }

/* Footer */
.site-footer { margin-top: 64px; background: var(--navy-dark); color: #c9d8e3; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr 1fr; gap: 32px; padding-top: 48px; padding-bottom: 28px; }
.footer-brand p { margin-top: 14px; max-width: 32ch; }
.footer-title { font-weight: 700; color: #fff; margin: 0 0 10px; font-size: 14px; text-transform: uppercase; letter-spacing: .06em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer a { color: #c9d8e3; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-note { border-top: 1px solid rgba(255, 255, 255, .15); padding-top: 16px; padding-bottom: 24px; font-size: 13px; color: #9fb3c2; }
.footer-note p { margin: 0; }

main.is-home + .site-footer { margin-top: 0; }
@media (max-width: 1180px) {
  .main-nav a { padding: 10px 8px; font-size: 14.5px; }
}
@media (max-width: 1100px) {
  .header-inner { gap: 12px; }
  .nav-toggle { display: block; order: 3; }
  .lang-nav { margin-left: auto; border-left: 0; padding-left: 0; }
  .main-nav { z-index: 2; display: none; position: absolute; top: 100%; left: 0; right: 0; max-height: calc(100vh - 76px); overflow-y: auto; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); padding: 8px 24px 20px; margin: 0; }
  .main-nav.open { display: block; }
  .main-nav > ul { flex-direction: column; }
  .main-nav > ul > li { border-bottom: 1px solid var(--line); }
  .main-nav a { padding: 14px 4px; font-size: 16px; }
  .main-nav .active > a { box-shadow: none; }
  .main-nav .has-sub > a::after { display: none; }
  .main-nav .sub { visibility: visible; opacity: 1; transform: none; position: static; box-shadow: none; border: 0; padding: 0 0 8px 14px; min-width: 0; }
  .main-nav .sub a { padding: 8px 4px; font-size: 15px; }
  .hero-inner { grid-template-columns: 1fr; padding-top: 48px; padding-bottom: 48px; gap: 32px; }
  .ce-textpic.ce-intext, .ce-textpic.ce-intext.ce-right { flex-direction: column; align-items: stretch; gap: 24px; }
  .ce-textpic .ce-gallery { flex-basis: auto; width: 100%; max-width: 520px; }
  .hero-image { max-width: 520px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .project-popup { top: calc(100% + 10px); flex-wrap: wrap; gap: 8px 10px; font-size: 13px; width: calc(100% - 24px); }
  .project-popup span:nth-child(2) { flex: 1 1 calc(100% - 40px); min-width: 0; }
  .project-popup a { margin-left: 36px; }
  .container, .content > .frame { padding-left: 18px; padding-right: 18px; }
  .content > .frame-type-fluvenco_hero { padding: 0; }
  .hero-inner { padding-top: 132px !important; }
  .page-band { padding-top: 112px; }
  .brand img { width: 140px; }
  .lang-nav .globe { display: none; }
  .lang-nav a { min-width: 30px; padding: 6px 5px; }
  .footer-grid { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .ce-table { font-size: 15px; }
  .ce-table th, .ce-table td { padding: 10px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
