:root{
  --brand:#0b2d55;
  --brand-2:#123f72;
  --accent:#0b2d55;
  --bg:#f7f8fa;
  --text:#0d1b2a;
  --muted:#5b6470;
  --line:#d9dee6;
  --surface:#ffffff;
  --surface-soft:#f2f5f8;
  --header:#ffffff;
  --header-text:#0b2d55;
  --button-bg:#0b2d55;
  --button-text:#ffffff;
  --footer:#ffffff;
  --shadow:0 14px 40px rgba(12,32,58,.09);
}
html[data-theme=dark]{
  --accent:#ffffff;
  --bg:#0e151d;
  --text:#f6f9fc;
  --muted:#c6d1dc;
  --line:#334253;
  --surface:#162230;
  --surface-soft:#111b26;
  --header:#ffffff;
  --header-text:#0b2d55;
  --button-bg:#ffffff;
  --button-text:#082541;
  --footer:#121c27;
  --shadow:0 20px 50px rgba(0,0,0,.26);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,"Noto Sans","Liberation Sans",sans-serif;background:var(--bg);color:var(--text);transition:background .2s ease,color .2s ease}
a{text-decoration:none;color:inherit}img{max-width:100%;display:block}
.site-header{height:70px;display:flex;align-items:center;gap:26px;padding:0 clamp(22px,5vw,72px);background:#ffffff;color:#0b2d55;position:sticky;top:0;z-index:50;border-bottom:1px solid rgba(11,45,85,.12);backdrop-filter:blur(14px)}
.brand{display:flex;align-items:center;gap:16px;min-width:max-content}.brand-logo{height:42px;width:auto}.brand-title{font-size:clamp(1.42rem,2.1vw,2.2rem);font-weight:900;letter-spacing:-.04em}.brand-subtitle{font-size:.82rem;font-weight:800;letter-spacing:.06em;margin-left:8px}.main-nav{margin-left:auto;display:flex;align-items:center;gap:28px;font-size:.86rem;font-weight:800;text-transform:uppercase}.main-nav a{height:70px;display:flex;align-items:center;border-bottom:3px solid transparent}.main-nav a:hover,.main-nav a.active{border-color:#0b2d55}.theme-toggle,.menu-toggle{border:1px solid rgba(11,45,85,.3);background:transparent;color:#0b2d55;border-radius:999px;padding:10px 13px;font-weight:900;cursor:pointer}.theme-toggle{font-size:1.2rem}.menu-toggle{display:none}.hero-full{position:relative;min-height:510px;height:calc(100vh - 70px);max-height:650px;overflow:hidden}.hero-img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center}.hero-shade{position:absolute;inset:0;background:linear-gradient(90deg,rgba(0,13,28,.76),rgba(0,16,32,.45) 43%,rgba(0,0,0,.04) 86%)}.hero-content{position:relative;z-index:2;color:#fff;max-width:760px;padding:clamp(90px,18vh,170px) clamp(26px,6vw,92px)}.hero-content h1{font-size:clamp(2.25rem,4vw,4.15rem);line-height:1.04;margin:0 0 20px;font-weight:900;letter-spacing:-.05em}.hero-content p{font-size:clamp(1rem,1.4vw,1.25rem);font-weight:600;margin:0 0 34px;max-width:720px}.btn{display:inline-flex;align-items:center;justify-content:center;border-radius:3px;padding:15px 28px;font-weight:900;text-transform:uppercase;font-size:.84rem;letter-spacing:.02em;transition:.2s transform,.2s background,.2s color}.btn:hover{transform:translateY(-2px)}.btn-primary{background:var(--button-bg);color:var(--button-text);border:1px solid var(--button-bg)}.btn-outline-light{color:#fff;border:1px solid rgba(255,255,255,.75)}.section{padding:56px clamp(26px,6vw,92px)}.section-title{margin-bottom:30px}.section-title h2{font-size:clamp(1.25rem,2vw,1.75rem);text-transform:uppercase;color:var(--accent);letter-spacing:.015em;margin:0 0 12px}.section-title h2:after{content:"";display:block;width:52px;height:2px;background:var(--accent);margin-top:12px}.section-title p{color:var(--muted);font-size:1.05rem;max-width:780px;line-height:1.7}.timeline-section{background:var(--surface);border-bottom:1px solid var(--line)}.timeline{display:grid;grid-template-columns:repeat(6,1fr);gap:18px;position:relative}.timeline:before{content:"";position:absolute;top:30px;left:7%;right:7%;height:1px;background:color-mix(in srgb,var(--muted) 45%,transparent)}.timeline article{text-align:center;position:relative;z-index:1}.timeline i{width:58px;height:58px;background:var(--button-bg);color:var(--button-text);border-radius:999px;display:inline-flex;align-items:center;justify-content:center;font-style:normal;font-size:1.35rem;margin-bottom:18px;box-shadow:0 10px 22px rgba(11,45,85,.18)}.timeline h3{text-transform:uppercase;font-size:.86rem;color:var(--accent);margin:0 0 8px}.timeline p{color:var(--muted);font-size:.92rem;line-height:1.5;margin:0}.service-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:22px}.service-card{background:var(--surface);border:1px solid var(--line);padding:28px 26px;min-height:320px;box-shadow:var(--shadow);transition:.25s transform,.25s border}.service-card:hover{transform:translateY(-5px);border-color:var(--accent)}.service-head{display:flex;align-items:center;gap:16px;margin:0 0 20px}.card-icon{width:44px;height:44px;display:flex;align-items:center;justify-content:center;color:var(--accent);flex:0 0 44px}.card-icon svg{width:42px;height:42px;stroke:currentColor;stroke-width:1.7;fill:none;stroke-linecap:round;stroke-linejoin:round}.service-card h3{text-transform:uppercase;color:var(--accent);font-size:1rem;margin:0}.service-card ul{margin:0 0 22px;padding-left:18px;color:var(--text);line-height:1.75;font-size:.94rem}.service-card strong{color:var(--accent);text-transform:uppercase;font-size:.82rem}.profession-note{text-align:center;color:var(--muted);font-size:1.05rem;margin:24px 0 0}.projects-carousel-section{background:var(--bg)}.carousel{position:relative}.carousel-viewport{overflow:hidden}.carousel-track{display:flex;gap:14px;transition:transform .55s cubic-bezier(.22,.61,.36,1);will-change:transform}.project-slide{flex:0 0 calc((100% - 42px)/4);min-width:0;position:relative;overflow:hidden;background:var(--surface);border:1px solid var(--line);box-shadow:var(--shadow);height:310px}.project-slide img{width:100%;height:100%;object-fit:cover;background:#fff;transition:transform .5s ease}.project-slide:hover img{transform:scale(1.04)}.project-slide:after{content:"";position:absolute;left:0;right:0;bottom:0;height:54%;background:linear-gradient(0deg,rgba(3,22,42,.95),rgba(3,22,42,.62),transparent)}.project-slide div{position:absolute;left:0;right:0;bottom:0;z-index:2;padding:22px;color:#fff}.project-slide h3{margin:0 0 8px;font-size:1.05rem}.project-slide p{margin:0 0 8px;color:#e5eef7;font-size:.9rem;font-weight:700}.project-slide span{font-size:.86rem;color:#fff}.carousel-arrow{position:absolute;top:44%;transform:translateY(-5px);z-index:5;width:54px;height:54px;border-radius:50%;border:0;background:var(--button-bg);color:var(--button-text);font-size:1.6rem;cursor:pointer;box-shadow:0 12px 28px rgba(11,45,85,.28)}.carousel-arrow.prev{left:-26px}.carousel-arrow.next{right:-26px}.carousel-dots{display:flex;justify-content:center;gap:8px;margin-top:24px}.carousel-dots button{width:10px;height:10px;border-radius:999px;border:0;background:color-mix(in srgb,var(--muted) 35%,transparent);cursor:pointer;padding:0}.carousel-dots button.active{background:var(--accent)}.contact-home{background:var(--surface-soft);border-top:1px solid var(--line)}.contact-layout{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:28px;align-items:start}.compact-form{padding:0;background:transparent;border:0;box-shadow:none}.form-row{display:grid;gap:14px}.form-row.three{grid-template-columns:repeat(3,1fr)}.form-row.two{grid-template-columns:1.1fr .9fr}.contact-form{display:grid;gap:14px}.contact-form input,.contact-form textarea,.contact-form select{border:1px solid var(--line);background:var(--surface);color:var(--text);padding:15px 16px;font:inherit;border-radius:2px}.contact-form input::placeholder,.contact-form textarea::placeholder{color:color-mix(in srgb,var(--muted) 78%,transparent)}.check{display:flex!important;align-items:flex-start;gap:10px;color:var(--muted)!important;font-size:.9rem}.check input{margin-top:5px}.form-note{margin:0;color:var(--accent);font-weight:800}.contact-benefits{background:var(--surface);border:1px solid var(--line);padding:34px 32px;box-shadow:var(--shadow);display:grid;gap:28px}.benefit-item{display:grid;grid-template-columns:56px 1fr;gap:18px;align-items:start}.benefit-icon{width:48px;height:48px;border:2px solid var(--accent);border-radius:999px;display:flex;align-items:center;justify-content:center;color:var(--accent);margin-top:1px}.benefit-icon svg{width:29px;height:29px;stroke:currentColor;stroke-width:1.8;fill:none;stroke-linecap:round;stroke-linejoin:round}.benefit-item h3{margin:1px 0 7px;color:var(--accent);font-size:1rem;line-height:1.35}.benefit-item p{margin:0;color:var(--muted);line-height:1.55;font-size:.94rem}.page-hero{padding-top:90px;padding-bottom:36px;background:var(--surface);border-bottom:1px solid var(--line)}.page-hero h1{font-size:clamp(2.2rem,4vw,4rem);line-height:1;margin:0 0 18px;letter-spacing:-.05em}.page-hero p{max-width:850px;color:var(--muted);font-size:1.1rem;line-height:1.7}.content-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:22px}.info-card{background:var(--surface);border:1px solid var(--line);padding:28px;box-shadow:var(--shadow)}.info-card h2,.info-card h3{color:var(--accent);margin-top:0}.info-card p,.info-card li{color:var(--muted);line-height:1.7}.site-footer{padding:30px clamp(26px,6vw,92px);display:flex;justify-content:space-between;gap:20px;border-top:1px solid var(--line);color:var(--muted);background:var(--footer)}.site-footer strong{display:block;color:var(--accent)}.footer-links{display:flex;gap:24px}.to-top{position:fixed;right:28px;bottom:28px;width:56px;height:56px;background:var(--button-bg);color:var(--button-text);border:0;border-radius:50%;display:flex;align-items:center;justify-content:center;line-height:1;padding:0;font-size:0;z-index:60;box-shadow:0 12px 28px rgba(11,45,85,.28);cursor:pointer}.reveal{opacity:0;transform:translateY(-5px);transition:.55s ease}.reveal.visible{opacity:1;transform:none}@media(max-width:1160px){.main-nav{display:none}.menu-toggle{display:inline-flex}.main-nav.open{position:absolute;top:70px;left:18px;right:18px;display:grid;gap:0;background:#ffffff;border:1px solid rgba(11,45,85,.14);padding:12px 20px}.main-nav.open a{height:46px}.brand-subtitle{display:none}.service-grid,.timeline{grid-template-columns:repeat(2,1fr)}.timeline:before{display:none}.content-grid{grid-template-columns:1fr}.project-slide{flex-basis:calc((100% - 14px)/2)}.contact-layout{grid-template-columns:1fr}.form-row.three,.form-row.two{grid-template-columns:1fr}.carousel-arrow.prev{left:8px}.carousel-arrow.next{right:8px}}@media(max-width:760px){.site-header{padding:0 16px}.brand-logo{height:36px}.brand-title{font-size:1.25rem}.hero-full{height:auto;min-height:540px}.hero-content{padding:120px 24px 80px}.timeline,.service-grid{grid-template-columns:1fr}.section{padding:46px 22px}.project-slide{flex-basis:100%}.site-footer{display:grid}.footer-links{display:grid;gap:10px}.to-top{right:18px;bottom:18px;width:50px;height:50px}.carousel-arrow{width:46px;height:46px;font-size:1.3rem}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}.reveal{opacity:1;transform:none}}

/* v6: header stays light in both modes */
html[data-theme=dark] .site-header{background:#ffffff!important;color:#0b2d55!important;border-bottom:1px solid rgba(11,45,85,.12)}
html[data-theme=dark] .brand,html[data-theme=dark] .main-nav,html[data-theme=dark] .main-nav a{color:#0b2d55!important}
html[data-theme=dark] .main-nav a:hover,html[data-theme=dark] .main-nav a.active{border-color:#0b2d55!important}
html[data-theme=dark] .theme-toggle,html[data-theme=dark] .menu-toggle{color:#0b2d55!important;border-color:rgba(11,45,85,.3)!important}
html[data-theme=dark] .main-nav.open{background:#ffffff!important}
html[data-theme=dark] .brand-logo{filter:none!important}


/* v7 micro-fixes */
.brand-subtitle{display:none!important}
.theme-toggle{display:inline-flex;align-items:center;justify-content:center;width:46px;height:46px;padding:0;line-height:1;transition:.2s background,.2s color,.2s border-color}
.theme-toggle span{display:inline-flex;align-items:center;justify-content:center;width:1em;height:1em;line-height:1;color:currentColor;transform:translateY(-.5px)}
html[data-theme=light] .theme-toggle{background:#ffffff;color:#0b2d55;border-color:rgba(11,45,85,.30)}
html[data-theme=dark] .theme-toggle{background:#0b2d55!important;color:#ffffff!important;border-color:#0b2d55!important}
.carousel-arrow,.to-top{display:inline-flex;align-items:center;justify-content:center;line-height:1;padding:0;text-align:center;font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,"Noto Sans","Liberation Sans",sans-serif}
.carousel-arrow{font-size:0;color:transparent}
.carousel-arrow::before{font-size:1.55rem;line-height:1;color:var(--button-text);display:block;transform:translateY(-1px)}
.carousel-arrow.prev::before{content:"←"}
.carousel-arrow.next::before{content:"→"}
.to-top{font-size:0;color:transparent}
.to-top::before{content:"↑";font-size:1.55rem;line-height:1;color:var(--button-text);display:block;transform:translateY(-1px)}
.contact-form textarea{width:100%;max-width:100%;min-width:100%;box-sizing:border-box;resize:vertical}
.project-location{display:inline-flex!important;align-items:center;gap:7px;color:#fff;font-size:.86rem;font-weight:800}
.project-location i{width:13px;height:13px;display:inline-block;position:relative;transform:rotate(45deg);border:2px solid currentColor;border-radius:50% 50% 50% 0;flex:0 0 13px;margin-left:2px}
.project-location i::after{content:"";position:absolute;width:4px;height:4px;border-radius:50%;background:currentColor;left:50%;top:50%;transform:translate(-50%,-50%)}
.card-icon svg{overflow:visible}
.service-head{align-items:center}
.service-card h3{line-height:1.18}


/* --- v7 targeted fixes --- */
.service-title-row,
.service-card .service-title-row,
.service-head,
.service-card header {
  display: flex;
  align-items: center;
  gap: 13px;
}

.service-icon,
.project-icon,
.benefit-icon,
.meta-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.service-icon svg,
.project-info svg,
.project-card svg,
.benefit-icon svg,
.meta-icon svg {
  display: block;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.carousel-arrow,
.back-to-top,
.theme-toggle,
.nav-toggle,
.slider-arrow,
.arrow,
button[class*="arrow"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1;
}

.carousel-arrow {
  padding: 0 0 3px 0;
}

.back-to-top {
  padding: 0;
}

.contact-form textarea,
textarea {
  resize: vertical;
  max-width: 100%;
  min-width: 100%;
  box-sizing: border-box;
}

.theme-toggle .theme-icon,
.theme-icon {
  color: var(--primary);
  transition: color .2s ease, transform .2s ease;
}

body.dark .theme-toggle .theme-icon,
body.dark .theme-icon {
  color: #f5b642;
}

.theme-toggle:hover .theme-icon {
  transform: rotate(12deg);
}

.site-header {
  background: #fff !important;
  color: #142033 !important;
}

body.dark .site-header,
body.dark .site-header a,
body.dark .brand,
body.dark .main-nav a {
  color: #142033 !important;
}

body.dark .site-header {
  background: #fff !important;
}



/* Last requested icon corrections */
.card-icon svg.solid-icon,
.project-location svg.solid-icon {
  fill: currentColor !important;
  stroke: none !important;
  display: block;
}

.card-icon svg.icon-hand-gear,
.card-icon svg.icon-helmet {
  width: 34px;
  height: 34px;
}

.project-location {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.project-location svg.icon-pin {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}


/* Formspree status */
.form-note {
  min-height: 1.4em;
  margin-top: 14px;
  font-weight: 700;
}

.form-note:empty {
  display: none;
}

.form-note.success {
  display: block;
  color: #1f7a3f;
}

.form-note.error {
  display: block;
  color: #b42318;
}

.contact-form button[disabled] {
  opacity: 0.7;
  cursor: wait;
}


/* Footer logo + centered copyright */
.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}

.footer-logo {
  display: flex;
  align-items: center;
}

.footer-logo img {
  height: 34px;
  width: auto;
  display: block;
}

.footer-copy {
  text-align: center;
  font-weight: 600;
}

.footer-spacer {
  min-width: 34px;
}

@media (max-width: 700px) {
  .site-footer {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .footer-spacer {
    display: none;
  }
}


/* Footer: copyright + privacy only */
.site-footer {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
  text-align: center;
}

.footer-logo,
.footer-spacer {
  display: none !important;
}

.footer-copy {
  text-align: center;
  font-weight: 600;
}

.footer-privacy {
  color: inherit;
  text-decoration: none;
  font-weight: 600;
  opacity: 0.85;
}

.footer-privacy:hover {
  opacity: 1;
  text-decoration: underline;
}

/* Contact consent checkbox alignment */
.consent,
.gdpr,
.form-consent,
.checkbox-row,
.contact-form label:has(input[type="checkbox"]) {
  display: flex !important;
  align-items: center !important;
  gap: 10px;
}

.consent input[type="checkbox"],
.gdpr input[type="checkbox"],
.form-consent input[type="checkbox"],
.checkbox-row input[type="checkbox"],
.contact-form label:has(input[type="checkbox"]) input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  flex: 0 0 16px;
  align-self: center;
}



/* Footer final alignment */
.site-footer{
  display:flex !important;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:8px;
  text-align:center;
}

.footer-copy{
  font-weight:600;
}

.footer-privacy{
  display:block;
  text-align:center;
  color: var(--primary);
  text-decoration:none;
}

.footer-privacy:hover{
  text-decoration:underline;
}

/* dark mode inherits automatically */



/* Services detail page */
.subpage-hero {
  padding: clamp(90px, 11vw, 150px) clamp(20px, 6vw, 90px) clamp(56px, 8vw, 96px);
  background: var(--section-bg, var(--bg));
}

.subpage-hero-inner {
  max-width: 1120px;
  margin: 0 auto;
}

.subpage-hero h1 {
  max-width: 980px;
  margin: 0 0 24px;
  font-size: clamp(2.4rem, 5.6vw, 5.8rem);
  line-height: .98;
  letter-spacing: -.06em;
}

.subpage-hero p:not(.eyebrow) {
  max-width: 780px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.35vw, 1.22rem);
}

.services-detail-page {
  padding-top: 40px;
}

.services-detail-grid {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  gap: 28px;
}

.service-detail-card {
  background: var(--card-bg, var(--card, #fff));
  border: 1px solid var(--border, var(--line));
  border-radius: 30px;
  padding: clamp(24px, 4vw, 46px);
  box-shadow: var(--shadow);
}

.service-detail-head {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 28px;
}

.service-detail-head .card-icon {
  width: 62px;
  height: 62px;
  border-radius: 20px;
  flex: 0 0 62px;
}

.service-detail-head h2 {
  margin: 0;
  font-size: clamp(1.9rem, 3.4vw, 3.3rem);
  letter-spacing: -.045em;
  line-height: 1;
}

.service-detail-head .eyebrow {
  margin-bottom: 7px;
}

.service-items {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.service-item {
  padding: 20px 20px 18px;
  border-radius: 22px;
  background: var(--soft-bg, rgba(20, 58, 99, .045));
  border: 1px solid var(--border, var(--line));
}

.service-item h3 {
  margin: 0 0 9px;
  font-size: 1.08rem;
  letter-spacing: -.02em;
}

.service-item p {
  margin: 0;
  color: var(--muted);
}

.services-cta-card {
  max-width: 980px;
  margin: clamp(34px, 5vw, 62px) auto 0;
  padding: clamp(28px, 5vw, 54px);
  border-radius: 30px;
  text-align: center;
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow);
}

.services-cta-card .eyebrow {
  color: rgba(255,255,255,.76);
}

.services-cta-card h2 {
  max-width: 760px;
  margin: 0 auto 24px;
  font-size: clamp(1.8rem, 3.4vw, 3.3rem);
  line-height: 1.04;
  letter-spacing: -.045em;
}

.services-cta-card .btn {
  background: #fff;
  color: var(--primary);
}

.card-icon svg.solid-icon {
  fill: currentColor !important;
  stroke: none !important;
}

@media (max-width: 860px) {
  .service-items {
    grid-template-columns: 1fr;
  }

  .service-detail-head {
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .subpage-hero {
    padding-top: 70px;
  }

  .service-detail-card {
    border-radius: 24px;
  }

  .service-detail-head {
    flex-direction: column;
  }
}



/* Services fixes */
.service-item{
  background: var(--card-bg, var(--card));
}

/* ensure dark mode readability */
html[data-theme="dark"] .service-item{
  background: #1b1f26;
  border-color: #2a2f38;
}

/* CTA button color adaptive */
.services-cta-card .btn{
  background: var(--bg);
  color: var(--primary);
}

html[data-theme="dark"] .services-cta-card .btn{
  background: #ffffff;
  color: #0f3156;
}


/* Scroll to top */
.scroll-top{
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
}

html[data-theme="dark"] .scroll-top{
  background:#fff;
  color:#0f3156;
}



/* Services page color consistency + header fix */
.site-header,
html[data-theme="dark"] .site-header,
body.dark .site-header {
  background: #fff !important;
  color: #142033 !important;
}

.site-header .brand,
.site-header .brand-title,
.site-header .brand span,
.site-header a.brand,
html[data-theme="dark"] .site-header .brand,
html[data-theme="dark"] .site-header .brand-title,
html[data-theme="dark"] .site-header .brand span,
html[data-theme="dark"] .site-header a.brand,
body.dark .site-header .brand,
body.dark .site-header .brand-title,
body.dark .site-header .brand span,
body.dark .site-header a.brand {
  color: #142033 !important;
}

html[data-theme="dark"] .main-nav a,
body.dark .main-nav a {
  color: #142033 !important;
}

.services-detail-page {
  background: var(--bg);
}

.service-detail-card {
  background: var(--card-bg, var(--card, #fff));
  color: var(--text);
  border-color: var(--border, var(--line));
}

.service-detail-card h2,
.service-detail-card h3 {
  color: var(--text);
}

.service-detail-card p {
  color: var(--muted);
}

.service-item {
  background: var(--surface, rgba(20, 58, 99, .045)) !important;
  color: var(--text);
  border: 1px solid var(--border, var(--line));
}

.service-item h3 {
  color: var(--text);
}

.service-item p {
  color: var(--muted);
}

html[data-theme="dark"] .service-detail-card,
body.dark .service-detail-card {
  background: var(--card-bg, #151b22) !important;
  border-color: #2b3440 !important;
  color: var(--text);
}

html[data-theme="dark"] .service-item,
body.dark .service-item {
  background: #1b232c !important;
  border-color: #334050 !important;
  color: var(--text);
}

html[data-theme="dark"] .service-item h3,
body.dark .service-item h3 {
  color: #f4f7fb !important;
}

html[data-theme="dark"] .service-item p,
body.dark .service-item p {
  color: #c8d2dd !important;
}

html[data-theme="dark"] .subpage-hero,
body.dark .subpage-hero {
  background: var(--bg);
}

.services-cta-card {
  background: var(--primary);
  color: #fff;
}

.services-cta-card h2,
.services-cta-card p,
.services-cta-card .eyebrow {
  color: #fff;
}

.services-cta-card .btn {
  background: #fff !important;
  color: #143a63 !important;
}

html[data-theme="dark"] .services-cta-card,
body.dark .services-cta-card {
  background: #1b232c !important;
  border: 1px solid #334050;
  color: #f4f7fb;
}

html[data-theme="dark"] .services-cta-card h2,
html[data-theme="dark"] .services-cta-card p,
html[data-theme="dark"] .services-cta-card .eyebrow,
body.dark .services-cta-card h2,
body.dark .services-cta-card p,
body.dark .services-cta-card .eyebrow {
  color: #f4f7fb !important;
}

html[data-theme="dark"] .services-cta-card .btn,
body.dark .services-cta-card .btn {
  background: #fff !important;
  color: #143a63 !important;
}

/* Back-to-top button on all pages */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 0;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease, background .2s ease, color .2s ease;
  z-index: 9999;
  box-shadow: 0 14px 30px rgba(0,0,0,.22);
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

html[data-theme="dark"] .back-to-top,
body.dark .back-to-top {
  background: #fff;
  color: #143a63;
}



/* Services page final visual alignment with homepage */
.services-detail-page {
  background: var(--bg) !important;
}

.service-detail-card {
  border-radius: 0 !important;
  background: var(--card-bg, var(--card, #ffffff)) !important;
  border: 1px solid var(--border, var(--line)) !important;
  box-shadow: var(--shadow) !important;
  color: var(--text) !important;
}

.service-item {
  border-radius: 0 !important;
  background: var(--card-bg, var(--card, #ffffff)) !important;
  border: 1px solid var(--border, var(--line)) !important;
  color: var(--text) !important;
  box-shadow: none !important;
}

.service-detail-card h2,
.service-detail-card h3,
.service-item h3 {
  color: var(--text) !important;
}

.service-detail-card p,
.service-item p {
  color: var(--muted) !important;
}

html[data-theme="dark"] .service-detail-card,
body.dark .service-detail-card,
html[data-theme="dark"] .service-item,
body.dark .service-item {
  background: var(--card-bg, var(--card, #151b22)) !important;
  border-color: var(--border, var(--line, #334050)) !important;
  color: var(--text) !important;
}

html[data-theme="dark"] .service-detail-card h2,
html[data-theme="dark"] .service-detail-card h3,
html[data-theme="dark"] .service-item h3,
body.dark .service-detail-card h2,
body.dark .service-detail-card h3,
body.dark .service-item h3 {
  color: var(--text) !important;
}

html[data-theme="dark"] .service-detail-card p,
html[data-theme="dark"] .service-item p,
body.dark .service-detail-card p,
body.dark .service-item p {
  color: var(--muted) !important;
}

/* CTA as homepage button/card colors */
.services-cta-card {
  border-radius: 0 !important;
  background: var(--card-bg, var(--card, #ffffff)) !important;
  border: 1px solid var(--border, var(--line)) !important;
  box-shadow: var(--shadow) !important;
  color: var(--text) !important;
}

.services-cta-card h2,
.services-cta-card p,
.services-cta-card .eyebrow {
  color: var(--text) !important;
}

.services-cta-card .btn,
.services-cta-card .btn-primary {
  background: var(--primary) !important;
  color: #ffffff !important;
  border: 1px solid var(--primary) !important;
}

html[data-theme="dark"] .services-cta-card,
body.dark .services-cta-card {
  background: var(--card-bg, var(--card, #151b22)) !important;
  border-color: var(--border, var(--line, #334050)) !important;
}

html[data-theme="dark"] .services-cta-card h2,
html[data-theme="dark"] .services-cta-card p,
html[data-theme="dark"] .services-cta-card .eyebrow,
body.dark .services-cta-card h2,
body.dark .services-cta-card p,
body.dark .services-cta-card .eyebrow {
  color: var(--text) !important;
}

html[data-theme="dark"] .services-cta-card .btn,
html[data-theme="dark"] .services-cta-card .btn-primary,
body.dark .services-cta-card .btn,
body.dark .services-cta-card .btn-primary {
  background: var(--primary) !important;
  color: #ffffff !important;
  border-color: var(--primary) !important;
}

/* Homepage-like back-to-top button */
.back-to-top {
  position: fixed !important;
  right: 24px !important;
  bottom: 24px !important;
  z-index: 9999 !important;
  width: 48px !important;
  height: 48px !important;
  border-radius: 999px !important;
  border: 0 !important;
  background: var(--primary) !important;
  color: #fff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 14px 30px rgba(0,0,0,.22) !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translateY(8px) !important;
  transition: opacity .2s ease, transform .2s ease !important;
  cursor: pointer !important;
  font-size: 1.25rem !important;
  line-height: 1 !important;
}

.back-to-top.visible {
  opacity: 1 !important;
  pointer-events: auto !important;
  transform: translateY(0) !important;
}

html[data-theme="dark"] .back-to-top,
body.dark .back-to-top {
  background: var(--primary) !important;
  color: #fff !important;
}



/* Final services page visual unification */
.service-detail-card {
  border-radius: 0 !important;
  background: #ffffff !important;
  border: 1px solid rgba(15, 49, 86, 0.16) !important;
  box-shadow: var(--shadow) !important;
}

.service-item {
  border-radius: 0 !important;
  background: var(--primary) !important;
  border: 1px solid var(--primary) !important;
  color: #ffffff !important;
}

.service-item h3,
.service-item p {
  color: #ffffff !important;
}

html[data-theme="dark"] .service-detail-card,
body.dark .service-detail-card {
  background: #151b22 !important;
  border-color: #334050 !important;
}

html[data-theme="dark"] .service-item,
body.dark .service-item {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
}

html[data-theme="dark"] .service-item h3,
html[data-theme="dark"] .service-item p,
body.dark .service-item h3,
body.dark .service-item p {
  color: #ffffff !important;
}

/* Bottom CTA section like homepage: clean card, same button geometry/colors/text */
.services-cta-card {
  border-radius: 0 !important;
  background: #ffffff !important;
  border: 1px solid rgba(15, 49, 86, 0.16) !important;
  box-shadow: var(--shadow) !important;
  color: var(--text) !important;
}

.services-cta-card h2 {
  color: var(--text) !important;
}

.services-cta-card .btn,
.services-cta-card .btn-primary,
.services-contact-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 54px !important;
  padding: 0 34px !important;
  border-radius: 2px !important;
  background: #0f3156 !important;
  color: #ffffff !important;
  border: 1px solid #0f3156 !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: .02em !important;
  text-decoration: none !important;
}

html[data-theme="dark"] .services-cta-card,
body.dark .services-cta-card {
  background: #151b22 !important;
  border-color: #334050 !important;
  color: var(--text) !important;
}

html[data-theme="dark"] .services-cta-card h2,
body.dark .services-cta-card h2 {
  color: var(--text) !important;
}

html[data-theme="dark"] .services-cta-card .btn,
html[data-theme="dark"] .services-cta-card .btn-primary,
html[data-theme="dark"] .services-contact-btn,
body.dark .services-cta-card .btn,
body.dark .services-cta-card .btn-primary,
body.dark .services-contact-btn {
  background: #0f3156 !important;
  color: #ffffff !important;
  border-color: #0f3156 !important;
}

/* Back-to-top button exactly usable on services */
.back-to-top,
.scroll-top,
#scrollToTop {
  position: fixed !important;
  right: 24px !important;
  bottom: 24px !important;
  z-index: 99999 !important;
  width: 48px !important;
  height: 48px !important;
  border-radius: 50% !important;
  border: 0 !important;
  background: #0f3156 !important;
  color: #ffffff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 14px 30px rgba(0,0,0,.22) !important;
  cursor: pointer !important;
  font-size: 1.25rem !important;
  line-height: 1 !important;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease !important;
}

.back-to-top.visible,
.back-to-top.show,
.scroll-top.visible,
.scroll-top.show,
#scrollToTop.visible,
#scrollToTop.show {
  opacity: 1 !important;
  pointer-events: auto !important;
  transform: translateY(0) !important;
}

html[data-theme="dark"] .back-to-top,
html[data-theme="dark"] .scroll-top,
html[data-theme="dark"] #scrollToTop,
body.dark .back-to-top,
body.dark .scroll-top,
body.dark #scrollToTop {
  background: #0f3156 !important;
  color: #ffffff !important;
}



/* FINAL services color correction: match homepage light/dark behavior */
.service-detail-card {
  border-radius: 0 !important;
  background: #ffffff !important;
  color: #0f1720 !important;
  border: 1px solid #d9e1ea !important;
  box-shadow: var(--shadow) !important;
}

.service-detail-card h2,
.service-detail-card h3,
.service-item h3 {
  color: #0f1720 !important;
}

.service-detail-card p,
.service-item p {
  color: #4d5b6a !important;
}

.service-item {
  border-radius: 0 !important;
  background: #ffffff !important;
  color: #0f1720 !important;
  border: 1px solid #d9e1ea !important;
  box-shadow: none !important;
}

/* dark mode = same visual family as homepage dark services cards */
html[data-theme="dark"] .service-detail-card,
body.dark .service-detail-card {
  background: #142130 !important;
  color: #ffffff !important;
  border: 1px solid #344659 !important;
}

html[data-theme="dark"] .service-item,
body.dark .service-item {
  background: #142130 !important;
  color: #ffffff !important;
  border: 1px solid #344659 !important;
}

html[data-theme="dark"] .service-detail-card h2,
html[data-theme="dark"] .service-detail-card h3,
html[data-theme="dark"] .service-item h3,
body.dark .service-detail-card h2,
body.dark .service-detail-card h3,
body.dark .service-item h3 {
  color: #ffffff !important;
}

html[data-theme="dark"] .service-detail-card p,
html[data-theme="dark"] .service-item p,
body.dark .service-detail-card p,
body.dark .service-item p {
  color: #dce7f2 !important;
}

/* CTA follows homepage: visible button, normal card colors */
.services-cta-card {
  border-radius: 0 !important;
  background: #ffffff !important;
  color: #0f1720 !important;
  border: 1px solid #d9e1ea !important;
  box-shadow: var(--shadow) !important;
}

.services-cta-card h2,
.services-cta-card p {
  color: #0f1720 !important;
}

html[data-theme="dark"] .services-cta-card,
body.dark .services-cta-card {
  background: #142130 !important;
  color: #ffffff !important;
  border: 1px solid #344659 !important;
}

html[data-theme="dark"] .services-cta-card h2,
html[data-theme="dark"] .services-cta-card p,
body.dark .services-cta-card h2,
body.dark .services-cta-card p {
  color: #ffffff !important;
}

.services-cta-card .btn,
.services-cta-card .btn-primary,
.services-contact-btn {
  background: #0f3156 !important;
  color: #ffffff !important;
  border: 1px solid #0f3156 !important;
  border-radius: 2px !important;
}

html[data-theme="dark"] .services-cta-card .btn,
html[data-theme="dark"] .services-cta-card .btn-primary,
html[data-theme="dark"] .services-contact-btn,
body.dark .services-cta-card .btn,
body.dark .services-cta-card .btn-primary,
body.dark .services-contact-btn {
  background: #ffffff !important;
  color: #0f3156 !important;
  border: 1px solid #ffffff !important;
}



/* FINAL tiny tweaks */

/* slightly different background for inner boxes */
.service-item{
  background:#f3f6fa !important;
}

html[data-theme="dark"] .service-item{
  background:#1a2a3a !important;
}

/* back to top always visible + same size feel */
.back-to-top{
  width:56px !important;
  height:56px !important;
  opacity:1 !important;
  pointer-events:auto !important;
  transform:none !important;
}



/* FINAL visual polish */

/* service boxes more contrast (same as section bg feel) */
.service-item{
  background: rgba(20,58,99,0.06) !important;
}
html[data-theme="dark"] .service-item{
  background: rgba(255,255,255,0.05) !important;
}

/* back-to-top EXACT like homepage */
.back-to-top{
  width:48px !important;
  height:48px !important;
  border-radius:50% !important;
  background: var(--primary) !important;
  color:#fff !important;
  box-shadow: 0 10px 25px rgba(0,0,0,0.25) !important;
}

html[data-theme="dark"] .back-to-top{
  background:#ffffff !important;
  color: var(--primary) !important;
}



/* Contact page layout */
.contact-page-hero {
  padding: clamp(90px, 11vw, 150px) clamp(20px, 6vw, 90px) clamp(34px, 5vw, 64px);
  background: var(--bg);
}

.contact-page-intro {
  max-width: 1180px;
  margin: 0 auto;
}

.contact-page-intro h1 {
  max-width: 980px;
  margin: 0 0 24px;
  font-size: clamp(2.4rem, 5.6vw, 5.8rem);
  line-height: .98;
  letter-spacing: -.06em;
}

.contact-page-intro p:not(.eyebrow) {
  max-width: 820px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.35vw, 1.22rem);
}

.contact-page-copy {
  padding-top: 20px;
}

.contact-page-copy .contact-layout {
  max-width: 1180px;
  margin: 0 auto;
}

.company-details p {
  margin: 8px 0 0;
}

.company-details strong {
  color: var(--text);
}

html[data-theme="dark"] .company-details strong {
  color: #ffffff;
}



/* Contact page final polishing */
.contact-page-intro .eyebrow {
  display: none;
}

.contact-page-copy .contact-layout {
  align-items: stretch;
}

.contact-page-copy .contact-form {
  height: 100%;
}

.contact-page-copy .contact-benefits {
  height: 100%;
}



@media (min-width: 900px) {
  
}






/* kontakt layout fix */
.contact-layout{
  display:flex !important;
  flex-direction:column !important;
  gap:40px;
}

.contact-layout aside{
  display:grid !important;
  grid-template-columns: repeat(3,1fr);
  gap:20px;
}

@media (max-width:800px){
  .contact-layout aside{
    grid-template-columns:1fr;
  }
}



/* Home contact form full width + textarea vertical only */
#kontakt .contact-layout {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

#kontakt .contact-form {
  width: 100%;
}

#kontakt .contact-form textarea,
.contact-form textarea {
  resize: vertical !important;
  max-width: 100%;
  min-width: 100%;
  box-sizing: border-box;
}

/* Contact page: form first, info blocks below in one frame, company in separate frame */
.kontakt-page .contact-layout,
.contact-page-copy .contact-layout,
.contact-layout {
  align-items: stretch;
}

.contact-page-copy .contact-layout {
  display: flex !important;
  flex-direction: column !important;
  gap: 28px !important;
}

.contact-page-copy .contact-benefits {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 26px;
  border: 1px solid var(--border, var(--line));
  background: var(--card-bg, var(--card, #fff));
  box-shadow: var(--shadow);
  border-radius: 0;
}

.contact-page-copy .contact-benefits .benefit-item {
  margin: 0;
}

.company-details-box {
  padding: 26px;
  border: 1px solid var(--border, var(--line));
  background: var(--card-bg, var(--card, #fff));
  box-shadow: var(--shadow);
  border-radius: 0;
}

.company-details-box .benefit-item {
  margin: 0;
}

.company-details-box .company-details {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: flex-start;
}

html[data-theme="dark"] .contact-page-copy .contact-benefits,
body.dark .contact-page-copy .contact-benefits,
html[data-theme="dark"] .company-details-box,
body.dark .company-details-box {
  background: var(--card-bg, #142130);
  border-color: #344659;
}

@media (max-width: 900px) {
  .contact-page-copy .contact-benefits {
    grid-template-columns: 1fr;
  }
}



/* homepage contact wider */
#kontakt .contact-layout{
  max-width: 1400px !important;
}

/* icons under form spacing */
#kontakt .contact-benefits{
  gap: 40px !important;
}

/* contact page company center */
.company-details-box{
  text-align: center;
}
.company-details-box .company-details{
  grid-template-columns: 1fr !important;
  justify-items: center;
}



/* align contact heading with form */
.contact-page-intro{
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 0;
}



/* About page */
.about-hero {
  padding: clamp(90px, 11vw, 150px) clamp(20px, 6vw, 90px) clamp(42px, 6vw, 76px);
  background: var(--bg);
}

.about-hero-inner {
  max-width: 1180px;
  margin: 0 auto;
}

.about-hero h1 {
  margin: 0 0 24px;
  font-size: clamp(2.8rem, 6vw, 6.2rem);
  line-height: .95;
  letter-spacing: -.065em;
}

.about-hero p {
  max-width: 860px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.35vw, 1.24rem);
}

.about-intro-section {
  padding-top: 20px;
}

.about-intro-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.about-text-card,
.team-card {
  border-radius: 0;
  background: #ffffff;
  color: #0f1720;
  border: 1px solid #d9e1ea;
  box-shadow: var(--shadow);
}

.about-text-card {
  padding: clamp(24px, 4vw, 42px);
}

.about-text-card h2 {
  margin: 0 0 18px;
  color: #0f1720;
  font-size: clamp(1.55rem, 2.4vw, 2.4rem);
  line-height: 1.05;
  letter-spacing: -.04em;
}

.about-text-card p {
  color: #4d5b6a;
  margin: 0 0 15px;
}

.about-text-card p:last-child {
  margin-bottom: 0;
}

.team-section {
  padding-top: 30px;
}

.team-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.team-card {
  padding: 24px;
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 18px;
  align-items: center;
}

.team-photo {
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  background: rgba(20,58,99,0.06);
  border: 1px solid #d9e1ea;
}

.team-photo svg {
  width: 54px;
  height: 54px;
  stroke: #0f3156;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.team-info h3 {
  margin: 0 0 6px;
  color: #0f1720;
  font-size: 1.22rem;
  letter-spacing: -.025em;
}

.team-info p {
  margin: 0;
  color: #4d5b6a;
  font-weight: 600;
}

html[data-theme="dark"] .about-text-card,
html[data-theme="dark"] .team-card,
body.dark .about-text-card,
body.dark .team-card {
  background: #142130;
  color: #ffffff;
  border-color: #344659;
}

html[data-theme="dark"] .about-text-card h2,
html[data-theme="dark"] .team-info h3,
body.dark .about-text-card h2,
body.dark .team-info h3 {
  color: #ffffff;
}

html[data-theme="dark"] .about-text-card p,
html[data-theme="dark"] .team-info p,
body.dark .about-text-card p,
body.dark .team-info p {
  color: #dce7f2;
}

html[data-theme="dark"] .team-photo,
body.dark .team-photo {
  background: rgba(255,255,255,0.05);
  border-color: #344659;
}

html[data-theme="dark"] .team-photo svg,
body.dark .team-photo svg {
  stroke: #ffffff;
}

@media (max-width: 920px) {
  .about-intro-grid,
  .team-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .team-card {
    grid-template-columns: 1fr;
  }
}



/* team lead highlight */
.team-lead{
  grid-column: 1 / -1;
  border: 2px solid #0f3156 !important;
}

/* align section title left like hero */
.section-title.about-hero-inner{
  max-width:1180px;
  margin:0 auto;
  text-align:left;
}

/* ensure grid spacing */
.team-grid{
  align-items:stretch;
}



/* About team + career final layout */
.team-lead {
  grid-column: 1 / -1;
  border: 2px solid #0f3156 !important;
}

.team-architect {
  grid-column: 1 / -1;
  max-width: calc((100% - 44px) / 3);
}

@media (max-width: 920px) {
  .team-architect {
    max-width: none;
  }
}

.career-section {
  padding-top: 30px;
}

.career-wrap {
  max-width: 1180px;
  margin: 0 auto;
}

.career-wrap .section-title {
  margin-bottom: 28px;
}

.career-form {
  width: 100%;
}

.career-form textarea {
  resize: vertical;
  max-width: 100%;
  min-width: 100%;
}

html[data-theme="dark"] .team-lead,
body.dark .team-lead {
  border-color: #ffffff !important;
}



/* Final heading horizontal alignment */
.sluzby-page .section-title,
.services-detail-page .section-title,
.services-detail-page > .section-title,
.contact-page-intro,
.contact-page-copy .section-title {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

/* If services page uses the generic title above cards, align it to card grid */
.services-detail-page .section-title {
  text-align: left;
}


/* FIX: center arrows in reference slider */
.slider-arrow,
.reference-arrow,
.carousel-arrow,
.modal-arrow {
  display:flex;
  align-items:center;
  justify-content:center;
  padding:0;
}
.slider-arrow img,
.reference-arrow img,
.carousel-arrow img,
.modal-arrow img,
.slider-arrow svg,
.reference-arrow svg,
.carousel-arrow svg,
.modal-arrow svg {
  width:20px;
  height:20px;
  margin:0;
}


/* Homepage dynamic reference carousel and modal */
.project-slide.reference-slide {
  border: 0;
  padding: 0;
  text-align: left;
  cursor: pointer;
  font: inherit;
}
.ref-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 26px;
}
.ref-modal.open { display: flex; }
.ref-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 12, 20, .58);
}
.ref-modal-panel {
  position: relative;
  z-index: 1;
  width: min(1050px, 94vw);
  max-height: 88vh;
  overflow: auto;
  background: #fff;
  color: #0f1720;
  border: 1px solid #d9e1ea;
  box-shadow: 0 30px 90px rgba(0,0,0,.28);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
}
.ref-modal-close {
  position: absolute;
  top: 10px;
  right: 14px;
  width: 38px;
  height: 38px;
  border: 0;
  background: #0f3156;
  color: #fff;
  font-size: 1.7rem;
  cursor: pointer;
  z-index: 2;
  line-height: 1;
}
.ref-gallery {
  position: relative;
  background: #f3f6fa;
  min-height: 480px;
  display: grid;
  place-items: center;
}
.ref-gallery img {
  width: 100%;
  height: 100%;
  max-height: 650px;
  object-fit: contain;
  display: block;
}
.ref-gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 54px;
  border: 0;
  background: rgba(15,49,86,.92);
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 0;
}
.ref-gallery-arrow.prev { left: 12px; }
.ref-gallery-arrow.next { right: 12px; }
.ref-modal-content { padding: clamp(24px, 4vw, 44px); }
.ref-modal-content h2 {
  margin: 6px 0 16px;
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1.02;
  letter-spacing: -.05em;
}
.ref-modal-content p { color: #4d5b6a; }
.ref-kicker {
  margin: 0;
  color: #0f3156;
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: .04em;
  font-size: .78rem;
}
.ref-meta { display: grid; gap: 12px; margin: 0; }
.ref-meta div { border-top: 1px solid #d9e1ea; padding-top: 12px; }
.ref-meta dt { font-weight: 900; color: #0f1720; }
.ref-meta dd { margin: 4px 0 0; color: #4d5b6a; }
html[data-theme="dark"] .ref-modal-panel,
body.dark .ref-modal-panel {
  background: #142130;
  color: #fff;
  border-color: #344659;
}
html[data-theme="dark"] .ref-gallery,
body.dark .ref-gallery { background: #0f1720; }
html[data-theme="dark"] .ref-kicker,
body.dark .ref-kicker { color: #fff; }
html[data-theme="dark"] .ref-modal-content p,
html[data-theme="dark"] .ref-meta dd,
body.dark .ref-modal-content p,
body.dark .ref-meta dd { color: #dce7f2; }
html[data-theme="dark"] .ref-meta dt,
body.dark .ref-meta dt { color: #fff; }
html[data-theme="dark"] .ref-meta div,
body.dark .ref-meta div { border-color: #344659; }
html[data-theme="dark"] .ref-modal-close,
body.dark .ref-modal-close {
  background: #ffffff !important;
  color: #0f3156 !important;
}
@media (max-width: 900px) {
  .ref-modal-panel { grid-template-columns: 1fr; }
  .ref-gallery { min-height: 320px; }
}

@media (max-width: 1160px) {
  .site-header {
    justify-content: flex-start !important;
    gap: 12px !important;
  }

  .brand {
    margin-right: auto !important;
  }

  .theme-toggle {
    margin-left: auto !important;
  }

  .menu-toggle {
    margin-left: 0 !important;
  }
}


/* === MANOZ cleanup: local fonts, arrows, mobile header === */
body,
button,
input,
textarea,
select {
  font-family: system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,"Noto Sans","Liberation Sans",sans-serif;
}

/* Geometric arrows: no emoji/font offset */
.carousel-arrow,
.ref-gallery-arrow,
.to-top {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  line-height: 0 !important;
  font-size: 0 !important;
  color: transparent !important;
  position: relative;
  overflow: hidden;
}

.carousel-arrow {
  top: 50% !important;
  transform: translateY(-50%) !important;
}

.ref-gallery-arrow {
  top: 50% !important;
  transform: translateY(-50%) !important;
}

.carousel-arrow::before,
.ref-gallery-arrow::before,
.to-top::before {
  content: "" !important;
  width: 12px !important;
  height: 12px !important;
  border-top: 3px solid currentColor !important;
  border-right: 3px solid currentColor !important;
  display: block !important;
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  margin: 0 !important;
  padding: 0 !important;
}

.carousel-arrow.prev::before,
.ref-gallery-arrow.prev::before {
  color: var(--button-text) !important;
  transform: translate(-42%, -50%) rotate(-135deg) !important;
}

.carousel-arrow.next::before,
.ref-gallery-arrow.next::before {
  color: var(--button-text) !important;
  transform: translate(-58%, -50%) rotate(45deg) !important;
}

.ref-gallery-arrow.prev::before,
.ref-gallery-arrow.next::before {
  color: #fff !important;
}

.to-top {
  position: fixed !important;
  right: 28px !important;
  bottom: 28px !important;
  width: 56px !important;
  height: 56px !important;
  border-radius: 50% !important;
  background: var(--button-bg) !important;
  color: transparent !important;
  z-index: 60 !important;
  cursor: pointer !important;
}

.to-top::before {
  color: var(--button-text) !important;
  transform: translate(-50%, -50%) rotate(-45deg) !important;
}

/* Mobile header: logo left, theme + menu right */
@media (max-width: 1160px) {
  .site-header {
    justify-content: flex-start !important;
    gap: 10px !important;
    padding-inline: 16px !important;
  }
  .brand {
    margin-right: auto !important;
    min-width: 0 !important;
  }
  .brand-title {
    white-space: nowrap !important;
  }
  .theme-toggle {
    margin-left: auto !important;
    flex: 0 0 46px !important;
  }
  .menu-toggle {
    margin-left: 0 !important;
    flex: 0 0 auto !important;
  }
  .main-nav.open {
    left: 16px !important;
    right: 16px !important;
  }
}

@media (max-width: 760px) {
  .site-header {
    height: 64px !important;
  }
  .brand-logo {
    height: 34px !important;
  }
  .brand-title {
    font-size: 1.1rem !important;
  }
  .theme-toggle {
    width: 42px !important;
    height: 42px !important;
  }
  .menu-toggle {
    min-height: 42px !important;
    padding-inline: 12px !important;
  }
  .carousel-arrow {
    width: 46px !important;
    height: 46px !important;
  }
  .ref-modal {
    padding: 14px !important;
  }
  .ref-gallery-arrow {
    width: 40px !important;
    height: 48px !important;
  }
  .to-top {
    right: 18px !important;
    bottom: 18px !important;
    width: 50px !important;
    height: 50px !important;
  }
}

/* CTA spacing on collaboration/contact sections */
.contact-cta,
.contact-section .btn,
.contact-section a.button,
.collab-cta .btn,
.collaboration-cta .btn {
  margin-top: 32px !important;
  margin-bottom: 32px !important;
}



.ref-gallery-arrow.prev {
  left: 12px !important;
  right: auto !important;
}

.ref-gallery-arrow.next {
  right: 12px !important;
  left: auto !important;
}


/* Proper side arrows positioning */
.ref-gallery-arrow {
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  z-index: 20 !important;
}

.ref-gallery-arrow.prev {
  left: 16px !important;
  right: auto !important;
}

.ref-gallery-arrow.next {
  right: 16px !important;
  left: auto !important;
}

.carousel-arrow {
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  z-index: 10 !important;
}

.carousel-arrow.prev {
  left: -10px !important;
}

.carousel-arrow.next {
  right: -10px !important;
}
