/* =============================================
   CSS RESET
   ============================================= */

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

/* =============================================
   CUSTOM PROPERTIES
   ============================================= */

:root {
  /* Colors */
  --color-navy: #1a1f3d;
  --color-navy-light: #2a2f5d;
  --color-navy-dark: #12152d;
  --color-gold: #c9a84c;
  --color-gold-hover: #d4b85e;
  --color-white: #ffffff;
  --color-gray-light: #f8f8f8;
  --color-gray: #e0e0e0;
  --color-text: #333333;
  --color-text-light: #666666;
  --color-text-muted: #a0a8c0;

  /* Typography */
  --font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 2rem;
  --font-size-4xl: 3rem;
  --font-weight-normal: 400;
  --font-weight-bold: 700;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;

  /* Layout */
  --max-width: 1200px;
  --navbar-height: 72px;
  --border-radius: 8px;

  /* Transitions */
  --transition: 0.3s ease;
}

/* =============================================
   BASE STYLES
   ============================================= */

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--navbar-height);
}

body {
  font-family: var(--font-family);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* =============================================
   UTILITY CLASSES
   ============================================= */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.section {
  padding: var(--space-3xl) 0;
}

.section--navy {
  background-color: var(--color-navy);
  color: var(--color-white);
}

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

.section-label {
  display: inline-block;
  color: var(--color-gold);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-xs);
}

.section-title {
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-bold);
  line-height: 1.2;
  margin-bottom: var(--space-md);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

/* =============================================
   BUTTONS
   ============================================= */

.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: var(--border-radius);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-bold);
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  text-align: center;
}

.btn--gold {
  background-color: var(--color-gold);
  color: var(--color-navy);
  border-color: var(--color-gold);
}

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

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

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

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

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--navbar-height);
  background-color: var(--color-navy);
  display: flex;
  align-items: center;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.navbar__logo {
  display: flex;
  align-items: center;
}

.navbar__logo-img {
  height: 40px;
  width: auto;
}

.navbar__links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.navbar__link {
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color var(--transition);
}

.navbar__link:hover {
  color: var(--color-white);
}

.navbar__link--active {
  color: var(--color-gold);
}

.navbar__hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

.navbar__hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background-color: var(--color-white);
  transition: var(--transition);
  transform-origin: center;
}

.navbar__hamburger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

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

.navbar__hamburger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

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

.footer {
  background-color: var(--color-navy-dark);
  color: var(--color-text-muted);
  padding: var(--space-xl) 0;
  text-align: center;
}

.footer__copy {
  font-size: var(--font-size-sm);
}

/* =============================================
   WHATSAPP BUTTON
   ============================================= */

.whatsapp-btn {
  position: fixed;
  bottom: var(--space-lg);
  right: var(--space-lg);
  z-index: 999;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: #25D366;
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-xl);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  transition: transform var(--transition), box-shadow var(--transition);
}

.whatsapp-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

/* =============================================
   PAGE HEADER
   ============================================= */

.page-header {
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-light) 100%);
  color: var(--color-white);
  text-align: center;
  padding: var(--space-3xl) 0 var(--space-2xl);
  margin-top: var(--navbar-height);
}

.page-header .section-label {
  margin-bottom: var(--space-sm);
}

.page-header .section-title {
  color: var(--color-white);
}

/* =============================================
   CARDS
   ============================================= */

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.card {
  background-color: var(--color-white);
  border-radius: var(--border-radius);
  padding: var(--space-xl);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.card__icon {
  font-size: var(--font-size-3xl);
  margin-bottom: var(--space-sm);
  color: var(--color-gold);
}

.card__title {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-navy);
  margin-bottom: var(--space-xs);
}

.card__text {
  font-size: var(--font-size-base);
  color: var(--color-text-light);
  line-height: 1.7;
  margin-bottom: var(--space-sm);
}

.card__link {
  color: var(--color-gold);
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-sm);
  transition: color var(--transition);
}

.card__link:hover {
  color: var(--color-gold-hover);
}

/* =============================================
   STATS BAR
   ============================================= */

.stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-3xl);
  flex-wrap: wrap;
}

.stat {
  text-align: center;
}

.stat__number {
  display: block;
  font-size: var(--font-size-4xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-gold);
  line-height: 1;
}

.stat__label {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: var(--space-xs);
}

/* =============================================
   PROCESS STEPS
   ============================================= */

.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  text-align: center;
}

.process__step {
  padding: var(--space-lg);
}

.process__icon {
  font-size: var(--font-size-3xl);
  color: var(--color-gold);
  margin-bottom: var(--space-sm);
}

.process__number {
  display: inline-block;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--color-gold);
  color: var(--color-navy);
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-base);
  line-height: 40px;
  text-align: center;
  margin-bottom: var(--space-sm);
}

.process__title {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-xs);
}

.process__text {
  font-size: var(--font-size-sm);
  color: var(--color-text-light);
  line-height: 1.7;
}

/* =============================================
   TESTIMONIALS
   ============================================= */

.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.testimonial {
  background-color: var(--color-white);
  border-radius: var(--border-radius);
  padding: var(--space-xl);
  border-left: 4px solid var(--color-gold);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
}

.testimonial__quote {
  font-size: var(--font-size-base);
  color: var(--color-text-light);
  line-height: 1.8;
  margin-bottom: var(--space-md);
  font-style: italic;
}

.testimonial__author {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-bold);
  color: var(--color-navy);
}

/* =============================================
   SERVICE BLOCKS
   ============================================= */

.service-block {
  display: flex;
  align-items: center;
  gap: var(--space-3xl);
  margin-bottom: var(--space-3xl);
}

.service-block--reverse {
  flex-direction: row-reverse;
}

.service-block__image {
  flex: 1;
  border-radius: var(--border-radius);
  overflow: hidden;
  min-height: 320px;
  background-color: var(--color-gray);
}

.service-block__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-block__content {
  flex: 1;
}

.service-block__number {
  display: block;
  font-size: var(--font-size-4xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-gray);
  line-height: 1;
  margin-bottom: var(--space-xs);
}

.service-block__title {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-navy);
  margin-bottom: var(--space-sm);
}

.service-block__text {
  font-size: var(--font-size-base);
  color: var(--color-text-light);
  line-height: 1.8;
  margin-bottom: var(--space-md);
}

.service-block__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

.tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background-color: var(--color-gray-light);
  color: var(--color-text-light);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid var(--color-gray);
}

/* =============================================
   FAQ ACCORDION
   ============================================= */

.faq__item {
  border-bottom: 1px solid var(--color-gray);
}

.faq__question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: var(--space-md) 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-family);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  color: var(--color-navy);
  text-align: left;
  transition: color var(--transition);
}

.faq__question:hover {
  color: var(--color-gold);
}

.faq__question::after {
  content: '+';
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-normal);
  color: var(--color-gold);
  flex-shrink: 0;
  margin-left: var(--space-sm);
  transition: transform var(--transition);
}

.faq__question.active::after {
  content: '−';
}

.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}

.faq__answer.active {
  max-height: 500px;
}

.faq__answer p {
  padding-bottom: var(--space-md);
  color: var(--color-text-light);
  line-height: 1.8;
}

/* =============================================
   CONTACT FORM
   ============================================= */

.form {
  max-width: 640px;
  margin: 0 auto;
}

.form__group {
  margin-bottom: var(--space-md);
}

.form__label {
  display: block;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-bold);
  color: var(--color-navy);
  margin-bottom: var(--space-xs);
}

.form__input,
.form__select,
.form__textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--color-gray);
  border-radius: var(--border-radius);
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  color: var(--color-text);
  background-color: var(--color-white);
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
}

.form__input:focus,
.form__select:focus,
.form__textarea:focus {
  outline: none;
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.15);
}

.form__textarea {
  resize: vertical;
  min-height: 140px;
}

/* =============================================
   ABOUT PAGE
   ============================================= */

.history {
  display: flex;
  gap: var(--space-3xl);
  align-items: center;
}

.history__image {
  flex: 1;
  border-radius: var(--border-radius);
  overflow: hidden;
  min-height: 300px;
  background-color: var(--color-gray);
}

.history__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.history__content {
  flex: 1;
}

.history__title {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-navy);
  margin-bottom: var(--space-sm);
}

.history__text {
  font-size: var(--font-size-base);
  color: var(--color-text-light);
  line-height: 1.8;
  margin-bottom: var(--space-sm);
}

.differentiator__icon {
  font-size: var(--font-size-3xl);
  color: var(--color-gold);
  margin-bottom: var(--space-sm);
}

/* =============================================
   CTA SECTION
   ============================================= */

.cta {
  text-align: center;
}

.cta__title {
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-white);
  margin-bottom: var(--space-sm);
}

.cta__text {
  font-size: var(--font-size-lg);
  color: var(--color-text-muted);
  margin-bottom: var(--space-xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Product Cards (on dark background) --- */
.product-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(201, 168, 76, 0.2);
  color: var(--color-white);
}

.product-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--color-gold);
}

.product-card .card__title {
  color: var(--color-gold);
}

.product-card .card__text {
  color: var(--color-text-muted);
}

.product-card .tag {
  background: rgba(201, 168, 76, 0.15);
  color: var(--color-gold);
}

/* Product cards grid: center last row when incomplete */
.section--navy .cards {
  justify-items: center;
}

.section--navy .cards .card:nth-last-child(2):nth-child(3n + 1),
.section--navy .cards .card:nth-last-child(1):nth-child(3n + 2) {
  /* When 2 items on last row, offset to center */
}

/* Better approach: use flexbox for product cards to center last row */
.products-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-lg);
  justify-content: center;
}

.products-grid .card {
  flex: 0 1 calc(33.333% - var(--space-lg));
  min-width: 280px;
}

/* =============================================
   HERO (HOME)
   ============================================= */

.hero {
  background: linear-gradient(135deg, var(--color-navy-dark) 0%, var(--color-navy) 50%, var(--color-navy-light) 100%);
  min-height: 85vh;
  display: flex;
  align-items: center;
  padding-top: var(--navbar-height);
}

.hero__container {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.hero__title {
  font-size: var(--font-size-4xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-white);
  line-height: 1.15;
  margin-bottom: var(--space-md);
}

.hero__title span {
  color: var(--color-gold);
}

.hero__subtitle {
  font-size: var(--font-size-lg);
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-xl);
}

.hero__actions {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  flex-wrap: wrap;
}

/* =============================================
   RESPONSIVE BREAKPOINTS
   ============================================= */

/* --- 1024px: 2-column grids --- */
@media (max-width: 1024px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonials {
    grid-template-columns: repeat(2, 1fr);
  }

  .process {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* --- 768px: Mobile --- */
@media (max-width: 768px) {
  :root {
    --font-size-4xl: 2rem;
    --font-size-3xl: 1.5rem;
    --font-size-2xl: 1.25rem;
  }

  /* Navbar mobile */
  .navbar__hamburger {
    display: flex;
  }

  .navbar__links {
    display: none;
    position: absolute;
    top: var(--navbar-height);
    left: 0;
    right: 0;
    background-color: var(--color-navy-dark);
    flex-direction: column;
    padding: var(--space-md) var(--space-lg);
    gap: var(--space-sm);
  }

  .navbar__links.active {
    display: flex;
  }

  .navbar__link {
    font-size: var(--font-size-base);
    padding: var(--space-xs) 0;
  }

  /* All grids to 1-col */
  .cards,
  .testimonials,
  .process {
    grid-template-columns: 1fr;
  }

  /* Service blocks stack vertically */
  .service-block,
  .service-block--reverse {
    flex-direction: column;
  }

  .service-block__image {
    width: 100%;
    min-height: 200px;
  }

  /* History stacks vertically */
  .history {
    flex-direction: column;
  }

  .history__image {
    width: 100%;
  }

  /* Stats wrap */
  .stats {
    gap: var(--space-xl);
  }

  /* Footer stacks */
  .footer {
    padding: var(--space-lg) 0;
  }

  /* Hero adjustments */
  .hero__container {
    padding: 0 var(--space-sm);
  }

  /* Container padding */
  .container {
    padding: 0 var(--space-sm);
  }

  /* Section padding */
  .section {
    padding: var(--space-2xl) 0;
  }
}
