/*
Theme Name: RobMedia
Theme URI: https://robmedia.be
Author: Rob Nijs
Author URI: https://robmedia.be
Description: Automotive Photography by Rob Nijs — Belgium
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: robmedia
*/

/* =============================================
   FONTS — loaded via functions.php (Google Fonts)
   ============================================= */

:root {
  --background: #f5f3ee;
  --surface: #e8e4dd;
  --foreground: #0d0d0d;
  --muted: #efece6;
  --muted-foreground: #6b6b6b;
  --border: #d8d3ca;
  --font-serif: 'Instrument Serif', ui-serif, Georgia, serif;
  --font-sans: 'Inter', ui-sans-serif, system-ui, sans-serif;
}

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

html, body {
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* =============================================
   TYPOGRAPHY UTILITIES
   ============================================= */
.font-serif { font-family: var(--font-serif); }

.label {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}
.label-lg {
  font-size: 14px;
  letter-spacing: 0.22em;
  color: var(--foreground);
}
@media (min-width: 768px) {
  .label-lg { font-size: 16px; }
}

/* =============================================
   ANIMATIONS
   ============================================= */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reveal {
  opacity: 0;
  animation: fadeUp 1.2s ease-out forwards;
}
.reveal-delay-1 { animation-delay: 0.15s; }
.reveal-delay-2 { animation-delay: 0.35s; }

/* scroll-triggered reveal (JS adds .is-visible) */
.scroll-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1s ease-out, transform 1s ease-out;
}
.scroll-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =============================================
   NAV
   ============================================= */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(245,243,238,0.70);
}
.header-inner {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
@media (min-width: 768px) {
  .header-inner { padding: 0 48px; }
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}
.site-logo img { height: 24px; width: auto; }
.site-logo .logo-name {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--foreground);
}

.site-nav { display: flex; align-items: center; gap: 24px; }
@media (min-width: 768px) { .site-nav { gap: 32px; } }

.site-nav a {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  transition: color 0.2s;
}
.site-nav a:hover { color: var(--foreground); }
.site-nav .nav-featured { display: none; }
@media (min-width: 640px) { .site-nav .nav-featured { display: inline; } }

/* =============================================
   HERO
   ============================================= */
.hero {
  position: relative;
  height: 100svh;
  min-height: 640px;
  width: 100%;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-content {
  position: relative;
  z-index: 10;
  max-width: 1600px;
  margin: 0 auto;
  height: 100%;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 16svh;
}
@media (min-width: 768px) {
  .hero-content { padding: 14svh 48px 0; }
}
.hero-eyebrow { color: var(--muted-foreground); }
.hero-title {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 10vw;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--foreground);
  margin-top: 16px;
}
@media (min-width: 768px) { .hero-title { font-size: 5rem; } }
@media (min-width: 1024px) { .hero-title { font-size: 6rem; } }
.hero-caption {
  margin-top: 24px;
  font-size: 11px;
  color: rgba(13,13,13,0.70);
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

/* =============================================
   INTRO
   ============================================= */
.intro {
  padding: 128px 24px;
}
@media (min-width: 768px) { .intro { padding: 192px 48px; } }
.intro-inner { max-width: 1400px; margin: 0 auto; }
.intro-text {
  font-family: var(--font-serif);
  font-size: 8vw;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
@media (min-width: 768px) { .intro-text { font-size: 4.5rem; } }
@media (min-width: 1024px) { .intro-text { font-size: 5.5rem; } }
.intro-text .muted { color: var(--muted-foreground); }

/* =============================================
   PORTFOLIO
   ============================================= */
.portfolio {
  padding: 0 24px 128px;
}
@media (min-width: 768px) { .portfolio { padding: 0 48px 192px; } }
.portfolio-inner { max-width: 1600px; margin: 0 auto; }

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 48px;
}
@media (min-width: 768px) { .section-header { margin-bottom: 80px; } }
.section-header .right { display: none; }
@media (min-width: 768px) { .section-header .right { display: block; } }

.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 768px) {
  .portfolio-grid {
    grid-template-columns: repeat(12, 1fr);
    gap: 40px;
  }
}

.tile img {
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  width: 100%; height: 100%; object-fit: cover;
}
.tile:hover img { transform: scale(1.03); }

.tile-img-wrap {
  overflow: hidden;
  background: var(--surface);
  position: relative;
}
.aspect-16-9  { aspect-ratio: 16/9; }
.aspect-4-5   { aspect-ratio: 4/5; }

.tile figcaption {
  margin-top: 16px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}
.tile-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
}
@media (min-width: 768px) { .tile-title { font-size: 1.5rem; } }

/* grid column spans */
@media (min-width: 768px) {
  .col-7 { grid-column: span 7; }
  .col-5 { grid-column: span 5; }
}

/* =============================================
   FEATURED
   ============================================= */
.featured {
  padding: 0 24px 128px;
}
@media (min-width: 768px) { .featured { padding: 0 48px 192px; } }
.featured-inner { max-width: 1600px; margin: 0 auto; }

.featured-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
@media (min-width: 768px) {
  .featured-grid { grid-template-columns: repeat(3, 1fr); gap: 32px; }
}

.feature-card .card-img {
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--foreground);
  display: flex; align-items: center; justify-content: center;
}
.feature-card .card-img img {
  width: 100%; height: 100%; object-fit: cover;
}
.feature-card .card-img img.contain { object-fit: contain; }
.feature-card .card-body { margin-top: 20px; }
.feature-card .card-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  margin-top: 8px;
}
@media (min-width: 768px) { .feature-card .card-title { font-size: 1.875rem; } }
.feature-card .card-text {
  margin-top: 12px;
  font-size: 0.875rem;
  color: rgba(13,13,13,0.75);
  line-height: 1.6;
}
@media (min-width: 768px) { .feature-card .card-text { font-size: 1rem; } }

/* =============================================
   ABOUT
   ============================================= */
.about {
  padding: 128px 24px;
  background: var(--surface);
}
@media (min-width: 768px) { .about { padding: 192px 48px; } }
.about-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
@media (min-width: 768px) {
  .about-inner { grid-template-columns: 5fr 7fr; gap: 80px; }
}

.about-portrait { aspect-ratio: 3/4; overflow: hidden; background: var(--background); }
.about-portrait img { width: 100%; height: 100%; object-fit: cover; }

.about-content { }
@media (min-width: 768px) { .about-content { padding-top: 48px; } }

.about-heading {
  font-family: var(--font-serif);
  font-size: 7vw;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-top: 32px;
}
@media (min-width: 768px) { .about-heading { font-size: 3rem; } }
@media (min-width: 1024px) { .about-heading { font-size: 3.75rem; } }

.about-text {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  font-size: 1rem;
  line-height: 1.7;
  max-width: 560px;
  color: rgba(13,13,13,0.85);
}
@media (min-width: 768px) { .about-text { font-size: 1.125rem; } }

/* =============================================
   QUOTE
   ============================================= */
.quote-section {
  padding: 128px 24px;
  border-top: 1px solid var(--border);
}
@media (min-width: 768px) { .quote-section { padding: 192px 48px; } }
.quote-inner { max-width: 1200px; margin: 0 auto; }
.quote-text {
  font-family: var(--font-serif);
  font-size: 6vw;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
@media (min-width: 768px) { .quote-text { font-size: 3.25rem; } }
@media (min-width: 1024px) { .quote-text { font-size: 3.75rem; } }
.quote-text .muted { color: var(--muted-foreground); }
.quote-author { margin-top: 40px; }

/* =============================================
   CONTACT
   ============================================= */
.contact {
  padding: 128px 24px;
}
@media (min-width: 768px) { .contact { padding: 192px 48px; } }
.contact-inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}
.contact-heading {
  font-family: var(--font-serif);
  font-size: 9vw;
  line-height: 1;
  letter-spacing: -0.02em;
  margin-top: 24px;
}
@media (min-width: 768px) { .contact-heading { font-size: 5.5rem; } }
.contact-heading em { font-style: italic; color: var(--muted-foreground); }

.contact-grid {
  margin-top: 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  text-align: center;
}
@media (min-width: 768px) {
  .contact-grid {
    flex-direction: row;
    justify-content: center;
    gap: 80px;
  }
}

.contact-item .item-value {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  margin-top: 12px;
  display: inline-block;
  border-bottom: 1px solid rgba(13,13,13,0.30);
  padding-bottom: 4px;
  transition: border-color 0.2s;
}
@media (min-width: 768px) { .contact-item .item-value { font-size: 1.875rem; } }
.contact-item .item-value:hover { border-color: var(--foreground); }

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  border-top: 1px solid var(--border);
}
.footer-inner {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 24px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
@media (min-width: 768px) { .footer-inner { padding: 0 48px; } }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { height: 20px; width: auto; }

/* =============================================
   HAMBURGER BUTTON
   ============================================= */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--foreground);
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}
/* X state */
.hamburger.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Hide hamburger on desktop */
@media (min-width: 768px) { .hamburger { display: none; } }

/* Hide desktop nav on mobile */
@media (max-width: 767px) { .site-nav { display: none; } }

/* =============================================
   MOBILE DROPDOWN MENU
   ============================================= */
.mobile-menu {
  display: none;
  flex-direction: column;
  background: rgba(245,243,238,0.97);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  padding: 8px 0 16px;
}
.mobile-menu.is-open { display: flex; }
.mobile-menu a {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  padding: 14px 24px;
  transition: color 0.2s;
}
.mobile-menu a:hover { color: var(--foreground); }

/* =============================================
   FOOTER FIX — smaller, no stack
   ============================================= */
.site-footer { border-top: 1px solid var(--border); }
.footer-inner {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
@media (min-width: 768px) { .footer-inner { padding: 0 48px; } }
.footer-brand-text {
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--foreground);
  white-space: nowrap;
}
.footer-copy {
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--muted-foreground);
  text-align: right;
  white-space: nowrap;
}
@media (max-width: 480px) {
  .footer-copy { font-size: 8px; letter-spacing: 0.08em; }
}

/* =============================================
   OVERFLOW FIX — geen horizontaal scrollen
   ============================================= */
html, body {
  overflow-x: hidden;
  max-width: 100%;
}

* {
  max-width: 100%;
}

/* Hero afbeelding mag niet buiten beeld lopen */
.hero { overflow: hidden; }
.hero-bg { width: 100%; height: 100%; object-fit: cover; }

/* Portfolio grid op mobiel: geen negatieve marges */
.portfolio-grid {
  overflow: hidden;
}

/* Zorg dat geen enkele sectie breder is dan viewport */
section, header, footer, .site-header {
  max-width: 100vw;
  overflow-x: hidden;
}

/* Intro tekst mag niet buiten beeld lopen op mobiel */
.intro-text {
  word-break: break-word;
  overflow-wrap: break-word;
}

/* =============================================
   FONT OVERRIDE — voorkomt dat WordPress
   eigen stijlen de fonts overschrijven
   ============================================= */

/* Forceer Google Fonts laden vóór alles */
body,
body *,
body p,
body h1,
body h2,
body h3,
body h4,
body h5,
body h6 {
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif !important;
  -webkit-font-smoothing: antialiased;
}

/* Serif klassen: altijd Instrument Serif */
body .font-serif,
body .intro-text,
body .hero-title,
body .about-heading,
body .quote-text,
body .tile-title,
body .card-title,
body .contact-heading,
body .contact-item .item-value {
  font-family: 'Instrument Serif', ui-serif, Georgia, serif !important;
}

/* Hero titel: licht gewicht, groot, geen bold van WordPress */
body .hero-title {
  font-weight: 300 !important;
  line-height: 1 !important;
  letter-spacing: -0.02em !important;
}

/* Intro tekst */
body .intro-text {
  line-height: 1.05 !important;
  letter-spacing: -0.02em !important;
}

/* About heading */
body .about-heading {
  line-height: 1.05 !important;
  letter-spacing: -0.02em !important;
}

/* Quote */
body .quote-text {
  line-height: 1.15 !important;
  letter-spacing: -0.02em !important;
}

/* Portfolio titels */
body .tile-title {
  line-height: 1.2 !important;
}

/* Label stijl altijd Inter */
body .label {
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  letter-spacing: 0.18em !important;
  text-transform: uppercase !important;
}

/* =============================================
   EMAIL BESCHERMING
   ============================================= */
.email-display span[style*="display:none"] {
  display: none !important;
}

.contact-item {
  text-align: center;
}
