/* Perruquers Mora - Distinctive Natural Elegance */

/* CSS Variables */
:root {
  --color-primary: #6B4423;
  --color-secondary: #8B5A3C;
  --color-light: #F5EDE4;
  --color-dark: #2C2C2C;
  --color-white: #FFFFFF;
  --color-accent: #A0826D;
  --color-beige: #E8DED1;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Lato', 'Helvetica Neue', sans-serif;

  --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-soft: 0 8px 32px rgba(107, 68, 35, 0.12);
  --shadow-medium: 0 12px 48px rgba(107, 68, 35, 0.18);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-dark);
  background: var(--color-white);
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-smooth);
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

p {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  margin-bottom: 1rem;
}

/* Header */
.header {
  
  background: var(--color-white);
  
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
  animation: slideDown 0.6s ease-out;
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.header-top {
  background: var(--color-light);
  padding: 0.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--color-dark);
  border-bottom: 1px solid rgba(107, 68, 35, 0.1);
}

.header-info {
  display: flex;
  gap: 2rem;
}

.header-main {
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: block;
  width: 80px;
  transition: var(--transition-smooth);
}

.logo img {
  width: 100%;
  height: auto;
  display: block;
}

.logo:hover {
  transform: scale(1.05);
  opacity: 0.8;
}

.nav {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.nav a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-dark);
  position: relative;
  padding: 0.5rem 0;
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width 0.3s ease;
}

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

.nav a.active {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 0.6rem 1.5rem;
  border-radius: 4px;
}

.nav a.active::after {
  display: none;
}

/* Hero Section */
.hero {
  min-height: 50vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.4) 0%, rgba(245, 237, 228, 0.90) 50%, rgba(255, 255, 255, 0.4) 100%);
  z-index:1;
}

.hero-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 3rem 2rem;
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-text {
  animation: fadeInLeft 1s ease-out;
  max-width: 700px;
}

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

.hero-title {
  font-size: clamp(3rem, 6vw, 5rem);
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.brand-name {
  color: var(--color-dark);
  font-weight: 200;
  font-size: 2rem;
  display: block;
}

.brand-name-accent {
  color: var(--color-primary);
  display: block;
  font-weight: 900;
}

.hero-subtitle {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--color-primary);
  font-size: 1.2rem;
  margin-top: 2rem;
  line-height: 1.6;
}

.hero-image {
  position: relative;
  animation: fadeInRight 1s ease-out;
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.hero-image img {
  border-radius: 8px;
  box-shadow: var(--shadow-medium);
}

.large-letter {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  pointer-events: none;
  opacity: 0.12;
  width: 45%;
  max-width: 600px;
}

.large-letter img {
  width: 100%;
  height: auto;
  display: block;
}

/* Section */
.section {
  padding: 5rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  margin-bottom: 1rem;
  color: var(--color-dark);
}

.section-subtitle {
  text-align: center;
  color: var(--color-dark);
  max-width: 800px;
  margin: 0 auto 3rem;
  font-size: 1.1rem;
  line-height: 1.8;
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
  margin: 4rem 0;
}

.service-card {
  text-align: center;
  transition: var(--transition-smooth);
  animation: fadeInUp 0.8s ease-out backwards;
}

.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }

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

.service-card:hover {
  transform: translateY(-8px);
}

.service-image {
  width: 260px;
  height: 260px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: var(--transition-smooth);
  position: relative;
}

.service-card:hover .service-image {
  box-shadow: var(--shadow-medium);
  transform: scale(1.05);
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.service-card:hover .service-image img {
  transform: scale(1.1);
}

.service-title {
  font-size: 1.5rem;
  color: var(--color-dark);
  font-family: var(--font-display);
}

/* AVEDA Section */
.aveda-section {
  background: var(--color-light);
  padding: 5rem 2rem;
  margin: 4rem 0;
}

.aveda-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.aveda-text h2 {
  margin-bottom: 1.5rem;
  color: var(--color-dark);
}

.aveda-text p {
  color: var(--color-dark);
  margin-bottom: 2rem;
}

.btn {
  display: inline-block;
  background: var(--color-primary);
  color: var(--color-white);
  padding: 0.9rem 2.5rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition-smooth);
  border: 2px solid var(--color-primary);
  cursor: pointer;
}

.btn:hover {
  background: var(--color-secondary);
  border-color: var(--color-secondary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.aveda-image img {
  border-radius: 8px;
  box-shadow: var(--shadow-medium);
}

/* Quote */
.quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.3rem;
  text-align: center;
  color: var(--color-primary);
  margin: 4rem auto;
  max-width: 900px;
  line-height: 1.8;
  padding: 2rem;
}

/* Gallery Section */
.gallery-banner {
  width: 100%;
  height: 30vh;
  background: var(--color-primary);
  margin: 3rem 0;
  overflow: hidden;
  position: relative;
}

.gallery-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
  mix-blend-mode: multiply;
}

.gallery-intro {
  text-align: center;
  margin: 4rem auto;
  max-width: 800px;
}

.gallery-intro h2 {
  margin-bottom: 1rem;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin: 3rem 0;
}

.photo-grid img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: var(--shadow-soft);
  transition: var(--transition-smooth);
  cursor: pointer;
}

.photo-grid img:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-medium);
}

/* Legal Pages */
.legal-page {
  margin-top: 140px;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  padding: 3rem 2rem;
  min-height: 70vh;
}

.legal-page h1 {
  margin-bottom: 2rem;
  color: var(--color-dark);
}

.legal-page h2 {
  margin: 2rem 0 1rem;
  font-size: 1.5rem;
  color: var(--color-primary);
}

.legal-page h3 {
  margin: 1.5rem 0 0.8rem;
  font-size: 1.2rem;
  color: var(--color-dark);
}

.legal-page p {
  margin-bottom: 1.2rem;
  text-align: justify;
  line-height: 1.8;
}

.legal-page ol, .legal-page ul {
  margin: 1rem 0 1.5rem 2rem;
  line-height: 1.8;
}

.legal-page li {
  margin-bottom: 0.8rem;
}

.legal-page a {
  color: var(--color-primary);
  text-decoration: underline;
}

.legal-page a:hover {
  color: var(--color-secondary);
}

/* Services Page */
.services-hero {
  margin-top: 120px;
  height: 50vh;
  background: var(--color-dark);
  position: relative;
  overflow: hidden;
}

.services-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
}

.services-detail {
  background: var(--color-beige);
  padding: 4rem 2rem;
}

.service-item {
  max-width: 1200px;
  margin: 4rem auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.service-item:nth-child(even) {
  direction: rtl;
}

.service-item:nth-child(even) > * {
  direction: ltr;
}

.service-item-image {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-medium);
}

.service-item-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.service-item:hover .service-item-image img {
  transform: scale(1.05);
}

.service-item-text h3 {
  margin-bottom: 1rem;
  color: var(--color-dark);
}

.service-highlight {
  color: var(--color-primary);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
}

.service-item-text p {
  color: var(--color-dark);
  line-height: 1.9;
}

.service-item-text ul {
  list-style: none;
  margin-top: 1rem;
}

.service-item-text li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: var(--color-dark);
}

.service-item-text li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1rem;
  width: 6px;
  height: 6px;
  background: var(--color-primary);
  border-radius: 50%;
}

/* Footer */
.footer {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 3rem 2rem 1.5rem;
  margin-top: 4rem;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 2fr 1.5fr;
  gap: 4rem;
  margin-bottom: 3rem;
}

.footer-logo {
  width: 120px;
}

.footer-logo img {
  width: 100%;
  height: auto;
  display: block;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

.footer-section h3 {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--color-light);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: var(--color-white);
  opacity: 0.9;
  transition: var(--transition-smooth);
}

.footer-links a:hover {
  opacity: 1;
  padding-left: 0.5rem;
  color: var(--color-light);
}

.contact-info p {
  margin-bottom: 0.6rem;
  line-height: 1.6;
  opacity: 0.9;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Responsive */
@media (max-width: 1024px) {
  .aveda-content,
  .service-item {
    grid-template-columns: 1fr;
  }

  .large-letter {
    width: 50%;
    max-width: 400px;
    opacity: 0.1;
  }

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

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero {
    background-attachment: scroll;
  }
}

@media (max-width: 768px) {
  .header-top {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  .header-info {
    flex-direction: column;
    gap: 0.3rem;
  }

  .header-main {
    flex-direction: column;
    gap: 1rem;
  }

  .nav {
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
  }

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

  .large-letter {
    width: 60%;
    max-width: 300px;
    opacity: 0.08;
    right: 0;
  }

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

  .service-item:nth-child(even) {
    direction: ltr;
  }
}

@media (max-width: 480px) {
  .section {
    padding: 3rem 1rem;
  }

  .large-letter {
    display: none;
  }

  .hero {
    background-attachment: scroll;
  }
}
