@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Text:ital@0;1&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  --rf-bg-mint: #F0FFF4;
  --rf-bg-pure: #FFFFFF;
  --rf-bg-ice: #F4F9F5;
  --rf-bg-card: #FFFFFF;
  --rf-primary-pine: #22543D;
  --rf-primary-deep: #1A3323;
  --rf-accent-emerald: #2F855A;
  --rf-accent-light: #C6F6D5;
  --rf-text-graphite: #2D3748;
  --rf-text-muted: #4A5568;
  --rf-text-subtle: #718096;
  --rf-border-soft: #E2E8F0;
  --rf-border-mint: #C6F6D5;
  --rf-shadow-sm: 0 2px 8px rgba(34, 84, 61, 0.05);
  --rf-shadow-md: 0 8px 24px rgba(34, 84, 61, 0.08);
  --rf-shadow-lg: 0 16px 36px rgba(34, 84, 61, 0.12);
  --rf-radius-sm: 8px;
  --rf-radius-md: 14px;
  --rf-radius-lg: 20px;
  --rf-radius-full: 9999px;
  --rf-font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --rf-font-serif: 'DM Serif Text', Georgia, serif;
  --rf-container-max: 1220px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--rf-font-sans);
  background-color: var(--rf-bg-mint);
  color: var(--rf-text-graphite);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4, .rf-display {
  font-family: var(--rf-font-serif);
  color: var(--rf-primary-deep);
  line-height: 1.25;
  font-weight: 400;
}

h1 { font-size: clamp(2rem, 4vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: 1.45rem; }
h4 { font-size: 1.15rem; font-family: var(--rf-font-sans); font-weight: 700; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--rf-primary-pine);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}
a:hover {
  color: var(--rf-accent-emerald);
}

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

.rf-container {
  width: 100%;
  max-width: var(--rf-container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.rf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  font-family: var(--rf-font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--rf-radius-full);
  cursor: pointer;
  border: none;
  transition: all 0.25s ease;
  text-decoration: none;
}

.rf-btn-primary {
  background: var(--rf-primary-pine);
  color: #FFFFFF !important;
  box-shadow: 0 4px 14px rgba(34, 84, 61, 0.25);
}
.rf-btn-primary:hover {
  background: var(--rf-accent-emerald);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(34, 84, 61, 0.35);
}

.rf-btn-secondary {
  background: #FFFFFF;
  color: var(--rf-primary-pine) !important;
  border: 1.5px solid var(--rf-border-mint);
}
.rf-btn-secondary:hover {
  background: var(--rf-bg-ice);
  border-color: var(--rf-accent-emerald);
  transform: translateY(-2px);
}

.rf-btn-outline {
  background: transparent;
  color: var(--rf-primary-pine) !important;
  border: 1.5px solid var(--rf-primary-pine);
}
.rf-btn-outline:hover {
  background: var(--rf-primary-pine);
  color: #FFFFFF !important;
}

.rf-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(34, 84, 61, 0.08);
  color: var(--rf-primary-pine);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.35rem 0.85rem;
  border-radius: var(--rf-radius-full);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Header */
.rf-header-wrap {
  position: sticky;
  top: 0;
  z-index: 990;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(198, 246, 213, 0.6);
}

.rf-top-note {
  background: var(--rf-primary-deep);
  color: #E2E8F0;
  font-size: 0.78rem;
  padding: 0.4rem 0;
  text-align: center;
}
.rf-top-note-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.rf-top-contacts {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}
.rf-top-contacts a {
  color: #C6F6D5;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.rf-nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.95rem 0;
}

.rf-brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}
.rf-brand-logo svg {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
}
.rf-brand-text {
  display: flex;
  flex-direction: column;
}
.rf-brand-title {
  font-family: var(--rf-font-serif);
  font-size: 1.45rem;
  font-weight: 400;
  color: var(--rf-primary-deep);
  line-height: 1;
}
.rf-brand-tag {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--rf-accent-emerald);
  font-weight: 700;
}

.rf-nav-menu {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  list-style: none;
}
.rf-nav-link {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--rf-text-graphite);
  padding: 0.4rem 0;
  position: relative;
}
.rf-nav-link:hover, .rf-nav-link.active {
  color: var(--rf-primary-pine);
}
.rf-nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--rf-accent-emerald);
  border-radius: 2px;
}

.rf-header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.rf-lang-switch {
  display: inline-flex;
  background: var(--rf-bg-ice);
  border: 1px solid var(--rf-border-soft);
  border-radius: var(--rf-radius-full);
  padding: 2px;
}
.rf-lang-btn {
  border: none;
  background: transparent;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.3rem 0.65rem;
  border-radius: var(--rf-radius-full);
  cursor: pointer;
  color: var(--rf-text-muted);
  transition: all 0.2s ease;
}
.rf-lang-btn.active {
  background: var(--rf-primary-pine);
  color: #FFFFFF;
}

.rf-cart-trigger {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--rf-bg-ice);
  color: var(--rf-primary-pine);
  border: 1px solid var(--rf-border-mint);
  transition: all 0.2s ease;
}
.rf-cart-trigger:hover {
  background: #FFFFFF;
  transform: scale(1.05);
}
.rf-cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #C53030;
  color: #FFFFFF;
  font-size: 0.72rem;
  font-weight: 800;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.rf-burger {
  display: none;
  background: transparent;
  border: none;
  width: 32px;
  height: 32px;
  flex-direction: column;
  justify-content: space-around;
  cursor: pointer;
  padding: 4px;
}
.rf-burger span {
  width: 100%;
  height: 2px;
  background: var(--rf-primary-deep);
  transition: all 0.3s ease;
}

/* Sections */
.rf-section {
  padding: 4.5rem 0;
}
.rf-section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3rem;
}
.rf-section-head p {
  color: var(--rf-text-muted);
  font-size: 1.05rem;
  margin-top: 0.75rem;
}

/* Slider / Carousel Hero */
.rf-hero-slider {
  position: relative;
  overflow: hidden;
  background: var(--rf-primary-deep);
  color: #FFFFFF;
  min-height: 520px;
  display: flex;
  align-items: center;
}
.rf-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
}
.rf-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(26, 51, 35, 0.92) 0%, rgba(26, 51, 35, 0.65) 60%, rgba(26, 51, 35, 0.4) 100%);
}
.rf-slide.active {
  opacity: 1;
  position: relative;
}
.rf-slide-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  padding: 4rem 0;
}
.rf-slide-content h1 {
  color: #FFFFFF;
  margin-bottom: 1.25rem;
}
.rf-slide-content p {
  color: #E2E8F0;
  font-size: 1.15rem;
  margin-bottom: 2rem;
}
.rf-slider-nav {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 10;
}
.rf-slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}
.rf-slider-dot.active {
  background: #FFFFFF;
  width: 28px;
  border-radius: 6px;
}

/* Interactive Timeline */
.rf-timeline-section {
  background: #FFFFFF;
  border-radius: var(--rf-radius-lg);
  padding: 3.5rem 2rem;
  box-shadow: var(--rf-shadow-md);
  margin: 3rem auto;
}
.rf-timeline-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 2.5rem;
}
.rf-timeline-tab {
  padding: 0.75rem 1.4rem;
  border: 1.5px solid var(--rf-border-soft);
  background: var(--rf-bg-ice);
  border-radius: var(--rf-radius-full);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--rf-text-muted);
  cursor: pointer;
  transition: all 0.25s ease;
}
.rf-timeline-tab:hover, .rf-timeline-tab.active {
  background: var(--rf-primary-pine);
  color: #FFFFFF;
  border-color: var(--rf-primary-pine);
  box-shadow: 0 4px 12px rgba(34, 84, 61, 0.2);
}
.rf-timeline-panel {
  display: none;
  background: var(--rf-bg-mint);
  border-radius: var(--rf-radius-md);
  padding: 2rem;
  border-left: 5px solid var(--rf-accent-emerald);
  animation: rfFadeIn 0.4s ease;
}
.rf-timeline-panel.active {
  display: block;
}
.rf-timeline-panel h3 {
  color: var(--rf-primary-deep);
  margin-bottom: 0.75rem;
}

/* Cards & Grids */
.rf-grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}
.rf-grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 2.5rem;
}

.rf-card {
  background: #FFFFFF;
  border-radius: var(--rf-radius-md);
  padding: 2rem;
  border: 1px solid var(--rf-border-soft);
  box-shadow: var(--rf-shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}
.rf-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--rf-shadow-md);
  border-color: var(--rf-border-mint);
}
.rf-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--rf-bg-ice);
  color: var(--rf-primary-pine);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.rf-card-title {
  margin-bottom: 0.75rem;
  font-size: 1.35rem;
}
.rf-card-price {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--rf-primary-pine);
  margin: 1rem 0;
}
.rf-card-meta {
  color: var(--rf-text-subtle);
  font-size: 0.85rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--rf-border-soft);
}

/* Offer Showcase (services.php only) */
.rf-offer-box {
  background: linear-gradient(145deg, #FFFFFF 0%, #F4F9F5 100%);
  border-radius: var(--rf-radius-lg);
  border: 2px solid var(--rf-border-mint);
  padding: 3rem;
  box-shadow: var(--rf-shadow-lg);
  margin-top: 3.5rem;
}
.rf-offer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.rf-offer-media img {
  border-radius: var(--rf-radius-md);
  box-shadow: var(--rf-shadow-md);
  object-fit: cover;
  width: 100%;
}
.rf-offer-price-tag {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--rf-primary-pine);
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin: 1.25rem 0;
}
.rf-offer-price-tag span {
  font-size: 0.95rem;
  color: var(--rf-text-muted);
  font-weight: 500;
}
.rf-ingredients-list {
  list-style: none;
  margin: 1.25rem 0;
}
.rf-ingredients-list li {
  padding: 0.45rem 0;
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.92rem;
}
.rf-check-icon {
  color: var(--rf-accent-emerald);
  flex-shrink: 0;
  margin-top: 2px;
}
.rf-passport-badge {
  background: var(--rf-bg-mint);
  border: 1px dashed var(--rf-accent-emerald);
  padding: 0.85rem 1rem;
  border-radius: var(--rf-radius-sm);
  font-size: 0.82rem;
  color: var(--rf-primary-deep);
  margin-top: 1.25rem;
}

/* Assessment Calculator */
.rf-calculator-card {
  background: #FFFFFF;
  border-radius: var(--rf-radius-lg);
  padding: 3rem;
  box-shadow: var(--rf-shadow-md);
  max-width: 820px;
  margin: 0 auto;
}
.rf-form-group {
  margin-bottom: 1.5rem;
}
.rf-form-group label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--rf-primary-deep);
  font-size: 0.95rem;
}
.rf-form-control {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--rf-border-soft);
  border-radius: var(--rf-radius-sm);
  font-family: var(--rf-font-sans);
  font-size: 0.95rem;
  transition: border-color 0.2s ease;
  background: #FFFFFF;
}
.rf-form-control:focus {
  outline: none;
  border-color: var(--rf-primary-pine);
  box-shadow: 0 0 0 3px rgba(34, 84, 61, 0.12);
}
.rf-calc-result {
  display: none;
  margin-top: 2rem;
  padding: 2rem;
  background: var(--rf-bg-ice);
  border-radius: var(--rf-radius-md);
  border-left: 6px solid var(--rf-accent-emerald);
  animation: rfFadeIn 0.3s ease;
}

/* Cart Table */
.rf-table {
  width: 100%;
  border-collapse: collapse;
  background: #FFFFFF;
  border-radius: var(--rf-radius-md);
  overflow: hidden;
  box-shadow: var(--rf-shadow-sm);
}
.rf-table th, .rf-table td {
  padding: 1.1rem;
  text-align: left;
  border-bottom: 1px solid var(--rf-border-soft);
}
.rf-table th {
  background: var(--rf-bg-ice);
  color: var(--rf-primary-deep);
  font-weight: 700;
  font-size: 0.9rem;
}
.rf-qty-input {
  width: 64px;
  padding: 0.4rem;
  text-align: center;
  border: 1px solid var(--rf-border-soft);
  border-radius: 6px;
}
.rf-cart-summary {
  background: #FFFFFF;
  border-radius: var(--rf-radius-md);
  padding: 2rem;
  box-shadow: var(--rf-shadow-sm);
  border: 1px solid var(--rf-border-soft);
}

/* Modals */
.rf-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 51, 35, 0.65);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.rf-modal-overlay.active {
  display: flex;
}
.rf-modal-window {
  background: #FFFFFF;
  width: 100%;
  max-width: 560px;
  border-radius: var(--rf-radius-lg);
  padding: 2.5rem;
  position: relative;
  box-shadow: var(--rf-shadow-lg);
  animation: rfScaleIn 0.3s ease;
}
.rf-modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--rf-text-subtle);
}

/* Cookie Banner */
.rf-cookie-banner {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  max-width: 520px;
  background: #FFFFFF;
  border-radius: var(--rf-radius-md);
  padding: 1.5rem;
  box-shadow: var(--rf-shadow-lg);
  border: 1px solid var(--rf-border-soft);
  z-index: 995;
  display: none;
  animation: rfSlideUp 0.35s ease;
}
.rf-cookie-banner.active {
  display: block;
}

/* Footer */
.rf-footer {
  background: var(--rf-primary-deep);
  color: #E2E8F0;
  padding-top: 4rem;
  padding-bottom: 2rem;
  margin-top: auto;
  font-size: 0.92rem;
}
.rf-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
.rf-footer-col h4 {
  color: #FFFFFF;
  margin-bottom: 1.2rem;
  font-size: 1.05rem;
}
.rf-footer-links {
  list-style: none;
}
.rf-footer-links li {
  margin-bottom: 0.6rem;
}
.rf-footer-links a {
  color: #CBD5E0;
}
.rf-footer-links a:hover {
  color: #FFFFFF;
  text-decoration: underline;
}
.rf-disclaimer-card {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem;
  border-radius: var(--rf-radius-sm);
  margin-bottom: 2.5rem;
  font-size: 0.8rem;
  line-height: 1.6;
  color: #CBD5E0;
}
.rf-footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.75rem;
  font-size: 0.82rem;
  color: #A0AEC0;
}

/* Animations */
@keyframes rfFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes rfScaleIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes rfSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 992px) {
  .rf-footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .rf-offer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .rf-nav-menu {
    position: fixed;
    top: 72px;
    left: 0;
    width: 100%;
    background: #FFFFFF;
    flex-direction: column;
    padding: 2rem 1.5rem;
    box-shadow: var(--rf-shadow-lg);
    border-top: 1px solid var(--rf-border-soft);
    display: none;
  }
  .rf-nav-menu.open {
    display: flex;
  }
  .rf-burger {
    display: flex;
  }
  .rf-footer-grid {
    grid-template-columns: 1fr;
  }
  .rf-top-note-inner {
    flex-direction: column;
    gap: 0.4rem;
  }
  .rf-section {
    padding: 3rem 0;
  }
}
