/* ==========================================================================
   PEREGRINE INDUSTRIES — COMPONENTS (Header, Footer, Buttons, Cards, Tables)
   ========================================================================== */

/* 1. Luxury Button Styles */
.btn-primary {
  background: var(--olive);
  color: var(--white);
  font-family: var(--font-label);
  font-size: 10px;
  letter-spacing: 4px;
  padding: 16px 40px;
  border: none;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  display: inline-block;
  z-index: 1;
  text-align: center;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--olive-dark);
  transform: translateX(-100%);
  transition: transform 0.4s cubic-bezier(0.76, 0, 0.24, 1);
  z-index: -1;
}

.btn-primary:hover::before {
  transform: translateX(0);
}

.btn-outline {
  background: transparent;
  color: var(--gold-warm);
  border: 1px solid var(--gold-warm);
  font-family: var(--font-label);
  font-size: 10px;
  letter-spacing: 4px;
  padding: 16px 40px;
  text-transform: uppercase;
  transition: all 0.4s ease;
  display: inline-block;
  text-align: center;
}

.btn-outline:hover {
  background: var(--gold-warm);
  color: var(--olive-deep);
}

.btn-ghost {
  font-family: var(--font-label);
  font-size: 10px;
  letter-spacing: 4px;
  color: var(--olive);
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: none;
  border: none;
  padding: 0;
  position: relative;
}

.btn-ghost::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold-warm);
  transition: width 0.4s ease;
}

.btn-ghost:hover::after {
  width: 100%;
}

/* 2. Divider Lines */
.gold-line {
  width: 60px;
  height: 1px;
  background: var(--gold-warm);
  margin: 20px 0;
}

.gold-line.center-aligned {
  margin: 20px auto;
}

.gold-bar-vertical {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, transparent, var(--gold-warm), transparent);
}

/* 3. Custom Cursor Constructs */
#cursor-ring {
  position: fixed;
  width: 48px;
  height: 48px;
  border: 1.5px solid var(--olive);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 99999;
}

#cursor-dot {
  position: fixed;
  width: 5px;
  height: 5px;
  background: var(--gold-warm);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 99999;
}

/* 4. Sticky Header Framework */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 28px 0;
  z-index: 1000;
  transition: all 0.5s ease;
  background: transparent;
}

.header.scrolled {
  background: rgba(58, 72, 32, 0.97);
  backdrop-filter: blur(24px) saturate(120%);
  -webkit-backdrop-filter: blur(24px) saturate(120%);
  padding: 16px 0;
  border-bottom: 1px solid rgba(212, 175, 55, 0.25);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo-brand {
  font-family: var(--font-label);
  font-size: 20px;
  color: var(--white);
  letter-spacing: 8px;
  font-weight: 400;
}

.logo-sub {
  font-family: var(--font-label);
  font-size: 8px;
  color: var(--gold-warm);
  letter-spacing: 5px;
  margin-top: 4px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-item {
  position: relative;
}

.nav-anchor {
  font-family: var(--font-label);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 600;
  padding: 10px 0;
  display: block;
}

.nav-anchor:hover {
  color: var(--gold-warm);
}

/* Mega Dropdown Construction */
.mega-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(15px);
  width: 600px;
  background: rgba(42, 51, 20, 0.98);
  backdrop-filter: blur(20px);
  border-top: 2px solid var(--gold-warm);
  padding: 24px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.nav-item:hover .mega-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.mega-link {
  padding: 8px 16px;
  border-left: 2px solid transparent;
  display: block;
}

.mega-link:hover {
  border-left: 2px solid var(--gold-warm);
  background: rgba(255, 255, 255, 0.03);
}

.mega-name {
  font-family: var(--font-hero);
  font-size: 15px;
  color: var(--white);
  font-weight: 400;
}

.mega-tag {
  font-family: var(--font-body);
  font-size: 11px;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 2px;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  width: 24px;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--white);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Mobile Fullscreen Overlay */
.mobile-overlay {
  position: fixed;
  inset: 0;
  background: var(--olive-deep);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px;
  transform: translateX(100%);
  transition: transform 0.5s cubic-bezier(0.76, 0, 0.24, 1);
}

.mobile-overlay.is-active {
  transform: translateX(0);
}

.mobile-close-btn {
  position: absolute;
  top: 32px;
  right: 24px;
  font-family: var(--font-label);
  font-size: 12px;
  color: var(--white);
  letter-spacing: 2px;
}

.mobile-nav-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  margin-bottom: 40px;
}

.mobile-nav-anchor {
  font-family: var(--font-label);
  font-size: 18px;
  letter-spacing: 4px;
  color: var(--white);
}

/* 5. Luxury Card Layouts */
.luxury-card {
  background: #FEFCF7;
  border: 1px solid rgba(107,122,58,0.2);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 2px 12px rgba(107,122,58,0.06);
}

.luxury-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold-warm);
  transition: width 0.5s ease;
  z-index: 2;
}

.luxury-card:hover::before {
  width: 100%;
}

.luxury-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 80px rgba(61, 74, 30, 0.14);
  border-color: var(--border-gold);
}

.card-img-wrap {
  overflow: hidden;
  position: relative;
  aspect-ratio: 16/10;
  background: var(--linen);
}

.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.luxury-card:hover .card-img-wrap img {
  transform: scale(1.07);
}

.card-img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(42, 51, 20, 0.65) 0%, transparent 55%);
  pointer-events: none;
}

.card-label-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  font-family: var(--font-label);
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--white);
  background: rgba(42, 51, 20, 0.85);
  padding: 6px 14px;
  z-index: 3;
}

.card-content-block {
  padding: 32px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-item-title {
  font-family: var(--font-hero);
  font-size: 24px;
  font-weight: 600;
  color: var(--olive-dark);
  margin-bottom: 12px;
}

.card-item-desc {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
}

.card-action-trigger {
  font-family: var(--font-label);
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--olive);
  text-transform: uppercase;
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.card-action-trigger span {
  transition: transform 0.3s ease;
}

.luxury-card:hover .card-action-trigger span {
  transform: translateX(6px);
}

/* 6. Premium Bordered Tables */
.luxury-table-wrap {
  width: 100%;
  overflow-x: auto;
  margin-bottom: 32px;
  border: 1px solid var(--parchment);
}

.luxury-spec-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  background: var(--white);
}

.luxury-spec-table th, 
.luxury-spec-table td {
  padding: 16px 24px;
  border-bottom: 1px solid rgba(107, 122, 58, 0.1);
  font-family: var(--font-body);
  font-size: 14px;
}

.luxury-spec-table th {
  background: var(--olive-dark);
  color: var(--white);
  font-family: var(--font-label);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 400;
}

.luxury-spec-table tr:nth-child(even) td {
  background: rgba(247, 243, 236, 0.5);
}

.luxury-spec-table td:first-child {
  font-family: var(--font-label);
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--olive-dark);
  width: 35%;
  font-weight: 600;
}

/* 7. Premium Footer */
.footer {
  background: #2E3A16;
  position: relative;
  padding: 100px 0 40px 0;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.10;
  pointer-events: none;
}

.footer::after {
  content: '';
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(184,150,12,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.footer-top-line {
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--gold-warm) 50%, transparent 100%);
  opacity: 0.5;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 48px;
  position: relative;
  z-index: 2;
  margin-bottom: 64px;
}

.footer-column h4 {
  font-family: var(--font-label);
  font-size: 10px;
  letter-spacing: 4px;
  color: var(--gold-warm);
  text-transform: uppercase;
  margin-bottom: 24px;
}

.footer-brand-text {
  font-family: var(--font-body);
  font-size: 14px;
  color: rgba(255,255,255,0.45);
  line-height: 1.75;
  margin-top: 16px;
}

.footer-links-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-anchor {
  font-family: var(--font-body);
  font-size: 14px;
  color: rgba(255,255,255,0.45);
  transition: all 0.4s ease;
}

.footer-anchor:hover {
  color: rgba(255,255,255,0.85);
  padding-left: 8px;
}

.footer-contact-details {
  font-family: var(--font-body);
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  line-height: 1.8;
}

.footer-bottom-row {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 2;
}

.footer-copyright, 
.footer-manufacturing-tag {
  font-family: var(--font-label);
  font-size: 9px;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.25);
}

/* 8. WhatsApp Floating Trigger Element */
.wa-float {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 30px rgba(37,211,102,0.4);
  z-index: 9000;
  transition: transform 0.25s ease;
}

.wa-float:hover {
  transform: scale(1.1);
}

.wa-float svg {
  width: 28px;
  height: 28px;
  fill: var(--white);
}





