/* =========================================================
   Ray Wood Exploatare SRL — Design System
   Modern industrial / earthy: deep forest greens, warm wood
   tones, bold display type, generous photography.
   ========================================================= */

:root {
  /* Core palette */
  --forest-900: #0f1f17;
  --forest-800: #16301f;
  --forest-700: #1f4029;
  --forest-600: #2a5636;
  --forest-500: #3a6e46;
  --moss-300: #9db98f;
  --moss-200: #c3d9b8;

  --bark-900: #241712;
  --bark-700: #4a2f22;

  --amber-600: #b5651d;
  --amber-500: #d17c2b;
  --amber-400: #e4954a;

  --cream-50: #faf7f0;
  --cream-100: #f2ecdd;
  --cream-200: #e8dfc9;

  --ink-900: #16181a;
  --ink-700: #3c4137;
  --ink-500: #656b60;

  --white: #ffffff;

  --success: #2a5636;
  --danger: #a8391f;

  /* Type */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Layout */
  --container: 1200px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 3px rgba(15, 31, 23, 0.08), 0 1px 2px rgba(15, 31, 23, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 31, 23, 0.12);
  --shadow-lg: 0 20px 48px rgba(15, 31, 23, 0.18);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink-900);
  background: var(--cream-50);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { padding: 0; margin: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 0.5em; color: var(--forest-900); font-weight: 600; }
p { margin: 0 0 1em; }
button { font-family: inherit; }

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

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--forest-900); color: var(--white);
  padding: 12px 18px; z-index: 200; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px; font-weight: 600; font-size: 0.95rem;
  border: 2px solid transparent; cursor: pointer; transition: all .18s ease;
}
.btn-primary { background: var(--amber-500); color: var(--white); }
.btn-primary:hover { background: var(--amber-600); transform: translateY(-1px); }
.btn-outline { background: transparent; border-color: currentColor; color: var(--forest-900); }
.btn-outline:hover { background: var(--forest-900); color: var(--white); border-color: var(--forest-900); }
.btn-light { background: var(--white); color: var(--forest-900); }
.btn-light:hover { background: var(--cream-100); }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Top utility bar ---------- */
.topbar {
  background: var(--forest-900); color: var(--moss-200);
  font-size: 0.82rem;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; padding-top: 8px; padding-bottom: 8px; flex-wrap: wrap; gap: 6px; }
.topbar a { color: var(--cream-100); }
.topbar a:hover { color: var(--amber-400); }
.topbar-links { display: flex; gap: 20px; flex-wrap: wrap; }
.topbar-links span { opacity: .85; }

/* ---------- Header / Nav ---------- */
header.site-header {
  background: var(--cream-50);
  position: sticky; top: 0; z-index: 100;
  box-shadow: var(--shadow-sm);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 42px; height: 42px; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-family: var(--font-display); font-size: 1.15rem; color: var(--forest-900); letter-spacing: 0.01em; }
.brand-text span { font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--amber-600); font-weight: 600; }

nav.main-nav { display: flex; align-items: center; gap: 4px; }
nav.main-nav > ul { display: flex; align-items: center; gap: 2px; }
nav.main-nav > ul > li { position: relative; }
nav.main-nav > ul > li > a, nav.main-nav > ul > li > button.nav-toggle {
  display: flex; align-items: center; gap: 4px;
  padding: 10px 14px; border-radius: 999px; font-weight: 600; font-size: 0.93rem;
  color: var(--ink-700); background: none; border: none; cursor: pointer;
}
nav.main-nav > ul > li > a:hover,
nav.main-nav > ul > li > a[aria-current="page"],
nav.main-nav > ul > li > button.nav-toggle:hover { color: var(--forest-900); background: var(--cream-200); }

.has-dropdown .dropdown {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 260px;
  background: var(--white); border-radius: var(--radius-md); box-shadow: var(--shadow-lg);
  padding: 10px; opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: all .15s ease; z-index: 50;
}
.has-dropdown:hover .dropdown,
.has-dropdown.open .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { display: block; padding: 10px 12px; border-radius: 8px; font-size: 0.92rem; color: var(--ink-700); font-weight: 500; }
.dropdown a:hover { background: var(--cream-100); color: var(--forest-900); }
.dropdown a small { display: block; color: var(--ink-500); font-weight: 400; font-size: 0.78rem; margin-top: 2px; }

.nav-cta { display: flex; align-items: center; gap: 10px; }
.menu-toggle { display: none; background: none; border: 2px solid var(--forest-900); border-radius: 10px; padding: 8px 10px; cursor: pointer; }
.menu-toggle span { display: block; width: 22px; height: 2px; background: var(--forest-900); margin: 4px 0; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--forest-900); color: var(--white); }
.hero .container { position: relative; z-index: 2; padding-top: 84px; padding-bottom: 84px; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.1); padding: 6px 14px; border-radius: 999px; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700; color: var(--amber-400); margin-bottom: 18px; }
.hero h1 { color: var(--white); font-size: clamp(2.1rem, 4vw, 3.4rem); margin-bottom: 20px; }
.hero p.lead { font-size: 1.1rem; color: var(--moss-200); max-width: 46ch; margin-bottom: 28px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-media { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4/3; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,31,23,0) 40%, rgba(15,31,23,0.55) 100%); }
.hero::before {
  content: ""; position: absolute; inset: 0; opacity: 0.15; z-index: 1;
  background-image: radial-gradient(circle at 15% 20%, rgba(255,255,255,.5) 0, transparent 40%);
}
.page-hero { background: var(--forest-800); color: var(--white); padding: 56px 0 44px; }
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: var(--white); font-size: clamp(1.9rem, 3.4vw, 2.7rem); margin-bottom: 12px; }
.page-hero p.lead { color: var(--moss-200); max-width: 62ch; font-size: 1.05rem; }

.breadcrumbs { font-size: 0.82rem; color: var(--moss-200); margin-bottom: 16px; }
.breadcrumbs a { color: var(--moss-200); }
.breadcrumbs a:hover { color: var(--amber-400); }
.breadcrumbs span[aria-hidden] { margin: 0 6px; opacity: .6; }

/* ---------- Stat strip ---------- */
.stat-strip { background: var(--cream-100); border-top: 1px solid var(--cream-200); border-bottom: 1px solid var(--cream-200); }
.stat-strip .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 34px 24px; }
.stat { text-align: center; }
.stat strong { display: block; font-family: var(--font-display); font-size: clamp(1.5rem, 2.4vw, 2.1rem); color: var(--forest-800); }
.stat span { font-size: 0.82rem; color: var(--ink-500); font-weight: 600; }

/* ---------- Section basics ---------- */
section { padding: 72px 0; }
section.tight { padding: 48px 0; }
.section-head { max-width: 720px; margin: 0 auto 44px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.eyebrow { display: inline-block; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700; color: var(--amber-600); margin-bottom: 10px; }
.section-head h2 { font-size: clamp(1.6rem, 2.6vw, 2.3rem); }
.section-head p { color: var(--ink-500); font-size: 1.03rem; }

.bg-forest { background: var(--forest-900); color: var(--white); }
.bg-forest h2, .bg-forest h3 { color: var(--white); }
.bg-forest .section-head p { color: var(--moss-200); }
.bg-cream { background: var(--cream-100); }

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: 28px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--white); border-radius: var(--radius-md); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease;
  display: flex; flex-direction: column; height: 100%;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card-media { aspect-ratio: 4/3; overflow: hidden; background: var(--cream-200); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-body h3 { font-size: 1.15rem; margin-bottom: 4px; }
.card-body p { color: var(--ink-500); font-size: 0.92rem; margin-bottom: 10px; }
.card-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 0.72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--forest-600); background: var(--moss-200); padding: 4px 10px; border-radius: 999px; width: fit-content; }
.card-link { margin-top: auto; font-weight: 700; color: var(--forest-700); display: inline-flex; align-items: center; gap: 6px; }
.card-link:hover { color: var(--amber-600); }

/* Stove catalog card variant */
.stove-card .card-media { aspect-ratio: 3/4; background: var(--cream-50); }
.stove-card .card-media img { object-fit: contain; padding: 14px; }
.stove-spec-list { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 4px; }
.stove-spec-list li { font-size: 0.74rem; font-weight: 600; background: var(--cream-100); color: var(--ink-700); padding: 3px 9px; border-radius: 999px; }

/* ---------- Feature rows ---------- */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.feature-row.reverse .feature-media { order: 2; }
.feature-media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.feature-media img { width: 100%; height: 100%; object-fit: cover; }
.feature-text h2 { margin-bottom: 16px; }
.feature-list li { display: flex; gap: 10px; margin-bottom: 12px; align-items: flex-start; font-size: 0.97rem; }
.feature-list svg { flex-shrink: 0; margin-top: 3px; color: var(--amber-500); }

/* ---------- Testimonials ---------- */
.testimonial { background: var(--white); border-radius: var(--radius-md); padding: 28px; box-shadow: var(--shadow-sm); height: 100%; }
.testimonial p { font-size: 1rem; color: var(--ink-700); }
.testimonial .stars { color: var(--amber-500); margin-bottom: 12px; letter-spacing: 2px; }
.testimonial-author { display: flex; align-items: center; gap: 10px; margin-top: 16px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--forest-600); color: var(--white); display: flex; align-items: center; justify-content: center; font-weight: 700; font-family: var(--font-display); }
.testimonial-author strong { display: block; font-size: 0.9rem; }
.testimonial-author span { font-size: 0.78rem; color: var(--ink-500); }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(135deg, var(--forest-800), var(--forest-600)); color: var(--white); border-radius: var(--radius-lg); padding: 56px; display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { color: var(--white); margin-bottom: 8px; }
.cta-band p { color: var(--moss-200); margin: 0; }

/* ---------- Table (specs) ---------- */
.spec-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); }
.spec-table th, .spec-table td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--cream-200); font-size: 0.93rem; }
.spec-table td { color: var(--ink-900); background: var(--white); }
.spec-table td a { color: var(--forest-700); font-weight: 600; text-decoration: underline; text-decoration-color: var(--cream-200); text-underline-offset: 2px; }
.spec-table td a:hover { color: var(--amber-600); }
.spec-table th { background: var(--cream-100); color: var(--forest-800); width: 34%; font-weight: 700; }
.spec-table tr:last-child td, .spec-table tr:last-child th { border-bottom: none; }
.table-scroll { overflow-x: auto; }

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--cream-200); padding: 18px 0; }
.faq-item summary { cursor: pointer; font-weight: 700; font-size: 1.02rem; color: var(--forest-900); list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.4rem; color: var(--amber-500); font-weight: 400; flex-shrink: 0; }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { margin-top: 12px; color: var(--ink-500); }

/* ---------- Process steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.step { position: relative; padding-top: 8px; }
.step::before { counter-increment: step; content: counter(step); display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--amber-500); color: var(--white); font-family: var(--font-display); font-weight: 700; margin-bottom: 16px; }
.step h3 { font-size: 1.05rem; margin-bottom: 6px; }
.step p { color: var(--ink-500); font-size: 0.92rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact-info-card { background: var(--white); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); padding: 30px; }
.contact-info-card ul li { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--cream-200); align-items: flex-start; }
.contact-info-card ul li:last-child { border-bottom: none; }
.contact-info-card svg { color: var(--amber-500); flex-shrink: 0; margin-top: 2px; }
.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-weight: 700; font-size: 0.86rem; margin-bottom: 6px; color: var(--forest-900); }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--cream-200); border-radius: 8px;
  font-family: inherit; font-size: 0.95rem; background: var(--white); color: var(--ink-900);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: 2px solid var(--amber-500); border-color: var(--amber-500); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.map-embed { border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); margin-top: 24px; aspect-ratio: 16/9; background: var(--cream-200); }
.map-embed iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Blog ---------- */
.blog-card .card-body time { font-size: 0.78rem; color: var(--ink-500); text-transform: uppercase; letter-spacing: .04em; font-weight: 700; }
.post-body { max-width: 74ch; margin: 0 auto; }
.post-body h2 { margin-top: 1.6em; }
.post-body h3 { margin-top: 1.3em; }
.post-body ul, .post-body ol { margin: 0 0 1.2em; padding-left: 1.3em; list-style: disc; }
.post-body ol { list-style: decimal; }
.post-body li { margin-bottom: 0.5em; }
.post-meta { display: flex; gap: 16px; align-items: center; color: var(--moss-200); font-size: 0.85rem; margin-top: 18px; flex-wrap: wrap; }
.post-tag { background: rgba(255,255,255,0.12); padding: 4px 12px; border-radius: 999px; }
.post-hero-img { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); margin: -40px auto 40px; max-width: 900px; aspect-ratio: 16/8; }
.post-hero-img img { width: 100%; height: 100%; object-fit: cover; }
.author-box { display: flex; gap: 16px; align-items: center; background: var(--cream-100); padding: 20px; border-radius: var(--radius-md); margin-top: 48px; }

/* ---------- Footer ---------- */
footer.site-footer { background: var(--forest-900); color: var(--moss-200); padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-brand p { color: var(--moss-200); font-size: 0.92rem; max-width: 32ch; }
.footer-col h4 { color: var(--white); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 16px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col a { color: var(--moss-200); font-size: 0.92rem; }
.footer-col a:hover { color: var(--amber-400); }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; }
.footer-social a:hover { background: var(--amber-500); }
.footer-bottom { padding: 22px 0 30px; display: flex; justify-content: space-between; align-items: center; font-size: 0.8rem; color: var(--moss-200); flex-wrap: wrap; gap: 10px; }
.footer-bottom a { color: var(--moss-200); }
.footer-legal { display: flex; gap: 18px; flex-wrap: wrap; }

/* ---------- Utility ---------- */
.mt-0 { margin-top: 0; }
.text-center { text-align: center; }
.badge-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.badge { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,0.1); padding: 8px 14px; border-radius: 999px; font-size: 0.78rem; font-weight: 600; }

/* ---------- Floating WhatsApp Button ---------- */
.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 150;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.28);
  transition: transform .18s ease, box-shadow .18s ease;
}
.whatsapp-float:hover { transform: scale(1.08); box-shadow: 0 10px 28px rgba(0,0,0,0.34); }
.whatsapp-float svg { width: 30px; height: 30px; }
.whatsapp-float .wa-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25D366;
  opacity: 0.55;
  animation: wa-pulse 2.2s ease-out infinite;
  z-index: -1;
}
@keyframes wa-pulse {
  0% { transform: scale(1); opacity: 0.55; }
  100% { transform: scale(1.7); opacity: 0; }
}
.whatsapp-tooltip {
  position: absolute;
  right: 72px;
  bottom: 16px;
  background: var(--forest-900);
  color: #fff;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transform: translateX(6px);
  transition: all .15s ease;
  pointer-events: none;
}
.whatsapp-float:hover .whatsapp-tooltip,
.whatsapp-float:focus-visible .whatsapp-tooltip { opacity: 1; visibility: visible; transform: translateX(0); }
@media (max-width: 760px) {
  .whatsapp-float { right: 16px; bottom: 16px; width: 54px; height: 54px; }
  .whatsapp-float svg { width: 27px; height: 27px; }
  .whatsapp-tooltip { display: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .stat-strip .container { grid-template-columns: repeat(2, 1fr); }
  .feature-row { grid-template-columns: 1fr; }
  .feature-row.reverse .feature-media { order: 0; }
  .hero .container { grid-template-columns: 1fr; padding-top: 48px; padding-bottom: 48px; }
  .hero-media { order: -1; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  nav.main-nav { position: fixed; inset: 68px 0 0 0; background: var(--cream-50); flex-direction: column; align-items: stretch; padding: 20px; overflow-y: auto; transform: translateX(100%); transition: transform .2s ease; }
  nav.main-nav.open { transform: translateX(0); }
  nav.main-nav > ul { flex-direction: column; align-items: stretch; width: 100%; }
  nav.main-nav > ul > li > a, nav.main-nav > ul > li > button.nav-toggle { width: 100%; justify-content: space-between; padding: 14px 10px; border-radius: 10px; }
  .has-dropdown .dropdown { position: static; box-shadow: none; opacity: 1; visibility: visible; transform: none; display: none; padding-left: 12px; }
  .has-dropdown.open .dropdown { display: block; }
  .menu-toggle { display: block; }
  .nav-cta .btn-outline { display: none; }
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  section { padding: 48px 0; }
  .cta-band { padding: 36px 24px; flex-direction: column; text-align: center; }
  .footer-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}
