/* =========================
   COLOR VARIABLES
   ========================= */
:root {
  --primary: #b46b4e;
  --primary-hover: #8e523d;

  --text-dark: #2a2a2a;
  --text-medium: #4c4c4c;
  --text-light: #555;
  --text-hero-title: #2f2b28;
  --text-hero-subtitle: #4c4c4c;
  --text-logo: #3b2e2a;
  --text-footer: #6a625c;

  --bg-body: #faf8f6;
  --bg-navbar: #f2ede8;
  --bg-hero-text: #f7f3ef;
  --bg-section: #fff;

  --border-light: #e0dcd7;
  --border-section: rgba(0, 0, 0, 0.05);

  --collection-shadow: rgba(0, 0, 0, 0.05);

  --footer-bg: #f2ede8;
}

/* =========================
   FONTS
   ========================= */

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

/* playfair-display-600 - latin */
@font-face {
  font-display: swap;
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 600;
  src: url('fonts/playfair-display-v40-latin-600.woff2') format('woff2');
}

/* open-sans-regular - latin */
@font-face {
  font-display: swap;
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 400;
  src: url('fonts/open-sans-v44-latin-regular.woff2') format('woff2');
}

/* open-sans-600 - latin */
@font-face {
  font-display: swap;
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 600;
  src: url('fonts/open-sans-v44-latin-600.woff2') format('woff2');
}


/* =========================
   RESET & BASE
   ========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Open Sans", sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-body);
  line-height: 1.6;
}

html {
  scroll-behavior: smooth;
}

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 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--bg-navbar);
  padding: 1rem 2rem;
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 10;
}

.logo {
  font-family: "Playfair Display", serif;
  font-size: 1.6rem;
  color: var(--text-logo);
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-logo);
  transition: color 0.3s;
}


/* =========================
   HERO SPLIT LAYOUT
   ========================= */
.hero {
  display: flex;
  flex-wrap: wrap;
  min-height: 90vh;
  min-height: 90dvh;
}

.hero-text,
.hero-image {
  flex: 1 1 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-text {
  flex-direction: column;
  text-align: left;
  background-color: var(--bg-hero-text);
  padding: 4rem 3rem;
}

.hero-text h2 {
  font-family: "Playfair Display", serif;
  font-size: 2.4rem;
  color: var(--text-hero-title);
  margin-bottom: 1rem;
}

.hero-text p {
  font-size: 1.1rem;
  color: var(--text-medium);
  margin-bottom: 2rem;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* =========================
   BUTTONS
   ========================= */
.hero-btn {
  background-color: var(--primary);
  color: #fff;
  text-decoration: none;
  padding: 0.9rem 1.8rem;
  border-radius: 28px;
  font-weight: 600;
  transition: background-color 0.3s ease;
}


/* =========================
   SECTIONS
   ========================= */
.section {
  max-width: 1000px;
  margin: 5rem auto 0 auto;
  padding: 2rem;
  text-align: center;
  background-color: var(--bg-section);
  border-radius: 12px;
  box-shadow: 0 3px 10px var(--border-section);
  scroll-margin-top: var(--nav-offset);
}

.section h2 {
  font-family: "Playfair Display", serif;
  font-size: 1.9rem;
  color: var(--text-hero-title);
  margin-bottom: 1rem;
}

.about {
  padding: 4rem 2rem 5rem 2rem;
}

.about p {
  color: var(--text-light);
  max-width: 700px;
  margin: 1rem auto 0;
}

#collection {
  padding: 2rem 0rem;
}


/* =========================
   CAROUSEL
   ========================= */
.gallery-carousel {
  position: relative;
  margin-top: 2rem;
  height: 600px;
  overflow: hidden;
}

.carousel-stage {
  position: relative;
  width: 100%;
  height: 100%;
}

.gallery-carousel img {
  height: 100%;
  width: auto;
  border-radius: 10px;
  box-shadow: 0 2px 8px var(--collection-shadow);
  will-change: transform, opacity, filter;
  pointer-events: none;
}


/* =========================
   CONTACT
   ========================= */
.contact .contact-list {
  margin-top: 1.5rem;
}

.contact .contact-list a {
  display: block;
  color: var(--text-logo);
  text-decoration: none;
  margin: 0.4rem 0;
}

.map-container {
  margin-top: 2rem;
}

.map-container iframe {
  width: 100%;
  max-width: 800px;
  height: 400px;
  border: 0;
  border-radius: 10px;
}


/* =========================
   FOOTER
   ========================= */
footer {
  background-color: var(--footer-bg);
  text-align: center;
  padding: 1.5rem;
  color: var(--text-footer);
  font-size: 0.9rem;
  border-top: 1px solid var(--border-light);
  margin-top: 5rem;
}


/* =========================
   RESPONSIVE
   ========================= */
@media (max-width: 1040px) {
  .section {
    margin: 5rem 1rem;
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 0.75rem 1.5rem;
  }

  .logo {
    font-size: 1.2rem;
  }

  .nav-links {
    gap: 1.2rem;
    font-size: 0.9rem;
  }

  .hero {
    flex-direction: column-reverse;
    min-height: auto;
  }

  .hero-text {
    flex: 1 1 100%;
    padding: 2.5rem 1.5rem;
    text-align: center;
  }

  .hero-image {
    width: 100%;
    height: 60vh;
    padding: 0;
  }

  .hero-text h2 {
    font-size: 2rem;
  }

  .hero-text p {
    font-size: 1rem;
  }

  .section {
    padding: 3rem 1.25rem;
    margin: 1rem;
  }

  footer {
    margin-top: 0;
  }
}

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

  .logo {
    font-size: 1.1rem;
  }

  .nav-links {
    gap: 1rem;
    font-size: 0.8rem;
  }

  .hero-text h2 {
    font-size: 1.5rem;
  }

  .hero-btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
  }

  .section {
    padding: 2.5rem 1rem;
    margin: 0.75rem;
  }

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

  .gallery-carousel img {
    height: auto;
    width: 100%;
    max-height: 100%;
    object-fit: cover;
  }
}

@media (max-width: 420px) {
  .gallery-carousel {
    height: 545px;
  }
}

@media (max-width: 390px) {
  .gallery-carousel {
    height: 500px;
  }
}

@media (max-width: 360px) {
  .navbar {
    padding: 0.5rem;
  }

  .logo {
    font-size: 1rem;
  }

  .nav-links {
    gap: 0.8rem;
  }

  .gallery-carousel {
    height: 450px;
    padding: 0 0.75rem;
  }
}


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

  .nav-links a:hover {
    color: var(--primary);
  }

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

  .contact .contact-list a:hover {
    color: var(--primary);
  }
}