/* =========================================================
   Case din Lemn Masiv — stylesheet
   ========================================================= */

:root {
  --wood-900: #2e1c10;
  --wood-800: #3d2716;
  --wood-700: #4a2f1c;
  --wood-600: #5c3a21;
  --wood-500: #7a4f2e;
  --wood-400: #8a5a34;
  --accent: #c17f3e;
  --accent-light: #e0a866;
  --cream: #f3ead9;
  --cream-soft: #faf6ef;
  --ink: #241812;
  --ink-soft: #5a4a3d;
  --line: rgba(46, 28, 16, 0.1);
  --radius: 18px;
  --radius-sm: 10px;
  --shadow-sm: 0 4px 16px rgba(46, 28, 16, 0.08);
  --shadow-md: 0 12px 32px rgba(46, 28, 16, 0.14);
  --shadow-lg: 0 24px 60px rgba(46, 28, 16, 0.22);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --font-head: 'Fraunces', Georgia, serif;
  --font-body: 'Poppins', 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream-soft);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--wood-900);
  color: #fff;
  padding: 10px 16px;
  z-index: 999;
}
.skip-link:focus { left: 12px; top: 12px; border-radius: 8px; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--wood-900);
  margin: 0 0 .5em;
  line-height: 1.15;
  font-weight: 600;
}

p { margin: 0 0 1em; color: var(--ink-soft); }

a { color: inherit; text-decoration: none; }

.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .8em;
}
.eyebrow.center { display: block; text-align: center; }

.section-title { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
.section-title.center { text-align: center; max-width: 760px; margin-left: auto; margin-right: auto; }
.section-sub.center { text-align: center; max-width: 620px; margin: -0.5em auto 2em; }

section { padding: clamp(64px, 9vw, 120px) 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.btn-outline { border-color: var(--wood-700); color: var(--wood-900); background: transparent; }
.btn-outline:hover { background: var(--wood-900); color: #fff; transform: translateY(-3px); }
.btn-ghost { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); transform: translateY(-3px); }
.btn-sm { padding: 10px 20px; font-size: .85rem; }
.btn-lg { padding: 16px 34px; font-size: 1rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  padding: 18px 0;
  transition: background .35s var(--ease), padding .35s var(--ease), box-shadow .35s var(--ease);
}
.site-header.scrolled {
  background: rgba(250, 246, 239, .92);
  backdrop-filter: blur(10px);
  padding: 10px 0;
  box-shadow: 0 6px 24px rgba(46,28,16,.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand-logo { height: 42px; width: auto; transition: height .35s var(--ease); }
.site-header.scrolled .brand-logo { height: 36px; }

.main-nav ul {
  display: flex;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav a {
  font-size: .93rem;
  font-weight: 500;
  color: var(--wood-900);
  position: relative;
  padding: 6px 0;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width .3s var(--ease);
}
.main-nav a:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 18px; }
.header-phone { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: .92rem; color: var(--wood-900); }
.header-phone svg { color: var(--accent); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px; height: 42px;
  border-radius: 10px;
  border: none;
  background: transparent;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--wood-900);
  margin: 0 auto;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 90px;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.08);
  animation: heroZoom 22s ease-in-out infinite alternate;
}
@keyframes heroZoom {
  from { transform: scale(1.08) translateY(0); }
  to { transform: scale(1.16) translateY(-1.5%); }
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(30,18,10,.72) 0%, rgba(30,18,10,.55) 45%, rgba(20,12,7,.88) 100%);
}
.hero-particles {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(2px 2px at 10% 20%, rgba(243,234,217,.35), transparent),
    radial-gradient(2px 2px at 80% 30%, rgba(243,234,217,.25), transparent),
    radial-gradient(1.5px 1.5px at 40% 70%, rgba(243,234,217,.3), transparent),
    radial-gradient(1.5px 1.5px at 65% 85%, rgba(243,234,217,.2), transparent),
    radial-gradient(2px 2px at 90% 60%, rgba(243,234,217,.25), transparent);
  animation: floatDust 14s linear infinite;
}
@keyframes floatDust {
  0% { background-position: 0 0, 0 0, 0 0, 0 0, 0 0; }
  100% { background-position: 0 -60px, 0 -90px, 0 -40px, 0 -70px, 0 -50px; }
}
.hero-content { position: relative; z-index: 2; max-width: 760px; color: #fff; }
.hero-content .eyebrow { color: var(--accent-light); }
.hero h1 {
  color: #fff;
  font-size: clamp(2.4rem, 5.4vw, 4.4rem);
  margin-bottom: .3em;
}
.hero h1 .text-accent { color: var(--accent-light); }
.hero-sub {
  font-family: var(--font-head);
  font-style: italic;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  color: var(--cream);
  margin-bottom: .6em;
}
.hero-desc { color: rgba(243,234,217,.85); font-size: 1.05rem; max-width: 620px; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 1.6em; }

.scroll-cue {
  position: absolute;
  bottom: 34px; left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 2px solid rgba(255,255,255,.55);
  border-radius: 20px;
  z-index: 2;
}
.scroll-cue span {
  position: absolute;
  top: 8px; left: 50%;
  width: 4px; height: 8px;
  background: #fff;
  border-radius: 4px;
  transform: translateX(-50%);
  animation: cueMove 1.8s ease-in-out infinite;
}
@keyframes cueMove {
  0% { top: 8px; opacity: 1; }
  70% { top: 22px; opacity: 0; }
  100% { top: 22px; opacity: 0; }
}

/* ---------- Stats strip ---------- */
.stats-strip {
  background: linear-gradient(135deg, var(--wood-900), var(--wood-700));
  padding: 46px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-number {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  font-weight: 700;
  color: var(--accent-light);
}
.stat-label { font-size: .85rem; color: rgba(243,234,217,.85); }
.stat-label small { opacity: .75; }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 64px;
  align-items: center;
}
.about-media { position: relative; }
.about-media img { border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.about-badge {
  position: absolute;
  bottom: -22px; right: -22px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-sm);
  padding: 16px 22px;
  text-align: center;
  box-shadow: var(--shadow-md);
}
.about-badge strong { display: block; font-family: var(--font-head); font-size: 1.6rem; }
.about-badge span { font-size: .75rem; opacity: .9; }

.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.check-list li {
  position: relative;
  padding-left: 30px;
  color: var(--ink-soft);
  font-size: .96rem;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 3px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/60% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/60% no-repeat;
}

/* ---------- Services ---------- */
.services { background: var(--cream); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}
.service-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.service-media { aspect-ratio: 4/3; overflow: hidden; }
.service-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.service-card:hover .service-media img { transform: scale(1.08); }
.service-body { padding: 24px 26px 28px; }
.service-body h3 { font-size: 1.2rem; margin-bottom: .35em; }
.service-body p { margin: 0; font-size: .92rem; }

.service-card-cta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 32px;
  background: linear-gradient(135deg, var(--wood-800), var(--wood-900));
  color: #fff;
}
.service-card-cta h3 { color: #fff; }
.service-card-cta p { color: rgba(243,234,217,.8); }
.service-card-cta:hover { transform: translateY(-8px); }

/* ---------- Pricing ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 32px;
  margin-top: 48px;
  align-items: stretch;
}
.pricing-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.pricing-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.pricing-card.featured { border: 2px solid var(--accent); }
.pricing-card-image { aspect-ratio: 16/9; overflow: hidden; }
.pricing-card-image img { width: 100%; height: 100%; object-fit: cover; }
.pricing-card-body { padding: 34px; flex: 1; display: flex; flex-direction: column; }
.pricing-tag {
  display: inline-block;
  align-self: flex-start;
  background: var(--accent);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.pricing-tag-alt { background: var(--wood-700); }
.price { font-family: var(--font-head); font-size: 1.1rem; color: var(--ink-soft); margin-bottom: 18px; }
.price span { font-size: 2.6rem; font-weight: 700; color: var(--wood-900); }
.pricing-note { font-size: .92rem; }
.pricing-card .check-list { margin: 18px 0 26px; }
.pricing-card .btn { margin-top: auto; }

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 20px;
}
.gallery-item {
  border: none;
  padding: 0;
  aspect-ratio: 1/1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: zoom-in;
  position: relative;
  box-shadow: var(--shadow-sm);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.gallery-item:hover img { transform: scale(1.1); }
.gallery-item::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,.35));
  opacity: 0;
  transition: opacity .3s var(--ease);
}
.gallery-item:hover::after { opacity: 1; }

.lightbox {
  position: fixed; inset: 0;
  background: rgba(20,12,7,.92);
  display: flex; align-items: center; justify-content: center;
  padding: 40px;
  z-index: 500;
  opacity: 0; pointer-events: none;
  transition: opacity .3s var(--ease);
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox img { max-width: 90vw; max-height: 85vh; border-radius: 12px; box-shadow: var(--shadow-lg); }
.lightbox-close {
  position: absolute; top: 24px; right: 30px;
  background: none; border: none;
  color: #fff; font-size: 2.4rem;
  cursor: pointer; line-height: 1;
}

/* ---------- Advantages ---------- */
.advantages { background: var(--cream); }
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}
.advantage-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 36px 30px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.advantage-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.advantage-icon {
  width: 76px; height: 76px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
  color: #fff;
}
.advantage-card h3 { font-size: 1.15rem; }
.advantage-card p { font-size: .92rem; margin: 0; }

/* ---------- Coverage banner ---------- */
.coverage { padding: 0; }
.coverage-inner {
  background: linear-gradient(120deg, var(--wood-800), var(--wood-600));
  border-radius: var(--radius);
  padding: 40px;
  display: flex;
  align-items: center;
  gap: 20px;
  color: #fff;
  margin: 0 auto;
}
.coverage-icon { color: var(--accent-light); flex-shrink: 0; }
.coverage-inner p { margin: 0; font-family: var(--font-head); font-size: clamp(1.2rem, 2.4vw, 1.7rem); color: #fff; }
.coverage-inner p span { color: var(--accent-light); }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 60px;
}
.contact-lead { max-width: 480px; }
.contact-details { list-style: none; margin: 24px 0; padding: 0; display: grid; gap: 16px; }
.contact-details li { display: flex; align-items: center; gap: 14px; font-weight: 500; color: var(--wood-900); }
.contact-icon {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--cream);
  color: var(--accent);
  flex-shrink: 0;
}
.contact-social { display: flex; gap: 12px; margin-top: 10px; }
.social-btn {
  width: 42px; height: 42px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--wood-900);
  color: #fff;
  transition: transform .3s var(--ease), background .3s var(--ease);
}
.social-btn:hover { background: var(--accent); transform: translateY(-3px); }

.contact-form {
  background: #fff;
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow-md);
  display: grid;
  gap: 18px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { display: grid; gap: 6px; }
.form-field label { font-size: .85rem; font-weight: 600; color: var(--wood-900); }
.form-field input,
.form-field select,
.form-field textarea {
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: .95rem;
  background: var(--cream-soft);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(193,127,62,.15);
}
.form-note { font-size: .78rem; color: var(--ink-soft); text-align: center; margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--wood-900); color: rgba(243,234,217,.85); padding-top: 64px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(243,234,217,.12);
}
.footer-brand p { color: rgba(243,234,217,.65); font-size: .9rem; margin-top: 14px; }
.footer-col h4 { color: var(--accent-light); font-size: .9rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 16px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: .92rem; }
.footer-col a:hover { color: var(--accent-light); }
.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 22px 0;
  font-size: .82rem;
  color: rgba(243,234,217,.55);
}

/* ---------- Floating WhatsApp ---------- */
.float-whatsapp {
  position: fixed;
  bottom: 26px; right: 26px;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 26px rgba(37,211,102,.45);
  z-index: 150;
  animation: floatPulse 2.6s ease-in-out infinite;
  transition: transform .3s var(--ease);
}
.float-whatsapp:hover { transform: scale(1.08); }
@keyframes floatPulse {
  0%, 100% { box-shadow: 0 10px 26px rgba(37,211,102,.45); }
  50% { box-shadow: 0 10px 26px rgba(37,211,102,.75), 0 0 0 10px rgba(37,211,102,.08); }
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* stagger children within grids */
.services-grid .reveal:nth-child(2) { transition-delay: .08s; }
.services-grid .reveal:nth-child(3) { transition-delay: .16s; }
.services-grid .reveal:nth-child(4) { transition-delay: .08s; }
.services-grid .reveal:nth-child(5) { transition-delay: .16s; }
.services-grid .reveal:nth-child(6) { transition-delay: .24s; }
.advantages-grid .reveal:nth-child(2) { transition-delay: .1s; }
.advantages-grid .reveal:nth-child(3) { transition-delay: .2s; }
.gallery-grid .gallery-item:nth-child(2) { transition-delay: .05s; }
.gallery-grid .gallery-item:nth-child(3) { transition-delay: .1s; }
.gallery-grid .gallery-item:nth-child(4) { transition-delay: .15s; }
.gallery-grid .gallery-item:nth-child(6) { transition-delay: .05s; }
.gallery-grid .gallery-item:nth-child(7) { transition-delay: .1s; }
.gallery-grid .gallery-item:nth-child(8) { transition-delay: .15s; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 980px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-media { max-width: 480px; }
  .pricing-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .advantages-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: 30px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .main-nav { display: none; }
  .header-phone { display: none; }
  .nav-toggle { display: flex; }

  .main-nav.open {
    display: block;
    position: fixed;
    top: 74px; left: 16px; right: 16px;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 12px 8px;
  }
  .main-nav.open ul { flex-direction: column; gap: 0; }
  .main-nav.open a { display: block; padding: 14px 18px; border-radius: 10px; }
  .main-nav.open a:hover { background: var(--cream); }
  .main-nav.open a::after { display: none; }

  .services-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .coverage-inner { flex-direction: column; text-align: center; }
  .about-badge { right: 10px; bottom: -18px; }
}
