/* ============================================================
   J. de Konink – Stylesheet
   Brand accent: #971134
   ============================================================ */

/* ----- Variables ----- */
:root {
  --primary:       #971134;
  --primary-dark:  #7a0d29;
  --primary-light: #b8183f;
  --white:         #ffffff;
  --bg:            #fafafa;
  --bg-alt:        #f2f2f2;
  --text:          #2d2d2d;
  --text-muted:    #666666;
  --border:        #e0e0e0;
  --shadow:        0 2px 16px rgba(0, 0, 0, 0.09);
  --radius:        4px;
  --nav-height:    68px;
  --max-width:     1100px;
  --transition:    0.2s ease;
  --font-heading:  'Montserrat', 'Segoe UI', system-ui, sans-serif;
  --font-body:     'Open Sans', 'Segoe UI', system-ui, sans-serif;
}

/* ----- Reset ----- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--text); background: var(--white); line-height: 1.65; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ----- Typography ----- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.25;
  font-weight: 700;
}
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: 1.2rem; }
p  { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ----- Layout helpers ----- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 5rem 0;
}

.section__title {
  text-align: center;
  margin-bottom: 0.5rem;
}
.section__title::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: var(--primary);
  margin: 0.6rem auto 0;
  border-radius: 2px;
}
.section__subtitle {
  text-align: center;
  color: var(--text-muted);
  max-width: 600px;
  margin: 1rem auto 3rem;
}

/* ----- Buttons ----- */
.btn {
  display: inline-block;
  padding: 0.7rem 1.6rem;
  border-radius: var(--radius);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
  border: 2px solid transparent;
}
.btn:hover { transform: translateY(-1px); }

.btn--primary {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}
.btn--primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }

.btn--outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn--outline:hover { background: var(--white); color: var(--primary); }

.btn--outline-dark {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn--outline-dark:hover { background: var(--primary); color: var(--white); }

.btn--white {
  background: var(--white);
  color: var(--primary);
  border-color: var(--white);
}
.btn--white:hover { background: var(--bg-alt); }

.btn--outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.7);
}
.btn--outline-white:hover { background: rgba(255,255,255,0.15); }

.btn--text {
  padding: 0;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  background: none;
}
.btn--text:hover { color: var(--primary-dark); transform: none; text-decoration: underline; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  height: var(--nav-height);
}

.nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav__logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--primary);
  letter-spacing: 0.01em;
  flex-shrink: 0;
}

.nav__menu {
  display: flex;
  gap: 0.25rem;
}

.nav__link {
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color var(--transition);
}
.nav__link:hover,
.nav__link.active {
  color: var(--primary);
}
.nav__link.active {
  position: relative;
}
.nav__link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0.8rem;
  right: 0.8rem;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

/* Hamburger */
.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-shrink: 0;
}
.nav__toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 700px) {
  .site-header { height: 64px; }
  .nav__toggle { display: flex; }
  .nav__logo { font-size: 1.25rem; }
  .nav__menu {
    display: none;
    position: absolute;
    top: 64px;
    left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 0 1rem;
  }
  .nav__menu.open { display: flex; }
  .nav__link {
    padding: 1.4rem 2rem;
    font-size: 1.3rem;
    border-bottom: 1px solid var(--border);
  }
  .nav__menu li:last-child .nav__link { border-bottom: none; }
  .nav__link.active::after { display: none; }
  .nav__link.active { color: var(--primary); background: rgba(151, 17, 52, 0.05); }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: #1a1a1a;
  background-image: url('../images/hero.jpg');
  background-size: cover;
  background-position: center;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.7) 100%);
}
.hero__content {
  position: relative;
  z-index: 1;
  color: var(--white);
  padding: 2rem 1.25rem;
  max-width: 780px;
}
.hero__title {
  margin-bottom: 1rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.hero__subtitle {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 2rem;
  font-weight: 400;
}
.hero__cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Page hero (inner pages) */
.page-hero {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  padding: 3rem 0;
}
.page-hero__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}
.page-hero__breadcrumb {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.page-hero__breadcrumb a { color: var(--primary); }
.page-hero__breadcrumb a:hover { text-decoration: underline; }
.page-hero__title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
}
.page-hero__title::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: var(--primary);
  margin-top: 0.6rem;
  border-radius: 2px;
}

/* ============================================================
   SERVICES OVERVIEW (homepage)
   ============================================================ */
.services-overview { background: var(--white); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--primary);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: transform var(--transition), box-shadow var(--transition);
}
.service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.12);
}
.service-card__icon {
  font-size: 2.2rem;
  line-height: 1;
}
.service-card__title {
  font-size: 1.25rem;
  color: var(--primary);
  font-family: var(--font-heading);
}
.service-card__text {
  color: var(--text-muted);
  font-size: 0.95rem;
  flex: 1;
}

/* ============================================================
   ABOUT STRIP (homepage)
   ============================================================ */
.about-strip { background: var(--bg-alt); }

.about-strip__inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  align-items: center;
}

.about-strip__stats {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.stat {
  display: flex;
  flex-direction: column;
  border-left: 3px solid var(--primary);
  padding-left: 1rem;
}
.stat__number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}
.stat__label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.2rem;
}

.about-strip__text h2 { margin-bottom: 1rem; }
.about-strip__text p { color: var(--text-muted); margin-bottom: 1rem; }
.about-strip__text .btn { margin-top: 0.5rem; }

@media (max-width: 700px) {
  .about-strip__inner { grid-template-columns: 1fr; gap: 2rem; }
  .about-strip__stats { flex-direction: row; gap: 1rem; }
  .stat__number { font-size: 1.5rem; }
}

/* ============================================================
   PORTFOLIO PREVIEW (homepage)
   ============================================================ */
.portfolio-preview { background: var(--white); }

.portfolio-preview__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.portfolio-preview__grid .gallery-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius);
}

@media (max-width: 700px) {
  .portfolio-preview__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .portfolio-preview__grid { grid-template-columns: 1fr; }
}

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner {
  background: var(--primary);
  color: var(--white);
  padding: 4rem 0;
  text-align: center;
}
.cta-banner__title {
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  margin-bottom: 0.75rem;
}
.cta-banner__text {
  opacity: 0.9;
  margin-bottom: 1.75rem;
  font-size: 1rem;
}
.cta-banner__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   SERVICE PAGE CONTENT
   ============================================================ */
.service-content { background: var(--white); }

.service-content__inner {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
  align-items: start;
}

.service-content__body h3 {
  font-size: 1.1rem;
  color: var(--primary);
  margin: 1.75rem 0 0.5rem;
  font-family: var(--font-heading);
}
.service-content__body h3:first-child { margin-top: 0; }
.service-content__body p { color: var(--text-muted); }
.service-content__body ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
}
.service-content__body ul li::before {
  content: '✓';
  color: var(--primary);
  font-weight: 700;
  margin-right: 0.5rem;
}

.service-content__sidebar {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  position: sticky;
  top: calc(var(--nav-height) + 1.5rem);
}
.service-content__sidebar h3 {
  font-size: 1rem;
  font-family: var(--font-heading);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary);
}
.service-content__sidebar p { font-size: 0.9rem; color: var(--text-muted); }
.service-content__sidebar .btn { margin-top: 1rem; width: 100%; text-align: center; }
.sidebar-contact { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1rem; }
.sidebar-contact a {
  font-weight: 600;
  color: var(--primary);
  font-size: 0.9rem;
}
.sidebar-contact a:hover { text-decoration: underline; }

@media (max-width: 768px) {
  .service-content__inner { grid-template-columns: 1fr; }
  .service-content__sidebar { position: static; }
}

/* ============================================================
   PORTFOLIO PAGE
   ============================================================ */
.portfolio-section { background: var(--white); }

/* Filter tabs */
.filter-tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
  justify-content: center;
}
.filter-tab {
  padding: 0.5rem 1.2rem;
  border: 2px solid var(--border);
  border-radius: 999px;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  background: var(--white);
  color: var(--text-muted);
  transition: all var(--transition);
}
.filter-tab:hover { border-color: var(--primary); color: var(--primary); }
.filter-tab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

/* Gallery grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}
.gallery-item {
  overflow: hidden;
  border-radius: var(--radius);
  cursor: pointer;
  position: relative;
  background: var(--bg-alt);
}
.gallery-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.35s ease;
  display: block;
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item__overlay {
  position: absolute;
  inset: 0;
  background: rgba(151, 17, 52, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
}
.gallery-item:hover .gallery-item__overlay { opacity: 1; }
.gallery-item__overlay span {
  color: var(--white);
  font-size: 2rem;
}

/* No results */
.gallery-empty {
  text-align: center;
  color: var(--text-muted);
  padding: 3rem;
  grid-column: 1 / -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;
  padding: 1rem;
}
.lightbox.open { display: flex; }

.lightbox__img {
  max-width: min(90vw, 900px);
  max-height: 85vh;
  border-radius: var(--radius);
  object-fit: contain;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}
.lightbox__caption {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  text-align: center;
}
.lightbox__close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: var(--white);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}
.lightbox__close:hover { background: rgba(255, 255, 255, 0.3); }

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-section { background: var(--white); }

.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

@media (max-width: 700px) {
  .contact-cards { grid-template-columns: 1fr; }
}

.contact-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--primary);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  transition: transform var(--transition), box-shadow var(--transition);
}
.contact-card--link {
  text-decoration: none;
  color: var(--text);
  cursor: pointer;
}
.contact-card--link:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.12);
}
.contact-card__icon { font-size: 2.5rem; line-height: 1; }
.contact-card__label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-weight: 600;
}
.contact-card__value {
  font-size: 1.25rem;
  font-weight: 700;
  font-family: var(--font-heading);
  color: var(--primary);
  margin: 0;
}

/* ============================================================
   FORM MESSAGES
   ============================================================ */
.form-message {
  padding: 0.9rem 1.2rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  display: none;
}
.form-message.success {
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #a5d6a7;
  display: block;
}
.form-message.error {
  background: #ffebee;
  color: #c62828;
  border: 1px solid #ef9a9a;
  display: block;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: #1a1a1a;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
}
.site-footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 3rem;
  padding: 3rem 1.25rem;
  flex-wrap: wrap;
}
.site-footer__name {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.5rem;
}
.site-footer__brand p { margin-bottom: 0.3rem; }
.site-footer__brand a,
.site-footer__nav a { color: rgba(255, 255, 255, 0.75); }
.site-footer__brand a:hover,
.site-footer__nav a:hover { color: var(--white); }
.site-footer__nav {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.site-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem 1.25rem;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
}

/* ============================================================
   UTILITY
   ============================================================ */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
