/* =============================================
   Administratiekantoor & Belastingadviesbureau J. Laan B.V.
   Main Stylesheet
   ============================================= */

/* --- Variables --- */
:root {
  --green:       #4BA43D;
  --mint:        #F1FFFA;
  --blue-light:  #80A1D4;
  --blue-dark:   #27476E;
  --green-dark:  #104911;

  --white:       #ffffff;
  --gray-50:     #f8fbf9;
  --gray-100:    #eef3f0;
  --gray-200:    #d8e3dd;
  --gray-500:    #7a8e84;
  --gray-700:    #3d4f46;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  --shadow-sm:  0 2px 8px rgba(39, 71, 110, 0.07);
  --shadow-md:  0 4px 24px rgba(39, 71, 110, 0.11);
  --shadow-lg:  0 12px 48px rgba(39, 71, 110, 0.16);

  --radius:     14px;
  --radius-lg:  24px;
  --radius-xl:  36px;

  --ease:       cubic-bezier(0.4, 0, 0.2, 1);
  --transition: 0.3s var(--ease);

  --max-width:  1200px;
  --header-h:   80px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--blue-dark);
  background-color: var(--mint);
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
address { font-style: normal; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.2;
  color: var(--blue-dark);
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 600; }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; }
p  { font-size: 1rem; color: var(--gray-700); line-height: 1.7; }

em { font-style: italic; color: var(--green); }

/* Ampersand in different font to avoid Playfair Display "&" */
.amp {
  font-family: var(--font-body);
  font-weight: 500;
}

/* --- Utilities --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 12px;
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 64px;
}
.section-header p { margin-top: 16px; font-size: 1.05rem; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--green);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(75, 164, 61, 0.3);
}
.btn-primary:hover {
  background: var(--green-dark);
  box-shadow: 0 6px 24px rgba(75, 164, 61, 0.4);
  transform: translateY(-2px);
}
.btn-outline {
  border: 2px solid var(--blue-dark);
  color: var(--blue-dark);
}
.btn-outline:hover {
  background: var(--blue-dark);
  color: var(--white);
  transform: translateY(-2px);
}
.btn-white {
  background: var(--white);
  color: var(--blue-dark);
  font-weight: 600;
}
.btn-white:hover {
  background: var(--mint);
  transform: translateY(-2px);
}

/* =============================================
   HEADER
   ============================================= */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  z-index: 1000;
  background: rgba(241, 255, 250, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(75, 164, 61, 0.12);
  transition: box-shadow var(--transition), background var(--transition);
}
.site-header.scrolled {
  box-shadow: var(--shadow-md);
  background: rgba(241, 255, 250, 0.97);
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}
.logo-icon {
  width: 48px;
  height: auto;
  object-fit: contain;
}
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.logo-name {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--blue-dark);
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.logo-subtitle {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--blue-dark);
  letter-spacing: -0.01em;
}

/* Navigation */
.nav-list {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-link {
  padding: 8px 16px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--blue-dark);
  border-radius: 8px;
  transition: var(--transition);
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 50%; right: 50%;
  height: 2px;
  background: var(--green);
  border-radius: 2px;
  transition: left var(--transition), right var(--transition);
}
.nav-link:hover::after,
.nav-link.active::after {
  left: 16px;
  right: 16px;
}
.nav-link:hover,
.nav-link.active {
  color: var(--green-dark);
}
.nav-link.nav-cta {
  background: var(--green);
  color: var(--white);
  margin-left: 8px;
}
.nav-link.nav-cta::after { display: none; }
.nav-link.nav-cta:hover {
  background: var(--green-dark);
  color: var(--white);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--blue-dark);
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  background: var(--blue-dark);
  color: rgba(241, 255, 250, 0.85);
  padding-top: 72px;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px 56px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}
.footer-logo {
  width: 48px;
  height: auto;
  object-fit: contain;
  margin-bottom: 16px;
}
.footer-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--mint);
  line-height: 1.4;
  margin-bottom: 8px;
}
.footer-tagline {
  font-size: 0.82rem;
  color: rgba(241, 255, 250, 0.55);
  font-style: italic;
}
.site-footer h4 {
  color: var(--mint);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  margin-bottom: 20px;
}
.site-footer address p,
.site-footer p {
  font-size: 0.88rem;
  color: rgba(241, 255, 250, 0.7);
  line-height: 1.8;
}
.site-footer a {
  color: rgba(241, 255, 250, 0.7);
  transition: color var(--transition);
}
.site-footer a:hover { color: var(--green); }
.footer-nav ul li { margin-bottom: 10px; }
.footer-nav a { font-size: 0.88rem; }
.footer-bottom {
  border-top: 1px solid rgba(241, 255, 250, 0.1);
  padding: 20px 24px;
  text-align: center;
}
.footer-bottom p {
  font-size: 0.78rem;
  color: rgba(241, 255, 250, 0.4);
}

/* =============================================
   MAIN CONTENT OFFSET
   ============================================= */
main { padding-top: var(--header-h); }

/* =============================================
   HERO SECTION
   ============================================= */
.hero {
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  overflow: hidden;
  position: relative;
  background: var(--mint);
  padding: 80px 0;
}
.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  width: 100%;
}
.hero-text { max-width: 560px; }
.hero-text h1 { margin-bottom: 24px; }
.hero-text p {
  font-size: 1.1rem;
  line-height: 1.75;
  color: var(--gray-700);
  margin-bottom: 40px;
  max-width: 480px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.hero-image {
  position: relative;
}
.hero-image-wrap {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.hero-image-wrap img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease);
}
.hero-image-wrap:hover img { transform: scale(1.03); }
.hero-image-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(16, 73, 17, 0.25) 100%);
  pointer-events: none;
}
.hero-badge {
  position: absolute;
  bottom: -20px;
  left: -24px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px 24px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  border-left: 4px solid var(--green);
}
.hero-badge-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--green);
  line-height: 1;
}
.hero-badge-text {
  font-size: 0.75rem;
  color: var(--gray-500);
  text-align: center;
  margin-top: 4px;
}
.hero-deco {
  position: absolute;
  top: 16px; right: -16px;
  width: 80px; height: 80px;
  background: var(--green);
  border-radius: 50%;
  opacity: 0.08;
}

/* =============================================
   SERVICES SECTION
   ============================================= */
.services {
  padding: 100px 0;
  background: var(--white);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.service-card {
  background: var(--mint);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid rgba(75, 164, 61, 0.1);
  position: relative;
  overflow: hidden;
}
.service-card:hover {
  transform: scale(1.03);
}
.service-icon {
  width: 52px; height: 52px;
  background: rgba(75, 164, 61, 0.12);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  transition: background var(--transition);
}
.service-card:hover .service-icon {
  background: rgba(75, 164, 61, 0.22);
}
.service-icon svg { width: 26px; height: 26px; }
.service-card h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
}
.service-card p {
  font-size: 0.9rem;
  line-height: 1.65;
}
/* Last two cards centered */
.services-grid .service-card:nth-child(4),
.services-grid .service-card:nth-child(5) {
  /* handled by grid auto placement */
}
.services-row-last {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 28px;
  max-width: calc(66.66% + 14px);
  margin-left: auto;
  margin-right: auto;
}

/* =============================================
   WHY US SECTION
   ============================================= */
.why-us {
  padding: 100px 0;
  background: var(--mint);
  position: relative;
  overflow: hidden;
}
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.why-text h2 { margin: 12px 0 20px; }
.why-text p {
  font-size: 1.05rem;
  line-height: 1.75;
  max-width: 440px;
}
.why-text .btn { margin-top: 36px; }
.why-features { display: flex; flex-direction: column; gap: 32px; }
.usp-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 28px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.usp-item:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-md);
}
.usp-icon {
  width: 48px; height: 48px;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.usp-icon svg { width: 22px; height: 22px; }
.usp-content h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}
.usp-content p { font-size: 0.88rem; }

/* Team role description */
.team-role {
  font-size: 0.82rem;
  color: var(--gray-500);
  margin-top: 6px;
  line-height: 1.5;
}

/* =============================================
   CTA BANNER
   ============================================= */
.cta-banner {
  padding: 100px 0;
  background: var(--white);
  text-align: center;
  border-top: 1px solid var(--gray-100);
}
.cta-inner {
  position: relative;
}
.cta-banner h2 {
  color: var(--blue-dark);
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 20px;
}
.cta-banner p {
  color: var(--gray-700);
  font-size: 1.1rem;
  margin-bottom: 40px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}
.cta-banner .btn-primary {
  font-size: 1rem;
  padding: 16px 40px;
}
.cta-info {
  margin-top: 32px;
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}
.cta-info-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--gray-500);
  font-size: 0.85rem;
}
.cta-info-item svg { width: 16px; height: 16px; }

/* =============================================
   SCROLL ANIMATIONS
   ============================================= */
.fade-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-up-delay-1 { transition-delay: 0.1s; }
.fade-up-delay-2 { transition-delay: 0.2s; }
.fade-up-delay-3 { transition-delay: 0.3s; }
.fade-up-delay-4 { transition-delay: 0.4s; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 40px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .services-row-last { max-width: 100%; }
}

@media (max-width: 768px) {
  :root { --header-h: 68px; }

  /* Logo mobile */
  .logo-name {
    font-size: 0.68rem;
    white-space: normal;
  }
  .logo-subtitle {
    font-size: 0.88rem;
  }

  /* Header mobile */
  .hamburger { display: flex; }
  .nav {
    position: fixed;
    top: var(--header-h); left: 0; right: 0;
    background: rgba(241, 255, 250, 0.98);
    backdrop-filter: blur(14px);
    padding: 24px;
    transform: translateY(-110%);
    opacity: 0;
    transition: transform var(--transition), opacity var(--transition);
    border-bottom: 1px solid rgba(75, 164, 61, 0.15);
    box-shadow: var(--shadow-md);
  }
  .nav.nav-open { transform: translateY(0); opacity: 1; }
  .nav-list { flex-direction: column; gap: 4px; }
  .nav-link { display: block; padding: 12px 20px; font-size: 1rem; }
  .nav-link.nav-cta { margin-left: 0; margin-top: 8px; text-align: center; }

  /* Hero */
  .hero { padding: 48px 0 64px; min-height: auto; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-text { max-width: 100%; }
  .hero-image-wrap img { height: 300px; }
  .hero-badge { left: 16px; bottom: -16px; }

  /* Sections */
  .services { padding: 72px 0; }
  .services-grid { grid-template-columns: 1fr; }
  .services-row-last { grid-template-columns: 1fr; max-width: 100%; }

  .why-us { padding: 72px 0; }
  .why-grid { grid-template-columns: 1fr; gap: 48px; }
  .why-text p { max-width: 100%; }

  .cta-banner { padding: 72px 0; }
  .cta-info { gap: 20px; }

  /* Footer */
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-badge { position: static; margin-top: 16px; flex-direction: row; align-items: center; gap: 12px; }
}
