/* ============================================
   Varenna Mon Amour — Modern Single Page
   ============================================ */

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

:root {
  --color-bg: #faf9f7;
  --color-surface: #ffffff;
  --color-text: #1a1a1a;
  --color-text-soft: #5a5a5a;
  --color-lake: #1e3a5f;
  --color-lake-light: #2c5282;
  --color-warm: #c49a6c;
  --color-warm-light: #d4b08a;
  --color-accent: #b8860b;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius: 12px;
  --shadow-soft: 0 4px 24px rgba(0,0,0,0.06);
  --shadow-medium: 0 8px 40px rgba(0,0,0,0.10);
  --transition: 0.3s ease;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* TYPOGRAPHY */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
}

h1 { font-size: clamp(2.8rem, 6vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.25rem; }

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-warm);
  margin-bottom: 12px;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  gap: 8px;
}

.btn-primary {
  background: var(--color-warm);
  color: #fff;
}
.btn-primary:hover {
  background: var(--color-accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(184, 134, 11, 0.35);
}

.btn-secondary {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.5);
}
.btn-secondary:hover {
  border-color: #fff;
  background: rgba(255,255,255,0.1);
}

/* HERO */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-bg-2 {
  opacity: 0;
  animation: hero-fade 12s ease-in-out infinite;
}

@keyframes hero-fade {
  0%, 45%, 100% { opacity: 0; }
  55%, 95% { opacity: 1; }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(15,23,42,0.45) 0%,
    rgba(15,23,42,0.65) 50%,
    rgba(15,23,42,0.85) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding: 0 24px;
}

.hero-tag {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 16px;
}

.hero-content h1 {
  margin-bottom: 16px;
  font-weight: 700;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 300;
  opacity: 0.9;
  max-width: 560px;
  margin: 0 auto 32px;
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  text-align: center;
  color: rgba(255,255,255,0.7);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.4);
  margin: 8px auto 0;
  animation: scroll-pulse 2s ease-in-out infinite;
}

@keyframes scroll-pulse {
  0%, 100% { opacity: 0.3; height: 30px; }
  50% { opacity: 1; height: 50px; }
}

/* SECTION BASE */
.section {
  padding: 100px 0;
}

/* ABOUT */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-text h2 {
  margin-bottom: 20px;
  color: var(--color-lake);
}

.about-text p {
  color: var(--color-text-soft);
  margin-bottom: 16px;
}

.about-images {
  position: relative;
}

.about-img-large img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-medium);
  object-fit: cover;
  aspect-ratio: 4/3;
}

.about-img-small {
  position: absolute;
  bottom: -30px;
  left: -30px;
  width: 160px;
  height: 160px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 4px solid var(--color-surface);
}

.about-img-small img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* LOCATION */
.highlight {
  background: var(--color-surface);
}

.location-content {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.location-content h2 {
  color: var(--color-lake);
  margin-bottom: 16px;
}

.location-content p {
  color: var(--color-text-soft);
  font-size: 1.05rem;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item span {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px 16px 16px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #fff;
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
  opacity: 0;
  transform: translateY(8px);
  transition: var(--transition);
}

.gallery-item:hover span {
  opacity: 1;
  transform: translateY(0);
}

/* INFO */
.info {
  background: var(--color-lake);
  color: #fff;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.info-card {
  background: rgba(255,255,255,0.06);
  border-radius: var(--radius);
  padding: 32px 28px;
  border: 1px solid rgba(255,255,255,0.08);
  transition: var(--transition);
}

.info-card:hover {
  background: rgba(255,255,255,0.10);
  transform: translateY(-4px);
}

.info-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.info-card h3 {
  font-family: var(--font-display);
  margin-bottom: 16px;
  font-size: 1.35rem;
}

.info-card p {
  font-size: 0.95rem;
  opacity: 0.85;
  margin-bottom: 6px;
}

.info-card .closed {
  color: #f87171;
  font-weight: 500;
  margin-top: 8px;
}

/* CONTACTS */
.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contacts-info h2 {
  color: var(--color-lake);
  margin-bottom: 16px;
}

.contacts-info > p {
  color: var(--color-text-soft);
  margin-bottom: 32px;
}

.contact-details {
  margin-bottom: 32px;
}

.contact-item {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
  align-items: flex-start;
}

.contact-label {
  font-weight: 500;
  min-width: 90px;
  color: var(--color-text);
}

.contact-value {
  color: var(--color-text-soft);
}

.contact-value a {
  color: var(--color-lake-light);
  transition: var(--transition);
}

.contact-value a:hover {
  color: var(--color-warm);
}

.contact-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.contact-links .btn-secondary {
  color: var(--color-text);
  border-color: var(--color-lake);
}
.contact-links .btn-secondary:hover {
  background: var(--color-lake);
  color: #fff;
}

.contacts-map {
  height: 420px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

/* FOOTER */
.footer {
  background: var(--color-text);
  color: rgba(255,255,255,0.6);
  text-align: center;
  padding: 40px 24px;
  font-size: 0.85rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: rgba(255,255,255,0.9);
  margin-bottom: 8px;
}

.footer-copy {
  margin-bottom: 4px;
}

.footer-note {
  color: var(--color-warm-light);
  font-weight: 500;
}

/* ANIMATIONS */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1s ease forwards;
}

.fade-in:nth-child(2) { animation-delay: 0.15s; }
.fade-in:nth-child(3) { animation-delay: 0.3s; }
.fade-in:nth-child(4) { animation-delay: 0.45s; }
.fade-in:nth-child(5) { animation-delay: 0.6s; }

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .section { padding: 70px 0; }

  .about-grid,
  .contacts-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-images { order: -1; }
  .about-img-small { display: none; }

  .info-grid {
    grid-template-columns: 1fr;
  }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .contacts-map { height: 300px; }
}

@media (max-width: 600px) {
  .hero-content h1 { font-size: 2.4rem; }
  .hero-subtitle { font-size: 1rem; }

  .gallery {
    grid-template-columns: 1fr;
  }

  .btn {
    width: 100%;
  }

  .contact-links {
    flex-direction: column;
  }

  .contact-item {
    flex-direction: column;
    gap: 4px;
  }

  .contact-label {
    min-width: auto;
  }
}
