:root {
  --color-deep: #0A2647;
  --color-mid: #144272;
  --color-accent: #205295;
  --color-light: #2C74B3;
  --color-bg: #f8fafc;
  --color-surface: #ffffff;
  --color-text: #1e293b;
  --color-text-muted: #64748b;
  --font-display: 'Fraunces', serif;
  --font-body: 'Outfit', sans-serif;
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --shadow-sm: 0 1px 2px rgba(10, 38, 71, 0.06);
  --shadow-md: 0 4px 12px rgba(10, 38, 71, 0.1);
  --shadow-lg: 0 8px 24px rgba(10, 38, 71, 0.12);
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
  --fs-xs: 0.75rem;
  --fs-sm: 0.8125rem;
  --fs-base: 0.9375rem;
  --fs-md: 1rem;
  --fs-lg: 1.25rem;
  --fs-xl: 1.5rem;
  --fs-2xl: 2rem;
  --fs-hero: clamp(1.75rem, 5vw, 2.75rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.5;
  color: var(--color-text);
  background: var(--color-bg);
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-light);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-mid);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  margin-top: 0;
}

h1 { font-size: var(--fs-hero); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-xl); }
h4 { font-size: var(--fs-lg); }

p {
  margin: 0 0 var(--space-md);
}

.site-header {
  background-color: #0A2647;
  z-index: 100;
  padding: var(--space-md) var(--space-lg);
  transition: transform var(--transition-base), opacity var(--transition-base);
}

.site-header.hidden {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

.site-header .header-inner {
  max-width: 75rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--color-surface);
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.logo:hover {
  color: var(--color-surface);
  opacity: 0.95;
}

.nav-desktop {
  display: none;
}

.nav-desktop ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: var(--space-lg);
}

.nav-desktop a {
  color: var(--color-surface);
  font-size: var(--fs-sm);
  font-weight: 500;
}

.nav-desktop a:hover {
  color: var(--color-light);
}

.burger {
  background: none;
  border: none;
  padding: var(--space-sm);
  cursor: pointer;
  color: var(--color-surface);
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.overlay-nav {
  position: fixed;
  inset: 0;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  min-height: 100dvh;
  min-height: 100vh;
  background: var(--color-deep);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-base), visibility var(--transition-base);
}

.overlay-nav.is-open {
  display: flex;
  opacity: 1;
  visibility: visible;
}

.overlay-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: center;
}

.overlay-nav li {
  margin: var(--space-md) 0;
}

.overlay-nav a {
  color: var(--color-surface);
  font-family: var(--font-display);
  font-size: var(--fs-xl);
}

.overlay-nav a:hover {
  color: var(--color-light);
}

.overlay-close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--color-surface);
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 201;
}

.overlay-close svg {
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
}

.hero-wrap {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-deep) 0%, var(--color-mid) 50%, var(--color-accent) 100%);
  background-image: url('../pictures/BG.jpg');
  background-size: cover;
  background-position: center;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.5; 
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: var(--space-xl);
  color: var(--color-surface);
}

.hero-content h1 {
  margin-bottom: var(--space-md);
  animation: fadeUp 0.8s ease forwards;
}

.hero-content p {
  font-size: var(--fs-md);
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.95;
  animation: fadeUp 0.8s 0.2s ease forwards;
  opacity: 0;
  animation-fill-mode: forwards;
}

.hero-content .btn {
  margin-top: var(--space-lg);
  animation: fadeUp 0.8s 0.4s ease forwards;
  opacity: 0;
  animation-fill-mode: forwards;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(1.5rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.btn {
  display: inline-block;
  padding: var(--space-sm) var(--space-lg);
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 600;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.btn-primary {
  background: var(--color-surface);
  color: var(--color-deep);
  border: 2px solid var(--color-deep);
}

.btn-primary:hover {
  background: var(--color-bg);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--color-surface);
  border: 2px solid var(--color-surface);
}

.btn-secondary:hover {
  background: var(--color-surface);
  color: var(--color-deep);
}

.container {
  width: 100%;
  max-width: 75rem;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.section {
  padding: var(--space-2xl) 0;
}

.section-title {
  text-align: center;
  margin-bottom: var(--space-xl);
  color: var(--color-deep);
}

.section-title span {
  display: block;
  font-size: var(--fs-sm);
  color: var(--color-mid);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-xs);
}

.page-header {
  background: linear-gradient(135deg, var(--color-deep), var(--color-mid));
  color: var(--color-surface);
  padding: var(--space-2xl) var(--space-lg);
  text-align: center;
}

.page-header h1 {
  margin: 0 0 var(--space-sm);
}

.page-header p {
  margin: 0;
  font-size: var(--fs-sm);
  opacity: 0.9;
}

.page-header .logo {
  margin-bottom: var(--space-md);
}

.content-asymmetric {
  padding: var(--space-2xl) var(--space-lg);
}

.content-asymmetric .block {
  margin-bottom: var(--space-3xl);
}

.content-asymmetric .block:nth-child(odd) {
  margin-left: 0;
  margin-right: 10%;
}

.content-asymmetric .block:nth-child(even) {
  margin-left: 10%;
  margin-right: 0;
}

.content-asymmetric .block.angled {
  transform: rotate(-0.5deg);
  padding: var(--space-xl);
  background: var(--color-surface);
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-lg);
}

.content-asymmetric .block.angled:nth-child(even) {
  transform: rotate(0.5deg);
}

.overlap-section {
  position: relative;
  margin-top: -3rem;
  padding: var(--space-2xl) var(--space-lg);
}

.card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}

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

.card img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.card-body {
  padding: var(--space-lg);
}

.card h3 {
  margin-top: 0;
  margin-bottom: var(--space-sm);
  color: var(--color-deep);
}

.card p {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
}

.contact-section {
  background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-surface) 100%);
  padding: var(--space-2xl) var(--space-lg);
}

.contact-wrap {
  max-width: 36rem;
  margin: 0 auto;
  background: var(--color-surface);
  padding: var(--space-xl);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(10, 38, 71, 0.08);
}

.contact-wrap h2 {
  margin-top: 0;
  margin-bottom: var(--space-lg);
  color: var(--color-deep);
  text-align: center;
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-group label {
  display: block;
  font-size: var(--fs-sm);
  font-weight: 500;
  margin-bottom: var(--space-xs);
  color: var(--color-text);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: var(--space-sm) var(--space-md);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  border: 1px solid rgba(10, 38, 71, 0.2);
  border-radius: var(--radius-md);
  transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-light);
}

.form-group textarea {
  min-height: 6rem;
  resize: vertical;
}

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.form-consent input {
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.form-consent label {
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
}

.submit-btn {
  width: 100%;
  padding: var(--space-md);
  background: var(--color-mid);
  color: var(--color-surface);
  font-weight: 600;
}

.submit-btn:hover {
  background: var(--color-deep);
}

.site-footer {
  background: var(--color-deep);
  color: var(--color-surface);
  padding: var(--space-lg) var(--space-lg);
  font-size: var(--fs-xs);
}

.footer-inner {
  max-width: 75rem;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
}

.footer-inner a {
  color: rgba(255,255,255,0.85);
}

.footer-inner a:hover {
  color: var(--color-surface);
}

.footer-inner .logo {
  font-size: var(--fs-md);
}

.cookie-popup {
  position: fixed;
  bottom: var(--space-md);
  left: var(--space-md);
  right: var(--space-md);
  max-width: 24rem;
  background: var(--color-surface);
  padding: var(--space-md);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: 300;
  transform: translateY(150%);
  transition: transform var(--transition-base);
}

.cookie-popup.is-visible {
  transform: translateY(0);
}

.cookie-popup p {
  margin: 0 0 var(--space-sm);
  font-size: var(--fs-xs);
  color: var(--color-text);
}

.cookie-popup .btn {
  font-size: var(--fs-xs);
  padding: var(--space-xs) var(--space-md);
}

.thanks-page .thanks-content {
  text-align: center;
  padding: var(--space-3xl) var(--space-lg);
}

.thanks-page h1 {
  color: var(--color-deep);
  margin-bottom: var(--space-md);
}

.thanks-page p {
  font-size: var(--fs-md);
  color: var(--color-text-muted);
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
}

.error-page {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-xl);
}

.error-page h1 {
  font-size: clamp(4rem, 15vw, 8rem);
  color: var(--color-mid);
  margin: 0 0 var(--space-md);
  line-height: 1;
}

.error-page p {
  margin-bottom: var(--space-lg);
  color: var(--color-text-muted);
}

.legal-page {
  padding: var(--space-2xl) var(--space-lg);
  max-width: 50rem;
  margin: 0 auto;
}

.legal-page h1 {
  color: var(--color-deep);
  margin-bottom: var(--space-lg);
  font-size: var(--fs-xl);
}

.legal-page h2 {
  font-size: var(--fs-lg);
  margin-top: var(--space-xl);
  margin-bottom: var(--space-sm);
  color: var(--color-mid);
}

.legal-page p, .legal-page ul {
  font-size: var(--fs-sm);
  color: var(--color-text);
  margin-bottom: var(--space-md);
}

.legal-page ul {
  padding-left: var(--space-lg);
}

.map-wrap {
  margin: var(--space-xl) 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.map-wrap iframe {
  width: 100%;
  height: 16rem;
  border: none;
  display: block;
}

.product-list {
  display: grid;
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.product-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 0;
  align-items: stretch;
  transition: box-shadow var(--transition-base);
}

.product-card:hover {
  box-shadow: var(--shadow-md);
}

.product-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card .product-info {
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.product-card h3 {
  margin: 0 0 var(--space-sm);
  color: var(--color-deep);
}

.product-card .price {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--color-mid);
  margin: var(--space-sm) 0;
}

.testimonials {
  background: var(--color-surface);
  padding: var(--space-2xl) 0;
}

.testimonial-card {
  background: var(--color-bg);
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-md);
  border-left: 4px solid var(--color-light);
}

.testimonial-card p {
  font-size: var(--fs-sm);
  margin-bottom: var(--space-sm);
  font-style: italic;
}

.testimonial-card .author {
  font-size: var(--fs-xs);
  color: var(--color-mid);
  font-weight: 600;
}

@media (max-width: 320px) {
  body {
    font-size: 0.8125rem;
  }
  .site-header {
    padding: var(--space-sm) var(--space-md);
  }
  .logo {
    font-size: var(--fs-md);
    max-width: 80%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .hero-wrap {
    min-height: 60vh;
  }
  .hero-content {
    padding: var(--space-md);
  }
  .hero-content h1 {
    font-size: 1.25rem;
    margin-bottom: var(--space-sm);
  }
  .hero-content p {
    font-size: var(--fs-sm);
  }
  .container {
    padding: 0 var(--space-sm);
  }
  .section {
    padding: var(--space-xl) 0;
  }
  .section-title {
    font-size: var(--fs-xl);
    margin-bottom: var(--space-lg);
  }
  .page-header {
    padding: var(--space-xl) var(--space-sm);
  }
  .page-header h1 {
    font-size: var(--fs-xl);
  }
  .content-asymmetric {
    padding: var(--space-lg) var(--space-sm);
  }
  .content-asymmetric .block {
    margin-bottom: var(--space-2xl);
  }
  .content-asymmetric .block.angled {
    padding: var(--space-md);
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  .overlap-section {
    margin-top: -1.5rem;
    padding: var(--space-lg) var(--space-sm);
  }
  .product-card {
    grid-template-columns: 1fr;
  }
  .product-card .product-info {
    padding: var(--space-md);
  }
  .product-card .price {
    font-size: var(--fs-lg);
  }
  .contact-wrap {
    padding: var(--space-md);
  }
  .form-group input,
  .form-group textarea {
    font-size: 16px;
  }
  .cookie-popup {
    left: var(--space-sm);
    right: var(--space-sm);
    bottom: var(--space-sm);
    max-width: none;
  }
  .footer-inner {
    flex-direction: column;
    text-align: center;
    padding: var(--space-md) var(--space-sm);
  }
  .footer-inner .logo {
    font-size: var(--fs-sm);
  }
  .map-wrap iframe {
    height: 12rem;
  }
  .error-page {
    padding: var(--space-md);
  }
  .error-page h1 {
    font-size: 3rem;
  }
  .legal-page {
    padding: var(--space-lg) var(--space-sm);
  }
  .legal-page h1 {
    font-size: var(--fs-lg);
  }
}

@media (min-width: 20.0625rem) and (max-width: 23.9375rem) {
  body {
    font-size: var(--fs-sm);
  }
  .site-header {
    padding: var(--space-sm) var(--space-md);
  }
  .logo {
    font-size: var(--fs-md);
  }
  .hero-wrap {
    min-height: 65vh;
  }
  .hero-content {
    padding: var(--space-lg);
  }
  .hero-content h1 {
    font-size: 1.375rem;
  }
  .container {
    padding: 0 var(--space-md);
  }
  .section {
    padding: var(--space-2xl) 0;
  }
  .content-asymmetric .block.angled {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  .product-card {
    grid-template-columns: 1fr;
  }
  .contact-wrap {
    padding: var(--space-lg);
  }
  .cookie-popup {
    left: var(--space-md);
    right: var(--space-md);
  }
  .footer-inner {
    padding: var(--space-md);
  }
  .map-wrap iframe {
    height: 14rem;
  }
}

@media (min-width: 24rem) and (max-width: 29.9375rem) {
  .container {
    padding: 0 var(--space-md);
  }
  .content-asymmetric {
    padding: var(--space-2xl) var(--space-md);
  }
  .content-asymmetric .block:nth-child(odd),
  .content-asymmetric .block:nth-child(even) {
    margin-left: 0;
    margin-right: 0;
  }
  .product-card {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 30rem) and (max-width: 47.9375rem) {
  .content-asymmetric .block:nth-child(odd) {
    margin-right: 5%;
  }
  .content-asymmetric .block:nth-child(even) {
    margin-left: 5%;
  }
  .product-card {
    grid-template-columns: 10rem 1fr;
  }
}

@media (min-width: 48rem) {
  .nav-desktop {
    display: flex;
  }
  .burger {
    display: none;
  }
  .section {
    padding: var(--space-3xl) 0;
  }
  .product-list {
    grid-template-columns: 1fr;
  }
  .product-card {
    grid-template-columns: 12rem 1fr;
  }
  .overlay-nav a {
    font-size: var(--fs-2xl);
  }
}

@media (min-width: 48rem) and (max-width: 63.9375rem) {
  .content-asymmetric .block:nth-child(odd) {
    margin-right: 10%;
  }
  .content-asymmetric .block:nth-child(even) {
    margin-left: 10%;
  }
}

@media (min-width: 64rem) {
  .content-asymmetric .block:nth-child(odd) {
    margin-right: 20%;
  }
  .content-asymmetric .block:nth-child(even) {
    margin-left: 20%;
  }
  .hero-content p {
    max-width: 32rem;
  }
}

@media (min-width: 75rem) {
  .hero-content p {
    max-width: 36rem;
  }
  .thanks-page p {
    max-width: 32rem;
  }
}

@media (min-width: 90rem) {
  .section {
    padding: 4rem 0;
  }
  .contact-wrap {
    max-width: 40rem;
  }
}

@media (max-width: 47.9375rem) {
  .overlay-nav a {
    font-size: var(--fs-lg);
  }
  .overlay-nav li {
    margin: var(--space-sm) 0;
  }
}

@media (pointer: fine) and (hover: hover) {
  .card:hover {
    transform: translateY(-4px);
  }
  .product-card:hover {
    box-shadow: var(--shadow-md);
  }
  .btn-primary:hover {
    transform: translateY(-2px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html {
    scroll-behavior: auto;
  }
}
