/* ── Home Page Styles ────────────────────────────────── */

/* ===================================================================
   HOMEPAGE — IMPROVED LAYOUT
   =================================================================== */

/* ── Hero ─────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 80vh;
  height: 70vh;
  max-height: 860px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  background: #000;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.4s ease;
}
.hero-video.loaded { opacity: 1; }
.hero-photo-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.60) 0%,
    rgba(0, 0, 0, 0.48) 38%,
    rgba(0, 0, 0, 0.28) 65%,
    rgba(0, 0, 0, 0.08) 100%
  );
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 0 56px;
}
.hero-content .container { display: flex; flex-direction: column; }

.hero-eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero-eyebrow::before {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--gold);
  flex-shrink: 0;
}
.hero-h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.6rem, 5.5vw, 4.4rem);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
  max-width: 760px;
}
.hero-h1 em { font-style: italic; color: var(--gold); }
.hero-sub {
  font-size: clamp(14px, 1.6vw, 16px);
  color: rgba(255,255,255,0.55);
  line-height: 1.75;
  max-width: 480px;
  margin-bottom: 32px;
  font-weight: 300;
}
.hero-ctas {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 0;
}

/* Scroll indicator */
.scroll-hint {
  position: absolute;
  bottom: 32px;
  right: 44px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.scroll-hint-line {
  width: 1px;
  height: 44px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.25));
  animation: scrollPulse 2.2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.25; transform: scaleY(1); }
  50% { opacity: 0.7; transform: scaleY(1.15); }
}
.scroll-hint-label {
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
  writing-mode: vertical-rl;
}

/* ── Products section ─────────────────────────────────────────────── */
.products-section {
  background: var(--white);
  padding: 56px 0 50px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 48px;
  gap: 24px;
  flex-wrap: wrap;
}
.section-eyebrow {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0;
}
.section-eyebrow::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--gold);
  flex-shrink: 0;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.9rem, 3vw, 2.8rem);
  font-weight: 700;
  color: var( --navy-dark);
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-top: 10px;
}
.view-all-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--navy-dark);
  border-bottom: 1.5px solid var(--navy-dark);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
  align-self: flex-end;
  margin-bottom: 6px;
}
.view-all-link:hover { color: var(--gold); border-color: var(--gold); }
.view-all-arrow { transition: transform 0.2s; }
.view-all-link:hover .view-all-arrow { transform: translateX(4px); }

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.product-card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background: var(--white);
  cursor: pointer;
  display: block;
  text-decoration: none;
  border: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.13);
  border-color: var(--gold);
}
.product-card-img-wrap {
  aspect-ratio: 4/5;
  overflow: hidden;
  position: relative;
}
.product-card-img-wrap img,
.product-card-img-wrap video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  transition: transform 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.product-card:hover .product-card-img-wrap img { transform: scale(1.06); }
.product-card:hover .product-card-img-wrap video { transform: scale(1.06); }
.product-card-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 45%;
  background: linear-gradient(to top, rgba(0,0,0,0.50) 0%, transparent 100%);
}
.product-card-body {
  padding: 20px 22px 22px;
}
.product-tag {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 7px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.product-tag::before {
  content: '';
  width: 16px;
  height: 1px;
  background: var(--gold);
  flex-shrink: 0;
}
.product-name {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  font-weight: 700;
  color: var( --navy-dark);
  line-height: 1.1;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.product-desc {
  font-size: 12.5px;
  color: var(--ink-light);
  line-height: 1.65;
  margin-bottom: 16px;
}
.product-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy-dark);
  border-bottom: 1.5px solid rgba(12,61,110,0.2);
  padding-bottom: 2px;
  transition: gap 0.2s, color 0.2s, border-color 0.2s;
}
.product-card:hover .product-cta { gap: 13px; color: var(--gold); border-color: var(--gold); }
.product-cta-arrow { transition: transform 0.2s; }
.product-card:hover .product-cta-arrow { transform: translateX(4px); }

.product-card[data-species="goat"]   { border-top: 3px solid var(--navy-dark); }
.product-card[data-species="sheep"]  { border-top: 3px solid #6A5ACD; }
.product-card[data-species="camel"]  { border-top: 3px solid #B87333; }

/* ── Origin / story section ───────────────────────────────────────── */
.origin-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 560px;
  overflow: hidden;
}
.origin-image-side {
  position: relative;
  overflow: hidden;
  min-height: 400px;
}
.origin-image-side img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}
.origin-content-side {
  background: var(--stone);
  display: flex;
  align-items: center;
  padding: 72px 64px;
  position: relative;
}
.origin-content-side::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12%;
  bottom: 12%;
  width: 2px;
  background: linear-gradient(to bottom, transparent, var(--gold), transparent);
}
.origin-content-inner { max-width: 420px; }
.origin-eyebrow {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.origin-eyebrow::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--gold);
  flex-shrink: 0;
}
.origin-quote {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.55rem, 2.8vw, 2.2rem);
  font-weight: 600;
  font-style: italic;
  color: var( --navy-dark);
  line-height: 1.35;
  margin-bottom: 0;
  letter-spacing: -0.01em;
}
.origin-quote-highlight { color: var(--gold); }
.origin-divider {
  width: 40px;
  height: 1px;
  background: var(--border);
  margin: 28px 0;
}
.origin-body {
  font-size: 14px;
  color: var(--ink-light);
  line-height: 1.8;
  margin-bottom: 36px;
}

/* ── Offices section ──────────────────────────────────────────────── */
.offices-section {
  background: var(--stone);
  padding: 80px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.offices-intro {
  text-align: center;
  margin-bottom: 48px;
}
.offices-intro .section-eyebrow {
  justify-content: center;
  margin-bottom: 10px;
}
.offices-intro .section-title { margin-top: 10px; }
.offices-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 860px;
  margin: 0 auto;
}
.office-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 40px 44px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow 0.25s, transform 0.25s;
}
.office-card:hover {
  box-shadow: 0 6px 28px rgba(0,0,0,0.08);
  transform: translateY(-3px);
}
.office-flag { font-size: 30px; margin-bottom: 16px; line-height: 1; }
.office-location-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.office-location-label::before {
  content: '';
  display: block;
  width: 16px;
  height: 1px;
  background: var(--gold);
}
.office-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var( --navy-dark);
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}
.office-entity {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--navy-dark);
  margin-bottom: 12px;
  letter-spacing: 0.01em;
}
.office-role {
  font-size: 12.5px;
  color: var(--ink-light);
  line-height: 1.65;
  margin-bottom: 28px;
  flex: 1;
}
.office-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy-dark);
  border: 1.5px solid rgba(12,61,110,0.2);
  padding: 10px 20px;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.2s;
}
.office-btn:hover { background: var(--navy-dark); color: var(--white); border-color: var(--navy-dark); }
.office-btn-arrow { transition: transform 0.2s; }
.office-btn:hover .office-btn-arrow { transform: translateX(3px); }

/* ── Partners Section ─────────────────────────────────────────────── */
/* ── Partners Carousel ──────────────────────────────────────────────────── */
.partners-section {
  background: var(--white);
  padding: 96px 0;
  border-top: 1px solid var(--border);
  overflow: hidden;
}
.partners-header {
  max-width: 600px;
  margin-bottom: 56px;
}
.partners-lead {
  font-size: 14.5px;
  color: var(--ink-light);
  line-height: 1.8;
  max-width: 460px;
  margin-top: 16px;
}

/* Track wrapper with fade edges */
.partners-carousel-wrap {
  position: relative;
}
.partners-carousel-wrap::before,
.partners-carousel-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}


.partners-track {
  display: flex;
  gap: 20px;
  animation: partnersScroll 22s linear infinite;
  width: max-content;
}
.partners-track:hover {
  animation-play-state: paused;
}

@keyframes partnersScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.partner-tile {
  flex-shrink: 0;
  width: 200px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--white);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 24px 28px;
  gap: 12px;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}
.partner-tile:hover {
  border-color: var(--gold);
  box-shadow: 0 8px 28px rgba(0,0,0,0.09);
  transform: translateY(-4px);
}

.partner-tile-logo {
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.partner-tile-logo img {
  max-height: 44px;
  max-width: 120px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.45;
  transition: filter 0.3s, opacity 0.3s;
}
.partner-tile:hover .partner-tile-logo img {
  filter: grayscale(0);
  opacity: 1;
}

.partner-tile-name {
  font-family: 'Playfair Display', serif;
  font-size: 15px;
  font-weight: 700;
  color: var( --navy-dark);
  text-align: center;
}
.partner-tile-role {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  text-align: center;
}

/* CTA tile */
.partner-tile-cta {
  border-style: dashed;
  border-color: rgba(12,61,110,0.2);
}
.partner-tile-cta:hover {
  border-style: solid;
  background: var( --navy-dark);
  border-color: var(--gold);
}
.partner-tile-cta:hover .partner-tile-name { color: #fff; }
.partner-tile-cta:hover .partner-tile-role { color: var(--gold); }
.partner-tile-cta-icon {
  font-size: 30px;
  font-weight: 300;
  color: rgba(12,61,110,0.25);
  line-height: 1;
  transition: color 0.25s, transform 0.3s;
}
.partner-tile-cta:hover .partner-tile-cta-icon {
  color: var(--gold);
  transform: rotate(45deg);
}

@media (max-width: 560px) {
  .partners-section { padding: 72px 0; }
  .partners-carousel-wrap::before,
  .partners-carousel-wrap::after { width: 60px; }
}

/* ── Reveal animations ────────────────────────────────────────────── */
.reveal       { opacity: 0; transform: translateY(20px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal-left  { opacity: 0; transform: translateX(-20px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal-right { opacity: 0; transform: translateX(20px); transition: opacity 0.7s ease, transform 0.7s ease; }
.revealed     { opacity: 1; transform: translate(0, 0); }
.stagger-1 { transition-delay: 0.06s; }
.stagger-2 { transition-delay: 0.16s; }
.stagger-3 { transition-delay: 0.26s; }

/* ── Responsive ───────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .products-grid { grid-template-columns: 1fr; gap: 14px; }
  .product-card-img-wrap { aspect-ratio: 16/9; }
  .origin-section { grid-template-columns: 1fr; }
  .origin-image-side { min-height: 280px; }
  .origin-content-side { padding: 56px 40px; }
  .origin-content-side::before { display: none; }
  .offices-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .products-section { padding: 64px 0; }
  .section-header { margin-bottom: 32px; }
  .offices-section { padding: 56px 0; }
  .office-card { padding: 32px 28px; }
}
@media (max-width: 600px) {
  .hero-content { padding: 0 0 40px; }
  .hero-ctas { margin-bottom: 0; gap: 10px; }
  .scroll-hint { display: none; }
  .origin-content-side { padding: 44px 24px; }
  .origin-content-inner { max-width: 100%; }
}
/* ── Why Choose Us Section ────────────────────────────────────────────────── */
.why-choose-section {
  padding: 112px 0 80px;
  background: var(--stone);
}

.why-choose-header {
  max-width: 600px;
  margin-bottom: 48px;
}

.why-choose-lead {
  margin-top: 12px;
  max-width: 520px;
}

/* 90% width outer wrapper — centred, outside .container */
.why-accordion-outer {
  width: 90%;
  margin: 0 auto;
}

/* Accordion Layout */
.why-accordion-wrap {
  display: flex;
  gap: 10px;
  height: 520px;
  border-radius: var(--radius-md);
  overflow: hidden;
}

/* Closed tabs: 96px — noticeably wider than before */
.why-panel {
  position: relative;
  flex: 0 0 96px;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: flex 0.75s cubic-bezier(0.4, 0, 0.2, 1);
  background: var( --navy-dark);
}

.why-panel--active {
  flex: 1 1 0%;
}

.why-panel-image {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.why-panel-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.75s cubic-bezier(0.4, 0, 0.2, 1), filter 0.75s ease;
  filter: brightness(0.5) saturate(0.75);
  transform: scale(1.05);
}

.why-panel--active .why-panel-image img {
  filter: brightness(0.42) saturate(0.9);
  transform: scale(1);
}

/* Overlay content */
.why-panel-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px 28px;
  background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.12) 60%, transparent 100%);
}

.why-panel-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s ease 0.2s, transform 0.5s ease 0.2s;
}

.why-panel--active .why-panel-tag {
  opacity: 1;
  transform: translateY(0);
}

.why-panel-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.1rem, 1.8vw, 1.5rem);
  font-weight: 600;
  color: #fff;
  line-height: 1.25;
  margin: 0 0 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease 0.3s, transform 0.5s ease 0.3s;
}

.why-panel--active .why-panel-title {
  opacity: 1;
  transform: translateY(0);
  white-space: normal;
}

.why-panel-desc {
  font-size: 14px;
  line-height: 1.72;
  color: rgba(255,255,255,0.84);
  max-width: 400px;
  margin: 0;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.45s ease 0.38s, transform 0.45s ease 0.38s;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.why-panel--active .why-panel-desc {
  opacity: 1;
  transform: translateY(0);
}

/* Collapsed panel — centred rotated label */
.why-panel:not(.why-panel--active) .why-panel-overlay {
  align-items: center;
  justify-content: center;
  padding: 20px 12px;
}

.why-panel:not(.why-panel--active) .why-panel-tag {
  opacity: 0.75;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  letter-spacing: 0.16em;
  transform: rotate(180deg);
  transition: opacity 0.3s ease;
  margin-bottom: 0;
}

.why-panel:not(.why-panel--active):hover .why-panel-tag {
  opacity: 1;
}

.why-panel:not(.why-panel--active) .why-panel-title,
.why-panel:not(.why-panel--active) .why-panel-desc {
  display: none;
}

/* Progress dots */
.why-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 24px;
}

.why-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--stone-dark);
  transition: background 0.4s ease, transform 0.4s ease;
}

.why-dot--active {
  background: var(--gold);
  transform: scale(1.35);
}

/* Gold progress bar sweeps across bottom of active panel */
.why-panel--active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: var(--gold);
  width: 0%;
  animation: why-progress 4s linear forwards;
  z-index: 2;
}

@keyframes why-progress {
  from { width: 0%; }
  to   { width: 100%; }
}

/* Responsive */
@media (max-width: 1024px) {
  .why-accordion-outer { width: 95%; }
  .why-panel { flex: 0 0 78px; }
}

@media (max-width: 900px) {
  .why-accordion-wrap { height: 440px; }
  .why-panel { flex: 0 0 62px; }
}

@media (max-width: 640px) {
  .why-choose-section { padding: 72px 0 56px; }
  .why-accordion-outer { width: 100%; padding: 0 20px; box-sizing: border-box; }
  .why-accordion-wrap {
    flex-direction: column;
    height: auto;
  }
  .why-panel {
    flex: 0 0 60px;
    min-height: 60px;
  }
  .why-panel--active {
    flex: 0 0 300px;
    min-height: 300px;
  }
  .why-panel:not(.why-panel--active) .why-panel-tag {
    writing-mode: horizontal-tb;
    transform: none;
    letter-spacing: 0.12em;
  }
  .why-panel:not(.why-panel--active) .why-panel-overlay {
    align-items: flex-start;
    justify-content: center;
    padding: 0 16px;
  }
}
