/* ============================================
   KLEIN'S MINES - WORDPRESS THEME STYLES
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary: #e8941a;
  --primary-light: #f0a83e;
  --primary-rgb: 232, 148, 26;
  --foreground: #1a1a2e;
  --muted-foreground: #6b6b80;
  --background: #fafaf8;
  --card: #ffffff;
  --muted: #f3f3f0;
  --border: #e5e5e0;
  --dark: #141428;
  --dark-light: #2a2a40;
  --gray: #7a7a8a;
  --gray-light: #b0b0b8;
  --white: #ffffff;
  --radius: 0px;
  --font-sans: 'Nunito', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --max-width: 1280px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--background);
  color: #939393;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.7;
  font-weight: 400;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

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

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

/* --- Utility Classes --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.uppercase {
  text-transform: uppercase;
}

.tracking-wider {
  letter-spacing: 0.1em;
}

.tracking-widest {
  letter-spacing: 0.2em;
}

.text-primary {
  color: var(--primary);
}

.text-muted {
  color: var(--muted-foreground);
}

.bg-primary {
  background-color: var(--primary);
}

.section-label {
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.875rem;
  font-weight: 600;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.75rem 2rem;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  line-height: 1;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--primary-light);
}

.btn-outline {
  background: transparent;
  color: var(--foreground);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  background: var(--muted);
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 0.875rem;
  height: 3.5rem;
}

.btn svg,
.btn .dashicons {
  width: 1rem;
  height: 1rem;
}

/* --- Header --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: all 0.5s ease;
  padding: 0.75rem 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.site-header.scrolled {
  background: var(--white);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  padding: 0.5rem 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.site-logo img {
  height: 80px;
  width: auto;
  transition: all 0.3s ease;
}

.site-header.scrolled .site-logo img {
  height: 64px;
}

/* Desktop Nav */
.desktop-nav {
  display: none;
  gap: 2rem;
}

.desktop-nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.desktop-nav li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.desktop-nav a {
  font-size: 0.8125rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--foreground);
  transition: color 0.3s ease;
}

.desktop-nav a:hover {
  color: var(--primary);
}

.site-header.scrolled .desktop-nav a {
  color: var(--foreground);
}

.site-header.scrolled .desktop-nav a:hover {
  color: var(--primary);
}

/* Mobile menu toggle */
.mobile-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  color: var(--dark);
}

.mobile-toggle svg {
  width: 1.5rem;
  height: 1.5rem;
}

/* Mobile Nav */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.mobile-nav-overlay.active {
  display: block;
}

.mobile-nav-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 24rem;
  z-index: 51;
  background: var(--background);
  padding: 1.5rem;
  overflow-y: auto;
  border-left: 1px solid var(--border);
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.mobile-nav-overlay.active .mobile-nav-panel {
  transform: translateX(0);
}

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.mobile-nav-close {
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  color: var(--foreground);
}

.mobile-nav-close svg {
  width: 1.5rem;
  height: 1.5rem;
}

.mobile-nav-links {
  list-style: none;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
}

.mobile-nav-links a {
  display: block;
  padding: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--foreground);
  border-radius: 0.5rem;
}

.mobile-nav-links a:hover {
  background: var(--muted);
}

.mobile-nav-cta {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.mobile-nav-cta .btn {
  width: 100%;
}

@media (min-width: 1024px) {
  .desktop-nav {
    display: flex;
  }
  .header-cta {
    display: flex;
    flex: 1;
    justify-content: flex-end;
  }
  .mobile-toggle {
    display: none;
  }
}

/* --- Hero Slider --- */
.hero-slider {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
  z-index: 0;
}

.hero-slide.active {
  opacity: 1;
  z-index: 10;
}

.hero-slide-bg {
  position: absolute;
  inset: 0;
}

.hero-slide.active .hero-slide-bg {
  animation: kenburns 20s ease-out forwards;
}

.hero-slide-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay-lr {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.8), rgba(0,0,0,0.5), transparent);
}

.hero-overlay-tb {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent, rgba(0,0,0,0.3));
}

.hero-content {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.hero-content-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
}

.hero-text {
  max-width: 48rem;
}

.hero-subtitle {
  display: inline-block;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
  opacity: 0;
}

.hero-slide.active .hero-subtitle {
  animation: slideInFromRight 0.8s ease-out 0.2s forwards;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1.5rem;
  line-height: 1.1;
  white-space: pre-line;
  opacity: 0;
}

.hero-slide.active .hero-title {
  animation: slideInFromRight 0.8s ease-out 0.4s forwards;
}

.hero-description {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2rem;
  max-width: 40rem;
  line-height: 1.6;
  opacity: 0;
}

.hero-slide.active .hero-description {
  animation: slideInFromRight 0.8s ease-out 0.6s forwards;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  opacity: 0;
}

.hero-slide.active .hero-ctas {
  animation: slideInFromBottom 0.8s ease-out 0.8s forwards;
}

/* Slider Nav Arrows */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  padding: 0.75rem;
  background: rgba(0, 0, 0, 0.3);
  border: none;
  border-radius: 50%;
  color: var(--white);
  cursor: pointer;
  transition: all 0.3s ease;
}

.slider-arrow:hover {
  background: rgba(var(--primary-rgb), 0.8);
  transform: translateY(-50%) scale(1.1);
}

.slider-arrow-prev {
  left: 1rem;
}

.slider-arrow-next {
  right: 1rem;
}

.slider-arrow svg {
  width: 1.5rem;
  height: 1.5rem;
}

@media (min-width: 768px) {
  .slider-arrow-prev { left: 2rem; }
  .slider-arrow-next { right: 2rem; }
}

/* Slider Indicators */
.slider-indicators {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  gap: 0.75rem;
}

.slider-dot {
  height: 0.75rem;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  transition: all 0.5s ease;
  width: 0.75rem;
  background: rgba(255, 255, 255, 0.4);
}

.slider-dot:hover {
  background: rgba(255, 255, 255, 0.6);
}

.slider-dot.active {
  width: 3rem;
  background: var(--primary);
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  z-index: 20;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.6);
}

.scroll-indicator span {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  transform: rotate(90deg);
  transform-origin: center;
  translate: 0 2rem;
}

.scroll-indicator::after {
  content: '';
  width: 1px;
  height: 4rem;
  background: linear-gradient(to bottom, rgba(255,255,255,0.6), transparent);
}

@media (min-width: 768px) {
  .scroll-indicator { display: flex; }
}

/* --- Animations --- */
@keyframes kenburns {
  0% { transform: scale(1); }
  100% { transform: scale(1.1); }
}

@keyframes slideInFromRight {
  from { opacity: 0; transform: translateX(60px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInFromBottom {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Scroll Animate */
.scroll-animate {
  opacity: 0;
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
  will-change: opacity, transform;
}

.scroll-animate[data-direction="up"] { transform: translateY(40px); }
.scroll-animate[data-direction="down"] { transform: translateY(-40px); }
.scroll-animate[data-direction="left"] { transform: translateX(40px); }
.scroll-animate[data-direction="right"] { transform: translateX(-40px); }
.scroll-animate[data-direction="fade"] { transform: translateY(0); }

.scroll-animate.visible {
  opacity: 1;
  transform: translate(0);
}

/* --- Page Hero Banner (subpages) --- */
.page-hero {
  position: relative;
  height: 50vh;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
}

.page-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.page-hero-content {
  position: relative;
  text-align: center;
  padding: 0 1.5rem;
}

.page-hero-content .section-label {
  color: var(--primary);
}

.page-hero-content h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  color: var(--white);
  margin-top: 1rem;
}

/* --- Section Styles --- */
.section {
  padding: 6rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--foreground);
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--muted-foreground);
  max-width: 40rem;
  margin: 0 auto;
}

/* --- About Section --- */
.about-section {
  background: var(--white);
  position: relative;
  overflow: hidden;
}

.about-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 33%;
  height: 100%;
  background: rgba(176, 176, 184, 0.1);
}

.about-grid {
  display: grid;
  gap: 4rem;
  align-items: center;
}

.about-image-wrap {
  position: relative;
}

.about-image {
  aspect-ratio: 4/3;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-accent {
  display: none;
  position: absolute;
  bottom: -2rem;
  right: -2rem;
  width: 12rem;
  height: 12rem;
  border: 4px solid rgba(var(--primary-rgb), 0.2);
}

.about-text h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--foreground);
  margin-top: 1rem;
  margin-bottom: 1.5rem;
}

.about-text p {
  color: var(--muted-foreground);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.about-text .btn {
  margin-top: 2rem;
}

/* Stats Overlay */
.stats-overlay {
  position: absolute;
  bottom: -1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  background: var(--primary);
  color: var(--white);
  padding: 1.5rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  text-align: center;
}

.stat-item + .stat-item {
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
}

.stat-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.8;
}

@media (min-width: 768px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .stat-value { font-size: 1.875rem; }
}

@media (min-width: 1024px) {
  .about-grid { grid-template-columns: 1fr 1fr; }
  .about-accent { display: block; }
  .stats-overlay { left: 3rem; right: -3rem; }
  .about-text { padding-left: 2rem; }
}

/* --- Services Section --- */
.services-section {
  background: var(--muted);
  position: relative;
}

.services-section .bg-texture {
  position: absolute;
  inset: 0;
  opacity: 0.03;
}

.services-section .bg-texture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.services-grid {
  display: grid;
  gap: 2rem;
  position: relative;
}

.service-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--border);
  padding: 2rem;
  transition: all 0.5s ease;
}

.service-card:hover {
  border-color: var(--primary);
  transform: translateY(-0.5rem);
  box-shadow: 0 20px 40px rgba(var(--primary-rgb), 0.1);
}

.service-number {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 3.75rem;
  font-weight: 700;
  color: rgba(0, 0, 0, 0.05);
  line-height: 1;
}

.service-icon {
  width: 4rem;
  height: 4rem;
  background: rgba(var(--primary-rgb), 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.service-icon svg {
  width: 2rem;
  height: 2rem;
  color: var(--primary);
  transition: color 0.3s ease;
}

.service-card:hover .service-icon {
  background: var(--primary);
}

.service-card:hover .service-icon svg {
  color: var(--white);
}

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.service-card p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.6;
}

@media (min-width: 640px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .services-grid { grid-template-columns: repeat(4, 1fr); }
}

/* --- Why Choose Us Section --- */
.why-section {
  background: var(--primary);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.why-section .bg-texture {
  position: absolute;
  inset: 0;
  opacity: 0.1;
}

.why-section .bg-texture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.why-grid {
  display: grid;
  gap: 2rem;
  position: relative;
}

.why-card {
  text-align: center;
  padding: 1.5rem;
}

.why-icon {
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.why-icon svg {
  width: 2.5rem;
  height: 2.5rem;
}

.why-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.why-card p {
  font-size: 0.875rem;
  opacity: 0.8;
}

@media (min-width: 768px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .why-grid { grid-template-columns: repeat(4, 1fr); }
}

/* --- Featured Properties Section --- */
.properties-header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 3rem;
}

.properties-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--foreground);
  margin-top: 1rem;
}

.properties-grid {
  display: grid;
  gap: 2rem;
}

.property-card {
  display: block;
  position: relative;
  overflow: hidden;
}

.property-card-image {
  aspect-ratio: 4/3;
  overflow: hidden;
}

.property-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.property-card:hover .property-card-image img {
  transform: scale(1.1);
}

.property-card-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0.2), transparent);
}

.property-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--white);
}

.property-badge.available { background: #22c55e; }
.property-badge.investment-opportunity { background: #3b82f6; }
.property-badge.under-contract { background: #f59e0b; }
.property-badge.sold { background: #ef4444; }

.property-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
}

.property-type {
  color: var(--primary);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.property-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.25rem;
}

.property-location {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
}

.property-view {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.property-card:hover .property-view {
  opacity: 1;
}

.property-view svg {
  width: 1rem;
  height: 1rem;
}

@media (min-width: 768px) {
  .properties-header {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
  .properties-grid { grid-template-columns: repeat(3, 1fr); }
}

/* --- CTA Section --- */
.cta-section {
  position: relative;
  padding: 8rem 0;
  overflow: hidden;
}

.cta-section .cta-bg {
  position: absolute;
  inset: 0;
}

.cta-section .cta-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta-section .cta-bg-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
}

.cta-content {
  position: relative;
  max-width: 48rem;
  margin: 0 auto;
  text-align: center;
}

.cta-content h2 {
  font-size: clamp(2rem, 5vw, 3.75rem);
  color: var(--white);
  margin-top: 1rem;
  margin-bottom: 1.5rem;
}

.cta-content p {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2.5rem;
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

/* --- Footer --- */
.site-footer {
  background: var(--dark);
  color: var(--white);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-main {
  padding: 4rem 0;
}

.footer-grid {
  display: grid;
  gap: 3rem;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  max-width: 28rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.footer-logo img {
  height: 56px;
  width: auto;
}

.footer-logo-text span:first-child {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
}

.footer-logo-text span:last-child {
  font-size: 0.75rem;
  color: var(--primary);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.75rem;
}

.footer-contact-item svg {
  width: 1rem;
  height: 1rem;
  color: var(--primary);
  flex-shrink: 0;
}

.footer-col h3 {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
  color: var(--white);
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.75rem;
}

.footer-col a {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s ease;
}

.footer-col a:hover {
  color: var(--primary);
}

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}

@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

/* Footer Bottom */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem 0;
}

.footer-bottom-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.footer-copyright {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-socials {
  display: flex;
  gap: 1rem;
}

.footer-social-link {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.3s ease;
}

.footer-social-link:hover {
  background: var(--primary);
  color: var(--white);
}

.footer-social-link svg {
  width: 1rem;
  height: 1rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--primary);
}

@media (min-width: 768px) {
  .footer-bottom-inner {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* --- Team Page --- */
.team-intro {
  padding: 5rem 0;
  background: var(--card);
}

.team-intro p {
  max-width: 48rem;
  margin: 0 auto;
  text-align: center;
  font-size: 1.125rem;
  color: var(--muted-foreground);
  line-height: 1.7;
}

.team-members {
  padding: 6rem 0;
}

.team-member {
  display: grid;
  gap: 3rem;
  align-items: center;
  margin-bottom: 8rem;
}

.team-member:last-child {
  margin-bottom: 0;
}

.team-member-photo {
  position: relative;
}

.team-member-photo .photo-wrap {
  aspect-ratio: 3/4;
  overflow: hidden;
}

.team-member-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-member-photo .accent-border {
  display: none;
  position: absolute;
  bottom: -1.5rem;
  width: 12rem;
  height: 12rem;
  border: 4px solid rgba(var(--primary-rgb), 0.3);
}

.team-member-photo .accent-box {
  display: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 6rem;
  height: 6rem;
  background: rgba(var(--primary-rgb), 0.1);
}

.team-member-info .section-label {
  display: block;
  margin-bottom: 0.5rem;
}

.team-member-info h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--foreground);
  margin-bottom: 1.5rem;
}

.team-member-info p {
  color: var(--muted-foreground);
  line-height: 1.7;
  font-size: 1.125rem;
  margin-bottom: 2rem;
}

.team-member-socials {
  display: flex;
  gap: 1rem;
}

.team-member-socials a {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.team-member-socials a:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.team-member-socials svg {
  width: 1.25rem;
  height: 1.25rem;
}

@media (min-width: 1024px) {
  .team-member { grid-template-columns: 1fr 1fr; gap: 5rem; }
  .team-member:nth-child(even) .team-member-photo { order: 2; }
  .team-member:nth-child(even) .team-member-info { text-align: right; }
  .team-member:nth-child(even) .team-member-socials { justify-content: flex-end; }
  .team-member-photo .accent-border { display: block; }
  .team-member-photo .accent-box { display: block; }
  .team-member:nth-child(odd) .accent-border { right: -1.5rem; }
  .team-member:nth-child(odd) .accent-box { right: -3rem; }
  .team-member:nth-child(even) .accent-border { left: -1.5rem; }
  .team-member:nth-child(even) .accent-box { left: -3rem; }
}

/* --- Mines Page --- */
.mines-grid {
  display: grid;
  gap: 2rem;
  padding: 6rem 0;
}

.mine-card {
  background: var(--card);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all 0.5s ease;
}

.mine-card:hover {
  border-color: var(--primary);
  box-shadow: 0 20px 40px rgba(var(--primary-rgb), 0.1);
  transform: translateY(-0.25rem);
}

.mine-card-image {
  aspect-ratio: 16/9;
  overflow: hidden;
}

.mine-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.mine-card:hover .mine-card-image img {
  transform: scale(1.05);
}

.mine-card-body {
  padding: 1.5rem;
}

.mine-card-body h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.mine-card-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-bottom: 1rem;
}

.mine-card-meta span {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.mine-card-body p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .mines-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .mines-grid { grid-template-columns: repeat(3, 1fr); }
}

/* --- Investors Page --- */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.benefit-card {
  padding: 1.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  transition: border-color 0.3s ease;
}

.benefit-card:hover {
  border-color: rgba(var(--primary-rgb), 0.3);
}

.benefit-card svg {
  width: 2rem;
  height: 2rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.benefit-card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.benefit-card p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.investment-types-grid {
  display: grid;
  gap: 2rem;
}

.investment-type-card {
  background: var(--background);
  border: 1px solid var(--border);
  padding: 2rem;
  text-align: center;
  transition: all 0.5s ease;
}

.investment-type-card:hover {
  border-color: var(--primary);
  transform: translateY(-0.5rem);
  box-shadow: 0 20px 40px rgba(var(--primary-rgb), 0.1);
}

.investment-type-icon {
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  background: rgba(var(--primary-rgb), 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  transition: background 0.3s ease;
}

.investment-type-card:hover .investment-type-icon {
  background: var(--primary);
}

.investment-type-icon svg {
  width: 2.5rem;
  height: 2.5rem;
  color: var(--primary);
  transition: color 0.3s ease;
}

.investment-type-card:hover .investment-type-icon svg {
  color: var(--white);
}

.investment-type-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.investment-type-card p {
  color: var(--muted-foreground);
}

@media (min-width: 768px) {
  .investment-types-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Process Steps */
.process-section {
  position: relative;
  overflow: hidden;
}

.process-section .bg-texture {
  position: absolute;
  inset: 0;
  opacity: 0.05;
}

.process-section .bg-texture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.process-grid {
  display: grid;
  gap: 2rem;
  position: relative;
}

.process-line {
  display: none;
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--border);
}

.process-step {
  text-align: center;
  position: relative;
}

.process-step-number {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  position: relative;
  z-index: 1;
}

.process-step h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.process-step p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

@media (min-width: 768px) {
  .process-grid { grid-template-columns: repeat(5, 1fr); }
  .process-line { display: block; }
}

/* Qualifications */
.qualifications-section {
  background: var(--primary);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.qualifications-section .bg-texture {
  position: absolute;
  inset: 0;
  opacity: 0.1;
}

.qualifications-section .bg-texture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.qualifications-grid {
  display: grid;
  gap: 4rem;
  align-items: center;
  position: relative;
}

.qualifications-list {
  list-style: none;
}

.qualifications-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.qualifications-list svg {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.qualifications-cta-box {
  background: var(--background);
  color: var(--foreground);
  padding: 2rem;
}

.qualifications-cta-box h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.qualifications-cta-box p {
  color: var(--muted-foreground);
  margin-bottom: 2rem;
}

.qualifications-cta-box .btn {
  width: 100%;
}

@media (min-width: 1024px) {
  .qualifications-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 768px) {
  .qualifications-cta-box { padding: 3rem; }
}

/* --- Contact Page --- */
.contact-grid {
  display: grid;
  gap: 4rem;
}

.contact-info-items {
  margin-bottom: 3rem;
}

.contact-info-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.contact-info-icon {
  flex-shrink: 0;
  width: 3.5rem;
  height: 3.5rem;
  background: rgba(var(--primary-rgb), 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-info-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--primary);
}

.contact-info-item h3 {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.25rem;
}

.contact-info-item p {
  color: var(--muted-foreground);
}

.contact-map {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid var(--border);
}

.contact-map img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact-map-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0.4), transparent);
}

.contact-map-text {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
}

.contact-map-text h4 {
  font-size: 1.25rem;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.contact-map-text h4 svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--primary);
}

.contact-map-text p {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
}

@media (min-width: 1024px) {
  .contact-grid { grid-template-columns: 3fr 2fr; }
}

/* --- Contact Form --- */
.contact-form .form-row {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.contact-form label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--foreground);
  transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary);
}

.contact-form input,
.contact-form select {
  height: 3rem;
}

.contact-form textarea {
  resize: none;
}

.contact-form .form-note {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  margin-top: 1.5rem;
}

.form-success {
  background: var(--card);
  border: 1px solid rgba(var(--primary-rgb), 0.3);
  padding: 3rem;
  text-align: center;
}

.form-success-icon {
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  background: rgba(var(--primary-rgb), 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.form-success-icon svg {
  width: 2.5rem;
  height: 2.5rem;
  color: var(--primary);
}

.form-success h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.form-success p {
  color: var(--muted-foreground);
  margin-bottom: 2rem;
}

@media (min-width: 640px) {
  .contact-form .form-row { grid-template-columns: repeat(2, 1fr); }
}

/* --- Quote Modal --- */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-overlay.active {
  display: flex;
}

.modal-panel {
  background: var(--background);
  width: 100%;
  max-width: 32rem;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2rem;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--muted-foreground);
  transition: color 0.3s ease;
}

.modal-close:hover {
  color: var(--foreground);
}

.modal-close svg {
  width: 1.5rem;
  height: 1.5rem;
}

.modal-panel h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.modal-panel > p {
  color: var(--muted-foreground);
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
}

/* --- Parallax Backgrounds --- */
.parallax-bg {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

@supports (-webkit-touch-callout: none) {
  /* Disable on iOS as background-attachment:fixed doesn't work */
  .parallax-bg {
    background-attachment: scroll;
  }
}

/* --- Counter Animation --- */
.stat-value[data-count] {
  transition: none;
}

/* --- Page Content (Gutenberg output) --- */
.page-content h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: var(--foreground);
}

.page-content h3 {
  font-size: 1.25rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: var(--foreground);
}

.page-content p {
  margin-bottom: 1.25rem;
  line-height: 1.8;
}

.page-content img {
  max-width: 100%;
  height: auto;
  margin: 1.5rem 0;
}

.page-content ul,
.page-content ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

.page-content li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

.page-content blockquote {
  border-left: 4px solid var(--primary);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: var(--muted);
  font-style: italic;
}

.page-content .wp-block-columns {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
}

.page-content .wp-block-column {
  flex: 1;
}

@media (max-width: 768px) {
  .page-content .wp-block-columns {
    flex-direction: column;
  }
}

/* --- WordPress Specific --- */
.wp-block-image img {
  max-width: 100%;
  height: auto;
}

.alignfull {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
}

.alignwide {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}

/* Admin bar fix */
body.admin-bar .site-header {
  top: 32px;
}

@media screen and (max-width: 782px) {
  body.admin-bar .site-header {
    top: 46px;
  }
}
