/* ============================================================
   PACONI — Landing Page Styles
   Font stack: Cormorant Garamond (display) + Inter (body)
   Accent: #C75B39  |  Text: #2B2D33  |  BG: #FAFAF8
   ============================================================ */

/* Accessibilité — caché visuellement, visible pour les lecteurs d'écran et les moteurs */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* =====================
   CUSTOM PROPERTIES
====================== */
:root {
  --accent:        #C75B39;
  --accent-dark:   #a84a2c;
  --text:          #2B2D33;
  --text-muted:    #6B6E7A;
  --white:         #FFFFFF;
  --bg:            #FAFAF8;
  --border:        #E8E5DF;

  --f-display:     'Cormorant Garamond', Georgia, serif;
  --f-body:        'Inter', system-ui, sans-serif;

  --header-h:      80px;
  --py:            110px;
  --py-sm:         64px;
  --max-w:         1200px;
  --gap:           20px;
  --radius:        4px;
  --ease:          0.32s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* =====================
   RESET
====================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; font-size: 16px; }
body  {
  font-family: var(--f-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img   { display: block; max-width: 100%; height: auto; }
ul    { list-style: none; }
a     { text-decoration: none; color: inherit; transition: color var(--ease); }
button { font-family: inherit; }

/* =====================
   UTILITIES
====================== */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px;
}

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

.section-eyebrow {
  display: block;
  font-family: var(--f-body);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.section-eyebrow--light { color: rgba(255,255,255,0.65); }

.section-title {
  font-family: var(--f-display);
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: 0.01em;
  color: var(--text);
  margin-bottom: 52px;
}

.section-title--light { color: var(--white); }

/* =====================
   BUTTONS
====================== */
.btn {
  display: inline-block;
  font-family: var(--f-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 16px 38px;
  border-radius: 50px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background var(--ease), border-color var(--ease), transform var(--ease), box-shadow var(--ease);
}

.btn--primary {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

.btn--primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(199,91,57,0.25);
}

.btn--full { width: 100%; text-align: center; }

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 900;
  height: var(--header-h);
  transition: background var(--ease), box-shadow var(--ease);
}

.header.is-scrolled {
  background: rgba(250, 250, 248, 0.96);
  box-shadow: 0 1px 32px rgba(0,0,0,0.07);
  backdrop-filter: blur(14px);
}

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

/* Logo */
/* Logo */
.logo {
  font-family: var(--f-display);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: 0.38em;
  color: var(--white);
  transition: color var(--ease);
  flex-shrink: 0;
}

.header.is-scrolled .logo  { color: var(--text); }
.logo--footer               { color: var(--white); display: block; margin-bottom: 10px; }

/* Desktop nav */
.nav__list {
  display: flex;
  align-items: center;
  gap: 38px;
}

.nav__link {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.82);
  position: relative;
  padding-bottom: 2px;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width var(--ease);
}

.nav__link:hover,
.nav__link.is-active        { color: var(--white); }
.nav__link:hover::after,
.nav__link.is-active::after { width: 100%; }

.header.is-scrolled .nav__link             { color: var(--text-muted); }
.header.is-scrolled .nav__link:hover,
.header.is-scrolled .nav__link.is-active   { color: var(--text); }

/* CTA nav link */
.nav__link--cta {
  background: var(--accent);
  color: var(--white) !important;
  padding: 10px 22px;
  border-radius: 50px;
  font-size: 0.66rem;
}

.nav__link--cta::after   { display: none; }
.nav__link--cta:hover    { background: var(--accent-dark); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 1001;
}

.hamburger__line {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--white);
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}

.header.is-scrolled .hamburger__line { background: var(--text); }

.hamburger.is-open .hamburger__line:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.is-open .hamburger__line:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.is-open .hamburger__line:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

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

.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.06);
  transition: transform 8s ease;
}

.hero.is-loaded .hero__bg { transform: scale(1); }

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(18,18,24,0.60) 0%,
    rgba(18,18,24,0.35) 50%,
    rgba(18,18,24,0.65) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--white);
  max-width: 820px;
}

.hero__eyebrow {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  margin-bottom: 22px;
}

.hero__title {
  font-family: var(--f-display);
  font-size: clamp(3rem, 7.5vw, 5.8rem);
  font-weight: 300;
  line-height: 1.07;
  letter-spacing: 0.02em;
  color: var(--white);
  margin-bottom: 26px;
}

@keyframes heroLogoReveal {
  from { clip-path: inset(0 50%); opacity: 0; }
  to   { clip-path: inset(0 0%);  opacity: 1; }
}

.hero__logo {
  display: block;
  margin: 0 auto 36px;
  width: clamp(200px, 38vw, 420px);
  height: auto;
  filter: brightness(0) invert(1);
  animation: heroLogoReveal 1.4s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}

.hero__subtitle {
  font-size: 1rem;
  font-weight: 300;
  color: rgba(255,255,255,0.75);
  max-width: 530px;
  margin: 0 auto 42px;
  line-height: 1.85;
}

/* Animated scroll line */
.hero__scroll {
  position: absolute;
  bottom: 42px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.6;
  transition: opacity var(--ease);
}

.hero__scroll:hover { opacity: 1; }

.hero__scroll-line {
  display: block;
  width: 1px;
  height: 56px;
  background: rgba(255,255,255,0.3);
  position: relative;
  overflow: hidden;
}

.hero__scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--white);
  animation: scrollDrop 2s ease-in-out infinite;
}

@keyframes scrollDrop {
  0%   { top: -100%; }
  100% { top: 100%; }
}

/* ============================================================
   ABOUT
   ============================================================ */
.about {
  padding: var(--py) 0;
  background: var(--white);
}

.about__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about__text .section-title { margin-bottom: 42px; }

.about__block          { margin-bottom: 34px; }
.about__block:last-child { margin-bottom: 0; }

.about__area {
  margin-top: 28px;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.about__block-title {
  font-family: var(--f-body);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.about__block p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.92;
  font-weight: 300;
}

/* Image with decorative border offset */
.about__image { position: relative; }

.about__image::before {
  content: '';
  position: absolute;
  bottom: -22px;
  right: -22px;
  width: 68%;
  height: 68%;
  border: 1px solid var(--border);
  pointer-events: none;
}

.about__image img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 560px;
  object-fit: cover;
}

/* ============================================================
   SERVICES
   ============================================================ */
.services {
  position: relative;
  padding: var(--py) 0;
  overflow: hidden;
}

.services__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.services__overlay {
  position: absolute;
  inset: 0;
  background: rgba(14, 14, 18, 0.76);
}

.services__content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.services__list {
  max-width: 520px;
  margin: 0 auto;
}

.services__item {
  font-family: var(--f-display);
  font-size: clamp(1.35rem, 2.4vw, 1.95rem);
  font-weight: 400;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.68);
  padding: 22px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  transition: color var(--ease), letter-spacing var(--ease);
  cursor: default;
}

.services__item:first-child { border-top: 1px solid rgba(255,255,255,0.1); }
.services__item:hover       { color: var(--white); letter-spacing: 0.14em; }

/* ============================================================
   PORTFOLIO / REALIZĂRI
   ============================================================ */
.portfolio {
  padding: var(--py) 0;
  background: var(--bg);
}

.portfolio .section-eyebrow { margin-bottom: 14px; }
.portfolio .section-title   { margin-bottom: 58px; }

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

.portfolio__item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  cursor: pointer;
}

.portfolio__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.portfolio__item:hover img { transform: scale(1.07); }

.portfolio__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(14,14,20,0.72) 0%, transparent 55%);
  opacity: 0;
  display: flex;
  align-items: flex-end;
  padding: 22px 24px;
  transition: opacity var(--ease);
}

.portfolio__item:hover .portfolio__overlay { opacity: 1; }

.portfolio__label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--white);
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  padding: var(--py) 0;
  background: var(--white);
}

.contact .section-eyebrow { margin-bottom: 14px; }
.contact .section-title   { margin-bottom: 68px; }

.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 80px;
  align-items: start;
}

/* Info blocks */
.contact__item {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 30px;
}

.contact__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 50%;
  flex-shrink: 0;
  color: var(--accent);
  margin-top: 2px;
}

.contact__label {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 5px;
}

.contact__value {
  font-size: 0.9rem;
  color: var(--text);
  font-weight: 400;
  line-height: 1.5;
}

.contact__value--large {
  font-family: var(--f-display);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  display: block;
}

.contact__value--large:hover { color: var(--accent); }

/* Map */
.contact__map {
  margin-top: 10px;
  border: 1px solid var(--border);
  overflow: hidden;
  border-radius: var(--radius);
}

/* Form */
.form__group    { margin-bottom: 22px; }

.form__label {
  display: block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.form__optional {
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  font-size: 0.65rem;
  color: var(--text-muted);
  opacity: 0.7;
}

.form__input {
  width: 100%;
  padding: 13px 16px;
  font-family: var(--f-body);
  font-size: 0.88rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  outline: none;
  transition: border-color var(--ease), box-shadow var(--ease);
}

.form__input::placeholder { color: #b0b3bb; }

.form__input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(199,91,57,0.09);
}

.form__input.is-error {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220,38,38,0.07);
}

.form__textarea {
  resize: vertical;
  min-height: 130px;
}

.form__error {
  display: block;
  font-size: 0.72rem;
  color: #dc2626;
  margin-top: 5px;
  min-height: 18px;
}

.form__success {
  display: none;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding: 15px 18px;
  background: #f0fdf4;
  border: 1px solid #86efac;
  border-radius: var(--radius);
  font-size: 0.85rem;
  color: #15803d;
  font-weight: 500;
  line-height: 1.4;
}

.form__success.is-visible { display: flex; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--text);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 60px;
  align-items: center;
  padding: 52px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.footer__tagline {
  font-size: 0.78rem;
  font-weight: 300;
  color: rgba(255,255,255,0.38);
}

.footer__address {
  font-style: normal;
  font-size: 0.78rem;
  font-weight: 300;
  color: rgba(255,255,255,0.38);
  line-height: 1.8;
  margin-top: 12px;
}
.footer__address a {
  color: rgba(255,255,255,0.38);
  text-decoration: none;
  transition: color var(--ease);
}
.footer__address a:hover { color: var(--white); }

.footer__nav ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__nav a {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  transition: color var(--ease);
}

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

.footer__social {
  display: flex;
  gap: 12px;
}

.footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: 50%;
  color: rgba(255,255,255,0.45);
  transition: border-color var(--ease), color var(--ease);
}

.footer__social-link:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.footer__bottom {
  padding: 18px 0;
}

.footer__bottom p {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.28);
  letter-spacing: 0.06em;
  text-align: center;
}

/* ============================================================
   RESPONSIVE — 1024px
   ============================================================ */
@media (max-width: 1024px) {
  :root { --py: 84px; }

  .about__inner    { gap: 50px; }
  .contact__inner  { gap: 50px; }

  .footer__inner {
    grid-template-columns: 1fr 1fr;
    row-gap: 36px;
  }

  .footer__brand  { grid-column: 1 / -1; }
}

/* ============================================================
   RESPONSIVE — 768px (mobile)
   ============================================================ */
@media (max-width: 768px) {
  :root {
    --py: var(--py-sm);
  }

  .container { padding: 0 20px; }

  /* Mobile nav overlay */
  .hamburger { display: flex; }

  .nav {
    position: fixed;
    inset: 0;
    background: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateX(100%);
    transition: transform 0.42s cubic-bezier(0.77, 0, 0.175, 1);
    z-index: 1000;
  }

  .nav.is-open { transform: translateX(0); }

  .nav__list {
    flex-direction: column;
    gap: 28px;
    text-align: center;
  }

  .nav__link {
    font-size: 0.95rem;
    letter-spacing: 0.22em;
    color: rgba(255,255,255,0.65);
  }

  .nav__link:hover,
  .nav__link.is-active { color: var(--white); }

  .nav__link--cta { color: var(--white) !important; padding: 12px 28px; font-size: 0.78rem; }

  /* About */
  .about__inner { grid-template-columns: 1fr; gap: 44px; }
  .about__image::before { display: none; }
  .about__image img { height: 360px; }

  /* Services: disable parallax on mobile (can glitch on iOS) */
  .services__bg { background-attachment: scroll; }

  /* Portfolio */
  .portfolio__grid { grid-template-columns: 1fr; gap: 12px; }

  /* Contact */
  .contact__inner { grid-template-columns: 1fr; gap: 48px; }

  /* Footer */
  .footer__inner {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
    padding: 44px 0;
  }

  .footer__nav ul {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px 22px;
  }

  .footer__social { justify-content: center; }
  .logo--footer   { text-align: center; }
}

/* ============================================================
   RESPONSIVE — 480px
   ============================================================ */
@media (max-width: 480px) {
  .hero__title { font-size: 2.6rem; }

  .about__image img { height: 280px; }
}
