/*
  style.css � Landing Page for Espa�o B�rbara Rodrigues Massoterapia & SPA
  ---------------------------------------------------------------
  This stylesheet follows a modern design system using CSS variables,
  responsive layout, subtle animations, and a glass-morphism style.
*/

/* ----- Design Tokens ----- */
:root {
  --font-primary: 'Inter', sans-serif;
  --color-primary: hsl(210, 70%, 55%);
  /* vibrant blue */
  --color-primary-dark: hsl(210, 70%, 45%);
  --color-bg: hsl(0, 0%, 98%);
  --color-bg-dark: hsl(0, 0%, 5%);
  --color-text: hsl(210, 15%, 20%);
  --color-muted: hsl(210, 10%, 50%);
  --radius: 0.8rem;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  --transition: 0.3s ease;
}

/* Dark mode prefers */
@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: var(--color-bg-dark);
    --color-text: hsl(0, 0%, 90%);
    --color-muted: hsl(210, 10%, 70%);
  }
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-primary);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
}

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

.container {
  width: min(1200px, 90%);
  margin: 0 auto;
  padding: 1rem;
}

/* ----- Header ----- */
.site-header {
  background: rgba(198, 141, 245, 0.185);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: var(--shadow);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  height: 50px;
  transform: scale(1.6);
  transform-origin: left center;
  max-width: 100%;
}

.nav-menu ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav-menu a {
  text-decoration: none;
  color: var(--color-text);
  font-weight: 500;
  transition: var(--transition);
}

.nav-menu a:hover {
  color: var(--color-primary);
}

/* ----- Hero ----- */
.hero {
  position: relative;
  background: url('./img/logo/logo_premium.png') center/cover no-repeat;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.6));
}

.hero-content {
  position: relative;
  color: #fff;
  max-width: 800px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.cta-button {
  background: var(--color-primary);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

.cta-button:hover {
  background: var(--color-primary-dark);
}

/* ----- Sections ----- */
.section {
  padding: 4rem 0;
}

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

/* ----- Carousel ----- */
.carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
}

.carousel-track {
  display: flex;
  transition: transform var(--transition);
}

.carousel-item {
  min-width: 100%;
}

.carousel-item img {
  width: 50%;
  margin: 0 auto;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: none;
  padding: 0.5rem 1rem;
  cursor: pointer;
  font-size: 1.5rem;
  border-radius: var(--radius);
}

.carousel-btn.prev {
  left: 1rem;
}

.carousel-btn.next {
  right: 1rem;
}

/* ----- About ----- */
.about-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.about-img {
  width: 250px;
  border-radius: 50%;
  border: 4px solid var(--color-primary);
}

.about-text {
  max-width: 600px;
  text-align: center;
}

/* ----- Agenda ----- */
.agenda-inner {
  text-align: center;
}

.agenda-img {
  max-width: 500px;
  margin: 1rem auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ----- Contact ----- */
.contact-form {
  display: grid;
  gap: 1rem;
  max-width: 500px;
  margin: 0 auto;
}

.location-box {
  max-width: 500px;
  margin: 2rem auto 0;
  text-align: center;
}

.location-box h3 {
  margin-bottom: 0.5rem;
  color: var(--color-primary);
}

.location-box p {
  margin-bottom: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  margin-bottom: 0.3rem;
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.6rem;
  border: 1px solid #ccc;
  border-radius: var(--radius);
  font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}

.form-help {
  font-size: 0.9rem;
  color: var(--color-muted);
  text-align: center;
}

/* ----- Footer ----- */
.site-footer {
  background: rgba(198, 141, 245, 0.185);
  backdrop-filter: blur(8px);
  padding: 2rem 0;
  text-align: center;
  font-size: 0.9rem;
}

.footer-nav ul {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 0.5rem;
}

.footer-nav a {
  color: var(--color-muted);
  text-decoration: none;
}

.footer-nav a:hover {
  color: var(--color-primary);
}

/* ----- Responsive ----- */
@media (max-width: 767px) {
  * {
    max-width: 100%;
  }

  .container {
    width: 100%;
    max-width: 100%;
    padding: 0.8rem;
  }

  .section {
    padding: 2.5rem 0;
  }

  .header-inner {
    flex-direction: column;
    gap: 0.6rem;
    align-items: stretch;
  }

  .logo {
    height: 42px;
    transform: scale(1.2);
    transform-origin: left center;
    align-self: flex-start;
  }

  .nav-menu {
    width: 100%;
  }

  .nav-menu ul {
    gap: 0.8rem;
    flex-wrap: wrap;
    justify-content: flex-start;
    width: 100%;
  }

  .nav-menu a {
    font-size: 0.92rem;
  }

  .hero {
    min-height: 68vh;
  }

  .hero h1 {
    font-size: clamp(1.6rem, 8vw, 2.2rem);
  }

  .hero p {
    font-size: 1rem;
    margin-bottom: 1.2rem;
  }

  .carousel-item img {
    width: 88%;
  }

  .site-header,
  .site-footer,
  .hero,
  .section,
  .container {
    overflow-x: clip;
  }

  .carousel-btn {
    font-size: 1.1rem;
    padding: 0.35rem 0.65rem;
  }

  .carousel-btn.prev {
    left: 0.4rem;
  }

  .carousel-btn.next {
    right: 0.4rem;
  }

  .about-img {
    width: 190px;
  }

  .footer-nav ul {
    flex-wrap: wrap;
  }
}

@media (min-width: 768px) {
  .about-inner {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
  }

  .about-img {
    margin-right: 2rem;
  }
}
