/*
Theme Name:  MILCH & MIEL
Description: MILCH & MIEL — European Travel Publication. Standalone custom theme.
Author:      MILCH & MIEL
Version:     1.0.0
Text Domain: milch-miel
*/

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400;1,600&family=Raleway:wght@300;400;500;600&display=swap');

:root {
  --black:      #0a0a0a;
  --white:      #ffffff;
  --off-white:  #f7f7f7;
  --light-gray: #e8e8e8;
  --mid-gray:   #999999;
  --dark-gray:  #444444;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-ui:      'Raleway', sans-serif;
  --max-width:    1280px;
  --ease:         cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }

body {
  background: var(--white) !important;
  color: var(--black) !important;
  font-family: var(--font-ui);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--black); text-decoration: none; transition: opacity 0.2s ease; }
a:hover { opacity: 0.55; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
p { margin-bottom: 1.2em; }

/* ── HEADER ─────────────────────────────────────────────────── */
#site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--light-gray);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo img { height: 200px; width: auto; }

.nav-menu { display: flex; align-items: center; gap: 40px; }
.nav-menu > li { position: relative; }

.nav-menu > li > a {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--black);
}

.sub-menu {
  position: absolute;
  top: calc(100% + 20px);
  left: -20px;
  background: var(--white);
  border: 1px solid var(--light-gray);
  border-top: 2px solid var(--black);
  min-width: 180px;
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: all 0.2s var(--ease);
  box-shadow: 0 8px 24px rgba(0,0,0,0.07);
}

.nav-menu > li:hover .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }

.sub-menu li a {
  display: block;
  padding: 10px 24px;
  font-family: var(--font-ui);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dark-gray);
  transition: all 0.15s ease;
}

.sub-menu li a:hover { color: var(--black); padding-left: 30px; opacity: 1; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span { display: block; width: 22px; height: 1px; background: var(--black); }

/* ── HERO SLIDER ─────────────────────────────────────────────── */
#hero-slider {
  position: relative;
  width: 100%;
  height: clamp(460px, 65vh, 760px);
  overflow: hidden;
  background: var(--black);
}

.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s var(--ease); pointer-events: none; }
.hero-slide.active { opacity: 1; pointer-events: auto; }

.hero-slide img {
  width: 100%; height: 100%; object-fit: cover; opacity: 0.7;
  transform: scale(1.04); transition: transform 8s var(--ease);
}

.hero-slide.active img { transform: scale(1); }

.hero-slide::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.15) 65%, transparent 100%);
}

.hero-slide-content { position: absolute; bottom: 15%; left: 8%; z-index: 2; max-width: 520px; }

.slide-cat {
  font-family: var(--font-ui); font-size: 0.63rem; font-weight: 600;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: rgba(255,255,255,0.65); margin-bottom: 16px;
  display: flex; align-items: center; gap: 12px;
}

.slide-cat::before { content: ''; display: inline-block; width: 28px; height: 1px; background: rgba(255,255,255,0.45); }

.hero-slide-content h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.6rem);
  font-weight: 300; font-style: italic;
  color: var(--white); line-height: 1.1; margin-bottom: 28px;
}

.btn-read {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-ui); font-size: 0.63rem; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--white); border: 1px solid rgba(255,255,255,0.45);
  padding: 12px 24px; transition: all 0.25s ease;
}

.btn-read:hover { background: var(--white); color: var(--black); border-color: var(--white); opacity: 1; }

.slider-controls { position: absolute; bottom: 36px; right: 8%; z-index: 3; display: flex; gap: 8px; }

.slider-arrow {
  width: 42px; height: 42px;
  border: 1px solid rgba(255,255,255,0.3);
  background: transparent; color: var(--white);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 1rem; transition: all 0.2s ease;
}

.slider-arrow:hover { background: var(--white); color: var(--black); border-color: var(--white); }

.slider-dots { position: absolute; bottom: 48px; left: 8%; z-index: 3; display: flex; gap: 8px; }

.slider-dot {
  width: 18px; height: 1px; background: rgba(255,255,255,0.3);
  cursor: pointer; border: none; padding: 0; transition: all 0.3s ease;
}

.slider-dot.active { width: 32px; background: var(--white); }

.slider-progress { position: absolute; bottom: 0; left: 0; height: 2px; background: var(--white); z-index: 4; }

/* ── COUNTRY SECTIONS ────────────────────────────────────────── */
.country-section { padding: 72px 0 60px; border-top: 1px solid var(--light-gray); }

.section-header {
  max-width: var(--max-width); margin: 0 auto 40px; padding: 0 40px;
  display: flex; align-items: flex-end; justify-content: space-between;
}

.section-label {
  font-family: var(--font-ui); font-size: 0.62rem; font-weight: 600;
  letter-spacing: 0.25em; text-transform: uppercase; color: var(--mid-gray);
  display: block; margin-bottom: 8px;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 300; font-style: italic; color: var(--black);
}

.section-header-right { display: flex; align-items: center; gap: 12px; }

.view-all-link {
  font-family: var(--font-ui); font-size: 0.62rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--mid-gray);
  border-bottom: 1px solid transparent;
}

.view-all-link:hover { color: var(--black); border-color: var(--black); opacity: 1; }

.grid-arrows { display: flex; gap: 6px; }

.grid-arrow {
  width: 36px; height: 36px; border: 1px solid var(--light-gray);
  background: transparent; color: var(--dark-gray);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 0.85rem; transition: all 0.2s ease;
}

.grid-arrow:hover { border-color: var(--black); color: var(--black); }
.grid-arrow:disabled { opacity: 0.2; cursor: not-allowed; }

.country-grid-wrapper { max-width: var(--max-width); margin: 0 auto; padding: 0 40px; overflow: hidden; }
.country-grid-track { display: flex; gap: 24px; transition: transform 0.5s var(--ease); }

/* ── POST CARD ───────────────────────────────────────────────── */
.post-card { flex: 0 0 calc(33.333% - 16px); }

.post-card-thumb { position: relative; overflow: hidden; aspect-ratio: 4/3; background: var(--off-white); }

.post-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.post-card:hover .post-card-thumb img { transform: scale(1.04); }

.card-category {
  position: absolute; top: 14px; left: 14px;
  background: var(--black); color: var(--white);
  font-family: var(--font-ui); font-size: 0.58rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase; padding: 4px 10px;
}

.post-card-body { padding: 18px 0; }

.post-card-meta { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; }
.post-card-meta span { font-family: var(--font-ui); font-size: 0.6rem; color: var(--mid-gray); letter-spacing: 0.06em; }
.post-card-meta .dot { width: 2px; height: 2px; border-radius: 50%; background: var(--light-gray); }

.post-card h3 { font-family: var(--font-display); font-size: 1.2rem; font-weight: 400; font-style: italic; line-height: 1.3; margin-bottom: 10px; }
.post-card h3 a { color: var(--black); }
.post-card h3 a:hover { opacity: 0.55; }

.card-excerpt { font-size: 0.84rem; color: var(--mid-gray); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ── FOOTER ──────────────────────────────────────────────────── */
#site-footer { background: var(--black); color: var(--white); margin-top: 80px; }

#main-content {
  min-height: 60vh;
}

.footer-inner {
  max-width: var(--max-width); margin: 0 auto; padding: 72px 40px 56px;
  display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 60px;
}

.footer-logo img { height: 40px; width: auto; filter: invert(1); margin-bottom: 20px; }

.footer-tagline { font-family: var(--font-display); font-style: italic; font-size: 1rem; color: rgba(255,255,255,0.45); line-height: 1.6; margin-bottom: 28px; }

.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 34px; height: 34px; border: 1px solid rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-ui); font-size: 0.62rem; font-weight: 600;
  color: rgba(255,255,255,0.45); transition: all 0.2s ease;
}
.footer-social a:hover { border-color: var(--white); color: var(--white); opacity: 1; }

.footer-col h4 {
  font-family: var(--font-ui); font-size: 0.6rem; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase; color: rgba(255,255,255,0.35);
  margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-family: var(--font-ui); font-size: 0.85rem; color: rgba(255,255,255,0.5); }
.footer-col ul li a:hover { color: var(--white); opacity: 1; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08); padding: 20px 40px;
  max-width: var(--max-width); margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
}

.footer-bottom p, .footer-bottom a { font-family: var(--font-ui); font-size: 0.6rem; letter-spacing: 0.06em; color: rgba(255,255,255,0.3); }
.footer-bottom a:hover { color: var(--white); opacity: 1; }
.footer-bottom-links { display: flex; gap: 20px; }

/* ── ARCHIVE ─────────────────────────────────────────────────── */
.archive-page { padding: 0 0 100px; }

.archive-hero { background: var(--black); padding: 80px 40px; text-align: center; margin-bottom: 72px; }
.archive-hero h1 { font-family: var(--font-display); font-size: clamp(3rem, 6vw, 5rem); font-weight: 300; font-style: italic; color: var(--white); margin-bottom: 12px; }
.archive-hero .archive-desc { font-family: var(--font-display); font-style: italic; font-size: 1rem; color: rgba(255,255,255,0.5); }

.archive-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; max-width: var(--max-width); margin: 0 auto; padding: 0 40px; }

.pagination-wrap { margin-top: 64px; display: flex; justify-content: center; gap: 6px; }
.pagination-wrap .page-numbers { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--light-gray); font-family: var(--font-ui); font-size: 0.75rem; color: var(--dark-gray); transition: all 0.2s ease; }
.pagination-wrap .page-numbers:hover,
.pagination-wrap .page-numbers.current { background: var(--black); border-color: var(--black); color: var(--white); opacity: 1; }

/* ── SINGLE POST ─────────────────────────────────────────────── */
.single-post-hero { width: 100%; height: clamp(380px, 55vh, 600px); position: relative; overflow: hidden; background: var(--black); }
.single-post-hero img { width: 100%; height: 100%; object-fit: cover; opacity: 0.65; }
.single-post-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 30%, rgba(0,0,0,0.65) 100%); }

.single-post-header { position: absolute; bottom: 48px; left: 50%; transform: translateX(-50%); width: 100%; max-width: 760px; padding: 0 32px; z-index: 2; text-align: center; }
.single-post-header .section-label { display: block; margin-bottom: 14px; color: rgba(255,255,255,0.5); }
.single-post-header h1 { font-family: var(--font-display); font-size: clamp(2rem, 4.5vw, 3.6rem); font-weight: 300; font-style: italic; color: var(--white); }

.single-post-content { max-width: 760px; margin: 0 auto; padding: 64px 32px 100px; }

.post-meta-bar { display: flex; justify-content: center; gap: 16px; align-items: center; margin-bottom: 48px; padding-bottom: 32px; border-bottom: 1px solid var(--light-gray); }
.post-meta-bar span { font-family: var(--font-ui); font-size: 0.63rem; letter-spacing: 0.1em; color: var(--mid-gray); }
.post-meta-bar .sep { width: 2px; height: 2px; border-radius: 50%; background: var(--light-gray); }

.entry-content { font-family: var(--font-display); font-size: 1.15rem; line-height: 1.9; }
.entry-content p { margin-bottom: 1.6em; }
.entry-content h2 { font-weight: 400; font-style: italic; margin: 2em 0 0.75em; }
.entry-content h3 { margin: 1.6em 0 0.6em; }
.entry-content img { width: 100%; margin: 2em 0; }
.entry-content blockquote { border-left: 2px solid var(--black); padding: 16px 28px; margin: 2em 0; font-style: italic; font-size: 1.2rem; color: var(--dark-gray); }

.post-nav { max-width: 760px; margin: 0 auto 80px; padding: 32px 32px 0; border-top: 1px solid var(--light-gray); display: flex; justify-content: space-between; }
.post-nav a { font-family: var(--font-ui); font-size: 0.63rem; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; color: var(--dark-gray); }
.post-nav a:hover { color: var(--black); opacity: 1; }

/* ── 404 ─────────────────────────────────────────────────────── */
.error-page { min-height: 60vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 80px 32px; gap: 20px; }
.error-num { font-family: var(--font-display); font-size: clamp(6rem, 15vw, 12rem); font-weight: 300; font-style: italic; color: var(--light-gray); line-height: 1; }
.error-page h2 { font-family: var(--font-display); font-weight: 300; font-style: italic; font-size: 1.8rem; }
.btn-solid { display: inline-block; font-family: var(--font-ui); font-size: 0.63rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; background: var(--black); color: var(--white); padding: 14px 28px; }
.btn-solid:hover { opacity: 0.7; color: var(--white); }

/* ── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .post-card { flex: 0 0 calc(50% - 12px); }
  .archive-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .header-inner { padding: 0 20px; }
  #site-nav { display: none; }
  #site-nav.open { display: block; position: absolute; top: 80px; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--light-gray); padding: 16px 0; }
  .nav-menu { flex-direction: column; align-items: flex-start; gap: 0; }
  .nav-menu > li > a { display: block; padding: 12px 24px; }
  .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; border: none; border-left: 2px solid var(--black); margin-left: 24px; box-shadow: none; display: none; }
  .sub-menu.open { display: block; }
  .nav-toggle { display: flex; }
  #hero-slider { height: 70vw; min-height: 320px; }
  .hero-slide-content { left: 6%; max-width: 88%; }
  .post-card { flex: 0 0 80vw; }
  .section-header, .country-grid-wrapper, .archive-grid { padding-left: 20px; padding-right: 20px; }
  .archive-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 36px; padding: 40px 20px; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; padding: 20px; }
}
