/* ============================================
   LAVA ARTISAN - STYLES
   Mobile-First Architecture
   ============================================ */

:root {
  --primary-color: #2563eb;
  --secondary-color: #1e40af;
  --accent-color: #f59e0b;
  --text-dark: #1f2937;
  --text-light: #6b7280;
  --bg-light: #f9fafb;
  --bg-white: #ffffff;
  --border-color: #e5e7eb;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-light);
  line-height: 1.6;
  font-size: 16px;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* ============================================
   CONTAINER
   ============================================ */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  box-sizing: border-box;
}

/* ============================================
   NAVBAR
   ============================================ */

.navbar {
  background-color: var(--bg-white);
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  box-shadow: var(--shadow-lg);
}

.navbar-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-sizing: border-box;
}

.logo h1 {
  font-size: 1.75rem;
  color: var(--primary-color);
  margin: 0;
  font-weight: 700;
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  gap: 5px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: var(--text-dark);
  transition: all 0.3s ease;
  display: block;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(10px, 10px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Nav Menu */
.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  padding: 0.5rem 0;
}

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

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary-color);
}

/* ============================================
   MAIN & SECTIONS
   ============================================ */

main {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

section {
  padding: 3rem 1rem;
  box-sizing: border-box;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--bg-white);
  padding: 4rem 1rem;
  text-align: center;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
}

.hero-content {
  animation: fadeInUp 0.8s ease-in-out;
  max-width: 600px;
  padding: 0 1rem;
}

.hero-title {
  font-size: 2rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.hero-subtitle {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  opacity: 0.95;
}

.cta-button {
  display: inline-block;
  background-color: var(--accent-color);
  color: var(--bg-white);
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.cta-button:hover {
  background-color: #d97706;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.cta-button:focus {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

/* ============================================
   SERVICES SECTION
   ============================================ */

.services {
  background-color: var(--bg-white);
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.service-card {
  background-color: var(--bg-light);
  padding: 1.5rem;
  border-radius: 0.5rem;
  border-left: 4px solid var(--primary-color);
  transition: all 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  background-color: var(--bg-white);
}

.service-card h3 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.service-card p {
  color: var(--text-light);
  margin-bottom: 1rem;
}

.price {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--bg-white);
  padding: 0.25rem 0.75rem;
  border-radius: 0.25rem;
  font-weight: 600;
  font-size: 0.9rem;
}

/* ============================================
   FEATURES SECTION
   ============================================ */

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

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.feature-item {
  background-color: var(--bg-white);
  padding: 2rem;
  border-radius: 0.5rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

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

.feature-item h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.feature-item p {
  color: var(--text-light);
}

/* ============================================
   SECTION TITLE
   ============================================ */

.section-title {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--primary-color);
  text-align: center;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
  background-color: var(--text-dark);
  color: var(--bg-white);
  padding: 2rem 1rem;
  text-align: center;
  box-sizing: border-box;
}

.footer-links {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.footer a {
  color: var(--accent-color);
  text-decoration: none;
  transition: all 0.3s ease;
}

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

/* ============================================
   BREADCRUMB
   ============================================ */

.breadcrumb-wrapper {
  background-color: var(--bg-white);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 1rem;
  box-sizing: border-box;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.95rem;
  color: var(--text-light);
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.breadcrumb li {
  display: inline-flex;
  align-items: center;
}

.breadcrumb li::after {
  content: '/';
  margin: 0 0.5rem;
  color: var(--border-color);
}

.breadcrumb li:last-child::after {
  content: '';
}

.breadcrumb a {
  color: var(--text-dark);
  text-decoration: none;
}

.breadcrumb a:hover,
.breadcrumb li[aria-current='page'] {
  color: var(--primary-color);
}

/* ============================================
   SCROLL REVEAL
   ============================================ */

.scroll-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  will-change: opacity, transform;
}

.scroll-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   FAQ SECTION
   ============================================ */

.faq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.faq-item {
  background-color: var(--bg-white);
  padding: 1.5rem;
  border-radius: 0.75rem;
  box-shadow: var(--shadow-sm);
}

.faq-item h4 {
  margin-bottom: 0.75rem;
  color: var(--primary-color);
}

/* ============================================
   FORMS
   ============================================ */

form {
  max-width: 600px;
  margin: 2rem auto;
}

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

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-dark);
}

input,
textarea,
select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 0.25rem;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

button[type="submit"] {
  width: 100%;
  padding: 0.75rem;
  background-color: var(--primary-color);
  color: var(--bg-white);
  border: none;
  border-radius: 0.25rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

button[type="submit"]:hover {
  background-color: var(--secondary-color);
}

button[type="submit"]:active {
  transform: scale(0.98);
}

/* ============================================
   FORM VALIDATION
   ============================================ */

.form-error {
  display: block;
  min-height: 1.25rem;
  margin-top: 0.35rem;
  color: #dc2626;
  font-size: 0.92rem;
}

input.invalid,
select.invalid,
textarea.invalid {
  border-color: #dc2626;
  background-color: rgba(248, 113, 113, 0.08);
}

.form-success {
  display: none;
  background-color: rgba(34, 197, 94, 0.08);
  border: 1px solid #22c55e;
  border-radius: 0.75rem;
  padding: 1.5rem;
  margin-top: 2rem;
}

.form-success h3 {
  margin-bottom: 0.5rem;
  color: #047857;
  font-size: 1.2rem;
}

.form-success p {
  margin: 0;
  color: var(--text-dark);
}

/* ============================================
   TABLE RESPONSIVE
   ============================================ */

.comparison-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1rem 0;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

.comparison-table th,
.comparison-table td {
  padding: 0.75rem 1rem;
  border: 1px solid rgba(0, 0, 0, 0.12);
  text-align: left;
}

.comparison-table th {
  background-color: rgba(37, 99, 235, 0.08);
  font-weight: 600;
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
  nav,
  footer,
  .cta-button {
    display: none;
  }

  body {
    background-color: var(--bg-white);
  }
}
