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

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

:root {
  --cream:            #F7F3EC;
  --parchment:        #EDE5D8;
  --sand:             #D6C9B5;
  --clay:             #B8956A;
  --bark:             #7A5C3E;
  --soil:             #3D2E1E;
  --sage:             #8BA888;
  --sage-light:       #C4D4C2;
  --sage-faint:       #EBF1EA;
  --terracotta:       #C47A5A;
  --terracotta-light: #E8C5B0;
  --warm-white:       #FDFBF8;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--soil);
  font-size: 20px;
  line-height: 1.75;
}

/* NAV */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 5vw;
  background: rgba(247, 243, 236, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--parchment);
}

.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--bark);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 2.2rem;
  list-style: none;
  align-items: center;
}

.nav-links > li > a {
  font-size: 0.8rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--soil);
  text-decoration: none;
  opacity: 0.65;
  transition: opacity 0.2s;
}

.nav-links > li > a:hover { opacity: 1; }

/* Dropdown */
.nav-dropdown { position: relative; }

.nav-dropdown > a::after {
  content: ' ↓';
  font-size: 0.65rem;
  opacity: 0.6;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 0.8rem);
  left: 50%;
  transform: translateX(-50%);
  background: var(--warm-white);
  border: 1px solid var(--parchment);
  border-radius: 14px;
  padding: 0.5rem;
  min-width: 240px;
  display: none;
  box-shadow: 0 12px 40px rgba(61,46,30,0.11);
  z-index: 200;
}

.nav-dropdown.open .nav-dropdown-menu { display: block; }

.nav-dropdown-menu a {
  display: block;
  padding: 0.7rem 1rem;
  font-size: 0.83rem;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--soil);
  text-decoration: none;
  border-radius: 9px;
  opacity: 1;
  transition: background 0.15s;
  line-height: 1.4;
}

.nav-dropdown-menu a:hover { background: var(--sage-faint); color: var(--bark); }

.nav-dropdown-menu .menu-duration {
  display: block;
  font-size: 0.72rem;
  color: var(--terracotta);
  margin-top: 0.1rem;
}

.nav-cta {
  background: var(--sage) !important;
  color: white !important;
  opacity: 1 !important;
  padding: 0.5rem 1.3rem;
  border-radius: 100px;
  font-weight: 500 !important;
  font-size: 0.8rem !important;
  transition: background 0.2s !important;
}

.nav-cta:hover { background: var(--bark) !important; opacity: 1 !important; }

/* PAGE HERO */
.page-hero {
  padding: 10rem 5vw 5rem;
  background: var(--warm-white);
  border-bottom: 1px solid var(--parchment);
}

.page-hero-inner {
  max-width: 760px;
}

.page-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.77rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage);
  font-weight: 500;
  margin-bottom: 1.25rem;
}

.page-eyebrow::before {
  content: '';
  display: block;
  width: 24px; height: 1px;
  background: var(--sage);
}

.page-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--soil);
  margin-bottom: 1.25rem;
}

.page-title em { font-style: normal; color: inherit; }

.page-lead {
  font-size: 1.15rem;
  color: var(--bark);
  opacity: 0.85;
  max-width: 580px;
  line-height: 1.82;
  margin-bottom: 2rem;
}

/* SHARED SECTION */
section { padding: 5rem 5vw; }

.section-label {
  font-size: 0.73rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terracotta);
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.75rem, 2.8vw, 2.5rem);
  font-weight: 400;
  line-height: 1.2;
  color: var(--soil);
  margin-bottom: 1.25rem;
}

.section-title em { font-style: normal; color: inherit; }

.section-body {
  font-size: 1.05rem;
  color: var(--bark);
  opacity: 0.88;
  line-height: 1.85;
}

/* BUTTONS */
.btn-primary {
  display: inline-block;
  background: var(--bark);
  color: white;
  padding: 0.9rem 2.1rem;
  border-radius: 100px;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: background 0.2s, transform 0.2s;
}

.btn-primary:hover { background: var(--soil); transform: translateY(-1px); }

.btn-ghost {
  display: inline-block;
  color: var(--bark);
  text-decoration: none;
  font-size: 0.92rem;
  border-bottom: 1px solid var(--sand);
  padding-bottom: 2px;
  transition: border-color 0.2s;
}

.btn-ghost:hover { border-color: var(--bark); }

/* CONTENT GRID */
.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4.5rem;
  align-items: start;
}

/* BENEFIT LIST */
.benefit-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-top: 1.5rem;
}

.benefit-list li {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  font-size: 1rem;
  color: var(--bark);
  line-height: 1.7;
}

.benefit-list li::before {
  content: '✦';
  color: var(--sage);
  font-size: 0.65rem;
  margin-top: 0.45rem;
  flex-shrink: 0;
}

/* DURATION BADGE */
.duration-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(196,122,90,0.08);
  color: var(--terracotta);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.45rem 1rem;
  border-radius: 100px;
  margin-top: 1.5rem;
}

/* INFO CARD */
.info-card {
  background: var(--warm-white);
  border-radius: 20px;
  padding: 2.25rem;
  border: 1px solid var(--parchment);
}

.info-card + .info-card { margin-top: 1.25rem; }

.info-card h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  color: var(--soil);
  margin-bottom: 0.6rem;
}

.info-card p, .info-card li {
  font-size: 0.98rem;
  color: var(--bark);
  opacity: 0.82;
  line-height: 1.8;
}

/* CONTACT FORM */
.contact-form-wrap {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.11);
  border-radius: 28px;
  padding: 2.75rem 3rem;
  max-width: 620px;
  margin: 0 auto;
  text-align: left;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.form-group label {
  font-size: 0.75rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}

.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  color: white;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,0.28); }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--sage); }

.form-group select option { background: var(--bark); }

.form-group textarea { resize: vertical; min-height: 110px; }

.form-submit {
  width: 100%;
  background: var(--sage);
  color: white;
  border: none;
  border-radius: 100px;
  padding: 1rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  margin-top: 0.5rem;
}

.form-submit:hover { background: #6a8a67; transform: translateY(-1px); }

/* FOOTER */
footer {
  background: var(--soil);
  color: rgba(255,255,255,0.5);
  padding: 2rem 5vw;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  margin-bottom: 1.25rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-logo {
  font-family: 'Cormorant Garamond', serif;
  color: rgba(255,255,255,0.8);
  font-size: 1.1rem;
  text-decoration: none;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  font-size: 0.78rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover { color: rgba(255,255,255,0.85); }

footer small { font-size: 0.76rem; }

.footer-privacy {
  font-size: 0.76rem;
  color: rgba(255,255,255,0.35);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-privacy:hover { color: rgba(255,255,255,0.7); }

/* CUSTOM SELECT — light variant (used in kontaktai.php) */
.cselect { position: relative; }
.cselect-btn {
  width: 100%;
  border: 1px solid var(--sand);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  background: var(--warm-white);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  gap: 0.5rem;
  transition: border-color 0.2s;
  color: var(--bark);
  opacity: 0.55;
}
.cselect-btn.has-value { color: var(--soil); opacity: 1; }
.cselect.open .cselect-btn,
.cselect-btn:focus { border-color: var(--sage); outline: none; opacity: 1; }
.cselect-arrow { transition: transform 0.2s; flex-shrink: 0; font-size: 0.8rem; }
.cselect.open .cselect-arrow { transform: rotate(180deg); }
.cselect-list {
  position: absolute;
  top: calc(100% + 4px);
  left: 0; right: 0;
  background: var(--warm-white);
  border: 1px solid var(--sand);
  border-radius: 10px;
  padding: 0.35rem;
  list-style: none;
  display: none;
  z-index: 300;
  box-shadow: 0 8px 32px rgba(61,46,30,0.1);
}
.cselect.open .cselect-list { display: block; }
.cselect-list li {
  padding: 0.65rem 0.9rem;
  border-radius: 7px;
  cursor: pointer;
  font-size: 0.92rem;
  color: var(--bark);
  transition: background 0.15s;
}
.cselect-list li:hover { background: var(--sage-faint); color: var(--soil); }
.cselect-list li.cselect-on { background: var(--sage-faint); color: var(--soil); font-weight: 500; }

/* HAMBURGER BUTTON (hidden on desktop) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  z-index: 200;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--soil);
  border-radius: 2px;
  transition: transform 0.28s ease, opacity 0.2s ease;
  transform-origin: center;
}

/* RESPONSIVE */
@media (max-width: 860px) {
  .content-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  body { font-size: 17px; }
  section { padding: 3.5rem 5vw; }
  .page-hero { padding: 7rem 5vw 3.5rem; }

  /* Nav stays single-row, menu drops as absolute overlay */
  nav { position: relative; }

  .nav-toggle { display: flex; }

  /* X animation */
  nav.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  nav.nav-open .nav-toggle span:nth-child(2) { opacity: 0; transform: scaleX(0); }
  nav.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* Links panel: absolute overlay below nav bar */
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    align-items: stretch;
    background: var(--cream);
    padding: 0.25rem 5vw 1.5rem;
    border-bottom: 1px solid var(--parchment);
    box-shadow: 0 8px 28px rgba(61,46,30,0.09);
  }
  nav.nav-open .nav-links {
    display: flex;
    animation: navFadeIn 0.22s ease;
  }
  @keyframes navFadeIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  .nav-links > li { border-bottom: 1px solid var(--parchment); }
  .nav-links > li:last-child { border-bottom: none; padding-bottom: 0.25rem; }

  .nav-links > li > a {
    display: block;
    padding: 0.85rem 0;
    font-size: 0.88rem;
    opacity: 1;
    letter-spacing: 0.05em;
  }

  /* Dropdown becomes flat nested list on mobile */
  .nav-dropdown-menu {
    position: static;
    transform: none;
    box-shadow: none;
    border: none;
    border-radius: 0;
    padding: 0 0 0.75rem 0.75rem;
    background: transparent;
    min-width: unset;
  }
  .nav-dropdown-menu a {
    font-size: 0.82rem;
    padding: 0.4rem 0.5rem;
    opacity: 0.75;
  }
  .nav-cta {
    display: inline-block !important;
    width: fit-content;
    margin-top: 0.75rem;
    margin-bottom: 0.5rem;
    padding: 0.6rem 1.6rem !important;
  }

  /* Footer stacks */
  .footer-top { flex-direction: column; text-align: center; }
  .footer-bottom { flex-direction: column; align-items: center; gap: 0.5rem; text-align: center; }
  .footer-links { justify-content: center; gap: 1rem; }
  .contact-form-wrap { padding: 2rem 1.5rem; }
}
