/* ============================================
   GIRAFFE CASTING — Brand Design System
   Colors + type pulled directly from the
   Winter 2020 Giraffe Style Guide.
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Alfa+Slab+One&family=Karla:ital,wght@0,400;0,500;0,700;1,400&display=swap');

:root {
  /* Primary brand colors */
  --arancia: #EEA900;
  --arancia-deep: #D49400;
  --black: #0A0A0A;
  --cool-gray: #BBBBBB;
  --dark-gray: #727272;
  --white: #FFFFFF;

  /* Secondary brand colors */
  --azzurro: #165C7D;
  --verde: #728C45;

  /* Derived / functional tones */
  --cream: #FAF7F2;
  --brick: #C9A877;
  --ink: #1C1A17;

  /* Type */
  --display: 'Alfa Slab One', serif;
  --body: 'Karla', sans-serif;

  /* Layout */
  --max-width: 1180px;
  --edge: clamp(20px, 5vw, 64px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--display);
  margin: 0;
  line-height: 1.05;
  letter-spacing: 0.2px;
}

p { margin: 0 0 1em; }

.eyebrow {
  font-family: var(--body);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  color: var(--arancia-deep);
}

/* ============ Layout helpers ============ */

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--edge);
}

section { padding: clamp(56px, 9vw, 120px) 0; }

.section-cream { background: var(--cream); }
.section-ink { background: var(--ink); color: var(--cream); }
.section-arancia { background: var(--arancia); color: var(--black); }

/* ============ Header / Nav ============ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.nav-row {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px var(--edge);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-mark img { height: 34px; width: auto; }

.brand-mark span {
  font-family: var(--display);
  font-size: 1.3rem;
  color: var(--black);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 34px);
  font-weight: 700;
  font-size: 0.95rem;
}

.nav-links a {
  position: relative;
  padding: 6px 2px;
  color: var(--ink);
}

.nav-links a.active { color: var(--arancia-deep); }

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 3px;
  background: var(--arancia);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }

.nav-cta {
  background: var(--black);
  color: var(--white) !important;
  padding: 10px 20px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 0.9rem;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--arancia-deep); color: var(--black) !important; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle svg { width: 28px; height: 28px; }

@media (max-width: 860px) {
  .nav-links {
    position: fixed;
    top: 66px; left: 0; right: 0;
    background: var(--cream);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px var(--edge) 28px;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    transform: translateY(-110%);
    transition: transform 0.3s ease;
    gap: 18px;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-toggle { display: block; }
  .nav-cta { align-self: flex-start; }
}

/* ============ Buttons ============ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: 100px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary { background: var(--arancia); color: var(--black); }
.btn-primary:hover { background: var(--black); color: var(--arancia); }

.btn-dark { background: var(--black); color: var(--white); }
.btn-dark:hover { background: var(--arancia); color: var(--black); }

.btn-outline { background: transparent; border-color: var(--black); color: var(--black); }
.btn-outline:hover { background: var(--black); color: var(--white); }

.btn-outline-light { background: transparent; border-color: var(--cream); color: var(--cream); }
.btn-outline-light:hover { background: var(--cream); color: var(--ink); }

/* ============ Giraffe signature divider ============ */
/* The recurring "spotting" motif — giraffe icon peers
   across section seams, echoing the literal logo concept
   (a giraffe peering through a magnifying glass). */

.spot-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 28px 0;
  opacity: 0.9;
}
.spot-divider .line {
  height: 1px;
  flex: 1;
  background: currentColor;
  opacity: 0.18;
}
.spot-divider img { height: 28px; width: auto; opacity: 0.85; }

/* ============ Hero ============ */

.hero {
  position: relative;
  padding-top: clamp(64px, 10vw, 110px);
  padding-bottom: clamp(64px, 10vw, 110px);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  color: var(--black);
}
.hero h1 .accent { color: var(--arancia); }

.hero-sub {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  max-width: 480px;
  color: var(--dark-gray);
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 28px; }

.hero-photo {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 4/5;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }

.hero-photo .tag {
  position: absolute;
  bottom: 18px; left: 18px;
  background: var(--cream);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 8px 14px;
  border-radius: 100px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.18);
}

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-photo { order: -1; aspect-ratio: 16/10; }
}

/* ============ Service pills ============ */

.services-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 48px;
}

.service-card {
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 16px;
  padding: 28px 22px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(0,0,0,0.08);
  border-color: var(--arancia);
}
.service-card .num {
  font-family: var(--display);
  font-size: 0.85rem;
  color: var(--arancia-deep);
  margin-bottom: 14px;
  display: block;
}
.service-card h3 { font-size: 1.15rem; margin-bottom: 8px; color: var(--black); }
.service-card p { font-size: 0.92rem; color: var(--dark-gray); margin: 0; }

@media (max-width: 980px) {
  .services-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .services-row { grid-template-columns: 1fr; }
}

/* ============ Section heads ============ */

.section-head {
  max-width: 640px;
  margin-bottom: 44px;
}
.section-head h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin: 10px 0 14px;
  color: var(--black);
}
.section-ink .section-head h2,
.section-ink .section-head p { color: var(--cream); }
.section-head p { color: var(--dark-gray); font-size: 1.05rem; }

.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ============ Client logo wall ============ */

.client-wall-wrap { overflow: hidden; position: relative; }
.client-wall-wrap::before,
.client-wall-wrap::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}
.client-wall-wrap::before { left: 0; background: linear-gradient(90deg, var(--ink), transparent); }
.client-wall-wrap::after { right: 0; background: linear-gradient(270deg, var(--ink), transparent); }

.client-track {
  display: flex;
  gap: 18px;
  width: max-content;
  animation: scroll-left 48s linear infinite;
}
.client-track:hover { animation-play-state: paused; }

@keyframes scroll-left {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.client-pill {
  flex: none;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 18px 28px;
  font-family: var(--display);
  font-size: 1.1rem;
  color: var(--cream);
  white-space: nowrap;
  letter-spacing: 0.3px;
}

.client-grid-static {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 8px;
}
.client-grid-static .client-pill {
  text-align: center;
  white-space: normal;
  font-size: 1rem;
}
@media (max-width: 760px) {
  .client-grid-static { grid-template-columns: repeat(2, 1fr); }
}

/* ============ Photo grid (Our Space) ============ */

.photo-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 130px;
  gap: 12px;
}
.photo-grid .g-item {
  border-radius: 14px;
  overflow: hidden;
  position: relative;
}
.photo-grid .g-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s ease;
}
.photo-grid .g-item:hover img { transform: scale(1.06); }

.photo-grid .span-2-2 { grid-column: span 2; grid-row: span 2; }
.photo-grid .span-2-1 { grid-column: span 2; grid-row: span 1; }
.photo-grid .span-3-2 { grid-column: span 3; grid-row: span 2; }
.photo-grid .span-4-2 { grid-column: span 4; grid-row: span 2; }
.photo-grid .span-2-3 { grid-column: span 2; grid-row: span 3; }

@media (max-width: 900px) {
  .photo-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .photo-grid .span-2-2, .photo-grid .span-2-1, .photo-grid .span-3-2,
  .photo-grid .span-4-2, .photo-grid .span-2-3 { grid-column: span 2; grid-row: span 2; }
}

/* ============ Amenity list ============ */

.amenity-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 32px;
  margin-top: 32px;
}
.amenity-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.amenity-item .dot {
  flex: none;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--arancia);
  margin-top: 8px;
}
.amenity-item h4 { font-size: 1.02rem; font-family: var(--body); font-weight: 700; color: var(--black); }
.amenity-item p { font-size: 0.92rem; color: var(--dark-gray); margin: 4px 0 0; }

@media (max-width: 700px) { .amenity-list { grid-template-columns: 1fr; } }

/* ============ Contact split ============ */

.contact-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.08);
}

.contact-panel {
  padding: clamp(36px, 5vw, 56px);
}
.contact-panel.talent { background: var(--white); }
.contact-panel.clients { background: var(--black); color: var(--cream); }

.contact-panel .icon-badge {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
  font-size: 1.4rem;
}
.contact-panel.talent .icon-badge { background: rgba(238,169,0,0.14); }
.contact-panel.clients .icon-badge { background: rgba(238,169,0,0.18); }

.contact-panel h3 { font-size: 1.7rem; margin-bottom: 10px; }
.contact-panel.talent h3 { color: var(--black); }
.contact-panel.clients h3 { color: var(--cream); }

.contact-panel p.lead { font-size: 1rem; color: var(--dark-gray); margin-bottom: 26px; }
.contact-panel.clients p.lead { color: rgba(250,247,242,0.7); }

@media (max-width: 860px) {
  .contact-split { grid-template-columns: 1fr; }
}

/* ============ Form ============ */

.form-field { margin-bottom: 16px; }
.form-field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.contact-panel.talent .form-field label { color: var(--black); }
.contact-panel.clients .form-field label { color: var(--cream); }

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1.5px solid rgba(0,0,0,0.18);
  font-family: var(--body);
  font-size: 0.95rem;
  background: var(--cream);
  color: var(--ink);
}
.contact-panel.clients .form-field input,
.contact-panel.clients .form-field select,
.contact-panel.clients .form-field textarea {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.2);
  color: var(--cream);
}
/* Native <option> popups don't inherit page CSS context — set explicitly
   so dropdown text is never invisible against the OS-rendered list. */
.form-field select option {
  background: var(--white);
  color: var(--ink);
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--dark-gray); }

.form-field textarea { resize: vertical; min-height: 100px; }

.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 540px) { .form-row-2 { grid-template-columns: 1fr; } }

.form-note {
  font-size: 0.82rem;
  margin-top: 14px;
  color: var(--dark-gray);
}
.contact-panel.clients .form-note { color: rgba(250,247,242,0.55); }

.form-success {
  display: none;
  padding: 16px 18px;
  border-radius: 12px;
  background: rgba(114,140,69,0.15);
  border: 1px solid var(--verde);
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 16px;
}
.contact-panel.clients .form-success { color: var(--cream); }

/* ============ Direct contact info row ============ */

.info-row {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 18px;
  font-size: 0.92rem;
}
.info-row .info-item { display: flex; gap: 10px; align-items: flex-start; }
.info-row .info-item .label { font-weight: 700; color: var(--arancia-deep); display: block; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 2px; }

/* ============ Footer ============ */

.site-footer {
  background: var(--black);
  color: var(--cream);
  padding: 56px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand img { height: 30px; }
.footer-brand span { font-family: var(--display); font-size: 1.2rem; }
.footer-grid p { color: rgba(250,247,242,0.6); font-size: 0.92rem; max-width: 320px; }
.footer-col h4 {
  font-family: var(--body);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--arancia);
  margin-bottom: 14px;
}
.footer-col a, .footer-col p {
  display: block;
  color: rgba(250,247,242,0.78);
  font-size: 0.92rem;
  margin-bottom: 10px;
}
.footer-col a:hover { color: var(--arancia); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 22px;
  font-size: 0.82rem;
  color: rgba(250,247,242,0.45);
  flex-wrap: wrap;
  gap: 10px;
}

@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

.photo-grid .g-item { cursor: zoom-in; }
.photo-grid .g-item:focus-visible { outline: 3px solid var(--azzurro); outline-offset: 2px; }

/* ============ Expanding brand list ============ */

.brand-list {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  border-top: 2px solid var(--black);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.brand-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(0,0,0,0.1);
  border-right: 1px solid rgba(0,0,0,0.1);
  font-weight: 700;
  color: var(--black);
  opacity: 0;
  transform: translateY(10px);
  animation: credit-in 0.4s ease forwards;
}
.brand-list li:nth-child(3n) { border-right: none; }
.brand-list li:hover { background: rgba(238,169,0,0.08); }

.brand-watch {
  font-family: var(--body);
  font-weight: 700;
  font-size: 0.78rem;
  color: var(--arancia-deep);
  white-space: nowrap;
}
.brand-watch:hover { color: var(--black); }

@keyframes credit-in {
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 860px) {
  .brand-list { grid-template-columns: repeat(2, 1fr); }
  .brand-list li:nth-child(3n) { border-right: 1px solid rgba(0,0,0,0.1); }
  .brand-list li:nth-child(2n) { border-right: none; }
}
@media (max-width: 540px) {
  .brand-list { grid-template-columns: 1fr; }
  .brand-list li:nth-child(2n) { border-right: 1px solid rgba(0,0,0,0.1); }
  .brand-list li { border-right: none !important; }
}

#loadMoreBtn.hidden { display: none; }

/* ============ Lightbox ============ */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10,10,10,0.94);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 48px);
}
.lightbox.open { display: flex; }

.lightbox-img {
  max-width: min(92vw, 1100px);
  max-height: 82vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}

.lightbox-caption {
  position: absolute;
  bottom: 22px;
  left: 0; right: 0;
  text-align: center;
  color: rgba(250,247,242,0.75);
  font-size: 0.88rem;
  padding: 0 60px;
}

.lightbox-close {
  position: absolute;
  top: 18px; right: 22px;
  background: rgba(255,255,255,0.08);
  border: none;
  color: var(--cream);
  font-size: 2rem;
  line-height: 1;
  width: 48px; height: 48px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s ease;
}
.lightbox-close:hover { background: var(--arancia); color: var(--black); }

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.08);
  border: none;
  color: var(--cream);
  font-size: 2.4rem;
  line-height: 1;
  width: 56px; height: 56px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s ease;
}
.lightbox-nav:hover { background: var(--arancia); color: var(--black); }
.lightbox-prev { left: clamp(8px, 2vw, 28px); }
.lightbox-next { right: clamp(8px, 2vw, 28px); }

@media (max-width: 600px) {
  .lightbox-nav { width: 44px; height: 44px; font-size: 1.9rem; }
  .lightbox-close { width: 40px; height: 40px; font-size: 1.6rem; top: 10px; right: 10px; }
  .lightbox-caption { padding: 0 16px; bottom: 14px; font-size: 0.8rem; }
}

/* ============ Signature illustration ============ */
.signature-illustration {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,0.35);
}

/* ============ Two-column responsive utility ============ */
.split-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
}
@media (max-width: 860px) {
  .split-2 { grid-template-columns: 1fr; }
}

.split-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
}
@media (max-width: 760px) {
  .split-3 { grid-template-columns: 1fr; }
}

/* ============ Misc reveal animation ============ */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .client-track { animation: none; }
  html { scroll-behavior: auto; }
}

/* Focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--azzurro);
  outline-offset: 2px;
}
