@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&display=swap');

:root {
  --primary-green: #2e4d41;
  --secondary-green: #4f6d5c;
  --text-dark: #1a1a1a;
  --text-light: #f4f4f4;
  --bg-light: #ffffff;
  --bg-offset: #f8f9f8;
  --accent-color: #d4a373;
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --glass: rgba(255, 255, 255, 0.8);
  --glass-border: rgba(255, 255, 255, 0.2);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Outfit', sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  background-color: var(--bg-light);
  overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4 {
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  margin-bottom: 1.5rem;
}

h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 2rem;
}

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

p {
  font-size: 1.1rem;
  font-weight: 300;
  color: #222;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

/* Layout Parts */
section {
  padding: 80px 5%;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 18px 36px;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

.btn-primary:hover {
  background-color: var(--secondary-green);
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(79, 109, 92, 0.3);
}

.btn-outline {
  border: 2px solid white;
  color: white;
}

.btn-outline:hover {
  background-color: white;
  color: var(--primary-green);
  transform: translateY(-3px);
}

/* Header */
header {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 25px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  transition: var(--transition);
}

header.scrolled {
  background: var(--glass);
  -webkit-backdrop-filter: blur(15px);
  backdrop-filter: blur(15px);
  padding: 15px 5%;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
  border-bottom: 1px solid var(--glass-border);
}

header.scrolled .logo,
header.scrolled nav a:not(.nav-cta),
header.scrolled .nav-phone {
  color: var(--text-dark) !important;
}

header.scrolled .nav-cta {
  background-color: var(--primary-green);
  color: white !important;
}

header.scrolled .hamburger .bar {
  background-color: var(--text-dark);
}

.header-logo-img {
  height: 70px;
  width: auto;
  display: block;
  transition: var(--transition);
  filter: brightness(0) invert(1);
}

header.scrolled .header-logo-img,
.header-inner .header-logo-img {
  height: 60px;
  filter: none;
}

.footer-logo-img {
  height: 60px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
  transition: var(--transition);
  margin-bottom: 25px;
  filter: brightness(0) invert(1);
  /* Prevent flex stretching */
  flex-shrink: 0;
  align-self: flex-start;
}

.logo {
  font-size: 2.2rem;
  font-weight: 700;
  color: white;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 0.9;
  letter-spacing: -0.02em;
}

.logo-main {
  display: flex;
  align-items: baseline;
  transition: var(--transition);
}

.logo-main::before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 24px;
  background: var(--accent-color);
  margin-right: 8px;
  border-radius: 2px;
}

.logo:hover .logo-main {
  color: var(--accent-color);
}

.logo-dot {
  color: var(--accent-color);
  font-weight: 300;
  margin-left: 1px;
}

header.scrolled .logo-dot {
  color: var(--primary-green);
}

.logo-sub {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-top: 4px;
  margin-left: 11px;
  opacity: 0.9;
  color: var(--accent-color);
}

header.scrolled .logo-sub {
  color: var(--secondary-green);
}

header.scrolled .logo {
  color: var(--primary-green);
}

nav {
  display: flex;
  gap: clamp(15px, 2.5vw, 40px);
  align-items: center;
}

nav a {
  color: white;
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  transition: color 0.3s ease;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: currentColor;
  transition: var(--transition);
}

nav a:hover::after {
  width: 100%;
}

.lang-separator {
  color: white;
  opacity: 0.6;
}

header.scrolled .lang-separator {
  color: var(--text-dark);
}

.nav-phone {
  display: inline-block;
  white-space: nowrap;
  margin-left: 15px;
  font-weight: bold;
  color: white;
}

.nav-cta {
  padding: 10px 20px;
  font-size: 0.8rem;
  margin-left: 15px;
}

header.scrolled .nav-phone {
  color: var(--primary-green) !important;
}

/* Page Header for Subpages */
.page-header {
  position: relative;
  background-size: cover;
  background-position: center;
  margin-bottom: 60px;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: inherit;
  filter: blur(0px);
  /* Optional */
  z-index: 0;
}

.page-header .container {
  position: relative;
  z-index: 2;
}

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.3)), url('../assets/hero.jpeg');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  overflow: hidden;
}

.hero.hero-hr {
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.3)), url('../assets/hero-hr.jpeg');
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.4) 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.hero-content p {
  font-size: 1.4rem;
  margin-bottom: 2.5rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 300;
}

.footer-col h3,
.footer-col h4 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: white;
}

.cta-group {
  display: flex;
  justify-content: center;
  gap: 25px;
}

/* Featured / Trust */
.featured {
  padding: 60px 5%;
  background: white;
  border-bottom: 1px solid #eee;
}

.logo-track-wrapper {
  overflow: hidden;
  width: 100%;
}

.logo-track {
  display: flex;
  align-items: center;
  gap: 60px;
  width: max-content;
  animation: scroll-logo 40s linear infinite;
}

@keyframes scroll-logo {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.logo-track img {
  max-height: 50px;
  max-width: 150px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: var(--transition);
}

.logo-track img:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.05);
}

/* Testimonials Section */
.testimonials-section {
  padding: 100px 5%;
  background: #f9f9f9;
  text-align: center;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.testimonial-card {
  background: white;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
  text-align: left;
  position: relative;
}

.testimonial-card::before {
  content: '"';
  font-size: 5rem;
  color: var(--primary-green);
  opacity: 0.1;
  position: absolute;
  top: 10px;
  left: 20px;
  font-family: serif;
}

.stars {
  color: #F4B806;
  margin-bottom: 15px;
  font-size: 1.1rem;
}

.testimonial-text {
  font-style: italic;
  color: #555;
  margin-bottom: 20px;
}

.testimonial-author {
  font-weight: 700;
  color: var(--text-dark);
}

/* Services */
.services {
  background: var(--bg-offset);
}

.section-head {
  text-align: center;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.service-card {
  background: white;
  padding: 50px;
  border-radius: 30px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  border: 2px solid transparent;
}

.service-card:hover {
  border-color: var(--primary-green);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.06);
}

.service-card i {
  font-size: 2.5rem;
  color: var(--primary-green);
  margin-bottom: 25px;
  display: block;
}

.service-card h3 {
  margin-bottom: 1rem;
}

.service-card ul {
  list-style: none;
  margin-top: 1.5rem;
}

.service-card li {
  margin-bottom: 0.8rem;
  padding-left: 25px;
  position: relative;
  font-size: 0.95rem;
}

.service-card li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary-green);
  font-weight: bold;
}

/* Subpage Service Details */
.service-detail {
  padding: 80px 5%;
}

.service-detail h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 1rem;
}

.service-detail ul li {
  font-size: 1.1rem;
}

.process-step {
  padding-left: 15px;
  border-left: 3px solid var(--primary-green);
}

/* Details Section */
.details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 80px;
  background: white;
}

.details-image {
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.1);
}

.details-image img {
  width: 100%;
  display: block;
  transition: var(--transition);
}

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

/* Footer */
footer {
  background: var(--text-dark);
  color: white;
  padding: 80px 5% 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 50px;
  margin-bottom: 60px;
}

.footer-logo {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 20px;
  display: block;
}

.footer-text {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  max-width: 300px;
}

.footer-col h3 {
  margin-bottom: 25px;
  font-size: 1.1rem;
}

.footer-col .logo {
  margin-bottom: 25px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: white;
  padding-left: 5px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 40px;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.9);
}


/* Hamburger Menu */
.hamburger {
  display: none;
  cursor: pointer;
  z-index: 1100;
}

.hamburger .bar {
  display: block;
  width: 25px;
  height: 2px;
  background-color: white;
  margin: 6px auto;
  transition: var(--transition);
}



.footer-contact-text {
  color: white !important;
  opacity: 1 !important;
}

.footer-contact-link {
  color: white !important;
}

.text-white {
  color: white !important;
}

.mt-10 {
  margin-top: 10px;
}

.partner-logos-container {
  text-align: center;
  margin-bottom: 50px;
  display: flex;
  justify-content: center;
  gap: 40px;
  align-items: center;
  flex-wrap: wrap;
}

.partner-logo-img {
  background: white;
  padding: 15px;
  border-radius: 12px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
}

.partner-logo-bafa {
  height: 100px;
}

.partner-logo-standard {
  height: 70px;
}

/* SEO & Performance & Grid Utilities */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

@media (max-width: 768px) {
  .grid-2 {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr 1.5fr 1fr;
  gap: 60px;
}

@media (max-width: 992px) {
  .grid-3 {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .details-content {
    order: 1;
  }
  
  .about-text-right {
    order: 2;
  }
  
  .team-showcase {
    order: 3;
  }
}

.text-center {
  text-align: center;
}

.mt-10 {
  margin-top: 10px;
}

.mt-20 {
  margin-top: 20px;
}

.mt-30 {
  margin-top: 30px;
}

.w-100 {
  width: 100% !important;
}

.text-small {
  font-size: 0.9rem;
}

.mt-40 {
  margin-top: 40px;
}

.mb-40 {
  margin-bottom: 40px;
}

.mb-60 {
  margin-bottom: 60px;
}

.pb-0 {
  padding-bottom: 0 !important;
}

.justify-center {
  justify-content: center;
}

.mb-20 {
  margin-bottom: 20px;
}

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

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

.relative {
  position: relative;
}

.process-card {
  background: var(--bg-offset);
  padding: 40px;
  border-radius: 20px;
}

.check-list li {
  margin-bottom: 15px;
  padding-left: 30px;
  position: relative;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary-green);
  font-weight: bold;
}

.mb-10 {
  margin-bottom: 10px;
}

.mb-40 {
  margin-bottom: 40px;
}

.bg-offset {
  background: var(--bg-offset);
}

.w-100 {
  width: 100%;
}

.text-muted {
  color: #555;
}

.p-40 {
  padding: 40px;
}

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

.m-0 {
  margin: 0 !important;
}

.d-none {
  display: none !important;
}

.usp-item {
  display: flex;
  align-items: center;
  gap: 15px;
}

.usp-icon-box {
  width: 50px;
  height: 50px;
  background: var(--primary-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
}

.google-review-link {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  margin-top: 30px;
  font-weight: bold;
}

.google-review-link span {
  font-size: 1.2rem;
}

/* Enhanced Subpage Header */
.page-header-standard {
  background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../assets/hero.jpeg');
  padding: 160px 5% 80px;
  text-align: center;
  color: white;
}

.page-header-p {
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.3rem;
  color: white;
}

/* Service Card Links */
.card-link {
  display: inline-block;
  margin-top: 20px;
  font-weight: bold;
  color: var(--primary-green);
  text-decoration: none;
  transition: var(--transition);
}

.card-link:hover {
  text-decoration: underline;
  padding-left: 5px;
}

/* Knowledge / FAQ Section */
.knowledge-section {
  padding: 100px 5%;
  background: white;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin-top: 50px;
}

.faq-item {
  background: var(--bg-offset);
  padding: 30px;
  border-radius: 20px;
  transition: var(--transition);
}

.faq-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
}

.faq-item h3 {
  font-size: 1.2rem;
  margin-bottom: 15px;
  color: var(--primary-green);
}

.faq-item p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.6;
}

.bank-info-box {
  margin-top: 60px;
  background: var(--primary-green);
  color: white;
  padding: 40px;
  border-radius: 30px;
  display: flex;
  align-items: center;
  gap: 40px;
  text-align: left;
}

@media (max-width: 768px) {
  .bank-info-box {
    flex-direction: column;
    text-align: center;
  }
}

.bank-info-content h2 {
  color: white;
  margin-bottom: 15px;
}

.bank-info-icon {
  font-size: 4rem;
  opacity: 0.5;
}

/* Location Cards Enhancement */
.locations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.location-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
}

.location-card-map {
  height: 300px;
  width: 100%;
}

.location-card-content {
  padding: 30px;
  flex-grow: 1;
}

.location-card-tag {
  margin-top: 10px;
  color: var(--primary-green);
  font-weight: bold;
}

.location-card-content h4 {
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.btn-google {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 40px;
  color: var(--primary-green) !important;
  border-color: var(--primary-green) !important;
}

.btn-google-footer {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  transition: var(--transition);
}

.btn-google-footer:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Contact Form Standard */
.contact-container {
  max-width: 800px;
  margin: 0 auto;
  background: white;
  padding: 60px;
  border-radius: 30px;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.05);
}

.contact-form {
  display: grid;
  gap: 20px;
}

.contact-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.contact-form-input {
  padding: 15px;
  border-radius: 10px;
  border: 1px solid #ddd;
  font-family: inherit;
}

.contact-form-textarea {
  min-height: 150px;
}

@media (max-width: 600px) {
  .contact-form-row {
    grid-template-columns: 1fr;
  }
}

/* Responsive */
@media (max-width: 1350px) {
  .details {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 1350px) {
  section {
    padding: 80px 5%;
  }

  .hamburger {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 90px;
    left: 5%;
    right: 5%;
    width: 90%;
    margin: 0 auto;
    height: auto;
    max-height: calc(100vh - 120px);
    padding: 40px 5% 40px;
    background: rgb(2, 48, 32); /* Solid fallback */
    background: linear-gradient(135deg, rgb(2, 48, 32) 0%, rgb(4, 60, 42) 100%);
    -webkit-backdrop-filter: blur(40px);
    backdrop-filter: blur(40px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    transform: translateY(-20px) scale(0.95);
    opacity: 0;
    pointer-events: none;
    transition: all 0.6s cubic-bezier(0.19, 1, 0.22, 1);
    z-index: 1050;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    gap: 8px;
  }

  .nav-links.active {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: all;
  }

  header.scrolled .nav-links.active a,
  header.scrolled nav.nav-links.active a:not(.nav-cta),
  header.scrolled .nav-links.active .nav-phone {
    color: white !important;
  }

  .nav-links a {
    font-size: 1.4rem;
    padding: 12px 0;
    color: white !important;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.4s ease;
    width: 100%;
    text-align: center;
    opacity: 0;
    transform: translateY(-10px);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  }

  .nav-links.active a {
    opacity: 1;
    transform: translateY(0);
  }

  /* Staggered entrance animation */
  .nav-links.active a:nth-child(1) {
    transition-delay: 0.1s;
  }

  .nav-links.active a:nth-child(2) {
    transition-delay: 0.15s;
  }

  .nav-links.active a:nth-child(3) {
    transition-delay: 0.2s;
  }

  .nav-links.active a:nth-child(4) {
    transition-delay: 0.25s;
  }

  .nav-links.active a:nth-child(5) {
    transition-delay: 0.3s;
  }

  .nav-links.active a:nth-child(6) {
    transition-delay: 0.35s;
  }

  .nav-links.active a:nth-child(7) {
    transition-delay: 0.4s;
  }

  .nav-links a:hover {
    color: var(--accent-color) !important;
    transform: scale(1.03);
  }

  .nav-links .lang-switch {
    margin: 15px 0;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.6s ease 0.45s;
    display: flex;
    gap: 20px;
    align-items: center;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 40px;
  }

  .nav-links.active .lang-switch {
    opacity: 1;
    transform: translateY(0);
  }

  .nav-links .nav-phone {
    font-size: 1.1rem;
    margin-bottom: 15px;
  }

  .nav-links .nav-cta {
    width: auto;
    min-width: 180px;
    padding: 12px 30px;
    border-radius: 50px;
    background: var(--accent-color) !important;
    color: var(--primary-green) !important;
    font-weight: 700;
    margin-top: 5px;
    font-size: 1rem;
  }

  .cta-group {
    flex-direction: column;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .nav-cta {
    margin-left: 0 !important;
    /* Override inline style */
    margin-top: 20px;
  }
}

#app {
  padding-top: 40px;
}

#app .section-head {
  margin-bottom: 25px;
}

.app-card {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.05);
  padding: 60px 40px !important;
}

.app-card h3,
.app-card p {
  text-align: center;
  width: 100%;
}

.app-icon {
  font-size: 3.5rem;
  margin-bottom: 20px;
  background: var(--bg-offset);
  width: 100px;
  height: 100px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin: 0 auto 20px auto;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.app-note {
  margin-top: 30px;
  font-size: 0.85rem;
  color: #777;
  font-style: italic;
  max-width: 500px;
  line-height: 1.5;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  padding-top: 20px;
}


/* Legal Pages Fix */
.header-inner {
  background: var(--glass) !important;
  -webkit-backdrop-filter: blur(15px) !important;
  backdrop-filter: blur(15px) !important;
  padding: 15px 5% !important;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
  border-bottom: 1px solid var(--glass-border);
}

.header-inner nav a,
.header-inner .nav-phone {
  color: var(--text-dark) !important;
}

.header-inner .nav-cta {
  background-color: var(--primary-green) !important;
  color: white !important;
}

.legal-main {
  padding-top: 220px;
  padding-bottom: 100px;
  max-width: 1000px;
  margin: 0 auto;
  padding-left: 5%;
  padding-right: 5%;
}

.legal-main h1 {
  text-align: center;
  margin-bottom: 50px;
}

.legal-section {
  margin-bottom: 40px;
}

/* Legal Notice Popup */
.legal-popup {
  position: fixed;
  bottom: -100%;
  left: 0;
  width: 100%;
  background: white;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.1);
  z-index: 9999;
  transition: bottom 0.5s cubic-bezier(0.19, 1, 0.22, 1);
  padding: 30px 5%;
  border-top: 3px solid var(--primary-green);
}

.legal-popup.show {
  bottom: 0;
}

.legal-popup-content {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.legal-popup-content h3 {
  color: var(--primary-green);
  font-size: 1.2rem;
  margin: 0;
}

.legal-popup-content p {
  font-size: 0.95rem;
  color: #444;
  line-height: 1.5;
  margin: 0;
}

.legal-popup-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 15px;
}

@media (min-width: 768px) {
  .legal-popup-content {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .legal-popup-content > div:first-child {
    flex: 1;
    margin-right: 30px;
  }
}

/* Team Showcase */
.team-showcase {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

@media (min-width: 600px) {
  .team-showcase {
    flex-direction: row;
    gap: 20px;
  }
}

.team-card {
  flex: 1;
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}

.team-card:hover {
  transform: translateY(-5px);
}

.team-image-wrapper {
  position: relative;
  width: 100%;
  padding-top: 120%; /* Aspect ratio for portraits */
  overflow: hidden;
}

.team-image-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.5s ease;
}

.img-hover {
  opacity: 0;
}

.team-card:hover .img-base {
  opacity: 0;
}

.team-card:hover .img-hover {
  opacity: 1;
}

.team-info {
  padding: 20px;
  text-align: center;
}

.team-info h3 {
  margin: 0 0 5px;
  color: var(--text-dark);
}

.team-role {
  color: var(--primary-green);
  font-weight: 600;
  font-size: 0.9rem;
  margin: 0;
}

/* Dynamic Text Right Column */
.about-text-right {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
}

.dynamic-team-text {
  background: transparent;
  padding: 0;
  opacity: 1; 
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.dynamic-team-text h3 {
  margin-top: 0;
  margin-bottom: 15px;
}

.dynamic-team-text p {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.8;
  color: #444;
}

/* Animations for text switching */
.fade-text {
  opacity: 0 !important;
  transform: translateY(10px);
}

/* --- Newspaper Page Styles --- */
.newspaper-page-body {
  background-color: #fcfbf9; /* Slightly off-white, paper-like */
}

/* Force dark header on Newspaper Page */
.newspaper-page-body #header {
  background: var(--glass);
  -webkit-backdrop-filter: blur(15px);
  backdrop-filter: blur(15px);
  padding: 15px 5%;
  border-bottom: 1px solid var(--glass-border);
}
.newspaper-page-body #header .logo,
.newspaper-page-body #header nav a:not(.nav-cta),
.newspaper-page-body #header .nav-phone,
.newspaper-page-body #header .lang-switch a,
.newspaper-page-body #header .lang-separator {
  color: var(--text-dark) !important;
}

/* Override for when the mobile menu is ACTIVE on newspaper page */
.newspaper-page-body #header nav.nav-links.active a:not(.nav-cta),
.newspaper-page-body #header .nav-links.active .nav-phone,
.newspaper-page-body #header .nav-links.active .lang-switch a,
.newspaper-page-body #header .nav-links.active .lang-separator {
  color: white !important;
}
.newspaper-page-body #header .nav-cta {
  background-color: var(--primary-green);
  color: white !important;
}
.newspaper-page-body #header .hamburger .bar {
  background-color: var(--text-dark);
}
.newspaper-page-body #header .header-logo-img {
  height: 60px;
  filter: none;
}

.newspaper-page {
  padding-top: 120px;
  padding-bottom: 60px;
  color: #2b2b2b;
}

.newspaper-header {
  margin-bottom: 40px;
}

.newspaper-title {
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 10px;
  border-bottom: 2px solid #222;
  border-top: 2px solid #222;
  padding: 15px 0;
  color: #111;
}

@media (min-width: 768px) {
  .newspaper-title {
    font-size: 5rem;
  }
}

.newspaper-subtitle {
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 15px;
}

.newspaper-divider {
  border: 0;
  border-bottom: 1px solid #ccc;
  margin: 40px 0;
}

.newspaper-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 30px;
  margin-bottom: 40px;
}

.newspaper-article {
  background: transparent;
  padding: 0;
}

.lead-article {
  grid-column: span 12;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid #ddd;
  margin-bottom: 20px;
}

.secondary-article {
  grid-column: span 6;
  padding-bottom: 40px;
  border-bottom: 1px solid #ddd;
}

.minor-article {
  grid-column: span 12; 
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 30px;
  align-items: center;
}

@media (max-width: 992px) {
  .lead-article, .secondary-article, .minor-article {
    grid-column: span 12;
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  .lead-article .article-img,
  .minor-article .article-img,
  .secondary-article .article-img {
    width: 100%;
    height: auto;
    object-fit: contain;
    margin-bottom: 0;
  }
}

.article-headline {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  line-height: 1.2;
  margin: 0 0 15px;
  color: #1a1a1a;
  font-weight: 700;
}

.lead-article .article-headline {
  font-size: 2.8rem;
}

.article-meta {
  font-family: 'Outfit', sans-serif;
  font-size: 0.8rem;
  text-transform: uppercase;
  color: #888;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
  margin-bottom: 20px;
  font-weight: 600;
  letter-spacing: 1px;
}

.article-img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  margin-bottom: 20px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08); /* slight elegance */
}

.lead-article .article-img {
  height: 100%;
  object-fit: cover;
  margin-bottom: 0;
}

.minor-article .article-img {
  margin-bottom: 0;
}

.article-text {
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #333;
  text-align: left;
}