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

:root {
  --bg-main: #FDFAF7;
  --bg-alt: #F5F0EA;
  --bg-dark: #1C1C1A;
  --text: #1C1C1A;
  --text-secondary: #5C564F;
  --terracotta: #C8603A;
  --teal: #1E6E72;
  --teal-dark: #175558;
  --border: #E2D9CF;
  --white: #FFFFFF;
  --max-content: 680px;
  --max-wide: 1100px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', 'Inter', sans-serif;
  font-size: 17px;
  line-height: 1.8;
  color: var(--text);
  background: var(--bg-main);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Subtle paper texture — lightweight, no fixed overlay */
body {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

a {
  color: var(--teal);
  text-decoration: none;
  position: relative;
}

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

/* ===== CUSTOM CURSOR ===== */
.cursor-dot {
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--text);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 10000;
  transition: transform 0.15s ease, opacity 0.15s ease, border-color 0.2s;
  transform: translate(-50%, -50%);
  opacity: 0;
}

.cursor-dot.visible {
  opacity: 1;
}

.cursor-dot.hovering {
  transform: translate(-50%, -50%) scale(1.6);
  border-color: var(--terracotta);
}

/* ===== LINK UNDERLINE ANIMATION ===== */
.link-hover {
  position: relative;
  display: inline;
}

.link-hover::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: currentColor;
  transition: width 0.3s ease;
}

.link-hover:hover::after {
  width: 100%;
}

/* ===== TYPOGRAPHY ===== */
h1 {
  font-family: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  font-weight: 600;
  font-size: clamp(2.8rem, 7vw, 6.5rem);
  line-height: 1.1;
  color: var(--text);
  letter-spacing: -0.01em;
}

h2 {
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  line-height: 1.3;
  color: var(--text);
}

.label {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  display: block;
}

.title-underline {
  display: block;
  width: 60px;
  height: 3px;
  background: var(--terracotta);
  margin: 1.5rem auto 0;
}

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

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

.reveal.delay-1 { transition-delay: 0.15s; }
.reveal.delay-2 { transition-delay: 0.3s; }
.reveal.delay-3 { transition-delay: 0.45s; }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: background 0.4s, box-shadow 0.4s;
  background: transparent;
}

.navbar.scrolled {
  background: var(--bg-main);
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.06);
}

.navbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.3rem 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--text);
  text-decoration: none;
}

.nav-brand:hover {
  color: var(--terracotta);
}

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

.nav-links a {
  color: var(--text);
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  font-weight: 500;
  position: relative;
  transition: color 0.2s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--terracotta);
  transition: width 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--terracotta);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* Hamburger */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
  position: relative;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--text);
  margin: 6px 0;
  transition: transform 0.4s ease, opacity 0.3s ease, background 0.3s;
}

.hamburger.open span {
  background: var(--white);
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* Mobile overlay */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--bg-dark);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.mobile-menu.open {
  display: flex;
  opacity: 1;
}

.mobile-menu a {
  color: var(--white);
  text-decoration: none;
  text-transform: uppercase;
  font-size: 1.5rem;
  letter-spacing: 0.15em;
  font-weight: 500;
  transition: color 0.2s;
}

.mobile-menu a:hover,
.mobile-menu a.active {
  color: var(--terracotta);
}

/* ===== SECTIONS ===== */
.section {
  padding: 120px 2.5rem;
}

.section--alt {
  background: var(--bg-alt);
}

.section--dark {
  background: var(--bg-dark);
  color: var(--white);
}

.section--teal {
  background: var(--teal);
  color: var(--white);
}

.section-inner {
  max-width: var(--max-content);
  margin: 0 auto;
  text-align: center;
}

.section-inner--wide {
  max-width: var(--max-wide);
  margin: 0 auto;
}

/* ===== HOME HERO ===== */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem 2.5rem;
  text-align: center;
  position: relative;
}

.hero-label {
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  opacity: 0;
  transform: translateY(16px);
  animation: heroFade 0.8s ease-out 0.2s forwards;
}

.hero-logo {
  width: 160px;
  height: 160px;
  margin-bottom: 2.5rem;
  opacity: 0;
  transform: translateY(16px);
  animation: heroFade 0.8s ease-out 0.4s forwards;
}

.hero-logo img,
.hero-logo svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
  animation: breathe 4s ease-in-out infinite;
}

@keyframes breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}

.hero h1 {
  opacity: 0;
  transform: translateY(20px);
  animation: heroFade 0.8s ease-out 0.6s forwards;
  margin-bottom: 1rem;
}

.hero h1 em {
  font-style: italic;
}

.hero-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  opacity: 0;
  transform: translateY(16px);
  animation: heroFade 0.8s ease-out 0.8s forwards;
}

.hero .btn-cta {
  opacity: 0;
  transform: translateY(16px);
  animation: heroFade 0.8s ease-out 1s forwards;
}

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

/* ===== BUTTONS ===== */
.btn-cta {
  display: inline-block;
  background: var(--teal);
  color: var(--white);
  padding: 16px 40px;
  font-family: 'DM Sans', sans-serif;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  font-weight: 600;
  text-decoration: none;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
}

.btn-cta:hover {
  background: var(--teal-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(30, 110, 114, 0.25);
}

.btn-cta--white {
  background: var(--white);
  color: var(--teal);
}

.btn-cta--white:hover {
  background: #f0f0f0;
  color: var(--teal);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

/* ===== QUOTE / TEASER ===== */
.teaser-quote {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
}

.teaser-quote .deco-quote {
  font-family: 'Cormorant Garamond', serif;
  font-size: 8rem;
  color: var(--terracotta);
  opacity: 0.15;
  position: absolute;
  top: -3rem;
  left: -1rem;
  line-height: 1;
  user-select: none;
}

.teaser-quote blockquote {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-style: italic;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 2rem;
}

.teaser-link {
  color: var(--teal);
  font-weight: 500;
  font-size: 0.95rem;
}

/* ===== INDICATION CARDS ===== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: var(--max-wide);
  margin: 0 auto;
}

.card {
  text-align: center;
  padding: 2.5rem 2rem;
  border-bottom: 2px solid var(--terracotta);
}

.card-icon {
  font-size: 2.2rem;
  margin-bottom: 1.2rem;
  display: block;
}

.card h3 {
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 1rem;
  margin-bottom: 0.8rem;
}

.card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.cards-note {
  text-align: center;
  color: var(--text-secondary);
  font-style: italic;
  margin-top: 2.5rem;
  font-size: 0.95rem;
}

/* ===== PAGE HERO ===== */
.page-hero {
  background: var(--bg-alt);
  padding: 160px 2.5rem 80px;
  text-align: center;
}

.page-hero h1 {
  margin-top: 0.5rem;
}

.page-hero .subtitle {
  max-width: 600px;
  margin: 1.5rem auto 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ===== TEXT CONTENT ===== */
.text-content {
  max-width: var(--max-content);
  margin: 0 auto;
  text-align: center;
}

.text-content p {
  margin-bottom: 1.4rem;
}

.text-content p strong {
  color: var(--text);
}

/* ===== TWO COLUMNS ===== */
.two-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 960px;
  margin: 0 auto;
  text-align: left;
}

.two-cols--divided {
  position: relative;
}

.two-cols--divided::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 1px;
  height: 100%;
  background: var(--border);
}

.col-block .label {
  margin-bottom: 0.8rem;
  color: var(--terracotta);
  font-weight: 600;
}

.col-block p {
  line-height: 1.8;
}

/* ===== RDV CONTACT COLS ===== */
.contact-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  max-width: 960px;
  margin: 0 auto;
  text-align: left;
}

.contact-block .label {
  color: var(--terracotta);
  font-weight: 600;
  margin-bottom: 1rem;
}

.contact-block a {
  font-weight: 500;
}

.contact-block p {
  margin-bottom: 0.6rem;
}

.contact-block .transport {
  margin-top: 1.2rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* ===== MAP ===== */
.map-section {
  padding: 0 2.5rem 0;
}

.map-container {
  max-width: var(--max-wide);
  margin: 0 auto;
  border-radius: 8px;
  overflow: hidden;
  max-height: 400px;
}

.map-container iframe {
  width: 100%;
  height: 400px;
  border: 0;
  display: block;
}

/* ===== DR BIO ===== */
.bio-grid {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 4rem;
  max-width: 960px;
  margin: 0 auto;
  align-items: center;
  text-align: left;
}

.bio-photo {
  width: 100%;
  max-width: 320px;
  background: var(--bg-alt);
  border-radius: 8px;
  overflow: hidden;
}

.bio-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bio-text h1 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  margin-bottom: 1.5rem;
}

.bio-text p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

.bio-text .label {
  color: var(--terracotta);
  font-weight: 600;
}

.bio-link {
  display: inline-block;
  margin-top: 1.5rem;
  color: var(--teal);
  font-weight: 500;
}

/* ===== LINKS LIST ===== */
.link-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.link-item:first-child {
  border-top: 1px solid var(--border);
}

.link-item-text {
  flex: 1;
}

.link-item-text a {
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--teal);
}

.link-item-text p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-top: 0.3rem;
}

.link-arrow {
  font-size: 1.3rem;
  color: var(--teal);
  transition: transform 0.3s ease;
  margin-left: 1rem;
  flex-shrink: 0;
}

.link-item:hover .link-arrow {
  transform: translateX(6px);
}

/* ===== EDITORIAL BLOCKS ===== */
.editorial-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 960px;
  margin: 0 auto;
  text-align: left;
}

.editorial-block .label {
  color: var(--terracotta);
  font-weight: 600;
  margin-bottom: 0.8rem;
}

.editorial-block p {
  color: var(--text-secondary);
  line-height: 1.7;
}

.editorial-block .ref {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  color: var(--text);
  margin-top: 0.8rem;
  font-size: 0.95rem;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--bg-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 60px 2.5rem 40px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
}

.footer-col h4 {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--white);
  margin-bottom: 1rem;
  font-weight: 600;
}

.footer-col p,
.footer-col a {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.8;
}

.footer-col a:hover {
  color: var(--white);
}

.footer-col--right {
  text-align: right;
}

.footer-nav {
  list-style: none;
  text-align: center;
}

.footer-nav li {
  margin-bottom: 0.5rem;
}

.footer-nav a {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.footer-bottom {
  max-width: 1100px;
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid #333;
  text-align: center;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.4);
}

/* ===== PAGE TRANSITION ===== */
.page-transition {
  animation: pageIn 0.5s ease-out;
}

@keyframes pageIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  .nav-links {
    display: none;
  }

  .section {
    padding: 80px 1.5rem;
  }

  .hero {
    padding: 2rem 1.5rem;
  }

  .hero-logo {
    width: 120px;
    height: 120px;
  }

  .page-hero {
    padding: 130px 1.5rem 60px;
  }

  .cards-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .two-cols,
  .contact-cols,
  .editorial-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .two-cols--divided::after {
    display: none;
  }

  .bio-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .bio-photo {
    margin: 0 auto;
    max-width: 220px;
  }

  .bio-text {
    text-align: center;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

  .footer-col--right {
    text-align: center;
  }

  .link-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .cursor-dot {
    display: none !important;
  }

  .navbar-inner {
    padding: 1rem 1.5rem;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 2.2rem;
  }

  .teaser-quote blockquote {
    font-size: 1.15rem;
  }

  .teaser-quote .deco-quote {
    font-size: 5rem;
    top: -2rem;
  }
}
