/* BOUWBEDRIJF DE DOMSTAD - PREMIUM CSS
   Design door: Tim Meeuwsen
*/

/* 1. VARIABELEN */
:root {
  --primary: #00d1b2;
  --primary-dark: #00b39c;
  --dark: #0f172a;
  --darker: #020617;
  --white: #ffffff;
  --gray: #64748b;
  --light-bg: #f8fafc;
  --border: #e2e8f0;
  --shadow-sm: 0 8px 20px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 16px 40px rgba(15, 23, 42, 0.12);
  --shadow-lg: 0 30px 80px rgba(15, 23, 42, 0.18);
  --radius: 18px;
}

/* 2. RESET & BASIS */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

html {
  overflow-x: hidden;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--dark);
  line-height: 1.6;
  background: var(--white);
  overflow-x: hidden;
  width: 100%;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

/* 3. NAVBAR */
.navbar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 24px 0;
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.logo {
  font-weight: 900;
  font-size: 1.35rem;
  color: var(--white);
  line-height: 1;
  letter-spacing: -0.02em;
}

.logo span {
  color: var(--primary);
}

.demo-badge {
  font-size: 0.62rem;
  color: var(--primary);
  font-weight: 900;
  letter-spacing: 2.2px;
  display: block;
  margin-top: 6px;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-links a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 600;
  font-size: 0.9rem;
  transition: 0.25s ease;
}

.nav-links a:hover {
  color: var(--primary);
}

.btn-small-nav {
  background: var(--primary);
  color: var(--darker) !important;
  padding: 10px 16px;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(0, 209, 178, 0.25);
}

.btn-small-nav:hover {
  background: #3bf0d3;
  transform: translateY(-1px);
}

/* 4. HERO */
.hero {
  min-height: 100vh;
  background: url('img/photo-1600585154340-be6161a56a0c.jpeg') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
  isolation: isolate;
  padding-top: 90px;
  padding-bottom: 60px;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(2, 6, 23, 0.45), rgba(2, 6, 23, 0.65)),
    linear-gradient(135deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.25));
  z-index: 1;
}

.glass-card {
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, 0.98);
  padding: 56px 34px;
  border-radius: 26px;
  max-width: 820px;
  width: calc(100% - 40px);
  text-align: center;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.45);
  margin: 0 auto;
}

h1 {
  font-size: clamp(2.2rem, 7vw, 4.2rem);
  line-height: 1.05;
  margin-bottom: 18px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

h1 span {
  color: var(--primary);
}

.hero p {
  color: #475569;
  margin-bottom: 32px;
  font-size: 1.08rem;
  max-width: 60ch;
  margin-left: auto;
  margin-right: auto;
}

/* 5. CTA BUTTONS */
.cta-wrapper {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-main,
.btn-sub {
  padding: 16px 28px;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  transition: 0.25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
}

.btn-main {
  background: var(--dark);
  color: white;
  border: 1px solid transparent;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.18);
}

.btn-main:hover {
  transform: translateY(-2px);
  background: #111c35;
}

.btn-sub {
  border: 1.5px solid rgba(15, 23, 42, 0.18);
  color: var(--dark);
  background: rgba(255, 255, 255, 0.75);
}

.btn-sub:hover {
  transform: translateY(-2px);
  border-color: var(--dark);
  background: rgba(255, 255, 255, 0.95);
}

/* 6. SECTIES */
.section {
  padding: 92px 0;
}

.section:nth-child(even) {
  background: var(--light-bg);
}

.section-title {
  text-align: center;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  margin-bottom: 54px;
  letter-spacing: -0.03em;
}

/* 7. PROJECT GALLERY */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.project-card {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

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

.img-wrapper {
  overflow: hidden;
}

.img-wrapper img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.project-card:hover .img-wrapper img {
  transform: scale(1.05);
}

.project-info {
  padding: 22px;
}

.project-info h3 {
  font-size: 1.15rem;
  font-weight: 850;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.project-info p {
  color: var(--gray);
  font-size: 0.92rem;
}

/* 8. CONTACT */
.contact-section {
  background:
    radial-gradient(circle at top, rgba(0, 209, 178, 0.12), transparent 38%),
    var(--darker);
  color: var(--white);
  padding: 92px 0;
  width: 100%;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 56px;
  align-items: center;
}

.contact-text h2 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1.02;
  margin-bottom: 20px;
  letter-spacing: -0.04em;
}

.contact-text h2 span {
  color: var(--primary);
}

.contact-text p {
  color: #cbd5e1;
  max-width: 56ch;
}

.pro-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 100%;
}

.form-group-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.pro-form input,
.pro-form select,
.pro-form textarea {
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid rgba(148, 163, 184, 0.25);
  padding: 15px 16px;
  border-radius: 12px;
  color: white;
  font-size: 1rem;
  width: 100%;
  outline: none;
  transition: 0.2s ease;
}

.pro-form input::placeholder,
.pro-form textarea::placeholder {
  color: #94a3b8;
}

.pro-form input:focus,
.pro-form select:focus,
.pro-form textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(0, 209, 178, 0.12);
}

.pro-form textarea {
  min-height: 140px;
  resize: vertical;
}

.btn-submit {
  background: var(--primary);
  color: var(--darker);
  border: none;
  padding: 18px 20px;
  border-radius: 12px;
  font-weight: 900;
  cursor: pointer;
  font-size: 1rem;
  transition: 0.25s ease;
  box-shadow: 0 12px 28px rgba(0, 209, 178, 0.2);
}

.btn-submit:hover {
  transform: translateY(-2px);
  background: #3bf0d3;
}

/* 9. FOOTER */
.main-footer {
  background: #000;
  color: #94a3b8;
  padding: 64px 0;
  border-top: 1px solid #1e293b;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}

.footer-logo h3 {
  color: white;
  font-weight: 900;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.footer-logo h3 span {
  color: var(--primary);
}

.main-footer h4 {
  color: white;
  margin-bottom: 15px;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.footer-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 700;
  transition: 0.2s ease;
}

.footer-link:hover {
  color: #3bf0d3;
}

/* 10. RESPONSIVE */
@media (max-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 18px 0 26px;
  }

  .navbar-container {
    align-items: flex-start;
  }

  .nav-links {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 14px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .nav-links a:not(.btn-small-nav) {
    display: none;
  }

  .nav-links .btn-small-nav {
    display: inline-flex;
  }

  .hero {
    background-position: 75% center;
    min-height: 92vh;
    padding-top: 120px;
    padding-bottom: 40px;
  }

  .glass-card {
    padding: 38px 22px;
    border-radius: 22px;
    width: calc(100% - 24px);
  }

  .cta-wrapper {
    flex-direction: column;
    width: 100%;
  }

  .btn-main,
  .btn-sub {
    width: 100%;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .form-group-row {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .section {
    padding: 72px 0;
  }

  .section-title {
    margin-bottom: 34px;
  }
}

/* 11. TOEGANKELIJKHEID */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(0, 209, 178, 0.45);
  outline-offset: 3px;
}
