/* ============================================================
   FLOREA GRUP — Interior page components
   ============================================================ */

/* ---------- About story / shared text ---------- */
.about-story { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
@media (max-width: 820px){ .about-story { grid-template-columns: 1fr; } }

/* values / pillars grid */
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.5rem, 3vw, 2.5rem); }
@media (max-width: 980px){ .values-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px){ .values-grid { grid-template-columns: 1fr; } }
.value { border-top: 2px solid var(--line); padding-top: 1.2rem; }
.dark .value { border-color: var(--line-dark); }
.value__no { font-family: var(--display); font-weight: 800; color: var(--red); font-size: 0.9rem; letter-spacing: 0.1em; }
.value h3 { margin: 0.5rem 0 0.6rem; }
.pillar { border-top: 2px solid var(--line); padding-top: 1.3rem; }
.pillar__ic { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; background: var(--red-wash); color: var(--red); border-radius: 50%; margin-bottom: 1rem; }
.pillar__ic svg { width: 22px; }
.pillar h3 { margin-bottom: 0.5rem; }

/* leaders */
.leaders { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,5rem); align-items: center; }
.leaders__img .ph { border-radius: var(--radius); }
@media (max-width: 820px){ .leaders { grid-template-columns: 1fr; } }

/* ---------- Timeline ---------- */
.timeline-sec { padding-top: clamp(56px,7vw,90px); }
.tl { margin-top: clamp(2rem,4vw,3rem); }
.tl__rail { display: flex; gap: 0.4rem; overflow-x: auto; padding-bottom: 1.2rem; border-bottom: 1px solid var(--line-dark); scrollbar-width: thin; }
.tl__year {
  flex: none; background: none; border: 0; cursor: pointer;
  font-family: var(--display); font-weight: 800; font-size: 1.05rem; color: #6e6a63;
  padding: 0.5em 0.9em; border-radius: 100px; transition: all 0.25s var(--ease); position: relative;
}
.tl__year:hover { color: #cfccc6; }
.tl__year.is-active { color: #fff; background: var(--red); }
.tl__panel { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,4rem); margin-top: 2.5rem; align-items: center; }
.tl__img .ph { border-radius: var(--radius); aspect-ratio: 4/3; }
.tl__bigyear { font-family: var(--display); font-weight: 800; font-size: clamp(3rem,7vw,5.5rem); color: var(--red-bright); line-height: 1; letter-spacing: -0.04em; display: block; }
.tl__nav { display: flex; align-items: center; gap: 1.2rem; margin-top: 2rem; color: #b6b2aa; font-family: var(--display); font-weight: 700; }
.tl__nav button { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-dark); background: none; color: #fff; cursor: pointer; display: grid; place-items: center; transition: all 0.25s var(--ease); }
.tl__nav button:hover:not(:disabled) { background: var(--red); border-color: var(--red); }
.tl__nav button:disabled { opacity: 0.3; cursor: not-allowed; }
.tl__nav button svg { width: 18px; }
@media (max-width: 760px){ .tl__panel { grid-template-columns: 1fr; } }

/* ---------- Division detail ---------- */
.ddetail-hero { position: relative; min-height: 64vh; display: flex; align-items: flex-end; overflow: hidden; }
.ddetail-hero__img { position: absolute; inset: 0; }
.ddetail-hero__img .ph, .ddetail-hero__img img { width: 100%; height: 100%; object-fit: cover; }
.ddetail-hero__scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(24,23,21,.5) 0%, rgba(24,23,21,.2) 40%, rgba(24,23,21,.92)); }
.ddetail-hero__inner { position: relative; z-index: 2; padding-block: 150px 3rem; }
.ddetail-hero__no { display: inline-block; font-family: var(--display); font-weight: 800; color: var(--red-bright); letter-spacing: 0.1em; margin-top: 1rem; }
.ddetail-hero__cat { color: rgba(255,255,255,.78); font-family: var(--display); font-weight: 600; margin-top: 0.8rem; }
.ddetail-body { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(2rem,6vw,5rem); align-items: start; }
@media (max-width: 820px){ .ddetail-body { grid-template-columns: 1fr; } }
.ddetail-facts { display: flex; flex-direction: column; gap: 1.4rem; border-left: 2px solid var(--red); padding-left: 1.6rem; }
.dfact__n { display: block; font-family: var(--display); font-weight: 800; font-size: clamp(2rem,3vw,2.8rem); color: var(--ink); line-height: 1; letter-spacing: -0.03em; }
.dfact__l { color: var(--steel); font-size: 0.95rem; }
.ddetail-gallery { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: clamp(14px,1.6vw,22px); }
.ddetail-gallery .ph, .ddetail-gallery img { border-radius: var(--radius); width: 100%; aspect-ratio: 4/3; object-fit: cover; cursor: pointer; transition: opacity .3s; }
.ddetail-gallery img:hover { opacity: .85; }
.ddetail-gallery .gg1 { margin-top: 3rem; }
@media (max-width: 760px){ .ddetail-gallery { grid-template-columns: 1fr 1fr; } .ddetail-gallery .gg2 { grid-column: span 2; } }

/* ---------- Lightbox ---------- */
.lbox-overlay {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(0,0,0,.92); backdrop-filter: blur(6px);
  display: grid; place-items: center; padding: 20px;
  animation: lboxIn .25s ease both;
}
@keyframes lboxIn { from { opacity: 0; } to { opacity: 1; } }
.lbox-overlay img {
  max-width: min(90vw, 1200px); max-height: 90vh;
  border-radius: 6px; box-shadow: 0 20px 60px rgba(0,0,0,.7);
  animation: lboxPop .3s var(--ease) both;
}
@keyframes lboxPop { from { opacity: 0; transform: scale(.95); } to { opacity: 1; transform: none; } }
.lbox-close {
  position: absolute; top: 20px; right: 20px; z-index: 301;
  background: rgba(255,255,255,.1); border: 0; color: #fff;
  width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center; transition: background .2s;
}
.lbox-close:hover { background: rgba(255,255,255,.2); }
.lbox-close svg { width: 22px; }
.lbox-prev, .lbox-next {
  position: absolute; top: 50%; z-index: 301; transform: translateY(-50%);
  background: rgba(255,255,255,.1); border: 0; color: #fff;
  width: 48px; height: 48px; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center; transition: background .2s;
}
.lbox-prev:hover, .lbox-next:hover { background: rgba(255,255,255,.2); }
.lbox-prev { left: 20px; }
.lbox-next { right: 20px; }
.lbox-prev svg, .lbox-next svg { width: 24px; }
.lbox-counter {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,.6); font-family: var(--display); font-size: .85rem;
  letter-spacing: .08em;
}
@media (max-width: 640px) {
  .lbox-prev, .lbox-next { width: 40px; height: 40px; }
  .lbox-prev { left: 8px; } .lbox-next { right: 8px; }
  .lbox-prev svg, .lbox-next svg { width: 18px; }
}
.ddetail-nav { display: grid; grid-template-columns: 1fr 1fr; }
.ddetail-nav__item { padding: clamp(2rem,4vw,3.2rem) var(--gut); display: flex; flex-direction: column; gap: 0.4rem; transition: background 0.3s; }
.ddetail-nav__item:hover { background: var(--ink-2); }
.ddetail-nav__item .muted { display: inline-flex; align-items: center; gap: 0.4em; font-family: var(--display); font-weight: 700; font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; }
.ddetail-nav__item--r { text-align: right; align-items: flex-end; border-left: 1px solid var(--line-dark); }

/* ---------- Filters ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: clamp(2rem,4vw,3rem); }
.filter { font-family: var(--display); font-weight: 700; font-size: 0.9rem; color: var(--graphite); background: none; border: 1px solid var(--line); padding: 0.6em 1.2em; border-radius: 100px; cursor: pointer; transition: all 0.25s var(--ease); }
.filter:hover { border-color: var(--ink); }
.filter.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- Projects masonry ---------- */
.proj-masonry { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px,1.8vw,24px); grid-auto-flow: dense; grid-auto-rows: auto; }
.proj-masonry .pcard { height: 100%; min-height: 240px; }
.proj-masonry .pcard--big { grid-column: span 2; grid-row: span 2; }
@media (max-width: 820px){ .proj-masonry { grid-template-columns: 1fr 1fr; } .proj-masonry .pcard--big { grid-column: span 2; grid-row: span 1; } }
@media (max-width: 540px){ .proj-masonry { grid-template-columns: 1fr; } .proj-masonry .pcard--big { grid-column: span 1; } }

/* ---------- Sustainability ---------- */
/* ---------- Sustainability band (hero + stats) ---------- */
.sustain-band { position: relative; overflow: hidden; }
.sustain-band__bg { position: absolute; inset: 0; background: #111; }
.sustain-band__bg video { width: 100%; height: 100%; object-fit: cover; }
.sustain-band__bg::after { content: ""; position: absolute; inset: 0; background: transparent; }
.sustain-band .phero--dark { background: transparent; }
.sustain-band .statsband { background: transparent; }
.sustain-band .statsband .statbig__n { color: #fff; }
.sustain-band .statsband .statbig__l { color: #c9c6c0; }

.sustain-hero { position: relative; padding-bottom: clamp(48px,6vw,80px); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,5rem); align-items: center; }
.split__img .ph { border-radius: var(--radius); }
@media (max-width: 820px){ .split { grid-template-columns: 1fr; } }

/* ---------- Hotels ---------- */
.hotels { display: flex; flex-direction: column; gap: clamp(3rem,6vw,6rem); }
.hotel { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(2rem,5vw,4.5rem); align-items: center; }
.hotel--rev .hotel__img { order: 2; }
.hotel__img .ph { border-radius: var(--radius); aspect-ratio: 16/11; }
.hotel__stars { display: flex; gap: 0.2rem; color: var(--red); margin-bottom: 0.8rem; }
.hotel__loc { font-family: var(--display); font-weight: 600; color: var(--steel); margin-top: 0.3rem; }
@media (max-width: 820px){ .hotel { grid-template-columns: 1fr; } .hotel--rev .hotel__img { order: 0; } }

/* ---------- Careers jobs ---------- */
.jobs { margin-top: clamp(2rem,4vw,3rem); border-top: 1px solid var(--line-dark); }
.job { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding: 1.6rem 0; border-bottom: 1px solid var(--line-dark); transition: padding 0.3s var(--ease); }
.job:hover { padding-left: 1rem; }
.job__dept { font-family: var(--display); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: #9a968e; }
.job__apply { flex: none; display: inline-flex; align-items: center; gap: 0.5em; font-family: var(--display); font-weight: 700; color: var(--red-bright); }
.job__apply svg { width: 16px; transition: transform 0.25s var(--ease); }
.job:hover .job__apply svg { transform: translateX(5px); }

/* ---------- Forms ---------- */
.apply { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem,5vw,5rem); align-items: start; }
@media (max-width: 820px){ .apply { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 0.45rem; margin-bottom: 1.1rem; }
.field > span { font-family: var(--display); font-weight: 700; font-size: 0.82rem; letter-spacing: 0.04em; color: var(--graphite); }
.field input, .field textarea {
  font-family: var(--body); font-size: 1rem; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0.85em 1em; transition: border-color 0.2s; resize: vertical;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--red); }
.field input.bad, .field textarea.bad { border-color: var(--red); background: var(--red-wash); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 520px){ .field-row { grid-template-columns: 1fr; } }
.form-ok { text-align: center; padding: clamp(2rem,5vw,4rem) 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.form-ok__ic { display: inline-grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: var(--red); color: #fff; margin-bottom: 1.2rem; }
.form-ok__ic svg { width: 28px; }
.form-err { color: var(--red); font-size: .9rem; margin-top: .7rem; font-weight: 600; }
.field--checkbox { flex-direction: row; gap: .7rem; align-items: flex-start; font-size: .85rem; color: var(--steel); line-height: 1.5; }
.field--checkbox input[type="checkbox"] { margin-top: .2rem; width: 16px; height: 16px; accent-color: var(--red); flex: none; }
.field--checkbox input.bad { outline: 2px solid var(--red); outline-offset: 2px; border-color: transparent; }

/* ---------- News featured ---------- */
.feat-news { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(1.5rem,4vw,3rem); align-items: center; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); transition: box-shadow 0.4s var(--ease); }
.feat-news:hover { box-shadow: 0 22px 50px -30px rgba(24,23,21,.4); }
.feat-news__img { aspect-ratio: 16/10; height: 100%; }
.feat-news__body { padding: clamp(1.5rem,3vw,2.6rem) clamp(1.5rem,3vw,2.6rem) clamp(1.5rem,3vw,2.6rem) 0; }
@media (max-width: 760px){ .feat-news { grid-template-columns: 1fr; } .feat-news__body { padding: 0 1.5rem 1.8rem; } }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(2rem,5vw,5rem); align-items: start; }
@media (max-width: 820px){ .contact { grid-template-columns: 1fr; } }
.contact__info { display: flex; flex-direction: column; gap: 2rem; }
.office { border-top: 2px solid var(--red); padding-top: 1.1rem; }
.office__name { font-family: var(--display); font-weight: 800; font-size: 1.15rem; }
.office__addr, .office__line { display: flex; align-items: center; gap: 0.6em; color: var(--graphite); margin-top: 0.6rem; font-size: 0.96rem; }
.office__addr svg, .office__line svg { color: var(--red); flex: none; }
.office__web { color: var(--red); font-weight: 600; }
.map .ph { aspect-ratio: 21/8; border-radius: var(--radius); }
@media (max-width: 600px){ .map .ph { aspect-ratio: 4/3; } }
