/* ============================================
   FABRI FOLIES — Stylesheet
   Dark luxury theme: #0e0d0d + gold #917042
   ============================================ */

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

:root {
  --black:       #0e0d0d;
  --black-soft:  #1a1919;
  --black-mid:   #252525;
  --gold:        #917042;
  --gold-light:  #b8935a;
  --gold-pale:   #d4ae80;
  --white:       #ffffff;
  --grey-light:  #e5e5e5;
  --grey-mid:    #9a9a9a;
  --font-serif:  'Playfair Display', Georgia, serif;
  --font-sans:   'Inter', system-ui, sans-serif;
  --transition:  0.3s ease;
  --radius:      4px;
  --shadow:      0 4px 24px rgba(0,0,0,0.5);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--black);
  color: var(--white);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.2;
}

h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }

.section-label {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
  display: block;
}

.section-title {
  margin-bottom: 1rem;
}

.section-subtitle {
  color: var(--grey-mid);
  font-size: 1.05rem;
  max-width: 560px;
}

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

section {
  padding: 6rem 0;
}

/* --- Scroll reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Gold divider --- */
.gold-line {
  display: block;
  width: 56px;
  height: 2px;
  background: var(--gold);
  margin: 1.5rem 0 2.5rem;
}

/* ============================================
   HEADER / NAV
   ============================================ */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.25rem 0;
  transition: background var(--transition), padding var(--transition), box-shadow var(--transition);
}

header.scrolled {
  background: rgba(14, 13, 13, 0.97);
  padding: 0.85rem 0;
  box-shadow: 0 2px 20px rgba(0,0,0,0.6);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

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

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

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--grey-light);
  transition: color var(--transition);
}

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

.nav-cta {
  background: var(--gold);
  color: var(--black) !important;
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 600 !important;
  transition: background var(--transition) !important;
}

.nav-cta:hover {
  background: var(--gold-light) !important;
  color: var(--black) !important;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: var(--transition);
}

/* ============================================
   HERO
   ============================================ */
#hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 0;
  background: var(--black);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(145,112,66,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 20% 20%, rgba(145,112,66,0.06) 0%, transparent 60%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 8rem 1.5rem 4rem;
  max-width: 820px;
}

.hero-logo {
  width: 120px;
  height: 120px;
  margin: 0 auto 2.5rem;
  opacity: 0.95;
}

.hero-tagline {
  color: var(--white);
  margin-bottom: 1.25rem;
}

.hero-tagline em {
  font-style: italic;
  color: var(--gold-light);
}

.hero-sub {
  color: var(--grey-mid);
  font-size: 1.1rem;
  max-width: 520px;
  margin: 0 auto 2.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
}

.btn-primary {
  background: var(--gold);
  color: var(--black);
}

.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(145,112,66,0.4);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.3);
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold-light);
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--grey-mid);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: bounce 2.4s ease-in-out infinite;
}

.hero-scroll svg {
  width: 20px;
  height: 20px;
  stroke: var(--gold);
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ============================================
   DIENSTEN
   ============================================ */
#diensten {
  background: var(--black-soft);
}

.diensten-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.dienst-card {
  background: var(--black-mid);
  border: 1px solid rgba(145,112,66,0.15);
  border-radius: 6px;
  padding: 2.25rem 1.75rem;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.dienst-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
  box-shadow: 0 12px 32px rgba(145,112,66,0.15);
}

.dienst-icon {
  width: 52px;
  height: 52px;
  margin-bottom: 1.5rem;
}

.dienst-icon svg,
.dienst-icon img {
  width: 100%;
  height: 100%;
  filter: invert(1) sepia(1) saturate(2) hue-rotate(5deg) brightness(0.85);
}

.dienst-title {
  color: var(--gold-pale);
  margin-bottom: 0.75rem;
  font-size: 1.15rem;
}

.dienst-desc {
  color: var(--grey-mid);
  font-size: 0.9rem;
  line-height: 1.65;
}

/* ============================================
   PORTFOLIO
   ============================================ */
#portfolio {
  background: var(--black);
}

.portfolio-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.portfolio-grid {
  columns: 3;
  column-gap: 1rem;
}

@media (max-width: 900px) {
  .portfolio-grid { columns: 2; }
}

@media (max-width: 560px) {
  .portfolio-grid { columns: 1; }
}

.portfolio-item {
  break-inside: avoid;
  margin-bottom: 1rem;
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  cursor: pointer;
}

.portfolio-item img {
  width: 100%;
  display: block;
  transition: transform 0.5s ease;
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: rgba(145,112,66,0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
}

.portfolio-overlay svg {
  width: 36px;
  height: 36px;
  stroke: var(--black);
  stroke-width: 1.5;
}

.portfolio-item:hover img {
  transform: scale(1.04);
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

/* ============================================
   LIGHTBOX
   ============================================ */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0,0,0,0.92);
  align-items: center;
  justify-content: center;
}

.lightbox.active {
  display: flex;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.8);
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--white);
  transition: color var(--transition);
}

.lightbox-close:hover { color: var(--gold); }

.lightbox-close svg {
  width: 32px;
  height: 32px;
  stroke: currentColor;
  stroke-width: 1.5;
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(14,13,13,0.7);
  border: 1px solid rgba(145,112,66,0.3);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--white);
  transition: background var(--transition), border-color var(--transition);
}

.lightbox-prev { left: 1.5rem; }
.lightbox-next { right: 1.5rem; }

.lightbox-prev:hover,
.lightbox-next:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--black);
}

.lightbox-prev svg,
.lightbox-next svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 2;
}

/* ============================================
   CONTACT
   ============================================ */
#contact {
  background: var(--black-soft);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 4rem;
  align-items: start;
  margin-top: 3rem;
}

@media (max-width: 820px) {
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

.contact-info p {
  color: var(--grey-mid);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  color: var(--grey-light);
  font-size: 0.95rem;
}

.contact-detail svg {
  width: 18px;
  height: 18px;
  stroke: var(--gold);
  flex-shrink: 0;
}

.contact-detail a:hover {
  color: var(--gold-light);
}

/* Form */
.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-full {
  grid-column: 1 / -1;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--grey-mid);
}

.form-group input,
.form-group textarea,
.form-group select {
  background: var(--black-mid);
  border: 1.5px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  padding: 0.8rem 1rem;
  transition: border-color var(--transition);
  outline: none;
  width: 100%;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255,255,255,0.3);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--gold);
}

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

.form-submit {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.form-message {
  font-size: 0.9rem;
  font-weight: 500;
  display: none;
}

.form-message.success {
  color: #6fcf97;
  display: block;
}

.form-message.error {
  color: #eb5757;
  display: block;
}

.btn-submit {
  position: relative;
  min-width: 180px;
  justify-content: center;
}

.btn-submit .spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(14,13,13,0.3);
  border-top-color: var(--black);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.btn-submit.loading .spinner { display: block; }
.btn-submit.loading .btn-text { display: none; }

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ============================================
   FOOTER
   ============================================ */
footer {
  background: #080808;
  border-top: 1px solid rgba(145,112,66,0.2);
  padding: 3rem 0 2rem;
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 3rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.footer-brand img {
  height: 40px;
  width: auto;
  margin-bottom: 0.75rem;
  opacity: 0.8;
}

.footer-brand p {
  color: var(--grey-mid);
  font-size: 0.85rem;
  max-width: 260px;
  line-height: 1.65;
}

.footer-links h4 {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  color: var(--grey-mid);
  font-size: 0.9rem;
  transition: color var(--transition);
}

.footer-links a:hover { color: var(--gold-light); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer-bottom p {
  color: var(--grey-mid);
  font-size: 0.8rem;
}

.footer-bottom a {
  color: var(--gold);
}

/* ============================================
   RESPONSIVE — Mobile
   ============================================ */
@media (max-width: 768px) {
  section { padding: 4.5rem 0; }

  .nav-links {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(14,13,13,0.98);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    z-index: 99;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    font-size: 1.3rem;
  }

  .nav-toggle {
    display: flex;
    z-index: 100;
  }

  .nav-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .nav-toggle.open span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

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

  .form-submit {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-submit {
    width: 100%;
  }

  .footer-inner {
    flex-direction: column;
    gap: 2rem;
  }
}

@media (max-width: 480px) {
  .hero-logo { width: 88px; height: 88px; }
  .lightbox-prev { left: 0.5rem; }
  .lightbox-next { right: 0.5rem; }
}
