/* ===========================================
   SAPA ROUQUETTE — Main Stylesheet
   Pure CSS — Zero WordPress dependencies
   =========================================== */

@import url('reset.css');
@import url('fonts.css');
@import url('variables.css');

/* ---- Base ---- */
body {
  font-family: var(--font-primary);
  font-weight: var(--font-weight-regular);
  color: var(--color-text-primary);
  background-color: var(--color-primary);
}

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

.container--narrow {
  max-width: var(--max-width-narrow);
}

/* ---- Typography ---- */
h1, h2, h3, h4, h5, h6 {
  font-weight: var(--font-weight-semibold);
  line-height: 1.2;
}

h1 { font-size: var(--text-6xl); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }

p {
  margin-bottom: var(--space-md);
  line-height: 1.7;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-sm) var(--space-xl);
  font-family: var(--font-primary);
  font-weight: var(--font-weight-medium);
  font-size: var(--text-base);
  border-radius: var(--border-radius);
  transition: all var(--transition-base);
  cursor: pointer;
  border: 2px solid transparent;
  text-decoration: none;
}

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

.btn--primary:hover {
  background-color: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

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

/* ---- Header ---- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-height);
  display: flex;
  align-items: center;
  background-color: var(--color-primary);
  transition: box-shadow var(--transition-base);
}

.header--scrolled {
  box-shadow: var(--shadow-md);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.header__logo img {
  height: 50px;
  width: auto;
}

.header__logo-text {
  color: var(--color-white);
  font-size: var(--text-lg);
  font-weight: var(--font-weight-semibold);
  letter-spacing: 1.5px;
  white-space: nowrap;
}

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

.header__nav a {
  font-weight: var(--font-weight-medium);
  font-size: var(--text-base);
  color: var(--color-white);
  transition: color var(--transition-fast);
  position: relative;
}

.header__nav a:hover,
.header__nav a.active {
  color: var(--color-accent);
}

.header__nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-accent);
  transition: width var(--transition-base);
}

.header__nav a:hover::after,
.header__nav a.active::after {
  width: 100%;
}

/* Language switcher */
.header__lang {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: var(--space-lg);
}

.header__lang a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 22px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
  color: var(--color-white);
  background: rgba(255, 255, 255, 0.15);
  transition: all var(--transition-fast);
  letter-spacing: 0.5px;
}

.header__lang a:hover,
.header__lang a.active-lang {
  background: var(--color-accent);
  color: var(--color-black);
}

/* Credit Marta */
.footer__credit {
  text-align: center;
  padding-top: var(--space-sm);
  font-size: 11px;
  color: var(--color-text-secondary);
  opacity: 0.6;
  letter-spacing: 0.5px;
}

.footer__credit span {
  color: var(--color-accent);
  font-weight: var(--font-weight-medium);
}

/* Mobile menu toggle */
.header__menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-sm);
}

.header__menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-white);
  transition: all var(--transition-base);
}

/* ---- Hero Section ---- */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-5xl) var(--space-lg);
  margin-top: var(--header-height);
  overflow: hidden;
}

.hero__background {
  position: absolute;
  inset: -20%;
  z-index: 0;
  will-change: transform;
}

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

/* Scroll-down arrow */
.hero__scroll-arrow {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  animation: bounceArrow 2s ease-in-out infinite;
  opacity: 0.8;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

.hero__scroll-arrow svg {
  width: 36px;
  height: 36px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

@keyframes bounceArrow {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.8; }
  50% { transform: translateX(-50%) translateY(12px); opacity: 1; }
}

/* Inline arrow variant (inside hero__content, above buttons) */
.hero__scroll-arrow--inline {
  position: relative;
  bottom: auto;
  left: auto;
  transform: none;
  margin: 0 auto var(--space-lg);
  display: block;
  animation: bounceArrowInline 2s ease-in-out infinite;
}

@keyframes bounceArrowInline {
  0%, 100% { transform: translateY(0); opacity: 0.8; }
  50% { transform: translateY(10px); opacity: 1; }
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(54, 81, 64, 0.7);
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero__title {
  font-size: var(--text-6xl);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-lg);
  color: var(--color-white);
}

.hero__subtitle {
  font-size: var(--text-xl);
  font-weight: var(--font-weight-light);
  margin-bottom: var(--space-2xl);
  color: var(--color-text-secondary);
}

/* ---- Sections ---- */
.section {
  padding: var(--space-5xl) 0;
  position: relative;
}

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

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

.section__title {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

/* Wave separator */
.wave-separator {
  position: relative;
  height: 60px;
  overflow: hidden;
  line-height: 0;
}

.wave-separator--dark-to-light {
  background: var(--color-primary);
}

.wave-separator--dark-to-light svg {
  fill: var(--color-gray-100);
}

.wave-separator--light-to-dark {
  background: var(--color-gray-100);
}

.wave-separator--light-to-dark svg {
  fill: var(--color-primary);
}

.wave-separator svg {
  display: block;
  width: 100%;
  height: 60px;
}

/* Value card icons */
.value-card {
  text-align: center;
  padding: var(--space-xl);
}

.value-card__icon {
  margin-bottom: var(--space-lg);
}

.value-card__icon svg {
  width: 56px;
  height: 56px;
  stroke: var(--color-accent);
  stroke-width: 1.5;
  fill: none;
  transition: transform var(--transition-base);
}

.value-card:hover .value-card__icon svg {
  transform: scale(1.1);
}

/* Footer social SVG icons */
.footer__social a svg {
  width: 20px;
  height: 20px;
  fill: var(--color-white);
  transition: fill var(--transition-fast);
}

.footer__social a:hover svg {
  fill: var(--color-black);
}

/* Google Maps embed */
.contact-map {
  margin-top: var(--space-3xl);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.contact-map iframe {
  width: 100%;
  height: 350px;
  border: none;
  filter: grayscale(30%) contrast(1.1);
  transition: filter var(--transition-base);
}

.contact-map iframe:hover {
  filter: grayscale(0%) contrast(1);
}

/* ---- Grid ---- */
.grid {
  display: grid;
  gap: var(--space-xl);
}

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

/* ---- Product Cards ---- */
.product-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.product-card__image {
  aspect-ratio: 1;
  overflow: hidden;
}

.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.product-card:hover .product-card__image img {
  transform: scale(1.1);
}

.section--light .product-card {
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
}

.section--light .product-card:hover {
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

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

.product-card__title {
  font-size: var(--text-xl);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-sm);
}

.product-card__description {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

/* ---- Contact Form ---- */
.form {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  max-width: 600px;
}

.form__group {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.form__label {
  font-weight: var(--font-weight-medium);
  font-size: var(--text-sm);
}

.form__input,
.form__textarea {
  padding: var(--space-sm) var(--space-md);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--border-radius);
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-white);
  font-size: var(--text-base);
  transition: border-color var(--transition-fast);
}

.form__input:focus,
.form__textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}

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

/* ---- Footer ---- */
.footer {
  background-color: var(--color-gray-900);
  padding: var(--space-3xl) 0 var(--space-xl);
}

.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-3xl);
  margin-bottom: var(--space-2xl);
}

.footer__brand p {
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
  max-width: 400px;
}

.footer__heading {
  font-size: var(--text-lg);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-md);
  color: var(--color-accent);
}

.footer__links a {
  display: block;
  padding: var(--space-xs) 0;
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
  transition: color var(--transition-fast);
}

.footer__links a:hover {
  color: var(--color-accent);
}

.footer__social {
  display: flex;
  gap: var(--space-md);
}

.footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transition: background var(--transition-fast);
}

.footer__social a:hover {
  background: var(--color-accent);
  color: var(--color-black);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-lg);
  text-align: center;
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  h1 { font-size: var(--text-4xl); }
  h2 { font-size: var(--text-3xl); }
  .wave-separator { height: 35px; }
  .wave-separator svg { height: 35px; }
  .hero__scroll-arrow { bottom: 20px; }
  .hero__scroll-arrow svg { width: 28px; height: 28px; }
  .contact-map iframe { height: 250px; }

  .header__lang { margin-left: auto; margin-right: var(--space-sm); }
  .header__nav { display: none; }
  .header__nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--color-primary);
    padding: var(--space-xl);
    box-shadow: var(--shadow-lg);
  }
  .header__menu-toggle { display: flex; }

  .hero { min-height: 60vh; padding-top: calc(var(--header-height) + var(--space-2xl)); }
  .hero__title { font-size: var(--text-4xl); }

  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }

  .footer__inner { grid-template-columns: 1fr; gap: var(--space-xl); }
}

@media (max-width: 480px) {
  h1 { font-size: var(--text-3xl); }
  .hero__title { font-size: var(--text-3xl); }
}
