/* ============================================================
   Gianluca Luccini — style.css
   ============================================================ */

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --gold:    #b09a6c;
  --gold-lt: #c9b588;
  --dark:    #1a1a18;
  --char:    #2e2e2a;
  --sand:    #f2efe9;
  --warm:    #e8e3da;
  --muted:   #7a7669;
  --white:   #ffffff;
  --ease:    cubic-bezier(0.16, 1, 0.3, 1);
  --px:      1.5rem;   /* horizontal page padding */
}

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

/* ── Base ───────────────────────────────────────────────────── */
html { scroll-behavior: smooth; }

body {
  font-family: 'Archivo', sans-serif;
  background: var(--sand);
  color: var(--dark);
  overflow-x: hidden;
  cursor: none;
}
/* Disable custom cursor on touch devices */
@media (hover: none) { body { cursor: auto; } }

/* ── Custom Cursor (desktop only) ───────────────────────────── */
#cursor {
  position: fixed; top: 0; left: 0; z-index: 9999;
  width: 10px; height: 10px;
  background: var(--gold); border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: width .2s var(--ease), height .2s var(--ease);
  mix-blend-mode: multiply;
}
#cursor.big { width: 38px; height: 38px; background: var(--gold-lt); }
@media (hover: none) { #cursor { display: none; } }

/* ── Navigation ─────────────────────────────────────────────── */
nav {
  position: fixed; inset: 0 0 auto; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.3rem var(--px);
  transition: background .4s, backdrop-filter .4s;
}
nav.dark {
  background: rgba(26, 26, 24, .92);
  backdrop-filter: blur(14px);
}
.nav-logo {
  font-family: 'Archivo Black', sans-serif;
  font-size: .9rem; letter-spacing: .14em;
  color: var(--white); text-decoration: none; text-transform: uppercase;
  z-index: 210;
}

/* Desktop links */
.nav-links {
  display: flex; gap: 2.4rem; list-style: none;
}
.nav-links a {
  font-size: .75rem; letter-spacing: .16em; text-transform: uppercase;
  color: rgba(255,255,255,.6); text-decoration: none; transition: color .2s;
}
.nav-links a:hover { color: var(--gold-lt); }

/* ── Hamburger button ───────────────────────────────────────── */
.burger {
  display: none;
  flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 10px;
  background: none; border: none; cursor: pointer; z-index: 210;
}
.burger span {
  display: block; width: 22px; height: 1.5px;
  background: var(--white);
  transition: transform .35s var(--ease), opacity .25s;
  transform-origin: center;
}
/* Open state */
.burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── Mobile drawer ──────────────────────────────────────────── */
.nav-drawer {
  display: none;
  position: fixed; inset: 0; z-index: 190;
  background: rgba(26,26,24,.97);
  backdrop-filter: blur(16px);
  flex-direction: column; align-items: center; justify-content: center;
  gap: 2.4rem;
  opacity: 0; pointer-events: none;
  transition: opacity .35s var(--ease);
}
.nav-drawer.open { opacity: 1; pointer-events: all; }
.nav-drawer a {
  font-family: 'Archivo Black', sans-serif;
  font-size: clamp(1.8rem, 8vw, 2.5rem);
  text-transform: uppercase; letter-spacing: .06em;
  color: rgba(255,255,255,.5); text-decoration: none;
  transition: color .2s;
}
.nav-drawer a:hover,
.nav-drawer a:active { color: var(--gold); }
.nav-drawer-social {
  display: flex; gap: 1.5rem; margin-top: 1rem;
}
.nav-drawer-social a {
  font-size: .75rem; letter-spacing: .16em;
  color: rgba(255,255,255,.3); text-decoration: none;
  transition: color .2s;
}
.nav-drawer-social a:hover { color: var(--gold); }

/* ── Hero ───────────────────────────────────────────────────── */
#hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 0 var(--px) 5rem; overflow: hidden;
}
.hero-img {
  position: absolute; inset: 0;
  background: url('images/hero.jpg') center 30% / cover no-repeat;
  background-image: image-set(
    url('images/hero.webp') type('image/webp'),
    url('images/hero.jpg')  type('image/jpeg')
  );
  background-position: center 30%;
  background-size: cover;
  background-repeat: no-repeat;
}
.hero-img::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(26,26,24,.2) 0%, rgba(26,26,24,.88) 100%);
}
.hero-ring {
  position: absolute; top: -120px; right: -120px;
  width: 600px; height: 600px;
  border: 1px solid rgba(176,154,108,.2); border-radius: 50%;
  pointer-events: none; animation: spin 40s linear infinite;
}
.hero-ring::after {
  content: ''; position: absolute; inset: 60px;
  border: 1px solid rgba(176,154,108,.1); border-radius: 50%;
}
@keyframes spin { to { transform: rotate(360deg); } }

.hero-tag {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; gap: .8rem;
  font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold);
  margin-bottom: 1.2rem;
  opacity: 0; animation: up .8s .3s var(--ease) forwards;
}
.hero-tag::before { content: ''; width: 28px; height: 1px; background: var(--gold); }

h1 {
  position: relative; z-index: 1;
  font-family: 'Archivo Black', sans-serif;
  font-size: clamp(3rem, 11vw, 8rem);
  line-height: .94; text-transform: uppercase; color: var(--white);
  opacity: 0; animation: up .9s .45s var(--ease) forwards;
}
h1 em { color: var(--gold); font-style: normal; }

.hero-sub {
  position: relative; z-index: 1;
  max-width: 480px; margin-top: 1.4rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1rem, 3.5vw, 1.18rem); font-style: italic;
  color: rgba(255,255,255,.55); line-height: 1.65;
  opacity: 0; animation: up .9s .6s var(--ease) forwards;
}
.hero-btns {
  position: relative; z-index: 1; margin-top: 2.2rem;
  display: flex; gap: .9rem; flex-wrap: wrap;
  opacity: 0; animation: up .9s .75s var(--ease) forwards;
}
.hero-scroll {
  position: absolute; bottom: 3rem; right: var(--px); z-index: 1;
  writing-mode: vertical-rl; font-size: .65rem; letter-spacing: .2em;
  text-transform: uppercase; color: rgba(255,255,255,.28);
  opacity: 0; animation: up .9s 1s var(--ease) forwards;
}
.hero-scroll::after {
  content: ''; display: block; width: 1px; height: 48px;
  background: var(--gold); margin: .7rem auto 0;
  animation: pulse 2s 1.5s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{transform:scaleY(1);opacity:1} 50%{transform:scaleY(.35);opacity:.3} }
@keyframes up { from{opacity:0;transform:translateY(20px)} to{opacity:1;transform:none} }

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: .85rem 2rem;
  border: 1px solid var(--gold); color: var(--gold);
  font-size: .74rem; letter-spacing: .18em; text-transform: uppercase;
  text-decoration: none; transition: background .22s, color .22s;
  /* touch-friendly minimum height */
  min-height: 44px; line-height: 1.2;
}
.btn:hover,
.btn:active { background: var(--gold); color: var(--dark); }
.btn-fill { background: var(--gold); color: var(--dark); }
.btn-fill:hover,
.btn-fill:active { background: var(--gold-lt); border-color: var(--gold-lt); }

/* ── Shared ─────────────────────────────────────────────────── */
section { padding: 6rem var(--px); }

.label {
  display: flex; align-items: center; gap: .9rem;
  font-size: .68rem; letter-spacing: .24em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 2.4rem;
}
.label::after { content: ''; width: 60px; height: 1px; background: var(--gold); opacity: .35; }

h2 {
  font-family: 'Archivo Black', sans-serif;
  font-size: clamp(2rem, 6vw, 4.2rem);
  text-transform: uppercase; line-height: 1;
}
h3 {
  font-family: 'Archivo Black', sans-serif;
  font-size: 1rem; text-transform: uppercase; letter-spacing: .05em;
}

/* ── Photo Strip ────────────────────────────────────────────── */
.strip {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1.2fr;
  gap: 3px; height: 440px;
}
.strip-item { overflow: hidden; }
.strip-item img,
.strip-item picture { width: 100%; height: 100%; display: block; }
.strip-item img { object-fit: cover; transition: transform .6s var(--ease); }
.strip-item:hover img { transform: scale(1.04); }

/* ── Intro ──────────────────────────────────────────────────── */
#intro {
  background: var(--dark);
  display: grid; grid-template-columns: 1fr 1fr; gap: 6rem; align-items: center;
}
#intro h2 { color: var(--white); }
#intro h2 em { color: var(--gold); font-style: normal; }
.intro-p {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.05rem, 2.5vw, 1.22rem); line-height: 1.8;
  color: rgba(255,255,255,.58);
}
.intro-p strong { color: var(--gold-lt); font-style: italic; font-weight: 400; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 3rem; }
.stat-n {
  font-family: 'Archivo Black', sans-serif;
  font-size: clamp(2rem, 5vw, 2.8rem); color: var(--gold); display: block;
}
.stat-l {
  font-size: .68rem; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255,255,255,.3); margin-top: .3rem;
}

/* ── Services ───────────────────────────────────────────────── */
#services { background: var(--sand); }
.svc-head {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem;
  align-items: end; margin-bottom: 3rem;
}
.svc-desc { font-size: .95rem; line-height: 1.75; color: var(--muted); }
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.svc-card {
  background: var(--warm); padding: 2.4rem 2rem;
  position: relative; overflow: hidden; transition: background .28s;
}
.svc-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--gold); transform: scaleX(0); transform-origin: left;
  transition: transform .38s var(--ease);
}
.svc-card:hover { background: var(--white); }
.svc-card:hover::before,
.svc-card:active::before { transform: scaleX(1); }
.svc-n {
  font-family: 'Cormorant Garamond', serif;
  font-size: .82rem; font-style: italic; color: var(--gold); margin-bottom: 1rem;
}
.svc-card h3 { margin-bottom: .7rem; color: var(--dark); }
.svc-card p  { font-size: .86rem; line-height: 1.7; color: var(--muted); }

/* ── Photo Mosaic ───────────────────────────────────────────── */
.mosaic {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: 260px 260px;
  gap: 3px;
}
.mosaic-item { overflow: hidden; }
.mosaic-item:first-child { grid-row: 1 / 3; }
.mosaic-item picture { display: block; width: 100%; height: 100%; }
.mosaic-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease); }
.mosaic-item:hover img { transform: scale(1.05); }

/* ── Approche ───────────────────────────────────────────────── */
#approche {
  background: var(--char);
  display: grid; grid-template-columns: 1fr 2fr; gap: 6rem;
}
.app-left h2 { color: var(--white); }
.app-left h2 em { color: var(--gold); font-style: normal; }
.app-left p { margin-top: 1.5rem; font-size: .88rem; line-height: 1.75; color: rgba(255,255,255,.38); }
.app-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.app-item {
  background: rgba(255,255,255,.04); padding: 2.4rem 2rem;
  border-left: 1px solid rgba(176,154,108,.14); transition: background .28s;
}
.app-item:hover,
.app-item:active { background: rgba(176,154,108,.08); }
.app-ico {
  width: 36px; height: 36px; border: 1px solid var(--gold);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.2rem;
}
.app-ico svg { width: 15px; height: 15px; fill: none; stroke: var(--gold); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.app-item h3 { color: var(--white); font-size: .92rem; margin-bottom: .7rem; }
.app-item p  { font-size: .84rem; line-height: 1.7; color: rgba(255,255,255,.38); }

/* ── Cas Client ─────────────────────────────────────────────── */
#cas { background: var(--gold); }
.cas-wrap {
  display: grid; grid-template-columns: 1fr 2fr; gap: 6rem; align-items: start;
}
#cas h2 { color: var(--dark); }
#cas .label { color: rgba(26,26,24,.5); }
#cas .label::after { background: var(--dark); }
.cas-photo { overflow: hidden; margin-top: 2rem; aspect-ratio: 4 / 3; }
.cas-photo picture { display: block; width: 100%; height: 100%; }
.cas-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cas-cols { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 2.5rem; }
.cas-block h3 {
  font-size: .7rem; letter-spacing: .2em; text-transform: uppercase;
  color: rgba(26,26,24,.45); margin-bottom: .9rem;
  padding-bottom: .7rem; border-bottom: 1px solid rgba(26,26,24,.15);
}
.cas-block p { font-size: .93rem; line-height: 1.75; color: var(--dark); }
.cas-big {
  font-family: 'Archivo Black', sans-serif;
  font-size: clamp(2.4rem, 7vw, 3.2rem); color: var(--dark); line-height: 1; margin-top: 1.2rem;
}
.cas-big span { font-family: 'Cormorant Garamond', serif; font-size: 1rem; font-weight: 400; }

/* ── Contact ────────────────────────────────────────────────── */
#contact { background: var(--dark); text-align: center; }
#contact h2 { color: var(--white); margin-bottom: .9rem; }
#contact h2 em { color: var(--gold); font-style: normal; }
.contact-sub {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.18rem; font-style: italic;
  color: rgba(255,255,255,.38); margin-bottom: 2.8rem;
}
.contact-links {
  display: flex; justify-content: center; gap: 2.5rem; flex-wrap: wrap; margin-bottom: 1.6rem;
}
.c-link {
  display: flex; align-items: center; gap: .65rem;
  font-size: .82rem; letter-spacing: .08em;
  color: rgba(255,255,255,.45); text-decoration: none;
  transition: color .2s;
  min-height: 44px; /* touch target */
}
.c-link:hover,
.c-link:active { color: var(--gold); }
.c-link svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.social-row { display: flex; justify-content: center; gap: 1.2rem; margin-bottom: 3.5rem; flex-wrap: wrap; }
.s-btn {
  display: inline-flex; align-items: center; gap: .65rem;
  padding: .75rem 1.6rem;
  border: 1px solid rgba(176,154,108,.25);
  color: rgba(255,255,255,.5);
  font-size: .74rem; letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none; transition: all .22s;
  min-height: 44px; /* touch target */
}
.s-btn:hover,
.s-btn:active { border-color: var(--gold); color: var(--gold); }
.s-btn svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.contact-cta { display: flex; justify-content: center; gap: 1.2rem; flex-wrap: wrap; }

/* ── Footer ─────────────────────────────────────────────────── */
footer {
  background: var(--dark); border-top: 1px solid rgba(255,255,255,.06);
  padding: 1.6rem var(--px); display: flex; justify-content: space-between; align-items: center;
}
footer p { font-size: .7rem; letter-spacing: .1em; color: rgba(255,255,255,.18); }

/* ── Scroll Reveal ──────────────────────────────────────────── */
.r { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.r.on { opacity: 1; transform: none; }
.d1{transition-delay:.1s} .d2{transition-delay:.2s} .d3{transition-delay:.3s} .d4{transition-delay:.4s}

/* ══════════════════════════════════════════════════════════════
   TABLET  (max 1024px)
══════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  nav { padding: 1.3rem 2rem; }
  section { padding: 5.5rem 2rem; }
  #hero { padding: 0 2rem 5rem; }

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

  .cas-wrap { grid-template-columns: 1fr; gap: 3rem; }
  .cas-cols { grid-template-columns: repeat(3, 1fr); }
}

/* ══════════════════════════════════════════════════════════════
   MOBILE  (max 680px)
══════════════════════════════════════════════════════════════ */
@media (max-width: 680px) {

  /* Nav — show burger, hide desktop links */
  nav { padding: 1rem var(--px); }
  .nav-links { display: none; }
  .burger     { display: flex; }
  .nav-drawer { display: flex; }

  /* Hero */
  #hero { padding: 0 var(--px) 4.5rem; min-height: 100svh; }
  .hero-ring { width: 320px; height: 320px; top: -60px; right: -60px; }
  .hero-scroll { display: none; }
  .hero-btns { flex-direction: column; gap: .75rem; }
  .hero-btns .btn { text-align: center; width: 100%; max-width: 280px; padding: 1rem 1.5rem; }

  /* Photo strip → single tall image */
  .strip { grid-template-columns: 1fr; height: 260px; }
  .strip-item:nth-child(2),
  .strip-item:nth-child(3) { display: none; }

  /* Intro */
  #intro { grid-template-columns: 1fr; gap: 3rem; padding-top: 4rem; padding-bottom: 4rem; }
  .stats { grid-template-columns: 1fr 1fr; gap: 1.2rem; }

  /* Services */
  .svc-head { grid-template-columns: 1fr; gap: 1rem; margin-bottom: 2rem; }
  .svc-grid { grid-template-columns: 1fr; gap: 2px; }
  .svc-card { padding: 1.8rem 1.4rem; }

  /* Mosaic → 2-col compact */
  .mosaic {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 180px 180px;
  }
  .mosaic-item:first-child { grid-row: 1 / 3; }

  /* Approche */
  #approche { grid-template-columns: 1fr; gap: 2.5rem; }
  .app-grid { grid-template-columns: 1fr; gap: 2px; }
  .app-item { padding: 1.8rem 1.4rem; }

  /* Cas client */
  .cas-wrap { grid-template-columns: 1fr; gap: 2rem; }
  .cas-cols { grid-template-columns: 1fr; gap: 1.8rem; }
  .cas-photo { aspect-ratio: 16 / 9; margin-top: 1.2rem; }

  /* Contact */
  #contact { padding-left: var(--px); padding-right: var(--px); }
  .contact-links { flex-direction: column; align-items: center; gap: 0; }
  .c-link { width: 100%; max-width: 280px; justify-content: center; border-bottom: 1px solid rgba(255,255,255,.06); padding: .8rem 0; }
  .c-link:last-child { border-bottom: none; }
  .social-row { gap: .8rem; }
  .s-btn { padding: .9rem 1.4rem; font-size: .7rem; }
  .contact-cta { flex-direction: column; align-items: center; gap: .75rem; }
  .contact-cta .btn { width: 100%; max-width: 280px; text-align: center; padding: 1rem; }

  /* Footer */
  footer { flex-direction: column; gap: .6rem; text-align: center; padding: 1.4rem var(--px); }
}
