/* eNani Digital Tools - V2 Upgrade Styles */

:root {
  /* Brand Colors */
  --color-primary: #1A1A1A;
  /* Black - Headings, Main Areas */
  --color-secondary: #E8E4D9;
  /* Beige - Backgrounds */
  --color-accent: #2A7F7F;
  /* Teal - Buttons, Highlights */
  --color-text: #374151;
  /* Charcoal - Body Text */
  --color-white: #FFFFFF;
  --color-light-grey: #F5F5F5;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);

  /* Spacing & Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --container-width: 1200px;

  /* Fonts */
  --font-heading: 'Quicksand', sans-serif;
  --font-body: 'Inter', sans-serif;
}

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

body {
  font-family: var(--font-body);
  color: var(--color-text);
  line-height: 1.6;
  background-color: var(--color-white);
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  font-weight: 700;
  line-height: 1.2;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease;
}

ul {
  list-style: none;
}

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

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

.mb-1 {
  margin-bottom: 10px;
}

.mb-2 {
  margin-bottom: 20px;
}

.mb-3 {
  margin-bottom: 30px;
}

.mb-4 {
  margin-bottom: 40px;
}

.mt-2 {
  margin-top: 20px;
}

.mt-4 {
  margin-top: 40px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--radius-full);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 2px solid transparent;
  font-size: 1rem;
}

.btn-primary {
  background-color: var(--color-accent);
  color: var(--color-white);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background-color: #236c6c;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  background-color: transparent;
  border-color: var(--color-primary);
  color: var(--color-primary);
}

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

.btn-secondary {
  background-color: var(--color-secondary);
  color: var(--color-primary);
}

.btn-secondary:hover {
  filter: brightness(0.95);
  transform: translateY(-2px);
}

/* Navbar */
.navbar {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

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

.nav-logo img {
  height: 50px;
}

.nav-links {
  display: flex;
  gap: 25px;
  align-items: center;
}

.nav-link {
  font-weight: 600;
  color: var(--color-primary);
  font-size: 0.95rem;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-accent);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--color-primary);
  cursor: pointer;
}

/* Sections */
section {
  padding: 80px 0;
}

.section-bg-light {
  background-color: var(--color-light-grey);
}

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

.page-header {
  background-color: var(--color-secondary);
  background-image: radial-gradient(circle at top right, rgba(42, 127, 127, 0.05), transparent 40%);
  padding: 100px 0 60px;
  text-align: center;
}

.page-header h1 {
  font-size: 2.8rem;
  margin-bottom: 16px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-header p {
  font-size: 1.2rem;
  color: var(--color-text);
  opacity: 0.8;
  max-width: 700px;
  margin: 0 auto;
}

/* Hero */
.hero {
  padding: 120px 0 100px;
  background-color: var(--color-secondary);
  background-image: radial-gradient(circle at 80% 20%, rgba(42, 127, 127, 0.15), transparent 50%);
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 24px;
  color: var(--color-primary);
  line-height: 1.1;
}

.hero p {
  font-size: 1.35rem;
  margin-bottom: 40px;
  color: var(--color-text);
  opacity: 0.9;
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 80px;
}

/* 3-Column Features (Home) */
.features-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 30px;
  text-align: left;
}

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

.feature-card {
  background: white;
  padding: 40px 30px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-accent);
}

.feature-card h3 {
  color: var(--color-primary);
  margin-bottom: 15px;
  font-size: 1.4rem;
}

.feature-card p {
  margin-bottom: 20px;
  flex-grow: 1;
  font-size: 1rem;
  opacity: 0.85;
}

.feature-card.highlight {
  border-top: 5px solid var(--color-accent);
  position: relative;
}

.feature-card.highlight::before {
  content: "Recommended";
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-accent);
  color: white;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
}

/* Service Page Cards */
.services-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 40px;
}

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

.service-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
  border-top: 4px solid var(--color-accent);
  transition: transform 0.2s;
}

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

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.tier-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

.tier-table th,
.tier-table td {
  text-align: left;
  padding: 12px;
  border-bottom: 1px solid #eee;
}

.tier-table th {
  color: var(--color-accent);
}

/* Sectors Grid */
.sector-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 30px;
}

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

@media (min-width: 1200px) {
  .sector-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.sector-card {
  background: white;
  padding: 30px;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: 0.3s;
}

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

.sector-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  display: block;
}

/* FAQ Accordion */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

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

.faq-item summary {
  padding: 20px;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  position: relative;
  padding-right: 40px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--color-accent);
}

.faq-item[open] summary::after {
  content: "-";
}

.faq-item p {
  padding: 0 20px 20px;
  color: var(--color-text);
  opacity: 0.9;
}

/* Footer */
.footer {
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer a {
  opacity: 0.7;
  transition: 0.2s;
}

.footer a:hover {
  opacity: 1;
  color: var(--color-accent);
}

/* Animation */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-100 {
  transition-delay: 0.1s;
}

.delay-200 {
  transition-delay: 0.2s;
}

.delay-300 {
  transition-delay: 0.3s;
}

/* Sticky WhatsApp */
.sticky-whatsapp {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #25D366;
  color: white;
  padding: 12px 24px;
  border-radius: 50px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 2000;
  font-weight: 600;
  transition: transform 0.3s;
}

.sticky-whatsapp:hover {
  transform: scale(1.05);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    padding: 20px;
    box-shadow: var(--shadow-lg);
    border-top: 1px solid #eee;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .page-header h1 {
    font-size: 2rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}