/* ============================================
   Form & Function — Shared Styles
   Brand: Kristýna Čočková | formnfunction.eu
   ============================================ */

@import url('https://fonts.cdnfonts.com/css/garet');

/* ─── Tokens ─── */
:root {
  --green:       #044427;
  --green-mid:   #255234;
  --lime:        #86A03D;
  --lime-light:  #A3C65A;
  --sand:        #C2A68C;
  --sand-dark:   #705E53;
  --brown:       #54473F;
  --brown-dark:  #2B2320;
  --cream:       #F5F1EC;
  --cream-mid:   #EDE8E1;
  --white:       #FDFCFB;
  --text:        #2B2320;
  --text-light:  #54473F;
  --font-sans:   'Garet', system-ui, sans-serif;
  --font-serif:  'Garet', system-ui, sans-serif;
  --nav-h:       72px;
}

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--cream);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* ─── Navigation ─── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  transition: background 0.35s, box-shadow 0.35s;
  display: flex;
  align-items: center;
}
.nav.scrolled {
  background: var(--white);
  box-shadow: 0 1px 0 rgba(4,68,39,0.1);
}
.nav.dark-bg {
  background: transparent;
}
.nav-inner {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
}
.nav-logo-light,
.nav-logo-dark {
  height: 18px;
  width: auto;
  display: block;
  transition: opacity 0.35s, transform 0.35s;
  position: absolute;
}
/* light logo (logo1.png) — shown on dark hero, hidden when scrolled */
.nav-logo-light { opacity: 1; transform: translateY(0); }
.nav.scrolled .nav-logo-light { opacity: 0; transform: translateY(-4px); pointer-events: none; }
/* dark logo (logo2.svg) — hidden on dark hero, shown when scrolled */
.nav-logo-dark { opacity: 0; transform: translateY(4px); pointer-events: none; }
.nav.scrolled .nav-logo-dark { opacity: 1; transform: translateY(0); pointer-events: auto; }
/* reserve space so nav doesn't collapse */
.nav-logo::after { content: ''; display: block; height: 18px; width: 120px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  flex-wrap: nowrap;
  white-space: nowrap;
}
.nav-links a {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  transition: opacity 0.2s;
  opacity: 0.85;
}
.nav-links a:hover { opacity: 1; }
.nav.scrolled .nav-links a { color: var(--brown); }
.nav.scrolled .nav-links a:hover { color: var(--green); }
.nav-links a.active { opacity: 1; }
.nav.scrolled .nav-links a.active { color: var(--green); }

/* Vertical divider between nav links and CTA */
.nav-divider-item {
  width: 1px;
  height: 20px;
  background: rgba(255,255,255,0.2);
  align-self: center;
  margin: 0 4px;
}
.nav.scrolled .nav-divider-item { background: rgba(43,35,32,0.2); }

.nav-cta {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 10px 22px;
  border-radius: 2px;
  background: var(--sand);
  color: var(--brown-dark) !important;
  opacity: 1 !important;
  transition: background 0.2s;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--lime) !important; color: var(--white) !important; }

.nav-lang {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}
.lang-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  opacity: 0.7;
  transition: opacity 0.2s;
  padding: 2px 6px;
}
.lang-btn.active { opacity: 1; }
.lang-btn:hover { opacity: 1; }
.nav.scrolled .lang-btn { color: var(--brown); }
.lang-divider { color: var(--white); opacity: 0.4; font-size: 11px; }
.nav.scrolled .lang-divider { color: var(--brown); }

/* Mobile nav toggle */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: all 0.3s;
}
.nav.scrolled .nav-hamburger span { background: var(--green); }

/* ─── Footer ─── */
.footer {
  background: var(--brown-dark);
  color: var(--cream);
  padding: 28px 40px;
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 48px;
}
.footer-brand .footer-logo-text {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 12px;
}
.footer-brand p {
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255,255,255,0.55);
  max-width: 200px;
}
.footer-col h4 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sand);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--sand); }
.footer-col p {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
}
.footer-col a.email-link {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  transition: color 0.2s;
  display: block;
  margin-bottom: 6px;
}
.footer-col a.email-link:hover { color: var(--sand); }
.footer-bottom {
  max-width: 1280px;
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p {
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.02em;
}
.footer-social {
  display: flex;
  gap: 16px;
}
.footer-social a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  font-size: 14px;
  transition: all 0.2s;
}
.footer-social a:hover {
  border-color: var(--sand);
  color: var(--sand);
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: 2px;
  border: none;
  cursor: pointer;
  transition: all 0.25s;
}
.btn-primary {
  background: var(--green);
  color: var(--white);
}
.btn-primary:hover { background: var(--green-mid); transform: translateY(-1px); }
.btn-sand {
  background: var(--sand);
  color: var(--brown-dark);
}
.btn-sand:hover { background: var(--lime); color: var(--white); transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  border: 1.5px solid currentColor;
  color: var(--green);
}
.btn-outline:hover { background: var(--green); color: var(--white); }
.btn-outline-white {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.6);
  color: var(--white);
}
.btn-outline-white:hover { background: var(--white); color: var(--green); }

/* ─── Section headings ─── */
.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--lime);
  display: block;
  margin-bottom: 12px;
}
.section-title {
  font-family: 'Garet', system-ui, sans-serif;
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 800;
  line-height: 1.15;
  color: var(--green);
  text-wrap: pretty;
}
.section-title em { font-style: normal; font-weight: 400; color: var(--sand-dark); }
.section-subtitle {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-light);
  max-width: 560px;
  margin-top: 16px;
  text-wrap: pretty;
}

/* ─── Placeholder image ─── */
.img-placeholder {
  width: 100%;
  height: 100%;
  background: var(--cream-mid);
  border: 1px dashed var(--sand);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  color: var(--sand-dark);
  font-size: 12px;
  letter-spacing: 0.05em;
  font-family: monospace;
  text-align: center;
  padding: 20px;
}
.img-placeholder svg { opacity: 0.3; }

/* ─── Accordion ─── */
.accordion-item {
  border-bottom: 1px solid rgba(4,68,39,0.12);
}
.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
  color: var(--green);
  transition: color 0.2s;
}
.accordion-trigger:hover { color: var(--lime); }
.accordion-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  border: 1.5px solid var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  margin-left: 16px;
}
.accordion-trigger.open .accordion-icon {
  background: var(--green);
  transform: rotate(45deg);
}
.accordion-trigger.open .accordion-icon svg { stroke: var(--white); }
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.accordion-content.open { max-height: 600px; }
.accordion-body {
  padding: 0 0 24px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-light);
}
.accordion-body ul {
  list-style: none;
  margin-top: 12px;
  display: grid;
  gap: 8px;
}
.accordion-body ul li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.accordion-body ul li::before {
  content: '→';
  color: var(--lime);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ─── Page hero ─── */
.page-hero {
  min-height: 420px;
  display: flex;
  align-items: flex-end;
  position: relative;
  overflow: hidden;
  padding: calc(var(--nav-h) + 60px) 40px 60px;
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  background: var(--green);
}
.page-hero-bg-img {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
  opacity: 0.3;
}
.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(4,68,39,0.85) 40%, rgba(4,68,39,0.5) 100%);
}
.page-hero-content {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
}
.page-hero-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sand);
  display: block;
  margin-bottom: 12px;
}
.page-hero h1 {
  font-family: 'Garet', sans-serif;
  font-size: clamp(40px, 6vw, 80px);
  font-weight: 800;
  color: var(--white);
  line-height: 1.05;
  max-width: 700px;
}
.page-hero h1 em {
  font-style: normal;
  font-weight: 400;
  color: var(--sand);
}
.page-hero p {
  font-size: 17px;
  color: rgba(255,255,255,0.75);
  margin-top: 16px;
  max-width: 480px;
  line-height: 1.65;
}

/* ─── Responsive ─── */
@media (max-width: 1024px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 768px) {
  .nav-inner { padding: 0 20px; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--white);
    padding: 24px 24px 32px;
    gap: 0;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
  }
  .nav-links.open li { border-bottom: 1px solid var(--cream-mid); }
  .nav-links.open a {
    display: block;
    padding: 14px 0;
    color: var(--brown) !important;
    font-size: 15px;
  }
  .nav-links.open .nav-cta {
    margin-top: 12px;
    display: inline-flex;
    background: var(--sand);
    color: var(--brown-dark) !important;
  }
  .nav-hamburger { display: flex; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .footer { padding: 48px 20px 28px; }
  .page-hero { padding: calc(var(--nav-h) + 40px) 20px 40px; }
}
