/* ========================================
   ESCAL STUDIO - Design System & Styles
   ======================================== */

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

:root {
  --bg-primary: #0a0a0a;
  --bg-secondary: #111111;
  --bg-card: #1a1a1a;
  --bg-card-hover: #222222;
  --text-primary: #ffffff;
  --text-secondary: #b0b0b0;
  --text-muted: #666666;
  --accent: #c9a84c;
  --accent-hover: #dbb960;
  --border: #2a2a2a;
  --border-light: #333333;

  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --container-max: 1240px;
  --section-padding: clamp(60px, 8vw, 120px);
  --gap: 24px;
  --radius: 4px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --reveal-duration: 0.8s;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
strong { font-weight: 600; color: var(--accent); }

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: var(--section-padding) 0;
}

.section__line {
  display: block;
  width: 40px;
  height: 2px;
  background: var(--accent);
  margin-bottom: 32px;
}

.section__heading {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 48px;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 14px 36px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
}

.btn--primary {
  background: var(--accent);
  color: var(--bg-primary);
}
.btn--primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}

.btn--outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-light);
}
.btn--outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* --- Reveal Animation --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--reveal-duration) ease, transform var(--reveal-duration) ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Placeholders --- */
.placeholder {
  position: relative;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.placeholder::after {
  content: attr(data-label);
  color: var(--text-muted);
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  text-align: center;
  padding: 16px;
}
.placeholder--portrait { aspect-ratio: 3 / 4; }
.placeholder--landscape { aspect-ratio: 16 / 9; width: 100%; }
.placeholder--video { aspect-ratio: 16 / 9; width: 100%; }
.placeholder--wide { aspect-ratio: 16 / 9; width: 100%; }
.placeholder--card { aspect-ratio: 4 / 3; width: 100%; }
.placeholder--portfolio { aspect-ratio: 4 / 3; width: 100%; }


/* ========================================
   HEADER
   ======================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: background var(--transition), padding var(--transition), backdrop-filter var(--transition);
}

.header.is-scrolled {
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(12px);
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__logo img {
  height: 50px;
  width: auto;
}

.header__menu {
  display: flex;
  gap: 40px;
}

.header__link {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: color var(--transition);
  position: relative;
}
.header__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width var(--transition);
}
.header__link:hover,
.header__link.is-active {
  color: var(--text-primary);
}
.header__link:hover::after,
.header__link.is-active::after {
  width: 100%;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Language Toggle */
.lang-toggle {
  background: none;
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 6px 14px;
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-body);
}
.lang-toggle:hover {
  border-color: var(--accent);
  color: var(--text-primary);
}
.lang-toggle__current { color: var(--text-primary); font-weight: 600; }
.lang-toggle__separator { margin: 0 4px; color: var(--border-light); }
.lang-toggle__other { color: var(--text-muted); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger__line {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: var(--transition);
}
.hamburger.is-active .hamburger__line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.is-active .hamburger__line:nth-child(2) {
  opacity: 0;
}
.hamburger.is-active .hamburger__line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}


/* ========================================
   HERO
   ======================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--bg-primary) url('../assets/img/hero.webp') center/cover no-repeat;
  overflow: hidden;
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
}


.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,10,10,0.9) 0%, rgba(10,10,10,0.6) 50%, rgba(10,10,10,0.8) 100%);
  z-index: 1;
  transition: background 0.6s ease;
}


.hero__content {
  position: relative;
  z-index: 2;
  padding-top: 120px;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2.25rem, 5.4vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.02em;
  margin-bottom: 24px;
}

.hero__separator {
  width: 60px;
  height: 3px;
  background: var(--accent);
  margin-bottom: 24px;
}

.hero__subtitle {
  font-family: var(--font-heading);
  font-size: clamp(1.08rem, 2.25vw, 1.8rem);
  font-weight: 400;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
  margin-bottom: 40px;
}

.hero__cta {
  margin-top: 16px;
}


/* ========================================
   VALUE PROPOSITION
   ======================================== */
.value {
  background: var(--bg-secondary);
}

.value__inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
}

.value__line {
  display: block;
  width: 40px;
  height: 2px;
  background: var(--accent);
  margin-bottom: 32px;
}

.value__image img {
  width: 100%;
  border-radius: var(--radius);
  display: block;
}

.value__title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 400;
  line-height: 1.25;
  margin-bottom: 32px;
}

.value__body {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.7;
  margin-bottom: 12px;
}


/* ========================================
   VIDEO SECTION
   ======================================== */
.video-section {
  text-align: center;
}

.video-wrapper {
  max-width: 960px;
  margin: 0 auto 32px;
}

.video-wrapper video {
  width: 100%;
  border-radius: var(--radius);
  display: block;
  background: var(--bg-card);
}

.video-section__caption {
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 600px;
  margin: 0 auto;
  font-style: italic;
}


/* ========================================
   STATS
   ======================================== */
.stats {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stats__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
  text-align: center;
}

.stat__number {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 700;
  color: var(--accent);
  display: inline;
}

.stat__suffix {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3vw, 2.5rem);
  color: var(--accent);
}

.stat__check {
  font-size: 2.5rem;
  color: #4caf50;
  display: block;
  margin-bottom: 8px;
}

.stat__label {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-top: 8px;
  letter-spacing: 0.02em;
}


/* ========================================
   VIRTUAL TOURS
   ======================================== */
.virtual-tours__embed {
  max-width: 960px;
  margin: 0 auto;
}


/* ========================================
   LES QUATRE CLES
   ======================================== */
.keys {
  background: var(--bg-secondary);
}

.keys__header {
  margin-bottom: 48px;
}

.keys__title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 16px;
}

.keys__subtitle {
  color: var(--text-secondary);
  font-size: 1rem;
}

.keys__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
}

.key-card {
  padding: 32px;
  background: var(--bg-card);
  border-radius: var(--radius);
  transition: var(--transition);
}
.key-card:hover {
  background: var(--bg-card-hover);
}

.key-card__line {
  display: block;
  width: 30px;
  height: 2px;
  background: var(--accent);
  margin-bottom: 24px;
}

.key-card__title {
  font-family: var(--font-heading);
  font-size: 1.375rem;
  font-weight: 400;
  margin-bottom: 16px;
  line-height: 1.3;
}

.key-card__text {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.7;
}

.key-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
}


/* ========================================
   PRESTATIONS / SERVICES
   ======================================== */
.service {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 80px;
}
.service:last-child { margin-bottom: 0; }

.service--reverse {
  grid-template-columns: 1fr 1.2fr;
}
.service--reverse .service__image { order: 2; }
.service--reverse .service__content { order: 1; }

.service__image img {
  width: 100%;
  border-radius: var(--radius);
  display: block;
}

.service__number {
  font-family: var(--font-heading);
  font-size: clamp(4rem, 8vw, 7rem);
  font-weight: 700;
  color: var(--border);
  line-height: 1;
  display: block;
  margin-bottom: 16px;
}

.service__title {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 400;
  margin-bottom: 16px;
}

.service__text {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.7;
}


/* ========================================
   PORTFOLIO
   ======================================== */
.portfolio {
  background: var(--bg-secondary);
}

.portfolio__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}

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

.portfolio__item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.portfolio__overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
}
.portfolio__item:hover .portfolio__overlay {
  opacity: 1;
}

.portfolio__cat {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  letter-spacing: 0.05em;
}


/* ========================================
   CONTACT
   ======================================== */
.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact__title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 400;
  margin-bottom: 16px;
}

.contact__text {
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.7;
}

.contact__details p {
  color: var(--text-secondary);
  margin-bottom: 8px;
  font-size: 0.9375rem;
}

.contact__details strong {
  color: var(--text-primary);
}

/* Form */
.form-group {
  position: relative;
  margin-bottom: 24px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  transition: border-color var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
}

.form-group label {
  position: absolute;
  top: 16px;
  left: 16px;
  color: var(--text-muted);
  font-size: 0.9375rem;
  pointer-events: none;
  transition: var(--transition);
}
.form-group input:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:not(:placeholder-shown) ~ label {
  top: -10px;
  left: 12px;
  font-size: 0.75rem;
  color: var(--accent);
  background: var(--bg-primary);
  padding: 0 4px;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.contact__form .btn {
  width: 100%;
}


/* ========================================
   FOOTER
   ======================================== */
.footer {
  padding: 60px 0 32px;
  border-top: 1px solid var(--border);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 40px;
  align-items: start;
}

.footer__logo {
  height: 40px;
  width: auto;
  margin-bottom: 8px;
}

.footer__tagline {
  color: var(--text-muted);
  font-size: 0.8125rem;
}

.footer__nav {
  display: flex;
  gap: 24px;
}
.footer__nav a {
  color: var(--text-secondary);
  font-size: 0.8125rem;
  letter-spacing: 0.05em;
  transition: color var(--transition);
}
.footer__nav a:hover { color: var(--accent); }

.footer__social {
  display: flex;
  gap: 16px;
}
.footer__social-link {
  color: var(--text-muted);
  transition: color var(--transition);
}
.footer__social-link:hover { color: var(--accent); }

.footer__bottom {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  margin-top: 32px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.75rem;
}
.footer__bottom a {
  color: var(--text-muted);
  transition: color var(--transition);
}
.footer__bottom a:hover { color: var(--accent); }


/* ========================================
   LIGHTBOX
   ======================================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}
.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox__close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 2.5rem;
  cursor: pointer;
  line-height: 1;
  transition: color var(--transition);
}
.lightbox__close:hover { color: var(--accent); }

.lightbox__content {
  max-width: 90vw;
  max-height: 85vh;
}
.lightbox__content img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
}


/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 1024px) {
  .value__inner { grid-template-columns: 1fr; gap: 40px; }
  .service { grid-template-columns: 1fr; gap: 32px; }
  .service--reverse .service__image { order: 0; }
  .service--reverse .service__content { order: 0; }
  .contact__inner { grid-template-columns: 1fr; gap: 40px; }
  .footer__inner { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 768px) {
  .header__nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--bg-secondary);
    padding: 80px 32px 32px;
    transition: right var(--transition);
    border-left: 1px solid var(--border);
  }
  .header__nav.is-open { right: 0; }

  .header__menu {
    flex-direction: column;
    gap: 24px;
  }
  .header__link { font-size: 1rem; }

  .hamburger { display: flex; }

  .stats__inner { grid-template-columns: repeat(2, 1fr); gap: 32px; }

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

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

  .footer__nav { flex-wrap: wrap; gap: 16px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }

  .hero__title { font-size: 2rem; }
  .hero__subtitle { font-size: 1rem; }

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

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

  .service__number { font-size: 3.5rem; }
}
