:root {
  --brand: #2a5d9f;
  --brand-dark: #1f4a7a;
  --text: #333;
  --white: #fff;
  --light-blue: #f5f5f5;
  --black: #000;
}

body {
  margin: 0;
  font-family: 'Space Grotesk', sans-serif;
  color: var(--text);
  background: var(--light-blue);
}

/* Frame: consistent centered width */
.frame {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Rounded box style */
.rounded-box {
  background: var(--white);
  border-radius: 16px;
  padding: 20px;
  margin: 16px 0;
}

/* Header */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-weight: 700;
  font-size: clamp(1rem, 2vw, 1.5rem);
  color: var(--black);
}

/* Navigation: no bullets */
.nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}

.nav li {
  margin-left: 1rem;
}

.nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: clamp(0.8rem, 1.5vw, 1rem);
}

/* Hero band split left/right */
.hero-band {
  display: flex;
  gap: 24px;
}

.hero-left, .hero-right {
  flex: 1;
}

/* Left box: slogan above company name, centered */
.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.slogan {
  font-size: clamp(1.2rem, 3vw, 2rem);
  font-weight: 500;
  color: var(--text);
  margin: 0 0 24px 0;
}

.company-name {
  font-size: clamp(4rem, 10vw, 8rem);
  font-weight: 700;
  color: var(--brand);
  margin: 0;
  line-height: 1.05;
}

/* Contact box override */
.contact {
  background: var(--brand);
  color: var(--white);
  padding: 24px 40px;      /* extra horizontal padding to prevent touching edges */
  border-radius: 16px;     /* curved corners for the blue box */
  box-sizing: border-box;
}

.contact h2 {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  margin-bottom: 16px;
  color: var(--white);
}

/* Form container scales; fields inside are fluid with a max width */
.contact-form {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 800px;        /* container max to keep form readable on wide screens */
  width: 100%;
}

.contact-form label {
  margin: 8px 0 4px;
  font-weight: 600;
  color: var(--white);
}

.contact-form input,
.contact-form textarea {
  width: 100%;             /* fluid */
  max-width: 600px;        /* cap width on large screens */
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  font-family: 'Space Grotesk', sans-serif;
  background: var(--white);
  color: var(--text);
  box-sizing: border-box;
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;        /* allow user to expand if needed */
}

.contact .contact-form button {
  margin-top: 16px;
  padding: 12px 16px;
  background: var(--brand-dark);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Space Grotesk', sans-serif;
  transition: background 150ms ease, transform 120ms ease;
  align-self: center;
}

.contact .contact-form button:hover {
  background: #183b63;
  transform: translateY(-1px);
}

/* Consent text aligned with inputs and scales the same */
.consent {
  width: 100%;
  max-width: 600px;        /* match inputs max-width */
  margin-top: 12px;
  font-size: clamp(0.9rem, 1.2vw, 1rem);
  color: var(--white);
  font-family: 'Space Grotesk', sans-serif;
  text-align: left;        /* default: left aligned on larger screens */
}

.consent a {
  color: var(--white);
  text-decoration: underline;   /* no underline per request */
  font-weight: 400;
  font-size: clamp(0.9rem, 1.2vw, 1rem);
}

/* About section */
.about h3 {
  font-size: clamp(1.2rem, 2vw, 2.5rem);
  margin-bottom: 16px;
  color: var(--brand);
}

.about p {
  font-size: clamp(1rem, 1.25vw, 1.4rem);
  line-height: 1.6;
}

/* Legal sections */
.legal h2 {
  margin-top: 4px;
  margin-bottom: 16px;
  font-size: clamp(1.2rem, 2vw, 2.5rem);
  color: var(--brand);
}

.legal h3 {
  font-size: clamp(1rem, 1.7vw, 1.5rem);
  margin-bottom: 12px;
}

.legal p,
.legal ul li {
  font-size: clamp(0.6rem, 1.2vw, 1.2rem);
  line-height: 1.6;
}

.legal ul {
  list-style: disc;
  padding-left: 20px;
}

.legal ul li {
  margin-bottom: 8px;
}

/* Responsive: stack hero boxes vertically and center form on small screens */
@media (max-width: 900px) {
  .hero-band {
    flex-direction: column;
  }

  .hero-left, .hero-right {
    text-align: center;
  }

  .contact-form {
    align-items: center;         /* center form stack */
    max-width: 100%;
  }

  /* Ensure elements center reliably with margin auto */
  .contact-form input,
  .contact-form textarea,
  .consent {
    width: 100%;
    max-width: 480px;            /* comfortable mobile/tablet cap */
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  /* Center the button as well */
  .contact .contact-form button {
    align-self: center;
  }
}

/* Footer: full-width bar, content centered horizontally with larger gap */
.footer {
  width: 100%;
  box-sizing: border-box;
  background: var(--brand);
  color: var(--white);
  padding: 24px 40px;
  display: flex;
  justify-content: center;  /* center content horizontally */
  align-items: flex-start;  /* keep items near the top */
  margin-top: 32px;
  gap: 200px;               /* large space between logo and nav */
}

.footer-logo {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--white);
}

.footer-legal {
  margin-top: 4px;        /* small spacing below logo */
  font-size: 0.5em;       /* smaller text */
  color: var(--white);
}

.footer-nav {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-nav li {
  margin-bottom: 6px;
}

.footer-nav a {
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  font-size: clamp(0.9rem, 1.5vw, 1rem);
}

.footer-nav a.sub-link {
  font-size: clamp(0.8rem, 1.2vw, 0.9rem);
  font-weight: 400;
  text-decoration: none;
}

/* Responsive footer */
@media (max-width: 900px) {
  .footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px;
    gap: 16px;
  }

  .footer-right {
    margin-top: 16px;
  }
}
