/* ===================================
   Atelier Koru - Massotherapie
   Main Stylesheet
   =================================== */

/* ---------- CSS Variables ---------- */
:root {
  --green-soft: #7FB069;
  --green-light: #A8D5A2;
  --green-dark: #5A8A4A;
  --cream: #FAF8F5;
  --warm-white: #FFFDF9;
  --text-primary: #3A3A3A;
  --text-secondary: #6B6B6B;
  --text-light: #767676;
  --border-light: #E8E4DF;
  --shadow-soft: 0 2px 20px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 4px 30px rgba(0, 0, 0, 0.1);
  --radius: 12px;
  --transition: 0.3s ease;
}

/* ---------- Skip Link ---------- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--green-soft);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 0 0 8px 8px;
  font-weight: 700;
  z-index: 999;
  text-decoration: none;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
}

/* ---------- Screen reader only ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Link-styled button ---------- */
.link-btn {
  background: none;
  border: none;
  padding: 0;
  font-family: 'Nunito', sans-serif;
  font-size: inherit;
  color: var(--green-soft);
  cursor: pointer;
  text-decoration: none;
  transition: color var(--transition);
}

.link-btn:hover {
  color: var(--green-dark);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Nunito', 'Segoe UI', sans-serif;
  color: var(--text-primary);
  background-color: var(--warm-white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--green-soft);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--green-dark);
}

/* ---------- Typography ---------- */
h1, h2, h3 {
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  color: var(--text-primary);
}

h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  position: relative;
}

h2::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background-color: var(--green-soft);
  margin-top: 0.5rem;
  border-radius: 2px;
}

p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

/* ---------- Layout ---------- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 3rem 0;
}

section:nth-child(even) {
  background-color: var(--cream);
}

/* ---------- Header / Navbar ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background-color: rgba(255, 253, 249, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-light);
  transition: box-shadow var(--transition);
}

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

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

/* ---------- Logo Lockup ---------- */
.logo-lockup {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.logo-lockup svg,
.logo-lockup img {
  height: 42px;
  width: auto;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-text .name {
  font-family: 'Nunito', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.logo-text .tagline {
  font-family: 'Nunito', sans-serif;
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-light);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------- Navigation ---------- */
.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav a {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 600;
  transition: color var(--transition);
}

.nav a:hover {
  color: var(--green-soft);
}

.lang-toggle {
  background: none;
  border: 2px solid var(--green-soft);
  color: var(--green-soft);
  padding: 0.3rem 0.7rem;
  border-radius: 6px;
  font-family: 'Nunito', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
}

.lang-toggle:hover {
  background-color: var(--green-soft);
  color: white;
}

/* Mobile menu button */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--text-primary);
  margin: 5px 0;
  transition: all var(--transition);
  border-radius: 2px;
}

/* ---------- Hero Section ---------- */
.hero {
  padding: 10rem 0 6rem;
  text-align: center;
  position: relative;
  background-image: url('../img/hero-bg.jpg');
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.52);
  z-index: 0;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
  color: #ffffff;
}

.hero h1 span {
  color: var(--green-light);
}

.hero p {
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto 2rem;
  color: rgba(255, 255, 255, 0.88);
}

.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: 8px;
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-primary {
  background-color: var(--green-soft);
  color: white;
  border: 2px solid var(--green-soft);
}

.btn-primary:hover {
  background-color: var(--green-dark);
  border-color: var(--green-dark);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn-secondary {
  background: none;
  color: var(--green-soft);
  border: 2px solid var(--green-soft);
  margin-left: 0.75rem;
}

.btn-secondary:hover {
  background-color: var(--green-soft);
  color: white;
  transform: translateY(-2px);
}

/* ---------- About Section ---------- */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  max-width: 280px;
  margin: 0 auto;
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.about-text .highlight {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  background-color: var(--warm-white);
  border-radius: 8px;
  margin-bottom: 0.75rem;
  border-left: 3px solid var(--green-soft);
}

.about-text .highlight svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--green-soft);
  margin-top: 0.15rem;
}

.about-text .highlight p {
  margin: 0;
  font-size: 0.95rem;
}

/* ---------- Services Section ---------- */
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

.service-card {
  background-color: var(--warm-white);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-soft);
  transition: all var(--transition);
  border: 1px solid var(--border-light);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

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

.service-card .type {
  font-size: 0.9rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
}

.service-card .price {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--green-soft);
  margin-bottom: 0.25rem;
}

.service-card .price-note {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.service-card .btn {
  width: 100%;
}

.services-note {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.95rem;
  color: var(--text-light);
  font-style: italic;
}

/* ---------- Services Photo Row ---------- */
.services-photos {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.services-photos .photo-circle {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
  border: 4px solid var(--green-soft);
  flex-shrink: 0;
  transition: transform var(--transition), box-shadow var(--transition);
}

.services-photos .photo-circle:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
}

.services-photos .photo-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.btn-booking {
  margin-bottom: 2rem;
}

.booking-note {
  max-width: 600px;
  margin: 1.5rem auto 0;
}

.booking-policy {
  margin-top: 0.5rem;
  font-size: 0.9rem;
}

/* ---------- Booking Section ---------- */
.booking {
  text-align: center;
}

.booking h2::after {
  margin-left: auto;
  margin-right: auto;
}

.booking p {
  max-width: 600px;
  margin: 0 auto 2rem;
}

/* ---------- Payment Methods ---------- */
.payment-methods {
  margin: 1.5rem auto 2rem;
  max-width: 600px;
}

.payment-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-light);
  margin-bottom: 0.75rem;
}

.payment-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.payment-break {
  width: 100%;
}

.payment-badge {
  display: inline-block;
  padding: 0.3rem 0.85rem;
  border: 1.5px solid var(--border-light);
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  background-color: var(--warm-white);
}

/* ---------- Contact Section ---------- */
.contact {
  position: relative;
  background-image: url('../img/contact-bg-fern.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.contact::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
  z-index: 0;
}

.contact .container {
  position: relative;
  z-index: 1;
}

.contact h2 {
  color: #ffffff;
}

.contact h2::after {
  background-color: var(--green-light);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-item .icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background-color: rgba(168, 213, 162, 0.25);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-item .icon svg {
  width: 20px;
  height: 20px;
  color: var(--green-light);
}

.contact-item .label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.85);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.2rem;
}

.contact-item .value {
  font-weight: 600;
  color: #ffffff;
  margin: 0;
}

.contact-item .value a {
  color: #ffffff;
}

.contact-item .value a:hover {
  color: var(--green-light);
}

.map-wrapper {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-light);
}

.map-wrapper iframe {
  width: 100%;
  height: 100%;
  min-height: 300px;
  border: none;
}

/* ---------- Footer ---------- */
.footer {
  background-color: var(--text-primary);
  color: var(--border-light);
  padding: 2rem 0;
  text-align: center;
  font-size: 0.9rem;
}

.footer p {
  color: #bbbbbb;
  margin: 0;
}

.footer a {
  color: var(--green-light);
}

.footer .fqm {
  margin-top: 0.5rem;
  font-size: 0.8rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .nav {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background-color: var(--warm-white);
    flex-direction: column;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-soft);
  }

  .nav.open {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

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

  .about-content {
    grid-template-columns: 1fr;
  }

  .about-image {
    order: -1;
  }

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

  .services-photos {
    gap: 1.5rem;
  }

  .services-photos .photo-circle {
    width: 150px;
    height: 150px;
  }

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

  .btn-secondary {
    margin-left: 0;
    margin-top: 0.5rem;
  }

  .hero .btn {
    display: block;
    margin: 0 auto 0.5rem;
    max-width: 280px;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 14px;
  }

  section {
    padding: 3.5rem 0;
  }

  .hero {
    padding: 8rem 0 4rem;
  }
}

/* ---------- Policy Modal ---------- */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-overlay.open {
  display: flex;
}

.modal {
  background: var(--warm-white);
  border-radius: var(--radius);
  padding: 2.5rem;
  max-width: 620px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.2);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  background: none;
  border: none;
  font-size: 1.75rem;
  line-height: 1;
  color: var(--text-light);
  cursor: pointer;
  transition: color var(--transition);
}

.modal-close:hover {
  color: var(--text-primary);
}

.modal-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
  border-bottom: 2px solid var(--border-light);
  padding-bottom: 0;
}

.modal-tab {
  background: none;
  border: none;
  padding: 0.6rem 1.25rem;
  font-family: 'Nunito', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-light);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: all var(--transition);
}

.modal-tab:hover {
  color: var(--green-soft);
}

.modal-tab.active {
  color: var(--green-soft);
  border-bottom-color: var(--green-soft);
  font-weight: 800;
}

.modal-content {
  display: none;
}

.modal-content.active {
  display: block;
}

.modal-content h3 {
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
  color: var(--text-primary);
}

.modal-content ul {
  padding-left: 1.25rem;
  color: var(--text-secondary);
}

.modal-content ul li {
  margin-bottom: 0.85rem;
  line-height: 1.6;
  font-size: 0.95rem;
}

.modal-content ul ul {
  margin-top: 0.5rem;
}

.modal-content a {
  color: var(--green-soft);
}

@media (max-width: 480px) {
  .modal {
    padding: 1.75rem 1.25rem;
  }
}
.placeholder-img {
  background-color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 0.9rem;
  font-style: italic;
  min-height: 250px;
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
