/* 
   Festisy Coffee Vending Machine Rental Landing Page - Restructured Stylesheet
   Theme: Coffee-Brown Background with Sage-Green Cards & White Borders
   Optimized for premium visual aesthetics, mobile responsiveness, and PageSpeed.
*/

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

/* --- Theme Variables --- */
:root {
  /* Colors */
  --bg-primary: hsl(28, 30%, 38%);       /* Medium Coffee-Brown (matches Elementor screenshot) */
  --bg-secondary: hsl(28, 30%, 28%);     /* Darker Roasted Coffee-Brown */
  --bg-dark: hsl(28, 45%, 15%);          /* Deep Roasted Espresso Black */
  
  --bg-sage: hsl(125, 20%, 86%);         /* Soft Sage-Green Card Background */
  --bg-sage-dark: hsl(125, 15%, 78%);    /* Darker Sage for hover/highlights */
  
  --text-light: hsl(40, 50%, 96%);       /* Warm Cream for text on dark background */
  --text-dark: hsl(154, 40%, 12%);       /* Deep Charcoal Green for text inside Sage cards */
  --text-muted: hsla(40, 50%, 96%, 0.7); /* Semi-transparent cream text */
  --text-dark-muted: hsl(154, 12%, 35%); /* Muted charcoal inside Sage cards */
  
  --accent-gold: hsl(43, 75%, 48%);      /* Cothas Gold/Brass */
  --accent-gold-hover: hsl(43, 75%, 40%);
  --accent-whatsapp: #25d366;
  --accent-whatsapp-hover: #128c7e;
  
  /* Layout Tokens */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  
  --border-white: 2.5px solid #ffffff;  /* Premium white border from Elementor mockup */
  --border-radius: 16px;
  --border-radius-lg: 24px;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1200px;
  --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.15), 0 8px 10px -6px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 20px 35px -10px rgba(0, 0, 0, 0.25), 0 10px 20px -10px rgba(0, 0, 0, 0.2);
}

/* --- Base & Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-body);
  color: var(--text-light);
  background-color: var(--bg-primary);
  line-height: 1.6;
}

body {
  overflow-x: hidden;
  padding-bottom: 75px; /* space for mobile bottom bar */
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
}

p {
  font-size: 1rem;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

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

/* --- Utilities --- */
.container {
  width: 90%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

.text-center {
  text-align: center;
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 2.5rem);
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto 3.5rem auto;
}

.bg-dark-section {
  background-color: var(--bg-secondary);
}

/* --- Buttons & CTAs --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--border-radius);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
  width: 100%;
}

@media(min-width: 768px) {
  .btn {
    width: auto;
  }
}

.btn-primary {
  background-color: var(--accent-gold);
  color: var(--bg-dark);
}

.btn-primary:hover {
  background-color: var(--accent-gold-hover);
  transform: translateY(-2px);
}

.btn-whatsapp {
  background-color: var(--accent-whatsapp);
  color: white;
}

.btn-whatsapp:hover {
  background-color: var(--accent-whatsapp-hover);
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  border: 2.5px solid var(--accent-gold);
  color: var(--accent-gold);
}

.btn-outline:hover {
  background-color: var(--accent-gold);
  color: var(--bg-dark);
}

/* --- Header / Navigation --- */
header {
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 12px 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Logo containing exact Festisy black SVG logo & distributor tag */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--bg-dark);
  font-family: var(--font-heading);
}

.logo-image {
  height: 38px;
  width: auto;
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-subtitle {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-gold-hover);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.header-cta {
  display: none;
}

@media(min-width: 768px) {
  .header-cta {
    display: flex;
    align-items: center;
    gap: 20px;
  }
  
  .header-phone {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--bg-dark);
  }
  
  .header-phone:hover {
    color: var(--accent-gold-hover);
  }
}

/* --- Hero Section --- */
.hero {
  padding: 60px 0 80px 0;
  background-image: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 50px;
  align-items: center;
}

@media(min-width: 992px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

.hero-content {
  text-align: left;
}

.hero-tag {
  display: inline-block;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--accent-gold);
  padding: 6px 16px;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.hero h1 {
  font-size: clamp(2.4rem, 4.5vw, 3.5rem);
  color: var(--text-light);
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.hero-desc {
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  line-height: 1.5;
  margin-bottom: 30px;
  color: var(--text-muted);
}

.hero-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 35px;
}

.hero-feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--text-light);
  font-size: 0.95rem;
}

.hero-feature-icon {
  width: 20px;
  height: 20px;
  color: var(--accent-gold);
  flex-shrink: 0;
}

/* --- Hero Lead Form Card (Sage-Green Card with White Border) --- */
.hero-form-card {
  background-color: var(--bg-sage);
  color: var(--text-dark);
  border-radius: var(--border-radius-lg);
  padding: 35px;
  box-shadow: var(--shadow-lg);
  border: var(--border-white);
}

.hero-form-card h3 {
  font-size: 1.4rem;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.hero-form-card p {
  font-size: 0.9rem;
  color: var(--text-dark-muted);
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--border-radius);
  border: 1.5px solid rgba(154, 40, 12, 0.15);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition);
  background-color: white;
  color: var(--text-dark);
}

.form-control:focus {
  outline: none;
  border-color: var(--bg-dark);
  box-shadow: 0 0 0 3px rgba(6, 58, 33, 0.08);
}

/* --- Interactive Cost Calculator (Side-by-Side) --- */
.calculator-section {
  padding: 100px 0;
  background-color: var(--bg-secondary);
}

.calc-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-top: 20px;
}

@media(min-width: 992px) {
  .calc-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Left Input Card (Sage Green Card with White Border) */
.calc-input-card {
  background-color: var(--bg-sage);
  color: var(--text-dark);
  border-radius: var(--border-radius-lg);
  padding: 40px 30px;
  box-shadow: var(--shadow-lg);
  border: var(--border-white);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.calc-title {
  font-size: 1.45rem;
  color: var(--text-dark);
  margin-bottom: 25px;
  border-bottom: 1.5px solid rgba(154, 40, 12, 0.1);
  padding-bottom: 15px;
}

.calc-group {
  margin-bottom: 30px;
}

.calc-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.calc-label {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-dark);
}

.calc-badge-val {
  background-color: var(--bg-primary);
  color: var(--text-light);
  padding: 4px 14px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
}

/* Custom Range Slider */
.range-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 5px;
  background: rgba(154, 40, 12, 0.15);
  outline: none;
  margin: 15px 0;
  transition: var(--transition);
}

.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 2px solid white;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.1);
  background: var(--accent-gold);
}

.range-slider::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 2px solid white;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.range-slider::-moz-range-thumb:hover {
  transform: scale(1.1);
  background: var(--accent-gold);
}

.slider-scale {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-dark-muted);
  padding: 0 4px;
}

.calc-select {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--border-radius);
  border: 1.5px solid rgba(154, 40, 12, 0.15);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  background-color: white;
  color: var(--text-dark);
  cursor: pointer;
}

.calc-info-footer {
  font-size: 0.8rem;
  color: var(--text-dark-muted);
  font-style: italic;
}

/* Right Output Card (Dark Coffee Card with Gold Accents) */
.calc-output-card {
  background-color: var(--bg-dark);
  color: var(--text-light);
  border-radius: var(--border-radius-lg);
  padding: 45px 35px;
  box-shadow: var(--shadow-lg);
  border: 2.5px solid var(--accent-gold);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.output-title {
  font-size: 1.45rem;
  color: var(--text-light);
  margin-bottom: 25px;
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.distributor-logo-tag {
  font-size: 0.7rem;
  background-color: rgba(203, 161, 53, 0.15);
  color: var(--accent-gold);
  border: 1px solid var(--accent-gold);
  padding: 3px 8px;
  border-radius: 50px;
  font-weight: 700;
  text-transform: uppercase;
}

.output-comparison-rows {
  margin-bottom: 30px;
}

.out-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
}

.out-row-label {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.out-row-val {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
}

.out-row.solution {
  color: var(--accent-gold);
}

.out-row.solution .out-row-label {
  color: var(--accent-gold);
  font-weight: 600;
}

.savings-highlight-card {
  background: linear-gradient(135deg, rgba(203, 161, 53, 0.15) 0%, rgba(203, 161, 53, 0.03) 100%);
  border: 1.5px solid rgba(203, 161, 53, 0.3);
  border-radius: var(--border-radius);
  padding: 22px;
  text-align: center;
  margin-bottom: 25px;
}

.savings-label {
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-light);
  margin-bottom: 5px;
}

.savings-value {
  font-size: clamp(2.2rem, 4.5vw, 2.8rem);
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--accent-gold);
  letter-spacing: -1px;
}

/* --- Machines Showcase --- */
.machines {
  padding: 100px 0;
}

.machines-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 35px;
  margin-top: 10px;
}

/* 2 columns on desktop for Grande & Minibar */
@media(min-width: 768px) {
  .machines-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 820px;
    margin: 0 auto;
  }
}

/* Machine Card (Sage Green Card with White Border) */
.machine-card {
  background-color: var(--bg-sage);
  color: var(--text-dark);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: var(--border-white);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.machine-card:hover {
  transform: translateY(-8px);
}

/* Transparent image background wrapper */
.machine-img-wrapper {
  background-color: var(--bg-sage);
  height: 280px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: var(--border-white);
}

.machine-img-wrapper img {
  max-width: 85%;
  max-height: 85%;
  object-fit: contain;
  transition: var(--transition);
}

.machine-card:hover .machine-img-wrapper img {
  transform: scale(1.05);
}

.machine-tag {
  position: absolute;
  top: 15px;
  left: 15px;
  background-color: var(--bg-dark);
  color: var(--accent-gold);
  border: 1.5px solid var(--accent-gold);
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.machine-content {
  padding: 30px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.machine-title {
  font-size: 1.4rem;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.machine-desc {
  font-size: 0.92rem;
  margin-bottom: 20px;
  flex-grow: 1;
  color: var(--text-dark-muted);
}

.machine-specs {
  border-top: 1.5px solid rgba(154, 40, 12, 0.1);
  border-bottom: 1.5px solid rgba(154, 40, 12, 0.1);
  padding: 15px 0;
  margin-bottom: 20px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.spec-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-dark);
}

.spec-icon {
  width: 18px;
  height: 18px;
  color: var(--bg-secondary);
  flex-shrink: 0;
}

/* --- Commercial Terms List Inside Cards --- */
.machine-terms-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-top: 10px;
  margin-bottom: 10px;
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.machine-terms-list {
  margin-bottom: 25px;
  padding-left: 0;
}

.machine-terms-list li {
  font-size: 0.88rem;
  margin-bottom: 8px;
  position: relative;
  padding-left: 20px;
  color: var(--text-dark-muted);
  font-weight: 500;
  line-height: 1.4;
}

.machine-terms-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--bg-secondary);
  font-size: 1.1rem;
  font-weight: bold;
}

/* --- Service & Trust Features --- */
.features {
  padding: 100px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

@media(min-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  padding: 40px 30px;
  border-radius: var(--border-radius-lg);
  background-color: var(--bg-sage);
  color: var(--text-dark);
  text-align: center;
  border: var(--border-white);
  box-shadow: var(--shadow-lg);
}

.feature-icon-wrapper {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: white;
  color: var(--text-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
  border: 1.5px solid rgba(154, 40, 12, 0.15);
  box-shadow: var(--shadow-sm);
}

.feature-icon-wrapper svg {
  width: 32px;
  height: 32px;
}

.feature-card h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
  color: var(--text-dark);
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--text-dark-muted);
}

/* --- FAQ Section --- */
.faq {
  padding: 100px 0;
  background-color: var(--bg-secondary);
}

.faq-wrapper {
  max-width: 850px;
  margin: 0 auto;
}

.faq-item {
  background-color: var(--bg-sage);
  color: var(--text-dark);
  border-radius: var(--border-radius);
  margin-bottom: 15px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
  border: var(--border-white);
}

.faq-question {
  padding: 22px 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  user-select: none;
}

.faq-icon {
  width: 20px;
  height: 20px;
  transition: var(--transition);
  color: var(--bg-dark);
  flex-shrink: 0;
}

.faq-answer {
  padding: 0 26px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.2s ease-out;
}

.faq-answer p {
  padding-bottom: 22px;
  font-size: 0.95rem;
  color: var(--text-dark-muted);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-item.active .faq-answer {
  max-height: 200px;
}

/* --- Floating Bottom Bar for Mobile --- */
.floating-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: white;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 10px 15px;
  gap: 12px;
  z-index: 999;
  border-top: 1.5px solid rgba(0, 0, 0, 0.05);
}

@media(min-width: 768px) {
  .floating-bar {
    display: none;
  }
  body {
    padding-bottom: 0;
  }
}

.floating-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  border-radius: 8px;
  color: white;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
}

.floating-call {
  background-color: var(--bg-dark);
  color: var(--accent-gold);
  border: 1.5px solid var(--accent-gold);
}

.floating-whatsapp {
  background-color: var(--accent-whatsapp);
}

/* --- Footer --- */
footer {
  background-color: var(--bg-dark);
  color: var(--text-light);
  padding: 50px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

@media(min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr;
  }
}

.footer-logo {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.4rem;
  margin-bottom: 15px;
}

.footer-info p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.footer-contact h4 {
  font-size: 1.1rem;
  margin-bottom: 15px;
}

.footer-links li {
  margin-bottom: 10px;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-links a {
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--accent-gold);
}

.footer-copyright {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 25px;
  margin-top: 35px;
  font-size: 0.8rem;
  color: hsla(40, 50%, 96%, 0.4);
}
