/* Design System & Reset */
:root {
  --bg-primary: #F6F1EA;       /* Ivory */
  --bg-secondary: #E7D6BB;     /* Beige */
  --bg-dark: #7C1F23;          /* Burgundy */
  --bg-espresso: #2B2926;      /* Espresso */
  
  --bg-card: #FFFFFF;
  --bg-card-hover: #FDFCFB;
  
  --primary: #CBA35A;          /* Gold */
  --primary-hover: #b9924c;
  --primary-light: rgba(203, 163, 90, 0.1);
  --primary-glow: rgba(203, 163, 90, 0.25);
  
  --text-primary: #2B2926;     /* Espresso */
  --text-secondary: #B44A3A;   /* Terracotta */
  --text-muted: #C8B69A;       /* Warm Taupe */
  
  --text-light-primary: #F6F1EA;   /* Ivory on dark bg */
  --text-light-secondary: #E7D6BB; /* Beige on dark bg */
  
  --border-color: rgba(43, 41, 38, 0.08);
  --border-hover: rgba(43, 41, 38, 0.15);
  --border-focus: #CBA35A;
  
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  
  --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  
  --navbar-height: 80px;
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
  line-height: 1.65;
  background-color: var(--bg-primary);
  color: var(--text-primary);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-secondary);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Typography Helpers */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600; /* Cormorant Garamond Semi Bold */
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

p {
  color: #4A4743; /* Soft Espresso */
  font-size: 1.05rem;
  font-weight: 300; /* Montserrat Light */
}

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

/* Reusable Components */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
}

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

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

@media (max-width: 968px) {
  .grid-2 {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .grid-2.reversed {
    direction: rtl;
  }
  .grid-2.reversed > * {
    direction: ltr;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 2.2rem;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 3px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-primary {
  background-color: var(--primary);
  color: var(--bg-primary);
  border: 1px solid var(--primary);
  box-shadow: 0 4px 15px rgba(203, 163, 90, 0.15);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--primary-glow);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-light-primary);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.05);
  border-color: var(--text-light-primary);
  transform: translateY(-2px);
}

.btn-block {
  display: flex;
  width: 100%;
}

/* Navigation Bar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--navbar-height);
  z-index: 1000;
  transition: var(--transition-smooth);
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  background-color: rgba(246, 241, 234, 0.9); /* Ivory transparent */
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  height: 70px;
}

.navbar.scrolled .nav-logo {
  color: var(--text-primary);
}

.navbar.scrolled .nav-links a {
  color: var(--text-primary);
}

.navbar.scrolled .menu-toggle .bar {
  background-color: var(--text-primary);
}

.nav-container {
  max-width: 1200px;
  height: 100%;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text-light-primary);
}

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

.nav-links {
  display: flex;
  list-style: none;
  gap: 2.5rem;
}

.nav-links a {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 500;
  color: var(--text-light-primary);
  position: relative;
  padding: 0.5rem 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--primary);
  transition: var(--transition-fast);
}

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

.nav-links a:hover::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-toggle .bar {
  display: block;
  width: 25px;
  height: 2px;
  margin: 5px 0;
  background-color: var(--text-light-primary);
  transition: var(--transition-fast);
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  
  .nav-links {
    position: fixed;
    top: var(--navbar-height);
    left: 100%;
    width: 100%;
    height: calc(100vh - var(--navbar-height));
    background-color: var(--bg-primary);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    transition: var(--transition-smooth);
    border-top: 1px solid var(--border-color);
  }
  
  .nav-links.active {
    left: 0;
  }
  
  .nav-links a {
    font-size: 1.1rem;
    color: var(--text-primary) !important;
  }

  .navbar.scrolled .nav-links {
    top: 70px;
    height: calc(100vh - 70px);
  }
  
  /* Menu icon active state */
  .menu-toggle.active .bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
  }
  .menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: var(--navbar-height);
  background-image: 
    linear-gradient(to right, rgba(0, 0, 0, 0.4) 30%, rgba(0, 0, 0, 0.2) 65%, transparent 100%),
    url('linna_reakes_hero.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(to bottom, transparent 60%, var(--bg-primary) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 650px;
  margin-right: auto;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  animation: fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-badge {
  display: inline-block;
  padding: 0.5rem 1.2rem;
  background-color: rgba(203, 163, 90, 0.15);
  border: 1px solid rgba(203, 163, 90, 0.3);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  border-radius: 50px;
  margin-bottom: 2rem;
}

.hero-title {
  font-size: 4rem;
  line-height: 1.15;
  margin-bottom: 1.8rem;
  color: var(--text-light-primary);
}

@media (max-width: 768px) {
  .hero {
    background-image: 
      linear-gradient(to bottom, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.45) 75%, var(--bg-primary) 100%),
      url('linna_reakes_hero.webp');
    background-position: 66.7% center;
  }
  .hero-content {
    text-align: center;
    align-items: center;
    max-width: 100%;
    margin: 0 auto;
  }
  .hero-title {
    font-size: 2.5rem;
  }
  .hero-subtitle {
    margin-bottom: 2rem;
    font-size: 1.1rem;
  }
  .scroll-indicator {
    display: none !important;
  }
}

.hero-subtitle {
  font-size: 1.2rem;
  max-width: 650px;
  margin-bottom: 3rem;
  line-height: 1.65;
  color: var(--text-light-secondary);
}

.hero-actions {
  display: flex;
  gap: 1.5rem;
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  .hero-actions .btn {
    width: 100%;
  }
}

.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  opacity: 0.7;
}

.scroll-indicator span {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
}

.scroll-indicator .arrow {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--primary), transparent);
  position: relative;
  overflow: hidden;
}

.scroll-indicator .arrow::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: var(--primary);
  animation: scrollDown 2s infinite ease-in-out;
}

/* Sections General */
.section {
  padding: 10rem 0;
  border-bottom: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.section-tagline {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.section-title {
  font-size: 3rem;
  line-height: 1.15;
  margin-bottom: 2rem;
  color: var(--text-primary);
}

@media (max-width: 768px) {
  .section-title {
    font-size: 2.2rem;
  }
  .section {
    padding: 6rem 0;
  }
}

.text-block p {
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.text-block p:last-child {
  margin-bottom: 0;
}

.highlight-text {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--bg-dark);
  line-height: 1.5;
  border-left: 2px solid var(--primary);
  padding-left: 1.5rem;
  margin-top: 2rem;
  font-style: italic;
}

/* Centered Quote Row */
.highlight-row {
  max-width: 550px;
  margin: 3.5rem auto 0;
  width: 100%;
}

.highlight-row .highlight-text {
  margin-top: 0;
}

/* Specific Section Themes */
.about-section {
  background-color: var(--bg-primary);
}

.omr-section {
  background-color: var(--bg-dark);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.omr-section .section-title {
  color: var(--text-light-primary);
}

.omr-section .section-tagline {
  color: var(--primary);
}

.omr-section .text-block p {
  color: var(--text-light-secondary);
}

.omr-section .highlight-text {
  color: var(--text-light-primary);
  border-left-color: var(--primary);
}

/* Image Showcase */
.image-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 3px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
  border: 1px solid var(--border-color);
  aspect-ratio: 3/2;
}

.omr-section .image-wrapper {
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35);
}

.image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.image-wrapper:hover img {
  transform: scale(1.04);
}

/* Stats Section */
.stats-section {
  padding: 6rem 0;
  background-color: var(--bg-espresso);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

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

.stat-card {
  padding: 1rem;
}

.stat-number {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-light-secondary);
  font-weight: 400;
}

/* Connect Section / Card */
.connect-section {
  background-color: var(--bg-primary);
}

.connect-card {
  background-color: var(--bg-espresso);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 3px;
  padding: 4.5rem;
  max-width: 850px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  min-height: 700px;
}

.connect-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 250px;
  height: 250px;
  background-image: radial-gradient(circle, rgba(203, 163, 90, 0.04) 0%, transparent 70%);
  z-index: 1;
}

.connect-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3rem;
  position: relative;
  z-index: 2;
}

.connect-header .section-tagline {
  color: var(--primary);
}

.connect-header .section-title {
  color: var(--text-light-primary);
}

.connect-subtitle {
  margin-top: 1rem;
  color: var(--text-light-secondary);
}

@media (max-width: 768px) {
  .connect-card {
    padding: 2.5rem 1.5rem;
    min-height: 800px;
  }
  .connect-header {
    margin-bottom: 2rem;
  }
}

/* GHL Iframe formatting */
.connect-card iframe {
  position: relative;
  z-index: 2;
  min-height: 610px;
  background-color: transparent;
}

/* Footer */
.footer {
  background-color: #1a1917; /* even darker espresso */
  padding: 5rem 0 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 4rem;
}

.footer-brand {
  max-width: 450px;
}

.footer-logo {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--text-light-primary);
}

.footer-brand p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

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

.footer-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-light-secondary);
}

.footer-socials a:hover {
  color: var(--primary);
  border-color: var(--primary);
  background-color: rgba(203, 163, 90, 0.05);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scrollDown {
  0% { transform: translateY(-20px); opacity: 0; }
  50% { opacity: 1; }
  100% { transform: translateY(20px); opacity: 0; }
}

/* Intersection Observer Reveal States */
.scroll-reveal-left,
.scroll-reveal-right {
  opacity: 0;
  transition: var(--transition-smooth);
}

.scroll-reveal-left {
  transform: translateX(-50px);
}

.scroll-reveal-right {
  transform: translateX(50px);
}

.scroll-reveal-left.active,
.scroll-reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}
