/* ================================================================
   CASA DUCULESCU — style.css
   Fraunces (titluri) + Inter (text)
================================================================ */

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

:root {
  --green:       #1a3528;
  --green-mid:   #2a5240;
  --green-light: #e8f0eb;
  --cream:       #f7f4ee;
  --gray:        #2c2c2c;
  --gray-mid:    #5a5a5a;
  --gray-light:  #a0a0a0;
  --white:       #ffffff;
  --wa:          #25d366;

  --font-title: 'Fraunces', Georgia, serif;
  --font-body:  'Inter', system-ui, sans-serif;

  --r-sm:  8px;
  --r-md: 16px;
  --r-lg: 24px;

  --shadow-sm: 0 2px 8px rgba(0,0,0,.08);
  --shadow-md: 0 6px 24px rgba(0,0,0,.12);
  --shadow-lg: 0 16px 48px rgba(0,0,0,.16);
  --ease: cubic-bezier(.25,.46,.45,.94);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: clamp(15px,1.6vw,17px);
  line-height: 1.65;
  color: var(--gray);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
ul  { list-style: none; }
a   { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 clamp(20px,5vw,60px);
}

.eyebrow {
  display: inline-block;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--green-mid);
  margin-bottom: .6rem;
}

h1, h2, h3 { font-family: var(--font-title); font-weight: 500; line-height: 1.2; }

h2 {
  font-size: clamp(1.8rem,4vw,2.8rem);
  color: var(--green);
  margin-bottom: 1rem;
}

h3 {
  font-size: clamp(1rem,2vw,1.2rem);
  color: var(--green);
  margin-bottom: .5rem;
}

/* Reveal */
.reveal { opacity:0; transform:translateY(28px); transition:opacity .7s var(--ease),transform .7s var(--ease); }
.reveal.is-visible { opacity:1; transform:none; }

/* ================================================================
   NAV
================================================================ */
.site-nav {
  position: fixed;
  top:0; left:0; right:0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px,5vw,60px);
  height: 60px;
  transition: background .3s var(--ease), box-shadow .3s var(--ease);
}

.site-nav.scrolled {
  background: rgba(26,53,40,.96);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 16px rgba(0,0,0,.2);
}

.nav-logo {
  font-family: var(--font-title);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--white);
  letter-spacing: .02em;
}

.nav-links { display:flex; gap:2rem; }

.nav-links a {
  font-size: .85rem;
  font-weight: 500;
  color: rgba(255,255,255,.82);
  letter-spacing: .03em;
  transition: color .2s;
}
.nav-links a:hover { color: var(--white); }

@media (max-width:600px) { .nav-links { display:none; } }

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

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(8,22,15,.75) 0%,
    rgba(8,22,15,.42) 55%,
    rgba(8,22,15,.60) 100%
  );
}

.hero-content {
  position: relative;
  text-align: center;
  color: var(--white);
  padding: 0 1.5rem;
  max-width: 720px;
}

.hero-badge {
  display: inline-block;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.78);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 40px;
  padding: .28rem .9rem;
  margin-bottom: 1.2rem;
}

.hero-content h1 {
  font-family: var(--font-title);
  font-size: clamp(2.6rem,7vw,5rem);
  font-weight: 500;
  color: var(--white);
  letter-spacing: -.01em;
  margin-bottom: .7rem;
}

.hero-sub {
  font-size: clamp(1rem,2vw,1.2rem);
  color: rgba(255,255,255,.82);
  margin-bottom: 2rem;
}

.hero-cta {
  display: inline-block;
  background: var(--white);
  color: var(--green);
  font-weight: 600;
  font-size: .9rem;
  letter-spacing: .04em;
  padding: .8rem 2.2rem;
  border-radius: 40px;
  transition: background .2s, transform .2s;
}
.hero-cta:hover { background: var(--cream); transform: translateY(-2px); }

.scroll-arrow {
  position: absolute;
  bottom: 2rem;
  left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,.6);
  width: 36px; height: 36px;
  animation: bounce 2.2s ease-in-out infinite;
}
.scroll-arrow svg { width:100%; height:100%; }

@keyframes bounce {
  0%,100% { transform:translateX(-50%) translateY(0); }
  50%      { transform:translateX(-50%) translateY(6px); }
}

/* ================================================================
   SECTIONS
================================================================ */
.section { padding: clamp(60px,10vw,120px) 0; }
.section--alt { background: var(--cream); }

.section-header { text-align:center; margin-bottom: clamp(2rem,5vw,3.5rem); }

/* ================================================================
   DESPRE
================================================================ */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem,6vw,5rem);
  align-items: center;
}

.about-img-wrap {
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3;
}

.about-img-wrap img {
  width:100%; height:100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}
.about-img-wrap:hover img { transform: scale(1.03); }

.about-text p {
  color: var(--gray-mid);
  margin-bottom: 2rem;
  font-size: 1.02rem;
}

.about-stats { display:flex; gap:2rem; }

.stat { display:flex; flex-direction:column; gap:.2rem; }

.stat-num {
  font-family: var(--font-title);
  font-size: clamp(1.6rem,3vw,2.2rem);
  font-weight: 500;
  color: var(--green);
  line-height: 1;
}

.stat-label {
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--gray-light);
}

@media (max-width:768px) {
  .about-split { grid-template-columns:1fr; }
  .about-text .eyebrow, .about-text h2 { text-align:center; }
}

/* ================================================================
   FACILITĂȚI
================================================================ */
.facility-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: clamp(1rem,3vw,1.8rem);
  margin-bottom: 2.5rem;
}

.facility-card {
  background: var(--white);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .3s var(--ease), transform .3s var(--ease);
}
.facility-card:hover { box-shadow:var(--shadow-md); transform:translateY(-4px); }

.facility-img-wrap { aspect-ratio:3/4; overflow:hidden; }

.facility-img-wrap img {
  width:100%; height:100%;
  object-fit: cover;
  transition: transform .5s var(--ease);
}
.facility-card:hover .facility-img-wrap img { transform:scale(1.04); }

.facility-body { padding:1.2rem 1.4rem 1.5rem; }

.facility-body p { font-size:.9rem; color:var(--gray-mid); line-height:1.55; }

/* Pills */
.pills-wrap { display:flex; flex-wrap:wrap; gap:.6rem; justify-content:center; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: var(--green-light);
  color: var(--green);
  font-size: .82rem;
  font-weight: 500;
  padding: .45rem 1rem;
  border-radius: 40px;
  white-space: nowrap;
}
.pill svg { width:16px; height:16px; flex-shrink:0; }

@media (max-width:680px) { .facility-grid { grid-template-columns:1fr; } }

/* ================================================================
   GALERIE — BENTO
================================================================ */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  grid-auto-rows: 220px;
  gap: 10px;
}

.bento-item {
  display:block; padding:0;
  border-radius: var(--r-md);
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.bento-item img {
  width:100%; height:100%;
  object-fit:cover;
  transition: transform .45s var(--ease);
}
.bento-item::after {
  content:''; position:absolute; inset:0;
  background:rgba(0,0,0,0);
  transition:background .3s;
}
.bento-item:hover::after { background:rgba(0,0,0,.18); }
.bento-item:hover img { transform:scale(1.05); }

.bento-tall { grid-row:span 2; }
.bento-wide { grid-column:span 2; }

@media (max-width:900px) {
  .bento-grid { grid-template-columns:repeat(2,1fr); grid-auto-rows:200px; }
}
@media (max-width:520px) {
  .bento-grid { grid-template-columns:1fr 1fr; grid-auto-rows:160px; }
}

/* ================================================================
   ACTIVITĂȚI
================================================================ */
.activity-cards {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: clamp(1rem,3vw,1.8rem);
}

.activity-card {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 2rem 1.6rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .3s, transform .3s;
}
.activity-card:hover { box-shadow:var(--shadow-md); transform:translateY(-3px); }

.activity-icon { font-size:2rem; margin-bottom:1rem; line-height:1; }

.activity-card h3 { margin-bottom:.5rem; }

.activity-card p { font-size:.9rem; color:var(--gray-mid); line-height:1.6; }

@media (max-width:680px) { .activity-cards { grid-template-columns:1fr; } }

/* ================================================================
   LOCAȚIE
================================================================ */
.location-card {
  max-width: 520px;
  margin: 0 auto;
  background: var(--green);
  color: var(--white);
  border-radius: var(--r-lg);
  padding: clamp(2rem,5vw,3.5rem) clamp(1.5rem,5vw,3rem);
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.location-icon {
  width:52px; height:52px;
  background:rgba(255,255,255,.12);
  border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  margin:0 auto 1.2rem;
}
.location-icon svg { width:26px; height:26px; }

.location-addr {
  font-size:1.1rem; line-height:1.55;
  margin-bottom:1.4rem;
  color:rgba(255,255,255,.9);
}

.location-info {
  display:flex; justify-content:center; gap:2rem;
  font-size:.85rem; color:rgba(255,255,255,.7);
  margin-bottom:2rem;
}
.location-info strong { color:var(--white); }

.btn-map {
  display:inline-flex; align-items:center; gap:.5rem;
  background:var(--white); color:var(--green);
  font-weight:600; font-size:.9rem;
  padding:.75rem 1.8rem;
  border-radius:40px;
  transition:background .2s, transform .2s;
}
.btn-map svg { width:16px; height:16px; }
.btn-map:hover { background:var(--cream); transform:translateY(-2px); }

/* ================================================================
   FOOTER
================================================================ */
.site-footer {
  background: var(--gray);
  color: rgba(255,255,255,.7);
  padding: clamp(3rem,7vw,5rem) 0 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.footer-logo {
  display:block;
  font-family:var(--font-title);
  font-size:1.3rem; font-weight:500;
  color:var(--white);
  margin-bottom:.7rem;
}
.footer-brand p { font-size:.88rem; line-height:1.6; }

.footer-label {
  font-size:.72rem; font-weight:600;
  letter-spacing:.1em; text-transform:uppercase;
  color:var(--white); margin-bottom:.8rem;
}

.footer-phone {
  display:block;
  font-size:1.2rem; font-weight:600;
  color:var(--white); margin-bottom:.5rem;
  transition:opacity .2s;
}
.footer-phone:hover { opacity:.75; }

.footer-addr, .footer-program p { font-size:.88rem; line-height:1.65; }

.footer-bottom {
  text-align:center;
  padding:1.2rem 0;
  font-size:.78rem;
  color:rgba(255,255,255,.4);
}

@media (max-width:680px) { .footer-inner { grid-template-columns:1fr; gap:2rem; } }

/* ================================================================
   LIGHTBOX
================================================================ */
.lightbox {
  display:none; position:fixed; inset:0; z-index:200;
  background:rgba(0,0,0,.94);
  align-items:center; justify-content:center;
  padding:1rem;
}
.lightbox.is-open { display:flex; }

.lb-img {
  max-width:min(90vw,1000px);
  max-height:90vh;
  object-fit:contain;
  border-radius:var(--r-sm);
  box-shadow:var(--shadow-lg);
}

.lb-close {
  position:absolute; top:1rem; right:1rem;
  width:44px; height:44px;
  display:flex; align-items:center; justify-content:center;
  color:var(--white); background:rgba(255,255,255,.12);
  border-radius:50%; transition:background .2s;
}
.lb-close:hover { background:rgba(255,255,255,.22); }
.lb-close svg { width:20px; height:20px; }

.lb-nav {
  position:absolute; top:50%; transform:translateY(-50%);
  width:48px; height:48px;
  display:flex; align-items:center; justify-content:center;
  color:var(--white); background:rgba(255,255,255,.1);
  border-radius:50%; transition:background .2s;
}
.lb-nav:hover { background:rgba(255,255,255,.22); }
.lb-nav svg { width:22px; height:22px; }
.lb-prev { left:1rem; }
.lb-next { right:1rem; }

.lb-counter {
  position:absolute; bottom:1rem;
  left:50%; transform:translateX(-50%);
  font-size:.8rem; color:rgba(255,255,255,.55);
}

/* ================================================================
   BUTOANE CONTACT — colț dreapta jos (desktop) / bara jos (mobil)
================================================================ */
.sticky-cta {
  position: fixed;
  bottom: 1.2rem;
  right: 1.2rem;
  z-index: 150;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-weight: 600;
  font-size: .95rem;
  padding: .8rem 1.4rem;
  border-radius: var(--r-md);
  box-shadow: 0 4px 20px rgba(0,0,0,.28);
  transition: opacity .2s, transform .15s;
  white-space: nowrap;
}
.btn:hover { opacity: .9; transform: translateY(-2px); }
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }

.btn-whatsapp { background: #25d366; color: var(--white); }
.btn-call     { background: var(--green); color: var(--white); }

/* Pe mobil — bara full-width jos */
@media (max-width: 600px) {
  .sticky-cta {
    flex-direction: row;
    bottom: 0; right: 0; left: 0;
    padding: .65rem .8rem;
    gap: .6rem;
  }
  .btn { flex: 1; }
}

body { padding-bottom: 0; }
@media (max-width: 600px) { body { padding-bottom: 72px; } }
