/* =======================================
   RESET & VARIABLES
======================================= */
:root {
  /* Colors */
  --bg-color: #ffffff;
  --text-main: #333333;
  --text-light: #ffffff;
  --accent-color: #b89fb9;
  --border-color: #eaeaea;
  --border-dark: #cccccc;
  --overlay-color: rgba(0, 0, 0, 0.25);
  --pillar-bg: rgba(255, 255, 255, 0.15);
  --cta-bg: #e2deda;

  /* Fonts */
  --font-main: 'Sora', sans-serif;

  /* Spacing & Layout */
  --max-width: 1200px;
  --header-height: 70px;
  --container-padding: 0 20px;
  --section-spacing: 80px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--bg-color);
  color: var(--text-main);
  font-family: var(--font-main);
  line-height: 1.5;
  overflow-x: hidden;
  /* Prevent horizontal scroll */
}

ul,
ol {
  list-style: none;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* =======================================
   FONTE: SORA
======================================= */
@font-face {
  font-family: 'Sora';
  src: url('assets/fonts/Sora-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Sora';
  src: url('assets/fonts/Sora-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: 'Sora';
  src: url('assets/fonts/Sora-VariableFont.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
}

/* =======================================
   UTILITY CLASSES
======================================= */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.section-intro {
  font-size: 1.3rem;
  margin-bottom: 24px;
  color: var(--accent-color);
  margin-left: 64px;
  font-weight: 600;
}

/* =======================================
   AJUSTE PARA HEADER FIXO
======================================= */
section {
  scroll-margin-top: calc(var(--header-height) + 20px);
}

/* =======================================
   HEADER
======================================= */
.header {
  background: var(--bg-color);
  padding: 0;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  border-bottom: 1px solid var(--border-color);
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-container {
  width: 100%;
  max-width: var(--max-width);
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  height: 50px;
  /* Reduced slightly for better fit */
  width: auto;
}

.nav-links {
  display: flex;
  gap: 40px;
}

.nav a {
  color: var(--text-main);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav a:hover {
  color: var(--accent-color);
}

/* =======================================
   HERO
======================================= */
.hero {
  height: 100vh;
  min-height: 600px;
  background-image: url("../assets/images/background.jpg");
  background-size: cover;
  /* Ensuring it covers on all screens */
  background-repeat: no-repeat;
  background-position: center 15%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 0 20px;
}

/* Overlay for better text contrast if needed */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--overlay-color);
  z-index: 0;
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
  position: relative;
  padding-left: 64px;
  z-index: 1;
  color: var(--text-light);
  gap: 2rem;
}

.hero-content h1 {
  width: 100%;
  max-width: 800px;
  margin: 0;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.1;
  font-weight: 700;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.5rem);
  line-height: 1.4;
  line-height: 1.4;
  font-weight: 400;
}

.hero-cta {
  margin-top: 24px;
  padding: 12px 32px;
  background-color: var(--accent-color);
  color: white;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  border: 1px solid var(--accent-color);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-cta:hover {
  background-color: transparent;
  color: white;
  border-color: white;
}

/* =======================================
   SERVICES
======================================= */
.services {
  max-width: var(--max-width);
  margin: var(--section-spacing) 0 0;
  padding: 0 var(--container-padding);
}

.section-intro {
  padding-left: 20px;
}

/* Using Grid for a cleaner layout that breaks down easily */
/* Removing unused .services-grid since items are direct children of .services in HTML now, 
   and user wants specific "open left" styling */

.service-item {
  padding: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 100px;
  background: white;
  transition: background 0.3s;

  /* Resetting default borders */
  border: none;
}

.service-item:hover {
  background: #f9f9f9;
}

/* Item 1: Top, Right, Bottom Borders + Top Right Radius */
.service-item:nth-of-type(1) {
  border-top: 1px solid var(--border-dark);
  border-bottom: 1px solid var(--border-dark);
  border-right: 1px solid var(--border-dark);
  border-top-right-radius: 12px;
}

/* Item 2: Right Border Only */
.service-item:nth-of-type(2) {
  border-right: 1px solid var(--border-dark);
}

/* Item 3: Top, Bottom, Right Borders + Bottom Right Radius */
.service-item:nth-of-type(3) {
  border-top: 1px solid var(--border-dark);
  border-bottom: 1px solid var(--border-dark);
  border-right: 1px solid var(--border-dark);
  border-bottom-right-radius: 12px;
}

.service-item:hover {
  background: #f9f9f9;
}

.service-item span {
  font-size: 1.1rem;
  font-weight: 600;
}

.service-item a {
  border: 1px solid var(--text-main);
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 500;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.service-item a:hover {
  background: var(--text-main);
  color: var(--text-light);
}

/* =======================================
   CAROUSEL
======================================= */
.carousel-section {
  max-width: var(--max-width);
  margin: var(--section-spacing) auto;
  padding: 0 var(--container-padding);
}

.carousel {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 20px;
  /* Space for scrollbar */
  -webkit-overflow-scrolling: touch;
}

.carousel-item {
  flex: 0 0 500px;
  /* Wider for landscape images */
  height: 340px;
  /* Adjusted height */
  background: #ccc;
  border-radius: 12px;
  scroll-snap-align: center;
  background-size: cover;
  background-position: center;

  img {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    object-fit: cover;
  }
}

/* =======================================
   ABOUT
======================================= */
.about {
  max-width: var(--max-width);
  margin: var(--section-spacing) auto;
  padding: 0 var(--container-padding);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text {
  display: flex;
  flex-direction: column;
  gap: 24px;
  font-size: 1.1rem;
}

.about-text p {
  line-height: 1.6;
}

.about-cta {
  width: fit-content;
  border: 1px solid var(--accent-color);
  background: var(--accent-color);
  padding: 12px 32px;
  border-radius: 50px;
  color: white;
  margin-top: 16px;
  transition: all 0.3s;
  font-weight: 600;
  text-decoration: none;
  /* Ensure no underline */
  display: inline-block;
  /* Behave like a block/button */
}

.about-cta:hover {
  background: var(--text-main);
  border-color: var(--text-main);
  color: white;
  /* Ensure text remains white on hover */
}

.about img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* =======================================
   ABOUT ME (CONTACT)
======================================= */
.about-me {
  max-width: var(--max-width);
  margin: var(--section-spacing) auto;
  padding: 0 var(--container-padding);
}

.about-me-item {
  display: grid;
  grid-template-columns: 1fr 1.5fr 1fr;
  /* Image - Text - Image */
  gap: 40px;
  align-items: start;
}

.about-me-text {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.about-me-text button {
  border: 1px solid var(--accent-color);
  color: var(--accent-color);
  padding: 8px 20px;
  border-radius: 50px;
  width: fit-content;
  font-weight: 600;
}

.highlight-text {
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  line-height: 1.4;
}

.text-accent {
  color: var(--accent-color);
}

.about-img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  aspect-ratio: 3/4;
  object-fit: cover;
}

/* =======================================
   PILLARS
======================================= */
.pillars {
  background: var(--accent-color);
  color: #fff;
  padding: 80px 20px;
}

.pillars-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  /* Responsive Grid */
  gap: 30px;
}

.pillar {
  background: var(--pillar-bg);
  padding: 30px;
  border-radius: 16px;
  backdrop-filter: blur(5px);
}

.pillar h3 {
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.pillar p {
  margin-bottom: 16px;
  line-height: 1.5;
  opacity: 0.9;
}

/* =======================================
   VIDEO SECTION
======================================= */
.video-section {
  max-width: var(--max-width);
  margin: var(--section-spacing) auto;
  padding: 0 var(--container-padding);
}

.video-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.video-container video {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  background: #000;
}

/* =======================================
   MEDIA QUERIES
======================================= */

/* Tablet & Mobile */
@media (max-width: 900px) {
  :root {
    --header-height: 60px;
    --section-spacing: 60px;
  }

  .nav-links {
    display: none;
    /* Simplification for mobile - generally would imply hamburger menu */
  }

  .about {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .video-container {
    grid-template-columns: 1fr;
  }

  .about-text {
    align-items: center;
  }

  .about-me-item {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-me-text {
    align-items: center;
    order: -1;
    /* Text first on mobile? Or keep images layout */
  }

  .desktop-only {
    display: none;
  }
}

@media (max-width: 600px) {
  .service-item {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }

  .hero-content {
    align-items: center;
    text-align: center;
    padding-left: 20px;
    padding-right: 20px;
    padding-top: 280px;
  }

  .hero-content h1 {
    font-size: 1.8rem;
  }

  .carousel-item {
    flex: 0 0 85%;
    /* Show part of next slide */
  }
}

/* =======================================
   FOOTER
======================================= */
.site-footer {
  background: var(--accent-color);
  color: #fff;
  text-align: center;
  padding: 32px;
  /* More padding for larger element */
  font-size: 0.9rem;
  font-weight: 500;
  opacity: 1;
  /* Removing transparency for better logo visibility */
}

.site-footer a {
  color: inherit;
  text-decoration: none;
  font-weight: 600;
}

.site-footer a:hover {
  text-decoration: underline;
}

.footer-logo {
  height: 120px;
  /* Reduced from 160px to balance visibility/size, user can adjust if needed */
  width: auto;
  display: block;
}

.footer-logo-link:hover {
  text-decoration: none;
  /* No underline on logo */
  opacity: 0.9;
}