/* ═══════════════════════════════════════════════
   Slow Croatia — Main Stylesheet
   ═══════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --sage:        #7D9B76;
  --sage-light:  #B5CBAF;
  --sage-pale:   #EEF3EC;
  --stone:       #F7F5F2;
  --ink:         #1C1C1A;
  --ink-soft:    #4A4A46;
  --ink-muted:   #8A8A84;
  --white:       #FFFFFF;
  --serif:       'Cormorant Garamond', Georgia, serif;
  --sans:        'DM Sans', sans-serif;
  --nav-h:       80px;
}

html { scroll-behavior: smooth; }
body { font-family: var(--sans); background: var(--stone); color: var(--ink); font-size: 19px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
body.nav-open { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }

/* ── NAV ── */
#main-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.4rem 3rem;
  background: rgba(247,245,242,0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(125,155,118,0.15);
  transition: padding .3s;
}
#main-nav.scrolled { padding: 1rem 3rem; }
.nav-logo { font-family: var(--serif); font-size: 1.45rem; font-weight: 400; letter-spacing: .04em; color: var(--ink); text-decoration: none; white-space: nowrap; }
.nav-logo span { color: var(--sage); }
.nav-links { display: flex; gap: 1.6rem; list-style: none; align-items: center; }
.nav-links a { font-size: .85rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); text-decoration: none; transition: color .2s; white-space: nowrap; }
.nav-links a:hover { color: var(--sage); }
.nav-cta { background: var(--sage); color: var(--white) !important; padding: .5rem 1.1rem; border-radius: 2px; transition: background .2s !important; }
.nav-cta:hover { background: #5e7a58 !important; }
.lang-switcher { display: flex; gap: .4rem; }
.lang-btn { font-size: .68rem; font-weight: 500; letter-spacing: .1em; padding: .3rem .6rem; border-radius: 2px; text-decoration: none; color: var(--ink-muted); transition: color .2s, background .2s; }
.lang-btn:hover, .lang-btn.active { color: var(--sage); background: var(--sage-pale); }
.nav-hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: .3rem; }
.nav-hamburger span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: .3s; }
body.nav-open .nav-hamburger span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
body.nav-open .nav-hamburger span:nth-child(2) { opacity: 0; }
body.nav-open .nav-hamburger span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }
.mobile-menu { display: none; position: fixed; inset: 0; z-index: 150; background: var(--stone); padding: calc(var(--nav-h) + 2rem) 2rem 2rem; flex-direction: column; overflow-y: auto; }
body.nav-open .mobile-menu { display: flex; }
.mobile-menu ul { list-style: none; display: flex; flex-direction: column; gap: 1.2rem; }
.mobile-menu a { font-family: var(--serif); font-size: 2rem; font-weight: 300; color: var(--ink); text-decoration: none; }
.mobile-menu a:hover { color: var(--sage); }

/* ── LAYOUT ── */
.page-wrap { padding-top: var(--nav-h); }

/* ── SHARED SECTION ── */
section { padding: 7rem 5rem; }
.section-label { font-size: .72rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--sage); margin-bottom: 1rem; }
.section-title { font-family: var(--serif); font-size: clamp(2.2rem, 4vw, 4rem); font-weight: 300; line-height: 1.15; color: var(--ink); margin-bottom: 1.4rem; }
.section-title em { font-style: italic; color: var(--sage); }

/* ── BUTTONS ── */
.btn-primary { background: var(--ink); color: var(--white); padding: .9rem 2.2rem; font-family: var(--sans); font-size: .8rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; border-radius: 2px; display: inline-block; transition: background .2s, transform .2s; }
.btn-primary:hover { background: var(--sage); transform: translateY(-1px); }
.btn-secondary { font-size: .82rem; color: var(--ink-soft); text-decoration: none; display: inline-flex; align-items: center; gap: .5rem; transition: color .2s, gap .2s; }
.btn-secondary::after { content: '→'; }
.btn-secondary:hover { color: var(--sage); gap: .8rem; }
.btn-light { background: transparent; color: var(--white); border: 1px solid rgba(255,255,255,.3); padding: .9rem 2.2rem; font-family: var(--sans); font-size: .78rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; border-radius: 2px; display: inline-block; transition: background .2s, border-color .2s; }
.btn-light:hover { background: var(--sage); border-color: var(--sage); }

/* ── HERO (full-width with overlay box) ── */
.hero.hero-fullwidth {
  display: block; position: relative; width: 100%;
  height: 90vh; min-height: 500px; max-height: 820px;
  overflow: hidden; padding: 0;
}
.hero-fullwidth .hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-fullwidth .hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.hero-fullwidth::after { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,.22); z-index: 1; }

.hero-overlay-box {
  position: absolute; z-index: 2;
  top: 50%; right: 6%; transform: translateY(-50%);
  width: min(460px, 88%);
  background: rgba(247,245,242,.9);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.65);
  border-radius: 3px; padding: 2.4rem 2.2rem;
  box-shadow: 0 12px 48px rgba(0,0,0,.18);
  animation: fadeUp .9s ease both;
}
.hero-overlay-box .hero-eyebrow { font-size: .72rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--sage); margin-bottom: 1.2rem; display: flex; align-items: center; gap: .8rem; }
.hero-overlay-box .hero-eyebrow::before { content: ''; display: block; width: 2rem; height: 1px; background: var(--sage); }
.hero-overlay-box h1 { font-family: var(--serif); font-size: clamp(2rem, 3.2vw, 4rem); font-weight: 300; line-height: 1.1; color: var(--ink); margin-bottom: 1.2rem; }
.hero-overlay-box h1 em { font-style: italic; color: var(--sage); }
.hero-overlay-box .hero-desc { font-size: .95rem; color: var(--ink-soft); line-height: 1.75; margin-bottom: 1.8rem; }
.hero-overlay-box .hero-actions { display: flex; gap: .85rem; align-items: center; flex-wrap: wrap; }

/* ── ABOUT ── */
.about { background: var(--white); display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.about-text p { color: var(--ink-soft); line-height: 1.8; margin-bottom: 1.2rem; font-size: .97rem; }
.about-visual { position: relative; }
.about-visual img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 2px; }
.about-placeholder { width:100%; aspect-ratio:4/5; background: linear-gradient(160deg,#B5CBAF,#7D9B76,#4a6e43); border-radius:2px; display:flex; align-items:center; justify-content:center; color:rgba(255,255,255,.35); font-size:.7rem; letter-spacing:.15em; text-transform:uppercase; }

/* ── CATEGORIES ── */
.categories { background: var(--stone); }
.categories-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 3.5rem; gap: 2rem; }
.categories-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.cat-card { position: relative; aspect-ratio: 3/4; overflow: hidden; border-radius: 2px; cursor: pointer; background: var(--sage-pale); text-decoration: none; display: block; }
.cat-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; filter: brightness(.85); }
.cat-card:hover img { transform: scale(1.06); }
.cat-placeholder { width:100%; height:100%; }
.cat-card-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(28,28,26,.75) 0%, transparent 60%); }
.cat-card-content { position: absolute; bottom: 0; left: 0; right: 0; padding: 1.8rem 1.5rem; }
.cat-card-title { font-family: var(--serif); font-size: 1.5rem; font-weight: 300; color: var(--white); line-height: 1.2; }
.cat-card-arrow { position: absolute; top: 1.2rem; right: 1.2rem; width: 2rem; height: 2rem; border: 1px solid rgba(255,255,255,.4); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--white); font-size: .8rem; opacity: 0; transition: opacity .3s; }
.cat-card:hover .cat-card-arrow { opacity: 1; }

/* ── POSTS ── */
.posts { background: var(--white); }
.posts-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 3.5rem; gap: 2rem; }
.posts-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 2.5rem; }
.post-card { text-decoration: none; color: inherit; display: block; }
.post-card-img { aspect-ratio: 16/10; overflow: hidden; border-radius: 2px; margin-bottom: 1.2rem; background: var(--sage-pale); }
.post-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.post-card:hover .post-card-img img { transform: scale(1.04); }
.post-card-img.tall { aspect-ratio: 3/4; }
.post-placeholder { width:100%; height:100%; }
.post-meta { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--sage); margin-bottom: .6rem; }
.post-card h3 { font-family: var(--serif); font-weight: 400; font-size: 1.35rem; line-height: 1.3; color: var(--ink); margin-bottom: .7rem; transition: color .2s; }
.post-card:hover h3 { color: var(--sage); }
.post-card p { font-size: .88rem; color: var(--ink-muted); line-height: 1.7; }
.post-card-featured h3 { font-size: 1.9rem; }
.post-side-col { display: flex; flex-direction: column; gap: 2rem; }

/* ── PHILOSOPHY ── */
.philosophy { background: var(--ink); text-align: center; padding: 8rem 5rem; }
.philosophy .section-label { color: var(--sage-light); }
.philosophy-quote { font-family: var(--serif); font-size: clamp(1.8rem, 3.5vw, 3.2rem); font-weight: 300; font-style: italic; color: var(--white); max-width: 800px; margin: 0 auto 2rem; line-height: 1.4; }
.philosophy-sub { font-size: .9rem; color: var(--ink-muted); max-width: 500px; margin: 0 auto 3rem; line-height: 1.8; }

/* ── CONTACT ── */
.contact { background: var(--sage-pale); display: grid; grid-template-columns: 1fr 1fr; gap: 6rem; align-items: start; }
.contact-info p { color: var(--ink-soft); line-height: 1.8; margin-bottom: 2rem; font-size: .97rem; }
.contact-details { display: flex; flex-direction: column; gap: .8rem; }
.contact-details a { font-size: .85rem; color: var(--sage); text-decoration: none; display: flex; align-items: center; gap: .6rem; transition: gap .2s; }
.contact-details a:hover { gap: .9rem; }
.contact-form { display: flex; flex-direction: column; gap: 1.2rem; }
.form-group { display: flex; flex-direction: column; gap: .4rem; }
.form-group label { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-muted); }
.form-group input, .form-group textarea { border: 1px solid rgba(125,155,118,.3); background: var(--white); padding: .9rem 1.1rem; font-family: var(--sans); font-size: .93rem; color: var(--ink); border-radius: 2px; outline: none; transition: border-color .2s; resize: vertical; }
.form-group input:focus, .form-group textarea:focus { border-color: var(--sage); }
.form-group textarea { min-height: 130px; }
.btn-form { background: var(--sage); color: var(--white); border: none; padding: 1rem 2.2rem; font-family: var(--sans); font-size: .8rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; border-radius: 2px; cursor: pointer; transition: background .2s, transform .2s; align-self: flex-start; }
.btn-form:hover { background: #5e7a58; transform: translateY(-1px); }
.form-notice { padding: 1rem 1.4rem; border-radius: 2px; font-size: .88rem; margin-top: .5rem; }
.form-notice.success { background: var(--sage-pale); color: var(--sage); border: 1px solid var(--sage-light); }
.form-notice.error   { background: #fdf0ef; color: #c0392b; border: 1px solid #f5c6c2; }

/* ── FOOTER ── */
footer { background: var(--ink); padding: 4rem 5rem; }
.footer-inner { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand .nav-logo { color: var(--white); font-size: 1.3rem; }
.footer-brand p { font-size: .85rem; color: var(--ink-muted); margin-top: 1rem; line-height: 1.7; max-width: 240px; }
.footer-col h4 { font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 1.2rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: .65rem; }
.footer-col a { font-size: .86rem; color: rgba(255,255,255,.55); text-decoration: none; transition: color .2s; }
.footer-col a:hover { color: var(--sage-light); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.07); padding-top: 1.5rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.footer-bottom p { font-size: .75rem; color: var(--ink-muted); }
.social-links { display: flex; gap: 1.2rem; }
.social-links a { font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-muted); text-decoration: none; transition: color .2s; }
.social-links a:hover { color: var(--sage-light); }

/* ── INTERIOR PAGES ── */
.page-hero { padding: 6rem 5rem 4rem; background: var(--white); border-bottom: 1px solid rgba(125,155,118,.12); }
.page-hero h1 { font-family: var(--serif); font-size: clamp(2.5rem, 4vw, 4rem); font-weight: 300; margin-top: 1rem; }
.page-hero h1 em { font-style: italic; color: var(--sage); }
.page-content { padding: 5rem; background: var(--stone); }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }

/* ── 404 ── */
.not-found { min-height: 70vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 4rem 2rem; }
.not-found h1 { font-family: var(--serif); font-size: 8rem; font-weight: 300; color: var(--sage-light); line-height: 1; margin-bottom: 1rem; }
.not-found h2 { font-family: var(--serif); font-size: 2rem; font-weight: 300; margin-bottom: 1rem; }
.not-found p { color: var(--ink-muted); max-width: 400px; margin: 0 auto 2rem; }

/* ── REVEAL ── */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
  .nav-links { gap: 1rem; }
  .nav-links li:nth-child(n+4):not(:last-child) { display: none; }
}
@media (max-width: 900px) {
  #main-nav { padding: 1.2rem 1.5rem; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  section { padding: 5rem 1.5rem; }
  .hero.hero-fullwidth { height: 80vw; min-height: 380px; max-height: 600px; }
  .hero-overlay-box { top: auto; bottom: 1.5rem; right: 50%; transform: translateX(50%); width: 90%; padding: 1.6rem 1.4rem; }
  .hero-overlay-box h1 { font-size: clamp(1.6rem, 5vw, 2.2rem); }
  .about, .contact { grid-template-columns: 1fr; gap: 3rem; }
  .categories-grid { grid-template-columns: 1fr 1fr; }
  .posts-grid { grid-template-columns: 1fr; }
  .post-grid { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
  footer { padding: 3rem 1.5rem; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
  .philosophy { padding: 5rem 1.5rem; }
  .page-hero { padding: 5rem 1.5rem 3rem; }
  .page-content { padding: 3rem 1.5rem; }
  .categories-header, .posts-header { flex-direction: column; align-items: flex-start; gap: 1.2rem; }
}
@media (max-width: 600px) {
  .hero.hero-fullwidth { height: 100vw; min-height: 320px; }
  .hero-overlay-box { width: 94%; padding: 1.2rem 1rem; }
  .categories-grid { grid-template-columns: 1fr; }
  .post-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
}
