/* =========================
   COLOR VARIABLES
   ========================= */
:root {
  --primary: #8b2626;
  --primary-hover: #731f1f;
  --navbar-start: #7a2222;
  --navbar-end: #a52f2f;

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

  --bg-body: #fdf8f3;
  --bg-navbar: #b43f3f;
  --bg-menu-btn: #b43f3f;
  --bg-menu-btn-hover: #922f2f;
  --bg-footer: #b43f3f;

  --hero-overlay: brightness(65%);

  --shadow-light: rgba(0, 0, 0, 0.1);
}

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

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

/* poppins-600 - latin */
@font-face {
  font-display: swap;
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  src: url('fonts/poppins-v24-latin-600.woff2') format('woff2');
}

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

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

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

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: linear-gradient(90deg, var(--navbar-start), var(--navbar-end));
  color: var(--text-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.18);
  border-bottom: solid 1px white;
}

.logo {
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: -0.4px;
  font-family: 'Marcellus', serif;
  margin-right: 1rem;
}

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

.navbar a {
  color: var(--text-light);
  text-decoration: none;
  font-weight: 500;
  padding: 0.3rem 0.1rem;
  transition: opacity 0.2s ease, text-shadow 0.2s ease;
}

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

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

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

.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

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

.cta {
  margin-top: 1rem;
  font-weight: 600;
}

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

/* =========================
   SECTIONS
   ========================= */
section {
  padding: 4rem 1.5rem;
  text-align: center;
  scroll-margin-top: 60px;
}

h2 {
  color: var(--primary);
  margin-bottom: 1rem;
  font-family: 'Marcellus', serif;
  font-size: 1.8rem;
}

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

.menu-link {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.7rem 1.5rem;
  background-color: var(--bg-menu-btn);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 4px;
}

/* =========================
   GALLERY
   ========================= */
.galerie {
  max-width: 900px;
  margin: 0 auto;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
  margin-top: 2rem;
}

.gallery-grid img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 8px var(--shadow-light);
}

/* =========================
   ABOUT
   ========================= */
.apropos p {
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

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

.map-container iframe {
  width: 100%;
  max-width: 600px;
  border-radius: 12px;
}

/* =========================
   FOOTER
   ========================= */
footer {
  background: linear-gradient(90deg, var(--navbar-start), var(--navbar-end));
  color: var(--text-light);
  text-align: center;
  padding: 1.3rem 1rem;
  font-size: 0.95rem;
  margin-top: 3rem;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.15);
}

footer p {
  margin: 0;
  opacity: 0.95;
  letter-spacing: 0.2px;
}

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

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

  .logo {
    font-size: 1.4rem;
  }

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

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

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

  .navbar ul {
    font-size: 0.85rem;
    gap: 0.8rem;
  }

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

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

  .navbar a:hover {
    opacity: 0.85;
    text-shadow: 0 0 6px rgba(255, 255, 255, 0.4);
  }

  .menu-link:hover {
    background-color: var(--bg-menu-btn-hover);
  }
}
