/*
Theme Name: Felix Gelijk Media
Theme URI: https://felixgelijkmedia.com
Author: Felix Gelijk
Author URI: https://felixgelijkmedia.com
Description: Custom theme for felix.gelijk.media — warm beige, orange accents, Inter font.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: Private
Text Domain: felixgelijk
*/

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

:root {
  --bg:           #F2EAE0;
  --surface:      #ffffff;
  --text:         #1C1C1C;
  --text-muted:   #666;
  --orange:       #F26419;
  --orange-hover: #d9540e;
  --border:       rgba(0,0,0,0.08);
  --radius:       12px;
  --max-w:        1200px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── LAYOUT ── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 48px;
}
@media (max-width: 768px) {
  .container { padding: 0 20px; }
}

/* ── HEADER ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.site-header.scrolled {
  border-color: var(--border);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 48px;
}
.site-logo img { height: 55px; width: auto; }
.site-logo:hover { opacity: 0.85; }

.main-nav { display: flex; gap: 36px; }
.main-nav a {
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
  position: relative;
}
.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 2px;
  background: var(--orange);
  transition: width 0.25s;
}
.main-nav a:hover { color: var(--orange); text-decoration: none; }
.main-nav a:hover::after,
.main-nav a.current-menu-item::after { width: 100%; }

.header-social { display: flex; gap: 16px; align-items: center; }
.header-social a { color: var(--text); display: flex; align-items: center; transition: color 0.2s; }
.header-social a:hover { color: var(--orange); }

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--text);
}
.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
}
.mobile-nav a {
  padding: 16px 20px;
  color: var(--text);
  font-weight: 500;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
}
.mobile-nav a:hover { color: var(--orange); background: var(--bg); }
.mobile-nav.open { display: flex; }

@media (max-width: 900px) {
  .header-inner { padding: 14px 20px; }
  .main-nav, .header-social { display: none; }
  .hamburger { display: block; }
}

/* ── BUTTONS ── */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: background 0.2s, transform 0.1s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-hover); color: #fff; }
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--text);
}
.btn-outline:hover { background: var(--text); color: #fff; }
.btn:active { transform: scale(0.97); }

/* ── HERO (HOMEPAGE) ── */
.hero {
  padding: 80px 0 60px;
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 0 48px;
  max-width: var(--max-w);
  margin: 0 auto;
}
.hero-left h1 {
  font-size: clamp(40px, 5vw, 68px);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -2px;
  margin-bottom: 24px;
}
.hero-left h1 .dot { color: var(--orange); }
.hero-left p {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 12px;
  max-width: 420px;
}
.hero-left .btn { margin-top: 20px; }

.hero-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
}
.hero-images .img-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}
.hero-images .img-wrap:first-child { margin-top: -30px; }
.hero-images .img-wrap img { width: 100%; height: 280px; object-fit: cover; }
.img-credit {
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 6px;
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; padding: 0 20px; gap: 40px; }
  .hero-images { grid-template-columns: 1fr 1fr; }
  .hero-images .img-wrap:first-child { margin-top: 0; }
  .hero-images .img-wrap img { height: 200px; }
}

/* ── STATS STRIP ── */
.stats-strip {
  padding: 48px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stats-grid {
  display: flex;
  gap: 60px;
  justify-content: center;
  flex-wrap: wrap;
  padding: 0 48px;
  max-width: var(--max-w);
  margin: 0 auto;
}
.stat-item { text-align: center; }
.stat-number {
  font-size: 56px;
  font-weight: 900;
  color: var(--orange);
  line-height: 1;
  letter-spacing: -2px;
}
.stat-label {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 6px;
  max-width: 120px;
  line-height: 1.4;
}

/* ── SECTION HEADERS ── */
.section-header { margin-bottom: 40px; }
.section-tag {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 10px;
}
.section-title {
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1.1;
}
.section-subtitle {
  font-size: 16px;
  color: var(--text-muted);
  margin-top: 12px;
  max-width: 560px;
  line-height: 1.65;
}

/* ── BLOG SECTION ── */
.blog-section { padding: 80px 0; }
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) { .blog-grid { grid-template-columns: 1fr; } }
@media (max-width: 1100px) and (min-width: 901px) { .blog-grid { grid-template-columns: 1fr 1fr; } }

.post-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
}
.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.12);
  text-decoration: none;
  color: var(--text);
}
.post-card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}
.post-card-img-placeholder {
  width: 100%; height: 220px;
  background: linear-gradient(135deg, #e8ddd0, #d4c5b5);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 32px;
}
.post-card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.post-card-date {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 10px;
}
.post-card-title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 12px;
  letter-spacing: -0.3px;
}
.post-card-excerpt {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
  flex: 1;
}
.post-card-footer {
  margin-top: 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--orange);
}

.blog-cta { text-align: center; margin-top: 48px; }

/* ── ABOUT SECTION ── */
.about-section {
  padding: 80px 0;
  background: var(--surface);
}
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 80px;
  align-items: center;
}
.about-img-wrap {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0,0,0,0.12);
  aspect-ratio: 1;
}
.about-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.about-text .section-title { margin-bottom: 20px; }
.about-text p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 16px;
}
.about-text .btn { margin-top: 8px; }

@media (max-width: 900px) {
  .about-inner { grid-template-columns: 1fr; gap: 32px; }
  .about-img-wrap { max-width: 320px; margin: 0 auto; }
}

/* ── FOOTER ── */
.site-footer {
  background: #1C1C1C;
  color: #fff;
  padding: 48px 0 24px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand .footer-logo-text {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.5px;
}
.footer-brand .footer-logo-text span { color: var(--orange); }
.footer-brand p {
  margin-top: 12px;
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  line-height: 1.65;
  max-width: 280px;
}
.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}
.footer-social a {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.7);
  transition: background 0.2s, color 0.2s;
}
.footer-social a:hover { background: var(--orange); color: #fff; }

.footer-col h4 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  margin-bottom: 10px;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--orange); text-decoration: none; }

.footer-bottom {
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p {
  font-size: 13px;
  color: rgba(255,255,255,0.35);
}
.footer-bottom a {
  color: rgba(255,255,255,0.35);
  font-size: 13px;
  text-decoration: none;
}
.footer-bottom a:hover { color: var(--orange); }

@media (max-width: 768px) {
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ── BLOG ARCHIVE PAGE ── */
.page-hero {
  padding: 64px 0 48px;
}
.page-hero h1 {
  font-size: clamp(36px, 4vw, 58px);
  font-weight: 900;
  letter-spacing: -1.5px;
  line-height: 1.05;
}
.page-hero h1 span { color: var(--orange); }
.page-hero p { margin-top: 14px; font-size: 16px; color: var(--text-muted); max-width: 480px; }

.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-bottom: 80px;
}
@media (max-width: 900px) { .archive-grid { grid-template-columns: 1fr; } }
@media (max-width: 1100px) and (min-width: 901px) { .archive-grid { grid-template-columns: 1fr 1fr; } }

/* ── SINGLE POST ── */
.single-hero { padding: 64px 0 0; }
.single-hero .post-meta {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 16px;
}
.single-hero h1 {
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 900;
  letter-spacing: -1.5px;
  line-height: 1.1;
  max-width: 760px;
}
.single-featured-img {
  margin-top: 40px;
  border-radius: var(--radius);
  overflow: hidden;
  max-height: 520px;
}
.single-featured-img img { width: 100%; height: 100%; object-fit: cover; }
.single-content {
  max-width: 760px;
  margin: 56px auto 80px;
}
.single-content p { font-size: 17px; line-height: 1.8; margin-bottom: 24px; color: #333; }
.single-content h2 { font-size: 26px; font-weight: 700; margin: 40px 0 16px; letter-spacing: -0.5px; }
.single-content h3 { font-size: 20px; font-weight: 700; margin: 32px 0 12px; }
.single-content ul, .single-content ol { margin: 0 0 24px 24px; }
.single-content li { font-size: 17px; line-height: 1.8; margin-bottom: 8px; }
.single-content img { border-radius: var(--radius); margin: 32px 0; }
.single-content blockquote {
  border-left: 4px solid var(--orange);
  padding: 16px 24px;
  margin: 32px 0;
  background: rgba(242,100,25,0.06);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 18px;
  font-style: italic;
  color: #444;
}

.single-nav {
  border-top: 1px solid var(--border);
  padding: 40px 0 80px;
}
.single-nav-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.single-nav a {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s;
}
.single-nav a:hover { color: var(--orange); }
.single-nav .nav-label {
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}

/* ── PORTFOLIO PAGE ── */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding-bottom: 80px;
}
@media (max-width: 900px) { .portfolio-grid { grid-template-columns: 1fr 1fr; gap: 10px; } }
@media (max-width: 500px)  { .portfolio-grid { grid-template-columns: 1fr; } }

.portfolio-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: #ccc;
  cursor: pointer;
}
.portfolio-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.portfolio-item:hover img { transform: scale(1.05); }
.portfolio-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
  display: flex; align-items: flex-end; padding: 20px;
}
.portfolio-item:hover .portfolio-overlay { opacity: 1; }
.portfolio-overlay span {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

/* ── CONTACT PAGE ── */
.contact-section { padding: 80px 0; }
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}
.contact-info h2 { font-size: 36px; font-weight: 900; letter-spacing: -1px; margin-bottom: 16px; }
.contact-info h2 span { color: var(--orange); }
.contact-info p { font-size: 16px; color: var(--text-muted); line-height: 1.7; margin-bottom: 32px; }
.contact-photo {
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 32px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}
.contact-photo img { width: 100%; object-fit: cover; }
.contact-social { display: flex; gap: 12px; flex-wrap: wrap; }
.contact-social a {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 18px;
  border-radius: 50px;
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  transition: background 0.2s, color 0.2s;
}
.contact-social a:hover { background: var(--orange); color: #fff; }

.contact-form-wrap {
  background: var(--surface);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.07);
}
.contact-form-wrap h3 { font-size: 22px; font-weight: 700; margin-bottom: 28px; }
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: var(--text);
  background: var(--bg);
  transition: border-color 0.2s;
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--orange); }
.form-group textarea { height: 140px; resize: vertical; }
.form-submit { margin-top: 8px; }
.form-submit .btn { width: 100%; text-align: center; justify-content: center; }

@media (max-width: 900px) {
  .contact-inner { grid-template-columns: 1fr; gap: 40px; }
}

/* ── PRIVACY TERMS ── */
.privacy-section { padding: 80px 0; }
.tab-buttons { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 32px; }
.tab-btn {
  padding: 12px 28px;
  border: none; border-radius: 50px;
  font-family: 'Inter', sans-serif;
  font-size: 15px; font-weight: 600;
  cursor: pointer;
  background: var(--surface);
  color: var(--text);
  transition: background 0.2s, color 0.2s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.tab-btn:hover { background: var(--orange); color: #fff; }
.tab-btn.active { background: var(--orange); color: #fff; }
.tab-panel { display: none; background: var(--surface); border-radius: var(--radius); padding: 48px 52px; box-shadow: 0 2px 16px rgba(0,0,0,0.06); animation: fadeIn 0.25s ease; }
.tab-panel.active { display: block; }
@keyframes fadeIn { from { opacity:0; transform: translateY(8px); } to { opacity:1; transform: translateY(0); } }
.tab-panel h2 { font-size: 28px; font-weight: 900; margin-bottom: 32px; letter-spacing: -0.5px; }
.tab-panel h2 span { color: var(--orange); }
.tab-panel h3 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--orange); margin-top: 32px; margin-bottom: 10px; }
.tab-panel p { font-size: 15px; line-height: 1.75; color: #333; margin-bottom: 12px; }
.tab-panel ul { list-style: none; margin-bottom: 12px; }
.tab-panel ul li { font-size: 15px; line-height: 1.75; color: #333; padding-left: 20px; position: relative; margin-bottom: 6px; }
.tab-panel ul li::before { content: "–"; position: absolute; left: 0; color: var(--orange); font-weight: 700; }
.tab-panel a { color: var(--orange); }
.meta-note { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border); font-size: 13px; color: var(--text-muted); line-height: 1.6; }
@media (max-width: 768px) { .tab-panel { padding: 28px 20px; } }

/* ── PAGINATION ── */
.pagination { display: flex; gap: 8px; justify-content: center; padding: 0 0 60px; flex-wrap: wrap; }
.pagination a, .pagination span {
  padding: 10px 18px; border-radius: 8px;
  font-size: 14px; font-weight: 600;
  background: var(--surface); color: var(--text);
  text-decoration: none;
  box-shadow: 0 1px 4px rgba(0,0,0,0.07);
  transition: background 0.2s, color 0.2s;
}
.pagination .current, .pagination a:hover { background: var(--orange); color: #fff; }

/* ── ELEMENTOR OVERRIDES ── */
.elementor-page .site-header,
.elementor-page .site-footer { display: flex !important; }
