/* ===================================================================
 * styles.css - CSS moderno e unificado
 * =================================================================== */

/* Reset & Base Styles
 * ------------------------------------------------------------------- */
:root {
  --primary-color: #000000;
  --secondary-color: #353535;
  --accent-color: #c7c7c7;
  --light-bg: #f5f5f5;
  --dark-bg: #161616;
  --text-color: #333333;
  --white: #ffffff;
  --transition-speed: 0.3s;
  --font-heading: 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Inter', Arial, sans-serif;
  --container-width: 1140px;
  --section-padding: 6rem 0;
}

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

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 1.6rem;
  line-height: 1.8;
  color: var(--text-color);
  overflow-x: hidden;
  background-color: var(--white);
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: all var(--transition-speed) ease-in-out;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 2rem;
  color: var(--primary-color);
}

h1 {
  font-size: 4.8rem;
}

h2 {
  font-size: 3.6rem;
}

h3 {
  font-size: 2.8rem;
}

h4 {
  font-size: 2.2rem;
}

h5 {
  font-size: 1.8rem;
}

p {
  margin-bottom: 2rem;
}

p.lead {
  font-size: 2rem;
  line-height: 1.8;
}

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

/* Utils
 * ------------------------------------------------------------------- */
.container {
  width: 90%;
  max-width: var(--container-width);
  margin: 0 auto;
}

.section {
  padding: var(--section-padding);
}

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

.full-height {
  height: 100vh;
  min-height: 600px;
}

/* Buttons
 * ------------------------------------------------------------------- */
.button {
  display: inline-block;
  padding: 1.2rem 3rem;
  font-size: 1.6rem;
  line-height: 1;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1rem;
  text-decoration: none;
  border-radius: 4px;
  border: 2px solid var(--primary-color);
  transition: all var(--transition-speed) ease-in-out;
  cursor: pointer;
}

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

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

/* Header/Intro Section
 * ------------------------------------------------------------------- */
#intro {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-align: center;
  background: var(--dark-bg) url(../images/scherrer.jpeg) no-repeat center center;
  background-size: cover;
}

.intro-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
}

.intro-content {
  position: relative;
  z-index: 1;
  width: 100%;
}

.intro-content h1 {
  color: var(--white);
  font-size: 6rem;
  margin-bottom: 3rem;
}

.intro-position {
  display: flex;
  flex-direction: column;
  font-size: 2.4rem;
  text-transform: uppercase;
  letter-spacing: 0.3rem;
  margin-bottom: 3rem;
}

.intro-position span {
  margin-bottom: 1rem;
}

/* About Section
 * ------------------------------------------------------------------- */
.section-header {
  text-align: center;
  margin-bottom: 6rem;
}

.about-content {
  display: flex;
  align-items: center;
  gap: 6rem;
}

.profile-image {
  flex: 0 0 40%;
}

.profile-image img {
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.about-text {
  flex: 0 0 60%;
}

/* Gallery Section
 * ------------------------------------------------------------------- */
.gallery-content {
  text-align: center;
}

.carousel-container {
  position: relative;
  max-width: 100%;
  margin: 4rem auto;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.slides {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 500px;
  background-color: var(--dark-bg);
  border-radius: 8px;
  overflow: hidden;
}

.slides img {
  display: none;
  max-height: 500px;
  max-width: 100%;
  object-fit: contain;
}

.carousel-btn {
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 5rem;
  height: 5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background-color: rgba(0, 0, 0, 0.6);
  border: none;
  border-radius: 50%;
  z-index: 10;
  transition: all var(--transition-speed) ease-in-out;
}

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

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

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

.carousel-btn i {
  font-size: 2rem;
}

/* Contact Section
 * ------------------------------------------------------------------- */
.contact-info {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 3rem;
  margin-top: 4rem;
}

.contact-item {
  text-align: center;
  flex: 0 0 calc(33.333% - 3rem);
}

.contact-item .icon {
  margin-bottom: 2rem;
}

.contact-item .icon a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 7rem;
  height: 7rem;
  background-color: var(--primary-color);
  color: var(--white);
  border-radius: 50%;
  font-size: 2.8rem;
  transition: all var(--transition-speed) ease-in-out;
}

.contact-item .icon a:hover {
  background-color: var(--secondary-color);
  transform: translateY(-5px);
}

.contact-item h5 {
  font-size: 1.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1rem;
  margin-bottom: 1rem;
}

/* Footer
 * ------------------------------------------------------------------- */
.footer {
  background-color: var(--dark-bg);
  color: var(--white);
  padding: 3rem 0;
  text-align: center;
}

.copyright p {
  font-size: 1.4rem;
  margin-bottom: 0;
}

#go-top {
  position: fixed;
  bottom: 3rem;
  right: 3rem;
  z-index: 600;
  display: none;
}

#go-top a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 5rem;
  height: 5rem;
  background-color: var(--primary-color);
  color: var(--white);
  border-radius: 50%;
  transition: all var(--transition-speed) ease-in-out;
}

#go-top a:hover {
  background-color: var(--secondary-color);
  transform: translateY(-5px);
}

/* Preloader
 * ------------------------------------------------------------------- */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--white);
  z-index: 999999;
}

#loader {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 60px;
  height: 60px;
  margin: -30px 0 0 -30px;
  border: 3px solid transparent;
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 2s linear infinite;
}

#loader:before {
  content: "";
  position: absolute;
  top: 5px;
  left: 5px;
  right: 5px;
  bottom: 5px;
  border: 3px solid transparent;
  border-top-color: var(--secondary-color);
  border-radius: 50%;
  animation: spin 3s linear infinite;
}

#loader:after {
  content: "";
  position: absolute;
  top: 15px;
  left: 15px;
  right: 15px;
  bottom: 15px;
  border: 3px solid transparent;
  border-top-color: var(--accent-color);
  border-radius: 50%;
  animation: spin 1.5s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Animations
 * ------------------------------------------------------------------- */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Reviews Section
 * ------------------------------------------------------------------- */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.review-item {
  background: var(--white);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  text-align: left;
}

.review-stars {
  color: #fbbc05;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.review-text {
  font-size: 1.4rem;
  line-height: 1.6;
  color: var(--text-color);
  margin: 0;
  font-style: italic;
}

.reviews-footer {
  margin-top: 4rem;
  text-align: center;
}

.reviews-footer .button {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  background: var(--white);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  padding: 1rem 2rem;
}

.reviews-footer .button:hover {
  background: var(--primary-color);
  color: var(--white);
}

.reviews-footer .button i {
  font-size: 1.8rem;
}

@media only screen and (max-width: 768px) {
  .reviews-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .review-item {
    padding: 1.5rem;
  }
}

/* Media Queries
 * ------------------------------------------------------------------- */
@media only screen and (max-width: 1200px) {
  html {
    font-size: 58%;
  }
}

@media only screen and (max-width: 992px) {
  html {
    font-size: 55%;
  }
  
  .about-content {
    flex-direction: column;
    gap: 4rem;
  }
  
  .profile-image,
  .about-text {
    flex: 0 0 100%;
  }
}

@media only screen and (max-width: 768px) {
  html {
    font-size: 52%;
  }
  
  .intro-content h1 {
    font-size: 4.8rem;
  }
  
  .section-header {
    margin-bottom: 4rem;
  }
  
  .contact-item {
    flex: 0 0 100%;
    margin-bottom: 4rem;
  }
  
  .slides img {
    max-height: 400px;
  }
  
  .carousel-btn {
    width: 4rem;
    height: 4rem;
  }

  .reviews-carousel {
    padding: 1rem 0;
  }

  .review-item {
    padding: 1.5rem;
  }

  .google-rating {
    flex-direction: column;
  }

  .rating-text {
    font-size: 1.4rem;
  }
}

@media only screen and (max-width: 576px) {
  html {
    font-size: 50%;
  }
  
  .intro-content h1 {
    font-size: 4rem;
  }
  
  .button {
    padding: 1rem 2.5rem;
  }
  
  .slides {
    height: 300px;
  }
  
  .slides img {
    max-height: 300px;
  }
  
  .carousel-btn {
    width: 3.5rem;
    height: 3.5rem;
  }
  
  .carousel-btn.prev {
    left: 1rem;
  }
  
  .carousel-btn.next {
    right: 1rem;
  }
}