/* ------------------------
   Variables
------------------------ */
:root {
  /* Colors */
  --primary: #0056b3;
  --secondary: #0088ff;
  --accent: #116cb7;
  --whatsapp: #25d366;
  --whatsapp-hover: #128c7e;
  
  --bg-hero: #e6f4fc;
  --bg-oxygen: #e8f5f3;
  --bg-footer: #0f5298;
  --bg-footer-bottom: #f8f9fa;
  --bg-white: #ffffff;
  
  --text-dark: #1e293b;
  --text-gray: #475569;
  --text-light: #f8fafc;
  
  --card-pink: #fdf2f2;
  --card-orange: #fff8eb;
  --card-green: #eefbf1;
  --card-yellow: #fffdf0;
  --card-mint: #f0fbfa;

  /* Typography */
  --font-main: 'Outfit', sans-serif;
  --font-serif: 'Playfair Display', serif;
  
  /* Utilities */
  --radius: 8px;
  --radius-lg: 16px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
  --shadow: 0 10px 30px rgba(0,0,0,0.08);
  --shadow-lg: 0 20px 40px rgba(15, 82, 152, 0.15);
}

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

body {
  font-family: var(--font-main);
  color: var(--text-gray);
  line-height: 1.6;
  font-size: 16px;
  background-color: var(--bg-white);
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  color: var(--text-dark);
  line-height: 1.2;
}

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

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

ul {
  list-style: none;
}

/* ------------------------
   Globals & Utilities
------------------------ */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.relative { position: relative; }
.font-playfair { font-family: var(--font-serif); }
.text-primary { color: var(--primary); }
.text-dark { color: var(--text-dark); }
.mx-auto { margin-left: auto; margin-right: auto; }
.max-w-lg { max-width: 800px; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }
.mt-6 { margin-top: 1.5rem; }
.text-4xl { font-size: 2.5rem; }
.inline-block { display: inline-block; }
.bg-white { background-color: var(--bg-white); }
.bg-oxygen { background-color: var(--bg-oxygen); }

.section-padding {
  padding: 6rem 0;
}

/* ------------------------
   Buttons
------------------------ */
.btn {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  border-radius: 50px;
  font-weight: 600;
  font-family: var(--font-main);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  font-size: 1rem;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--bg-white);
  box-shadow: 0 4px 15px rgba(0, 86, 179, 0.3);
}

.btn-primary:hover {
  background-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 86, 179, 0.4);
}

.btn-success {
  background-color: var(--whatsapp);
  color: var(--bg-white);
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-success:hover {
  background-color: var(--whatsapp-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.btn-dark {
  background-color: #2b3a4a;
  color: var(--bg-white);
}

.btn-dark:hover {
  background-color: #1e293b;
  transform: translateY(-2px);
}

.btn-block {
  display: block;
  width: 100%;
}

/* ------------------------
   Header
------------------------ */
.top-bar {
  background-color: var(--primary);
  color: rgba(255,255,255,0.9);
  padding: 0.5rem 0;
  font-size: 0.85rem;
  text-align: right;
}

.top-bar a {
  color: var(--bg-white);
  font-weight: 600;
  margin-left: 0.3rem;
}

.header {
  padding: 1.5rem 0;
  background-color: var(--bg-white);
  position: relative;
  z-index: 10;
  box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.brand-logo {
  height: 70px;
  margin: 0 auto;
}

/* ------------------------
   Hero
------------------------ */
.hero {
  background: linear-gradient(135deg, var(--bg-white) 0%, var(--bg-hero) 100%);
  padding: 4rem 0 10rem; /* extra padding for wave */
}

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

.badge {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-gray);
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: 3.5rem;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
}

.hero-text {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  color: var(--text-gray);
  max-width: 90%;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-image-wrapper {
  position: relative;
}

.hero-image {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  object-fit: cover;
  height: 500px;
  width: 100%;
}

.wave {
  position: absolute;
  bottom: -1px; /* fix sub-pixel rendering gaps */
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.wave svg {
  display: block;
  width: calc(100% + 1.3px);
  height: 120px;
}

/* ------------------------
   Services
------------------------ */
.services {
  background-color: var(--bg-white);
  position: relative;
  padding-bottom: 8rem;
}

.section-title {
  font-size: 2.8rem;
  margin-bottom: 1rem;
}

.section-subtitle {
  max-width: 800px;
  margin-bottom: 4rem;
  font-size: 1.1rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.service-card {
  padding: 2.5rem 1.5rem;
  border-radius: var(--radius-lg);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 200px;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.service-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.card-pink { background-color: var(--card-pink); }
.card-orange { background-color: var(--card-orange); }
.card-green { background-color: var(--card-green); }
.card-yellow { background-color: var(--card-yellow); }
.card-mint { background-color: var(--card-mint); }

/* ------------------------
   Oxygen Segment
------------------------ */
.oxygen-list {
  list-style: none;
}

.oxygen-list li {
  margin-bottom: 1rem;
  position: relative;
  padding-left: 2rem;
  font-size: 1.05rem;
}

.icon-check {
  position: absolute;
  left: 0;
  top: 4px;
  width: 20px;
  height: 20px;
  background-color: var(--whatsapp);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-check::after {
  content: '';
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  margin-bottom: 3px;
}

/* ------------------------
   FAQ Layout
------------------------ */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
}

.accordion-item {
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 1rem;
}

.accordion-header {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 1rem 0;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: inherit;
}

.accordion-header::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--primary);
  transition: var(--transition);
}

.accordion-item.active .accordion-header::after {
  content: '−';
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.accordion-item.active .accordion-body {
  max-height: 300px;
}

.accordion-body p {
  padding-bottom: 1.5rem;
  color: var(--text-gray);
}

/* ------------------------
   Footer
------------------------ */
.footer {
  background-color: var(--bg-footer);
  color: var(--bg-white);
  padding: 5rem 0 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.footer-title {
  font-size: 3rem;
  color: var(--bg-white);
  margin-bottom: 1rem;
}

.footer-text {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.footer-contact a {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.footer-contact a:hover {
  text-decoration: underline;
}

.footer-links-title {
  color: var(--bg-white);
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
}

.footer-links li {
  margin-bottom: 1rem;
}

.footer-links a {
  opacity: 0.8;
  font-size: 1rem;
}

.footer-links a:hover {
  opacity: 1;
  text-decoration: underline;
}

.footer-bottom {
  background-color: var(--bg-footer-bottom);
  padding: 1.5rem 0;
  color: var(--text-gray);
  font-size: 0.9rem;
}

/* Floating WhatsApp */
.floating-whatsapp {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: var(--whatsapp);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  z-index: 100;
  transition: var(--transition);
}

.floating-whatsapp:hover {
  transform: scale(1.1);
}

/* ------------------------
   Modal
------------------------ */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 30, 45, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  backdrop-filter: blur(4px);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-dialog {
  background-color: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  width: 90%;
  max-width: 500px;
  position: relative;
  transform: translateY(20px);
  transition: var(--transition);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.modal-overlay.active .modal-dialog {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--text-gray);
  cursor: pointer;
  transition: var(--transition);
}

.modal-close:hover {
  color: var(--text-dark);
}

.modal-title {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.modal-subtitle {
  font-size: 1rem;
  color: var(--text-gray);
  margin-bottom: 2rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

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

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius);
  font-family: var(--font-main);
  font-size: 1rem;
  transition: var(--transition);
  background-color: #f8fafc;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.1);
  background-color: var(--bg-white);
}

/* ------------------------
   Thanks Page
------------------------ */
.thanks-page {
  background: linear-gradient(135deg, var(--bg-white) 0%, var(--bg-hero) 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.thanks-container {
  text-align: center;
  max-width: 600px;
  padding: 2rem;
}

.thanks-card {
  background-color: var(--bg-white);
  padding: 4rem 3rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.icon-success {
  width: 80px;
  height: 80px;
  background-color: var(--card-green);
  color: var(--whatsapp);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.icon-success svg {
  width: 40px;
  height: 40px;
}

/* ------------------------
   Responsive
------------------------ */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .faq-grid, .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .section-title {
    font-size: 2.2rem;
  }
  
  .hero-text {
    max-width: 100%;
  }

  .hero-image {
    height: 350px;
  }
}
