/* CSS Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* CSS Variables - Following Next.js version colors */
:root {
  /* Primary - Royal Blue */
  --primary: oklch(0.45 0.18 255);
  --primary-foreground: #ffffff;
  
  /* Background & Foreground */
  --background: oklch(0.985 0 0);
  --foreground: oklch(0.205 0.02 255);
  
  /* Card */
  --card: #ffffff;
  --card-foreground: oklch(0.205 0.02 255);
  
  /* Secondary */
  --secondary: oklch(0.96 0.01 255);
  --secondary-foreground: oklch(0.35 0.15 255);
  
  /* Muted */
  --muted: oklch(0.96 0.005 255);
  --muted-foreground: oklch(0.5 0.02 255);
  
  /* Border */
  --border: oklch(0.9 0.02 255);
  
  /* WhatsApp Green */
  --whatsapp: #25D366;
  
  /* Radius */
  --radius: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--foreground);
  background-color: var(--background);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Utility Classes */
.hidden {
  display: none !important;
}

/* ==================== HEADER ==================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  width: 100%;
}

/* Top Bar */
.top-bar {
  background-color: var(--primary);
  color: var(--primary-foreground);
  padding: 0.5rem 0;
}

.top-bar-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.top-bar-right {
  display: none;
}

.top-bar-item {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.top-bar-item-desktop {
  display: none;
}

@media (min-width: 640px) {
  .top-bar-item-desktop {
    display: flex;
  }
}

@media (min-width: 768px) {
  .top-bar-content {
    justify-content: space-between;
  }
  
  .top-bar-right {
    display: flex;
    align-items: center;
    gap: 0.25rem;
  }
}

/* Navbar */
.navbar {
  background-color: var(--card);
  border-bottom: 1px solid var(--border);
}

.navbar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-inner {
  display: flex;
  flex-direction: column;
}

.logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.logo-subtitle {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  margin-top: -0.125rem;
}

@media (min-width: 768px) {
  .logo-text {
    font-size: 1.875rem;
  }
}

@media (max-width: 928px) {
  .logo-inner {
  	padding-left: 0.75em;
  }
}

/* Desktop Navigation */
.nav-desktop {
  display: none;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-weight: 500;
  color: var(--foreground);
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--primary);
}

@media (min-width: 768px) {
  .nav-desktop {
    display: flex;
  }
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--foreground);
}

@media (min-width: 768px) {
  .mobile-menu-btn {
    display: none;
  }
}

/* Mobile Navigation */
.nav-mobile {
  display: none;
  background-color: var(--card);
  border-top: 1px solid var(--border);
  padding: 1rem 0;
}

.nav-mobile.active {
  display: block;
}

.nav-link-mobile {
  display: block;
  padding: 0.5rem 0;
  font-weight: 500;
  color: var(--foreground);
  transition: color 0.2s;
}

.nav-link-mobile:hover {
  color: var(--primary);
}

/* ==================== HERO SECTION ==================== */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  padding-top: 140px;
}

@media (min-width: 768px) {
  .hero {
    min-height: 90vh;
  }
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background-color: var(--primary);
  opacity: 0.7;
}

.hero-content {
  position: relative;
  z-index: 10;
}

.hero-text {
  max-width: 42rem;
  color: var(--primary-foreground);
}

.hero-badge {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
  opacity: 0.9;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  text-wrap: balance;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 3rem;
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 3.75rem;
  }
}

.hero-description {
  font-size: 1.125rem;
  margin-bottom: 2rem;
  opacity: 0.9;
  line-height: 1.7;
}

@media (min-width: 768px) {
  .hero-description {
    font-size: 1.25rem;
  }
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  padding: 0.75rem 2rem;
  border-radius: var(--radius-lg);
  transition: all 0.2s;
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-white {
  background-color: var(--card);
  color: var(--primary);
  border: none;
}

.btn-white:hover {
  background-color: rgba(255, 255, 255, 0.9);
}

.btn-outline-white {
  background-color: transparent;
  color: var(--primary-foreground);
  border: 2px solid var(--primary-foreground);
}

.btn-outline-white:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* ==================== SECTIONS ==================== */
.section {
  padding: 4rem 0;
}

@media (min-width: 768px) {
  .section {
    padding: 6rem 0;
  }
}

.section-bg {
  background-color: var(--background);
}

.section-secondary {
  background-color: var(--secondary);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-label {
  display: inline-block;
  color: var(--primary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.875rem;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--foreground);
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 2.25rem;
  }
}

.section-description {
  color: var(--muted-foreground);
  max-width: 42rem;
  margin: 0 auto;
}

/* ==================== PRODUCTS SECTION ==================== */
.products-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 4rem;
}

@media (min-width: 768px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.product-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-2xl);
  background-color: var(--card);
  border: 1px solid var(--border);
}

.product-image-wrapper {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .product-image {
  transform: scale(1.05);
}

.product-info {
  padding: 1.5rem;
}

.product-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 0.5rem;
}

.product-text {
  color: var(--muted-foreground);
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

@media (min-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.feature-card {
  text-align: center;
  padding: 1.5rem;
  background-color: var(--secondary);
  border-radius: var(--radius-xl);
}

.feature-title {
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.5rem;
}

.feature-text {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* ==================== ABOUT SECTION ==================== */
.about-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 768px) {
  .about-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.about-image-container {
  position: relative;
}

.about-image-wrapper {
  aspect-ratio: 1;
  border-radius: var(--radius-2xl);
  overflow: hidden;
}

.about-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-badge {
  display: none;
  position: absolute;
  bottom: -5rem;
  right: -1.5rem;
  width: 8rem;
  height: 8rem;
  background-color: var(--primary);
  border-radius: var(--radius-2xl);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: var(--primary-foreground);
  text-align: center;
}

@media (min-width: 768px) {
  .about-badge {
    display: flex;
  }
}

.about-badge-number {
  font-size: 1.875rem;
  font-weight: 700;
  display: block;
}

.about-badge-text {
  font-size: 0.75rem;
}

.about-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--foreground);
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .about-title {
    font-size: 2.25rem;
  }
}

.about-text {
  color: var(--muted-foreground);
  margin-bottom: 1rem;
  line-height: 1.7;
}

.about-features {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

@media (min-width: 640px) {
  .about-features {
    grid-template-columns: repeat(2, 1fr);
  }
}

.about-feature {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.about-feature-icon {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(30, 64, 175, 0.1);
  border-radius: var(--radius-lg);
  color: var(--primary);
}

.about-feature-content h4 {
  font-weight: 600;
  color: var(--foreground);
}

.about-feature-content p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* ==================== CONTACT SECTION ==================== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.contact-card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  text-align: center;
}

.contact-icon {
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(30, 64, 175, 0.1);
  color: var(--primary);
  border-radius: 50%;
  margin: 0 auto 1rem;
}

.contact-card-title {
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.5rem;
}

.contact-card-text {
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.contact-card-link {
  color: var(--primary);
  font-weight: 500;
}

.contact-card-link:hover {
  text-decoration: underline;
}

/* Map */
.map-container {
  margin-top: 3rem;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border);
}

/* ==================== FOOTER ==================== */
.footer {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

.footer-grid {
  display: grid;
  gap: 2rem;
  padding: 3rem 0;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.footer-logo {
  display: inline-block;
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-description {
  font-size: 0.875rem;
  opacity: 0.8;
  line-height: 1.7;
}

.footer-title {
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-nav a {
  font-size: 0.875rem;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.footer-nav a:hover {
  opacity: 1;
}

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.875rem;
  opacity: 0.8;
}

.footer-contact-item svg {
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.footer-contact-item a {
  opacity: 0.8;
  transition: opacity 0.2s;
}

.footer-contact-item a:hover {
  opacity: 1;
}

.footer-social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.footer-social-link:hover {
  opacity: 1;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding: 2rem 0;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.875rem;
  opacity: 0.6;
}

/* ==================== WHATSAPP FLOATING BUTTON ==================== */
.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.whatsapp-tooltip {
  background-color: var(--card);
  color: var(--foreground);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border);
  font-weight: 500;
  font-size: 0.875rem;
  opacity: 0;
  transform: translateX(1rem);
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
}

.whatsapp-float:hover .whatsapp-tooltip {
  opacity: 1;
  transform: translateX(0);
}

.whatsapp-button {
  position: relative;
  width: 3.5rem;
  height: 3.5rem;
  background-color: var(--whatsapp);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.2s;
}

.whatsapp-float:hover .whatsapp-button {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

.whatsapp-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background-color: var(--whatsapp);
  animation: pulse 2s infinite;
  opacity: 0.3;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.3;
  }
  50% {
    transform: scale(1.5);
    opacity: 0;
  }
}

/* Scroll margin for fixed header */
section[id] {
  scroll-margin-top: 120px;
}
