/* ===== FLEXIWONEN — APPLE-STYLE REDESIGN ===== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

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

body, html {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
  color: #1d1d1f !important;
  background: #fff !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* HIDE THEME DEFAULTS */
.wp-site-blocks > header,
.wp-site-blocks > footer,
#wpadminbar ~ .wp-site-blocks > header { display: none !important; }

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter', -apple-system, sans-serif !important;
  font-weight: 600 !important;
  letter-spacing: -0.02em !important;
  line-height: 1.1 !important;
  color: #1d1d1f !important;
}

p, li, span, a, td, th, label, input, textarea, select, button {
  font-family: 'Inter', -apple-system, sans-serif !important;
}

/* LAYOUT CONTAINERS */
.fw-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.fw-section-wide {
  max-width: 100%;
  padding: 0;
}

/* ===== NAVIGATION ===== */
.fw-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: rgba(255,255,255,0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.08);
  transition: all 0.3s ease;
}

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

.fw-nav-logo img {
  height: 50px;
  width: auto;
}

.fw-nav-logo span {
  font-size: 20px;
  font-weight: 600;
  color: #1d1d1f;
  letter-spacing: -0.02em;
}

.fw-nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  align-items: center;
}

.fw-nav-links a {
  font-size: 13px;
  font-weight: 400;
  color: #1d1d1f;
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.fw-nav-links a:hover {
  opacity: 1;
}

.fw-nav-cta {
  background: #1d1d1f !important;
  color: #fff !important;
  padding: 8px 20px !important;
  border-radius: 980px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  opacity: 1 !important;
  transition: background 0.2s !important;
  display: inline-block;
}

.fw-nav-cta:hover {
  background: #333 !important;
  color: #fff !important;
}

/* Mobile nav toggle */
.fw-nav-toggle {
  display: none;
  background: none;
  border: none;
  width: 20px;
  height: 20px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}
.fw-nav-toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: #1d1d1f;
  transition: 0.3s;
}



/* ===== HERO SECTION ===== */
.fw-hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  position: relative;
  overflow: hidden;
  background: url('https://flexiwonen.com/wp-content/uploads/2026/03/flexiwonen-hero-bg.jpg') center/cover no-repeat;
}

.fw-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.45) 0%,
    rgba(0, 0, 0, 0.35) 50%,
    rgba(0, 0, 0, 0.55) 100%
  );
  z-index: 1;
}

.fw-hero > .fw-section {
  position: relative;
  z-index: 2;
}

.fw-hero .fw-btn-secondary {
  background: rgba(255, 255, 255, 0.15) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.fw-hero .fw-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.25) !important;
  color: #ffffff !important;
}




.fw-hero h1 {
  font-size: clamp(40px, 7vw, 72px) !important;
  font-weight: 700 !important;
  letter-spacing: -0.04em !important;
  line-height: 1.05 !important;
  margin-bottom: 20px;
  max-width: 900px;
  color: #ffffff !important;
}

.fw-hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, #5BAFFF, #5EE89D);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.fw-hero p.fw-hero-sub {
  font-size: clamp(17px, 2.5vw, 21px) !important;
  color: rgba(255, 255, 255, 0.85) !important;
  font-weight: 400 !important;
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.5 !important;
}

.fw-hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.fw-btn-primary {
  background: #1B5FAE !important;
  color: #fff !important;
  padding: 16px 32px !important;
  border-radius: 980px !important;
  font-size: 17px !important;
  font-weight: 500 !important;
  text-decoration: none !important;
  transition: all 0.3s ease !important;
  display: inline-block;
  border: none;
  cursor: pointer;
}

.fw-btn-primary:hover {
  background: #154A8A !important;
  transform: scale(1.02);
}

.fw-btn-secondary {
  background: transparent !important;
  color: #1B5FAE !important;
  padding: 16px 32px !important;
  border-radius: 980px !important;
  font-size: 17px !important;
  font-weight: 500 !important;
  text-decoration: none !important;
  transition: all 0.3s ease !important;
  display: inline-block;
  border: none;
  cursor: pointer;
}

.fw-btn-secondary:hover {
  background: rgba(27,95,174,0.06) !important;
}

/* Hero image */
.fw-hero-image {
  margin-top: 60px;
  max-width: 1100px;
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.12);
}

.fw-hero-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* ===== CONTENT SECTIONS ===== */
.fw-block {
  padding: 120px 24px;
}

.fw-block-gray {
  background: #f5f5f7;
}

.fw-block-dark {
  background: #1d1d1f;
  color: #f5f5f7;
}

.fw-block-dark h2,
.fw-block-dark h3,
.fw-block-dark p {
  color: #f5f5f7 !important;
}

.fw-block-dark .fw-label {
  color: #86868b !important;
}

.fw-block-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 80px;
}

.fw-label {
  font-size: 13px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  color: #86868b !important;
  margin-bottom: 12px;
  display: block;
}

.fw-block-header h2 {
  font-size: clamp(32px, 5vw, 52px) !important;
  margin-bottom: 20px;
}

.fw-block-header p {
  font-size: 19px !important;
  color: #86868b !important;
  line-height: 1.5 !important;
}

/* ===== GRID CARDS ===== */
.fw-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.fw-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.fw-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}

.fw-card-img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.fw-card-body {
  padding: 28px;
}

.fw-card-body h3 {
  font-size: 22px !important;
  margin-bottom: 10px;
}

.fw-card-body p {
  font-size: 15px !important;
  color: #86868b !important;
  line-height: 1.6 !important;
}

/* Gray cards for features */
.fw-card-flat {
  background: #f5f5f7;
  border-radius: 20px;
  padding: 40px;
}

.fw-block-gray .fw-card-flat {
  background: #fff;
}

.fw-card-flat h3 {
  font-size: 24px !important;
  margin-bottom: 12px;
}

.fw-card-flat p {
  font-size: 15px !important;
  color: #86868b !important;
  line-height: 1.6 !important;
}

.fw-card-flat .fw-icon {
  font-size: 32px;
  margin-bottom: 20px;
  display: block;
}

/* ===== STATS ROW ===== */
.fw-stats {
  display: flex;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
  padding: 60px 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.fw-stat {
  text-align: center;
}

.fw-stat-number {
  font-size: 52px !important;
  font-weight: 700 !important;
  letter-spacing: -0.03em !important;
  color: #1d1d1f !important;
  line-height: 1 !important;
}

.fw-block-dark .fw-stat-number {
  color: #f5f5f7 !important;
}

.fw-stat-label {
  font-size: 14px !important;
  color: #86868b !important;
  margin-top: 6px;
  font-weight: 400 !important;
}

/* ===== SPLIT SECTIONS ===== */
.fw-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.fw-split-reverse {
  direction: rtl;
}

.fw-split-reverse > * {
  direction: ltr;
}

.fw-split img {
  width: 100%;
  border-radius: 20px;
}

.fw-split-text h2 {
  font-size: clamp(28px, 4vw, 42px) !important;
  margin-bottom: 20px;
}

.fw-split-text p {
  font-size: 17px !important;
  color: #86868b !important;
  line-height: 1.7 !important;
  margin-bottom: 16px;
}

.fw-split-text .fw-link {
  color: #1B5FAE !important;
  font-size: 17px !important;
  font-weight: 500 !important;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
}

.fw-split-text .fw-link:hover {
  text-decoration: underline !important;
}



/* ===== TEAM SECTION ===== */
.fw-team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  max-width: 800px;
  margin: 0 auto;
}

.fw-team-card {
  text-align: center;
}

.fw-team-card img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 20px;
}

.fw-team-card h3 {
  font-size: 20px !important;
  margin-bottom: 4px;
}

.fw-team-card p {
  font-size: 15px !important;
  color: #86868b !important;
}

/* ===== CONTACT FORM ===== */
.fw-form-wrap {
  max-width: 600px;
  margin: 0 auto;
}

.fw-form-group {
  margin-bottom: 20px;
}

.fw-form-group label {
  display: block;
  font-size: 14px !important;
  font-weight: 500 !important;
  color: #1d1d1f !important;
  margin-bottom: 8px;
}

.fw-form-group input,
.fw-form-group textarea,
.fw-form-group select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #d2d2d7;
  border-radius: 12px;
  font-size: 16px !important;
  background: #fff;
  color: #1d1d1f;
  transition: border-color 0.2s;
  outline: none;
}

.fw-form-group input:focus,
.fw-form-group textarea:focus {
  border-color: #1B5FAE;
  box-shadow: 0 0 0 3px rgba(27,95,174,0.1);
}

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

/* ===== CONTACT INFO CARDS ===== */
.fw-contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  max-width: 800px;
  margin: 0 auto 60px;
}

.fw-contact-card {
  background: #f5f5f7;
  border-radius: 16px;
  padding: 28px;
  text-align: center;
}

.fw-contact-card .fw-icon {
  font-size: 28px;
  margin-bottom: 12px;
  display: block;
}

.fw-contact-card h4 {
  font-size: 15px !important;
  font-weight: 600 !important;
  margin-bottom: 6px;
}

.fw-contact-card p,
.fw-contact-card a {
  font-size: 15px !important;
  color: #86868b !important;
  text-decoration: none !important;
  line-height: 1.5 !important;
}

.fw-contact-card a:hover {
  color: #1B5FAE !important;
}

/* ===== FOOTER ===== */
.fw-footer {
  background: #f5f5f7;
  padding: 48px 24px 24px;
  border-top: 1px solid #d2d2d7;
}

.fw-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

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



.fw-footer h4 {
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #1d1d1f !important;
  margin-bottom: 16px;
}

.fw-footer p,
.fw-footer a {
  font-size: 13px !important;
  color: #86868b !important;
  text-decoration: none !important;
  line-height: 2 !important;
}

.fw-footer a:hover {
  color: #1d1d1f !important;
}

.fw-footer-bottom {
  border-top: 1px solid #d2d2d7;
  padding-top: 20px;
  font-size: 12px !important;
  color: #86868b !important;
}

/* ===== PAGE TOP PADDING ===== */
.fw-page-top {
  padding-top: 80px;
}

/* ===== ANIMATIONS ===== */
.fw-fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fw-fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== OVERRIDE WP THEME DEFAULTS ===== */
.entry-content,
.wp-block-post-content {
  max-width: 100% !important;
  padding: 0 !important;
}

.wp-site-blocks {
  padding: 0 !important;
}

body .is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
  max-width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.wp-block-post-content > * {
  max-width: 100% !important;
}

/* Hide default WP page title if we have custom */
.wp-block-post-title {
  display: none !important;
}

/* Tidy up Contact Form 7 styles if used */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea {
  width: 100% !important;
  padding: 14px 16px !important;
  border: 1px solid #d2d2d7 !important;
  border-radius: 12px !important;
  font-size: 16px !important;
  font-family: 'Inter', sans-serif !important;
}

.wpcf7 input[type="submit"] {
  background: #1B5FAE !important;
  color: #fff !important;
  padding: 16px 32px !important;
  border-radius: 980px !important;
  font-size: 17px !important;
  font-weight: 500 !important;
  border: none !important;
  cursor: pointer !important;
  font-family: 'Inter', sans-serif !important;
  transition: background 0.2s !important;
}

.wpcf7 input[type="submit"]:hover {
  background: #154A8A !important;
}

/* List styling for feature pages */
.fw-feature-list {
  list-style: none;
  padding: 0;
}

.fw-feature-list li {
  padding: 16px 0;
  border-bottom: 1px solid #e5e5e5;
  font-size: 17px !important;
  color: #1d1d1f !important;
  display: flex;
  align-items: center;
  gap: 12px;
}

.fw-feature-list li::before {
  content: '';
  width: 6px;
  height: 6px;
  background: #2E9B5E;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Image gallery grid */
.fw-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  border-radius: 20px;
  overflow: hidden;
}

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



/* ===== PROCESS STEPS ===== */
.fw-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
  counter-reset: step;
}

.fw-step {
  text-align: center;
  counter-increment: step;
  position: relative;
}

.fw-step::before {
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: #1d1d1f;
  color: #fff;
  border-radius: 50%;
  font-size: 18px;
  font-weight: 600;
  margin: 0 auto 20px;
}

.fw-step h4 {
  font-size: 17px !important;
  font-weight: 600 !important;
  margin-bottom: 8px;
}

.fw-step p {
  font-size: 14px !important;
  color: #86868b !important;
  line-height: 1.5 !important;
}

/* CTA Banner */
.fw-cta-banner {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.fw-cta-banner h2 {
  font-size: clamp(28px, 4vw, 42px) !important;
  margin-bottom: 16px;
}

.fw-cta-banner p {
  font-size: 19px !important;
  color: #86868b !important;
  margin-bottom: 32px;
  line-height: 1.5 !important;
}


/* ============================================
   TABLET (max-width: 1024px)
   ============================================ */
@media (max-width: 1024px) {
  .fw-hero {
    padding: 100px 24px 60px;
    min-height: 90vh;
  }
  .fw-split {
    gap: 40px;
  }
  .fw-cards {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .fw-footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
    gap: 30px;
  }
  .fw-stats {
    gap: 40px;
  }
}

/* ============================================
   MOBIEL (max-width: 768px)
   ============================================ */
@media (max-width: 768px) {
  .fw-nav-toggle { display: flex; }
  .fw-nav-links {
    display: none;
    position: absolute;
    top: 52px;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 20px 24px;
    gap: 16px;
    border-bottom: 1px solid rgba(0,0,0,0.08);
  }
  .fw-nav-links.open { display: flex; }
  .fw-nav-inner {
    height: 60px;
    padding: 0 16px;
  }
  .fw-hero {
    min-height: 85vh;
    padding: 80px 20px 60px;
  }
  .fw-hero h1 {
    font-size: clamp(32px, 8vw, 48px) !important;
    max-width: 100%;
  }
  .fw-hero p.fw-hero-sub {
    font-size: 16px !important;
    max-width: 100%;
    padding: 0 8px;
  }
  .fw-hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
  }
  .fw-hero-buttons .fw-btn-primary,
  .fw-hero-buttons .fw-btn-secondary {
    width: 100%;
    max-width: 300px;
    text-align: center;
    padding: 14px 24px !important;
    font-size: 16px !important;
  }
  .fw-block {
    padding: 60px 16px;
  }
  .fw-section {
    padding: 0 16px;
  }
  .fw-section-header h2 {
    font-size: clamp(28px, 6vw, 36px) !important;
  }
  .fw-stats {
    gap: 24px;
    padding: 40px 16px;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .fw-stat-number {
    font-size: 32px !important;
  }
  .fw-stat-label {
    font-size: 12px !important;
  }
  .fw-cards {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .fw-card {
    padding: 24px;
  }
  .fw-card img {
    height: 180px;
  }
  .fw-features-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .fw-card-flat {
    padding: 24px;
  }
  .fw-split {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .fw-split-reverse {
    direction: ltr;
  }
  .fw-split img {
    max-height: 300px;
    border-radius: 16px;
  }
  .fw-check-list {
    gap: 10px;
  }
  .fw-check-list li {
    font-size: 14px !important;
    padding-left: 24px;
  }
  .fw-gallery {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .fw-cta-buttons {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  .fw-cta-buttons .fw-btn-primary,
  .fw-cta-buttons .fw-btn-secondary,
  .fw-cta-buttons .fw-btn-outline {
    width: 100%;
    max-width: 300px;
    text-align: center;
  }
  .fw-contact-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .fw-footer {
    padding: 32px 16px 16px;
  }
  .fw-footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .fw-footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }
  .fw-steps {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .fw-step {
    padding: 24px;
  }
}

/* ============================================
   KLEINE MOBIEL (max-width: 480px)
   ============================================ */
@media (max-width: 480px) {
  .fw-hero {
    min-height: 80vh;
    padding: 70px 16px 40px;
  }
  .fw-hero h1 {
    font-size: 30px !important;
  }
  .fw-hero p.fw-hero-sub {
    font-size: 15px !important;
    margin-bottom: 30px;
  }
  .fw-hero-buttons .fw-btn-primary,
  .fw-hero-buttons .fw-btn-secondary {
    padding: 12px 20px !important;
    font-size: 15px !important;
  }
  .fw-block {
    padding: 48px 12px;
  }
  .fw-section-header h2 {
    font-size: 26px !important;
  }
  .fw-stats {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 32px 12px;
  }
  .fw-stat-number {
    font-size: 28px !important;
  }
  .fw-card {
    padding: 20px;
  }
  .fw-card img {
    height: 150px;
  }
  .fw-split img {
    max-height: 250px;
  }
  .fw-footer-grid {
    gap: 20px;
  }
}
