/* ========================================
   Groen Coworking — Gouda, Netherlands
   Matcha-zen · Dutch minimalism
   ======================================== */

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root,
[data-theme="light"] {
  --bg: #FAF6F0;
  --bg-alt: #F0EBE3;
  --text: #2C3E2D;
  --text-muted: #6B7B6C;
  --accent: #8BAD78;
  --accent-light: #C5DCBA;
  --accent-dark: #5E8A4E;
  --card-bg: #FFFFFF;
  --card-border: #E8E0D6;
  --shadow: rgba(44, 62, 45, 0.08);
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

[data-theme="dark"] {
  --bg: #1A1F1A;
  --bg-alt: #232A23;
  --text: #E8E0D6;
  --text-muted: #9CA88D;
  --accent: #A3C490;
  --accent-light: #3A4F3A;
  --accent-dark: #7BAF68;
  --card-bg: #242B24;
  --card-border: #3A4F3A;
  --shadow: rgba(0, 0, 0, 0.3);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background-color: var(--bg);
  transition: background-color 0.4s ease, color 0.4s ease;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-alt);
}
::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-dark);
}

/* --- Selection --- */
::selection {
  background: var(--accent);
  color: #fff;
}

/* --- Utility --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 5rem 0;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text);
  transition: color 0.4s ease;
}

a {
  color: var(--accent-dark);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

/* --- Animations --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.animate {
  animation: fadeInUp 0.7s ease forwards;
}

/* ========================================
   NAV
   ======================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(250, 246, 240, 0.85);
  border-bottom: 1px solid var(--card-border);
  transition: background-color 0.4s ease, border-color 0.4s ease;
}

[data-theme="dark"] .nav {
  background: rgba(26, 31, 26, 0.85);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  transition: color 0.3s ease;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-muted);
  text-decoration: none;
  position: relative;
  transition: color 0.3s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--accent);
  transition: width 0.3s ease;
}

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

.nav-links a:hover::after {
  width: 100%;
}

.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.theme-toggle:hover {
  transform: scale(1.08);
  border-color: var(--accent);
}

/* ========================================
   HERO
   ======================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, var(--accent-light) 0%, var(--bg) 50%, var(--bg-alt) 100%);
  position: relative;
  overflow: hidden;
  padding-top: 64px;
  transition: background 0.4s ease;
}

/* Grain / noise overlay */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.4;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(44,62,45,0.03) 1px, transparent 1px),
    radial-gradient(circle at 80% 20%, rgba(44,62,45,0.03) 1px, transparent 1px),
    radial-gradient(circle at 50% 80%, rgba(44,62,45,0.02) 1px, transparent 1px);
  background-size: 3px 3px, 5px 5px, 4px 4px;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 2rem 1.5rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  line-height: 1.7;
  animation: float 6s ease-in-out infinite;
}

.cta-button {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.cta-button:hover {
  transform: scale(1.03);
  background: var(--accent-dark);
  color: #fff;
  box-shadow: 0 8px 30px var(--shadow);
}

/* ========================================
   SECTION HEADINGS
   ======================================== */
.section-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 600;
  text-align: center;
  margin-bottom: 1rem;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 3rem;
  font-size: 1.05rem;
}

/* ========================================
   CARDS (About / Why)
   ======================================== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 2px 12px var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.4s ease, border-color 0.4s ease;
}

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

.card-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}

.card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ========================================
   PRICING
   ======================================== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.pricing-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  position: relative;
  box-shadow: 0 2px 12px var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.4s ease, border-color 0.4s ease;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px var(--shadow);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 1rem;
  border-radius: 50px;
  white-space: nowrap;
}

.pricing-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.pricing-price {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--accent);
  margin: 1rem 0;
}

.pricing-price span {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-muted);
  font-family: var(--font-body);
}

.pricing-features {
  list-style: none;
  margin: 1.5rem 0;
  text-align: left;
}

.pricing-features li {
  padding: 0.4rem 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  border-bottom: 1px solid var(--card-border);
}

.pricing-features li:last-child {
  border-bottom: none;
}

/* ========================================
   AMENITIES
   ======================================== */
.amenities-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.amenity-item {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 1.25rem;
  text-align: center;
  transition: transform 0.3s ease, background-color 0.4s ease, border-color 0.4s ease;
}

.amenity-item:hover {
  transform: translateY(-2px);
}

.amenity-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  display: block;
}

.amenity-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ========================================
   GALLERY
   ======================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.gallery-item {
  aspect-ratio: 16 / 10;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--accent-light), var(--bg-alt));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: transform 0.3s ease, background 0.4s ease;
  cursor: pointer;
}

.gallery-item:hover {
  transform: scale(1.02);
}

.gallery-item span {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--text-muted);
  font-size: 1rem;
}

/* ========================================
   LOCATION
   ======================================== */
.location-text {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

.location-map {
  width: 100%;
  max-height: 400px;
  border-radius: 16px;
  border: 1px solid var(--card-border);
  overflow: hidden;
  transition: border-color 0.4s ease;
}

.location-map iframe {
  width: 100%;
  height: 400px;
  border: none;
  display: block;
}

/* ========================================
   CONTACT FORM
   ======================================== */
.contact-form {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 1rem;
  border: 1px solid var(--card-border);
  border-radius: 12px;
  background: var(--card-bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.4s ease;
  outline: none;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--text-muted);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(139, 173, 120, 0.15);
}

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

.contact-form button {
  align-self: flex-start;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  text-align: center;
  padding: 3rem 1.5rem;
  border-top: 1px solid var(--card-border);
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: border-color 0.4s ease, color 0.4s ease;
}

.footer a {
  color: var(--text-muted);
}

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

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

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

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

  .amenities-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .hero h1 {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  section {
    padding: 3.5rem 0;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
  }

  .hero-subtitle {
    font-size: 0.95rem;
  }

  .cta-button {
    padding: 0.85rem 2rem;
    font-size: 0.9rem;
  }

  .amenities-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }

  section {
    padding: 2.5rem 0;
  }

  .card {
    padding: 1.5rem;
  }

  .pricing-card {
    padding: 1.5rem;
  }
}
