@import url('https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,300..800&display=swap');

:root {
  --brand-gold: #c5a059;
  --brand-dark: #1a1a1a;
  --light-bg: #fdfdfb;
  --white: #ffffff;
  --border-color: #eeeeee;

  /* Map old variables to new editorial colors to preserve HTML structure */
  --primary: var(--brand-dark);
  --secondary: var(--brand-gold);
  --accent: var(--brand-gold);
  --text-main: var(--brand-dark);
  --text-muted: #666666;
  --bg-color: var(--light-bg);
  
  --font-main: 'DM Sans', sans-serif;
  --font-display: 'DM Sans', sans-serif;

  --glass-bg: var(--white);
  --glass-border: var(--border-color);
  
  /* Overwrite overlays with editorial gradient */
  --overlay-heavy: linear-gradient(to bottom, rgba(255,255,255,0.4), rgba(255,255,255,1));
  --overlay-medium: linear-gradient(to bottom, rgba(255,255,255,0.2), rgba(255,255,255,0.95));
  --overlay-extra-heavy: linear-gradient(to bottom, rgba(255,255,255,0.65), rgba(255,255,255,1));
  --overlay-ultra-heavy: linear-gradient(to bottom, rgba(255,255,255,0.85), rgba(255,255,255,1));
  
  --shadow-soft: none;
  --shadow-hover: none;
  --transition: all 0.3s ease;
}

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

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

body {
  font-family: var(--font-main);
  color: var(--text-main);
  background-color: var(--bg-color);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1.5rem;
  color: var(--text-muted);
  font-size: 16px;
}

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

/* Header & Nav */
header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: var(--white) !important;
  border-bottom: 1px solid var(--border-color);
  box-shadow: none !important;
  transition: var(--transition);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 25px;
  height: 60px;
  max-width: 1400px;
  margin: 0 auto;
}

.logo {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: bold;
  color: var(--brand-gold) !important;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-transform: uppercase;
}

.logo span {
  color: var(--brand-dark) !important;
}

.nav-links {
  display: flex;
  gap: 20px;
  list-style: none;
  align-items: center;
}

.nav-links li a {
  color: var(--text-main);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
}

.nav-links li a::after {
  display: none !important;
}

.nav-links li a:hover,
.nav-links li a.active {
  color: var(--brand-gold);
}

.nav-btn {
  background: var(--brand-gold);
  color: var(--white) !important;
  padding: 10px 20px;
  border-radius: 0;
  font-weight: 600;
  box-shadow: none;
  text-transform: uppercase;
  font-size: 13px;
}

.nav-btn:hover {
  background: var(--brand-dark);
  transform: none;
  box-shadow: none;
}

.mobile-menu-btn {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--brand-dark);
}

/* Base Section Styles */
section {
  padding: 5rem 2rem;
  position: relative;
  background: var(--white);
  border-bottom: 1px solid var(--border-color);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

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

.section-title h2 {
  font-size: 32px;
  color: var(--brand-dark);
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  display: none;
}

/* Background Image Utilities */
.bg-image {
  background-position: center;
  background-size: cover;
  background-attachment: scroll; /* Editorial uses static images for structure */
}

.overlay-light, .overlay-medium, .overlay-heavy, .overlay-extra-heavy, .overlay-ultra-heavy, .overlay-97 {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}
.overlay-light { background: linear-gradient(to bottom, rgba(255,255,255,0.2), rgba(255,255,255,0.8)); }
.overlay-medium { background: linear-gradient(to bottom, rgba(255,255,255,0.2), rgba(255,255,255,0.95)); }
.overlay-heavy { background: linear-gradient(to bottom, rgba(255,255,255,0.4), rgba(255,255,255,1)); }
.overlay-extra-heavy { background: linear-gradient(to bottom, rgba(255,255,255,0.65), rgba(255,255,255,1)); }
.overlay-ultra-heavy { background: linear-gradient(to bottom, rgba(255,255,255,0.85), rgba(255,255,255,1)); }
.overlay-97 { background: linear-gradient(to bottom, rgba(255,255,255,0.97), rgba(255,255,255,1)); }

/* Glassmorphism Cards mapped to Editorial Boxes */
.glass-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 0;
  padding: 30px;
  box-shadow: none !important;
  transition: var(--transition);
}

.glass-card:hover {
  transform: none;
  background: #fafafa;
}

/* Typography Overrides based on HTML styles */
h3[style*="text-transform:uppercase"], 
h3[style*="text-transform: uppercase"] {
  font-family: var(--font-main) !important;
  font-size: 13px !important;
  color: var(--brand-gold) !important;
  font-weight: 600 !important;
  letter-spacing: 1px !important;
}

.slide-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Homepage Hero */
.hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  padding: 240px 25px 120px;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
}
.hero .container {
  margin: 0 auto;
  max-width: 800px;
}

.hero h1 {
  font-size: 52px;
  color: var(--brand-dark);
  margin-bottom: 20px;
  line-height: 1.1;
  text-shadow: none;
}
.hero h1 span {
  color: var(--brand-dark) !important;
}

.hero p {
  font-size: 16px;
  max-width: 800px;
  margin: 0 auto 2rem auto;
  color: var(--text-main);
}

.btn-group {
  display: flex;
  gap: 15px;
  justify-content: center;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 0;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  border: none;
  font-family: var(--font-main);
  transition: var(--transition);
}

.btn-primary {
  background: var(--brand-gold) !important;
  color: var(--white) !important;
  box-shadow: none !important;
}

.btn-primary:hover {
  background: var(--brand-dark) !important;
  transform: none;
  box-shadow: none !important;
}

.btn-outline {
  background: transparent !important;
  color: var(--brand-dark) !important;
  border: 1px solid var(--border-color) !important;
}

.btn-outline:hover {
  background: #fafafa !important;
  color: var(--brand-dark) !important;
}

.hero .btn-outline {
  background: rgba(255, 255, 255, 0.75) !important;
  border-color: var(--brand-dark) !important;
  color: var(--brand-dark) !important;
}

/* Grids */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  align-items: flex-start;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

/* Feature Image */
.feature-img-wrapper {
  position: relative;
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
  border: 1px solid #eee;
}

.feature-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Contact Form */
.form-group {
  margin-bottom: 12px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  color: var(--brand-dark);
}

.form-control {
  width: 100%;
  padding: 12px;
  border: 1px solid #eee;
  border-radius: 0;
  background: #fafafa;
  font-size: 15px;
  font-family: var(--font-main);
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--brand-gold);
  background: #fff;
}

.success-message {
  display: none;
  padding: 20px;
  background: var(--white);
  color: var(--brand-gold);
  border: 1px solid #eee;
  margin-top: 15px;
  font-weight: normal;
  text-align: center;
  font-family: var(--font-display);
}
.success-message h3 {
  color: var(--brand-gold) !important;
  margin-bottom: 10px !important;
}
.success-message p {
  font-family: var(--font-main);
  color: var(--text-main) !important;
  font-size: 15px !important;
}

/* Footer */
footer {
  background: var(--white);
  color: var(--text-muted);
  padding: 4rem 25px 2rem;
  border-top: 1px solid #eee;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-col h3 {
  color: var(--brand-dark);
  margin-bottom: 1rem;
  font-size: 18px;
  font-family: var(--font-display);
}

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

.footer-links li {
  margin-bottom: 0.75rem;
  font-size: 15px;
}

.footer-links a {
  color: inherit;
}

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

.footer-bottom {
  text-align: left;
  padding-top: 2rem;
  border-top: 1px solid #eee;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #999;
}

/* Numbered Steps overrides */
h1[style*="font-size: 4rem"] {
  font-family: var(--font-display) !important;
  font-size: 36px !important;
  color: var(--brand-gold) !important;
  opacity: 1 !important;
  margin-bottom: 15px !important;
}
div[style*="border-radius: 20px"] {
  border-radius: 0 !important;
  border: 1px solid #eee !important;
  box-shadow: none !important;
}
div[style*="border-radius: 12px"] {
  border-radius: 0 !important;
  border: 1px solid #eee !important;
}
div[style*="border-radius: 16px"] {
  border-radius: 0 !important;
  border: 1px solid #eee !important;
  border-left: 1px solid #eee !important; /* overriding thick left border */
}
div[style*="border-radius: 50%"] { /* small circles to gold squares */
  border-radius: 0 !important;
  background: var(--brand-gold) !important;
  color: var(--white) !important;
  box-shadow: none !important;
}
input[style*="border-radius: 50px"],
button[style*="border-radius: 50px"],
input[style*="border-radius: 8px"],
button[style*="border-radius: 8px"] {
  border-radius: 0 !important;
}

/* Responsive */
@media (max-width: 1024px) {
  .grid-3, .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero h1 {
    font-size: 42px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background: var(--white);
    flex-direction: column;
    padding: 2rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05) !important;
    gap: 1.5rem;
    align-items: flex-start;
  }
  .nav-links.active {
    display: flex;
  }
  .mobile-menu-btn {
    display: block;
  }
  .grid-2, .grid-3, .grid-4, .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero h1 {
    font-size: 32px;
  }
  .hero {
    align-items: center;
    text-align: center;
  }
  .hero .container {
    text-align: center;
  }
  .section-title h2 {
    font-size: 28px;
  }
  section {
    padding: 3rem 1.5rem;
  }
  .btn-group {
    justify-content: center;
  }
}
