:root {
  --color-bg: #ffffff;
  --color-text: #0b1f2a;
  --color-muted: #5c6b76;
  --color-primary: #0082c3; /* Roxtec-like blue */
  --color-primary-700: #00699d;
  --color-accent: #00b3ff;
  --color-surface: #f4f7fb;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.12);
  --radius: 12px;
  --logo-trim: 0px; /* trim transparent top/bottom from logo if needed */
  --logo-overlap: 24px; /* amount of logo to spill over below header */
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  padding-top: calc(110px + var(--logo-overlap));
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  position: fixed;
  left: 16px;
  top: 16px;
  width: auto;
  height: auto;
  background: #000;
  color: #fff;
  padding: 8px 12px;
  border-radius: 6px;
  z-index: 1000;
}

.container {
  width: min(1120px, 92%);
  margin-inline: auto;
}

/* Header */
.site-header {
  position: fixed;     /* ← keeps header always on top */
  top: 0;
  left: 0;
  width: 100%;         /* full width */
  z-index: 3000;
  
  background: #ffffffcc;
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid #e8eef5;
  overflow: visible;
}
.site-header::before {
  content: "";
  position: absolute;
  left: 0;
  top: calc(var(--logo-overlap) + 0.5px);
  height: calc(128px - var(--logo-overlap) - 2.6px);
  width: calc((100vw - min(1120px, 92%)) / 2);
  background: #000;
  z-index: 1500;

}
/* The text inside the black rectangle */
.header-label {
  position: absolute;
  left: 0;
  top: calc(var(--logo-overlap) + 0.5px);
  height: calc(128px - var(--logo-overlap) - 2.6px);
  width: calc((100vw - min(1120px, 92%)) / 2);

  display: flex;
  flex-direction: column;
  justify-content: center;    /* vertical centering */
  align-items: flex-end;       /* right alignment */

  font-size: 22px;
  font-weight: 700;
  line-height: 1.1;
  color: #fff;

  z-index: 4000; /* above the black box */
  pointer-events: none; /* text won't block menu button */
}
.nav-container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  padding: 0;
  height: 128px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; height: 128px; overflow: visible; position: relative; }
.brand::before {
  content: "";
  position: absolute;
  left: -192px;
  top: calc(var(--logo-overlap) + 0.5px);
  width: 192px;
  height: calc(128px - var(--logo-overlap) - 2.6px);
  background: #000;
  z-index: 1999;
}
.logo { height: 100%; width: auto; display: block; object-fit: contain; clip-path: inset(var(--logo-trim) 0 var(--logo-trim) 0); transform: translateY(var(--logo-overlap)); position: relative; z-index: 2000; }

.primary-nav { display: flex; align-items: center; gap: 24px; flex: 1; justify-content: space-between; }
.primary-nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}
.primary-nav a {
  text-decoration: none;
  color: var(--color-text);
  font-weight: 500;
  padding: 0 10px;
  height: 128px;
  display: flex;
  align-items: center;
  border-radius: 8px;
}
.primary-nav a:hover { color: var(--color-primary); background: var(--color-surface); }

.lang-switch { display: inline-flex; align-items: center; gap: 8px; }
.lang-btn {
  border: 1px solid #d8e4ee;
  background: #fff;
  color: var(--color-text);
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
}
.lang-btn[aria-pressed="true"] { border-color: var(--color-primary); color: var(--color-primary); background: #f0f9ff; }
.divider { color: #a6b3bd; }

.nav-toggle {
  display: none;
  width: 42px;
  height: 36px;
  border: 1px solid #d8e4ee;
  background: #fff;
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
}
.nav-toggle .bar { width: 22px; height: 2px; background: var(--color-text); display: block; }

/* Hero */
.hero {
  background: radial-gradient(1200px 500px at 10% 0%, #e6f6ff 0%, #fff 50%), linear-gradient(0deg, #ffffff, #ffffff);
  border-bottom: 1px solid #e8eef5;
}
.hero-inner {
  padding: 80px 0 48px;
  display: grid;
  gap: 16px;
}
.hero h1 {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.2;
  margin: 0;
}
.hero .subtitle { color: var(--color-muted); margin: 0 0 16px 0; font-size: clamp(16px, 2.2vw, 18px); }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 16px; border-radius: 10px; text-decoration: none; font-weight: 600; transition: transform .02s ease, box-shadow .2s ease; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--color-primary); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--color-primary-700); }
.btn-outline { border: 1px solid #cfe3f0; color: var(--color-primary); background: #ffffff; }
.btn-outline:hover { background: #f5fbff; border-color: var(--color-primary); }

/* Sections */
.section { padding: 56px 0; }
.section-alt { background: var(--color-surface); border-top: 1px solid #e8eef5; border-bottom: 1px solid #e8eef5; }
.section h2 { font-size: clamp(22px, 3vw, 32px); margin: 0 0 16px 0; }

.two-col { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; align-items: start; }
.card { background: #fff; border: 1px solid #e8eef5; border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm); }
.checklist { margin: 0; padding-left: 18px; color: var(--color-text); }
.checklist li { margin: 8px 0; }

.grid { display: grid; gap: 20px; }
.projects-grid { grid-template-columns: repeat(3, 1fr); }
.project { background: #fff; border: 1px solid #e8eef5; border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-sm); }
.project h3 { margin: 0 0 8px 0; font-size: 18px; }
.project p { margin: 0; color: var(--color-muted); }

/* Contact */
.contact-list { margin: 0 0 12px 0; padding-left: 0; list-style: none; }
.contact-list li { margin: 6px 0; }
.contact-form { display: grid; gap: 12px; }
.contact-form label { display: grid; gap: 6px; font-weight: 500; }
.contact-form input, .contact-form textarea {
  border: 1px solid #d8e4ee;
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
}
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid #bfe8ff; border-color: var(--color-primary); }

/* Form message */
.form-message {
  padding: 12px 16px;
  border-radius: 8px;
  font-weight: 500;
  margin-bottom: 16px;
}
.form-message.success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}
.form-message.error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* reCAPTCHA */
.g-recaptcha {
  margin: 16px 0;
  display: flex;
  justify-content: center;
}

/* Form button states */
.contact-form button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Carousel */
.carousel-container {
  position: relative;
  max-width: 100%;
  margin: 0 auto;
}

.carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.carousel-item {
  min-width: 100%;
  position: relative;
  height: 400px;
  overflow: hidden;
}

.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.carousel-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  color: white;
  padding: 40px 30px 30px;
}

.carousel-content h3 {
  margin: 0 0 8px 0;
  font-size: 24px;
  font-weight: 600;
}

.carousel-content p {
  margin: 0;
  opacity: 0.9;
  line-height: 1.5;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.9);
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
}

.carousel-btn:hover {
  background: white;
  box-shadow: var(--shadow-md);
}

.carousel-prev {
  left: 16px;
}

.carousel-next {
  right: 16px;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background: #d8e4ee;
  cursor: pointer;
  transition: all 0.2s ease;
}

.carousel-dot.active {
  background: var(--color-primary);
  transform: scale(1.2);
}

.carousel-dot:hover {
  background: var(--color-primary-700);
}

/* Gallery */
.gallery-section {
  margin-top: 48px;
}

.gallery-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  background: none;
  border: 2px solid var(--color-primary);
  border-radius: var(--radius);
  padding: 16px 24px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 0;
}

.gallery-toggle:hover {
  background: var(--color-surface);
  border-color: var(--color-primary-700);
}

.gallery-toggle h3 {
  font-size: 24px;
  margin: 0;
  color: var(--color-primary);
  font-weight: 600;
}

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

.gallery-toggle[aria-expanded="true"] .toggle-icon {
  transform: rotate(180deg);
}

.gallery-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-in-out;
}

.gallery-content.expanded {
  max-height: 2000px; /* Large enough to accommodate content */
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  color: white;
  padding: 20px;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
  transform: translateY(0);
}

.gallery-overlay h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

/* Active nav link */
.primary-nav a.active {
  color: var(--color-primary);
  background: var(--color-surface);
}

/* Footer */
.site-footer { padding: 28px 0; background: #061a24; color: #cfe3f0; margin-top: 24px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.site-footer a { color: #9fdcff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

/* Responsive */
@media (max-width: 900px) {
  .two-col { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .nav-toggle { display: inline-flex; }
  .primary-nav { position: fixed; inset-inline: 0; top: 128px; background: #fff; border-top: 1px solid #e8eef5; box-shadow: var(--shadow-md); display: none; flex-direction: column; padding: 12px 16px; }
  .primary-nav.open { display: flex; }
  .primary-nav ul { flex-direction: column; gap: 8px; }
  .projects-grid { grid-template-columns: 1fr; }
  .logo { height: 100%; }
  
  /* Mobile carousel */
  .carousel-item { height: 300px; }
  .carousel-content { padding: 30px 20px 20px; }
  .carousel-content h3 { font-size: 20px; }
  .carousel-btn { width: 40px; height: 40px; }
  .carousel-prev { left: 8px; }
  .carousel-next { right: 8px; }
  
  /* Mobile gallery */
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item img { height: 200px; }
}

