/* =========================
   COLOR VARIABLES
   ========================= */
:root {
  --primary: #2e5e49;
  --primary-hover: #244a3a;

  --accent-light: #f0f0f0;
  --accent-shadow: rgba(46, 94, 73, 0.25);
  --accent-shadow-hover: rgba(36, 74, 58, 0.35);

  --text-dark: #333;
  --text-light: #fff;

  --bg-body: #fdf8f3;
  --bg-navbar: #2e5e49;
  --bg-footer: #2e5e49;

  --hero-filter: brightness(65%);
  --slider-btn: rgba(255, 255, 255, 0.7);
}

/* lora-500 - latin */
@font-face {
  font-display: swap;
  font-family: 'Lora';
  font-style: normal;
  font-weight: 500;
  src: url('fonts/lora-v37-latin-500.woff2') format('woff2');
}

/* lora-700 - latin */
@font-face {
  font-display: swap;
  font-family: 'Lora';
  font-style: normal;
  font-weight: 700;
  src: url('fonts/lora-v37-latin-700.woff2') format('woff2');
}

/* montserrat-regular - latin */
@font-face {
  font-display: swap;
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  src: url('fonts/montserrat-v31-latin-regular.woff2') format('woff2');
}

/* montserrat-500 - latin */
@font-face {
  font-display: swap;
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 500;
  src: url('fonts/montserrat-v31-latin-500.woff2') format('woff2');
}


/* =========================
   GENERAL STYLE
   ========================= */
html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-body);
}

h1,
h2,
h3 {
  font-family: "Lora", serif;
}

a,
button {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 6px;
}

img,
svg {
  user-select: none;
}


/* =========================
   NAVBAR
   ========================= */
.navbar {
  background-color: var(--bg-navbar);
  color: var(--text-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0rem 2rem;
  position: static;
  z-index: 100;
}

.logo {
  font-size: 1.5rem;
  font-weight: 600;
  margin-right: 1rem;
}

.navbar ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.navbar a {
  color: var(--text-light);
  text-decoration: none;
  font-weight: 500;
}


/* =========================
   HERO
   ========================= */
.hero {
  position: relative;
  text-align: center;
  color: var(--text-light);
  overflow: hidden;
  padding: 0;
}

.hero-img {
  width: 100%;
  height: 90vh;
  height: 90dvh;
  object-fit: cover;
  filter: var(--hero-filter);
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.hero h2 {
  font-size: 2.5rem;
  margin-top: 0;
}

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

.phone-link {
  color: inherit;
  text-decoration: none;
  font-weight: inherit;
  white-space: nowrap;
}


/* =========================
   SECTIONS
   ========================= */
section {
  padding: 4rem 1.5rem;
  text-align: center;
}


/* =========================
   BUTTON
   ========================= */
#menu {
  margin-top: 4rem;
}

.menu-link {
  display: inline-block;
  padding: 2rem 3rem;
  background-color: var(--primary);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 16px;
  max-width: 420px;
  margin: 0 auto;
  box-shadow: 0 4px 12px var(--accent-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.menu-link h2 {
  margin: 0;
  font-size: 1.6rem;
  color: var(--text-light);
}

.menu-link p {
  margin: 0.4rem 0 0;
  font-size: 1rem;
  color: var(--accent-light);
}


/* =========================
   SLIDER
   ========================= */
.gallery-slider {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

.gallery-slider .slides {
  width: 100%;
  aspect-ratio: 3 / 2;
  position: relative;
}

.gallery-slider .slides img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 8px;
  transition: opacity 1s ease;
  opacity: 0;
  pointer-events: none;
}

.gallery-slider .slides img.active {
  z-index: 1;
  opacity: 1;
  pointer-events: auto;
}

.gallery-slider button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 2.8rem;
  color: var(--slider-btn);
  cursor: pointer;
  padding: 0 15px;
  z-index: 2;
}

.gallery-slider .prev {
  left: 30px;
}

.gallery-slider .next {
  right: 30px;
}


/* =========================
   CONTACT
   ========================= */
.contact-info {
  margin-bottom: 2rem;
}

.map-container iframe {
  width: 100%;
  max-width: 900px;
  border: 0;
}


/* =========================
   FOOTER
   ========================= */
footer {
  background-color: var(--bg-footer);
  color: var(--text-light);
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  position: relative;
}

.footer-left {
  position: absolute;
  left: 2rem;
  display: flex;
  gap: 1rem;
  align-items: center;
}

.social-icon svg {
  display: block;
  transition: opacity 0.3s ease;
}

footer p {
  margin: 0;
}


/* =========================
   RESPONSIVE
   ========================= */
@media (max-width: 768px) {
  .hero-img {
    height: 80vh;
    height: 80dvh;
  }
}

@media (max-width: 600px) {
  footer {
    flex-direction: column;
    gap: 0.6rem;
  }

  .footer-left {
    position: static;
    order: -1;
    justify-content: center;
  }

  .footer-left a {
    display: inline-flex;
  }
}

@media (max-width: 480px) {
  .hero-img {
    height: 70vh;
    height: 70dvh;
  }

  .hero h2 {
    font-size: 2.2rem;
  }

  .hero p {
    font-size: 1.1rem;
  }

  .navbar {
    padding: 0rem 1rem;
  }

  .logo {
    font-size: 1.4rem;
  }

  .navbar ul {
    gap: 0.9rem;
  }

  #galerie {
    padding: 4rem 1rem;
  }

  .gallery-slider button {
    font-size: 2rem;
  }
}

@media (max-width: 360px) {
  .logo {
    font-size: 1.3rem;
  }

  .navbar ul {
    gap: 0.7rem;
    font-size: 0.9rem;
  }

  #galerie {
    padding: 4rem 0.75rem;
  }
}


/* =========================================================
   HOVER BEHAVIOR ONLY ON DEVICES THAT SUPPORT HOVER
   ========================================================= */
@media (hover: hover) and (pointer: fine) {

  .navbar a:hover {
    text-decoration: underline;
  }

  .menu-link:hover {
    background-color: var(--primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px var(--accent-shadow-hover);
  }

  .gallery-slider button:hover {
    color: var(--text-light);
  }

  .social-icon:hover svg {
    opacity: 0.8;
  }
}