/* ============================================
   Opus Brokerage - Optimized Stylesheet
   Fonts: Libre Baskerville, DM Sans (replacing Helvetica/DIN Next)
   Colors extracted from Wix theme
   ============================================ */

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

:root {
  --primary: #1a2a3a;
  --primary-light: #2a3f55;
  --primary-dark: #0f1c28;
  --accent: #c4805c;
  --accent-light: #d4956f;
  --accent-dark: #a86b4a;
  --gold: #c9a96e;
  --gold-light: #d4b87e;
  --white: #ffffff;
  --off-white: #f7f8fa;
  --light-gray: #e8eaed;
  --gray: #6c757d;
  --text: #2d3436;
  --text-light: #636e72;
  --shadow: 0 4px 20px rgba(26, 42, 58, 0.08);
  --shadow-lg: 0 10px 40px rgba(26, 42, 58, 0.12);
  --shadow-hover: 0 8px 30px rgba(26, 42, 58, 0.16);
  --radius: 6px;
  --radius-lg: 10px;
  --transition: all 0.3s ease;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  line-height: 1.7;
  background: var(--white);
  overflow-x: hidden;
}

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

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

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

a:hover {
  color: var(--accent);
}

/* Typography */
h1, h2, h3, h4 {
  font-family: 'Libre Baskerville', 'Georgia', serif;
  color: var(--primary);
  line-height: 1.3;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.section-title::after {
  content: "";
  display: block;
  width: 100%;
  height: 3px;
  background: var(--accent);
  margin: 8px auto 0;
  border-radius: 2px;
}

.section-divider {
  display: none;
}

.section-title[style*="text-align: left"] {
  margin-left: 0;
  margin-right: 0;
}

.section-subtitle {
  text-align: center;
  color: var(--text-light);
  font-size: 1.1rem;
  max-width: 650px;
  margin: 0 auto 48px;
}

.section {
  padding: 90px 0;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 34px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  text-align: center;
  letter-spacing: 0.5px;
}

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

.btn-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(196, 128, 92, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.6);
}

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

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

.btn-secondary:hover {
  background: var(--primary-light);
  border-color: var(--primary-light);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(26, 42, 58, 0.3);
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(26, 42, 58, 0.06);
  transition: var(--transition);
}

.header.scrolled {
  box-shadow: var(--shadow);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo img {
  height: 48px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  padding: 8px 18px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary);
  border-radius: var(--radius);
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent);
  background: rgba(196, 128, 92, 0.06);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
  border-radius: 2px;
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 28, 40, 0.85) 0%, rgba(26, 42, 58, 0.7) 50%, rgba(42, 63, 85, 0.6) 100%);
}

.hero-content {
  text-align: center;
  position: relative;
  z-index: 2;
  padding: 120px 24px 80px;
}

.hero-pretext {
  font-size: 1rem;
  color: var(--accent-light);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-weight: 500;
  margin-bottom: 20px;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  color: var(--white);
  font-weight: 700;
  margin-bottom: 24px;
  letter-spacing: -0.5px;
  line-height: 1.15;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.75);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.7;
  font-weight: 300;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.4);
  animation: bounce 2s infinite;
  z-index: 2;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-10px); }
  60% { transform: translateX(-50%) translateY(-5px); }
}

/* Clean gradient hero (no background photo) */
.hero-clean {
  background: linear-gradient(145deg, var(--primary-dark) 0%, var(--primary) 40%, var(--primary-light) 100%);
}

.hero-clean::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 70% 60%, rgba(196, 128, 92, 0.08) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 20% 30%, rgba(201, 169, 110, 0.06) 0%, transparent 60%);
  pointer-events: none;
}

.hero-clean .hero-pretext {
  color: var(--gold-light);
}

.hero-clean .hero-scroll {
  color: rgba(255, 255, 255, 0.25);
}

/* Value Proposition */
.value-prop {
  background: var(--white);
  border-bottom: 1px solid var(--light-gray);
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}

.value-card {
  text-align: center;
  padding: 40px 28px;
  border-radius: var(--radius-lg);
  background: var(--off-white);
  border: 1px solid var(--light-gray);
  transition: var(--transition);
}

.value-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--accent);
}

.value-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(196, 128, 92, 0.1);
  border-radius: 50%;
  padding: 14px;
}

.value-icon svg {
  width: 28px;
  height: 28px;
  color: var(--accent);
}

.value-card h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.value-card p {
  color: var(--text-light);
  font-size: 0.9375rem;
  line-height: 1.7;
}

/* About Preview */
.about-preview {
  background: var(--off-white);
}

.about-preview-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: start;
}

.about-preview-text p {
  color: var(--text-light);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 16px;
}

.about-preview-values {
  background: var(--primary);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
}

.about-preview-values h3 {
  color: var(--white);
  font-size: 1.5rem;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--accent);
}

.core-value {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.core-value:last-child {
  margin-bottom: 0;
}

.core-value-symbol {
  font-size: 1rem;
  color: var(--accent);
  min-width: 20px;
  padding-top: 5px;
  line-height: 1;
}

.core-value p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1rem;
  line-height: 1.6;
  padding-top: 4px;
}

/* Process Preview */
.process-preview {
  background: var(--white);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.process-card {
  padding: 36px 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--light-gray);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.process-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--accent);
  transform: scaleY(0);
  transition: var(--transition);
  transform-origin: bottom;
}

.process-card:hover::before {
  transform: scaleY(1);
}

.process-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.process-number {
  font-family: 'Libre Baskerville', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  display: block;
  margin-bottom: 12px;
}

.process-card h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.process-card p {
  color: var(--text-light);
  font-size: 0.9375rem;
  line-height: 1.7;
}

/* CTA */
.cta {
  position: relative;
  text-align: center;
  color: var(--white);
  overflow: hidden;
}

.cta-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.cta-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 28, 40, 0.9) 0%, rgba(26, 42, 58, 0.85) 100%);
}

.cta-content {
  position: relative;
  z-index: 2;
}

.cta h2 {
  color: var(--white);
  font-size: 2.25rem;
  margin-bottom: 16px;
}

.cta p {
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 32px;
  color: rgba(255, 255, 255, 0.8);
}

/* Page Header */
.page-header {
  position: relative;
  padding: 160px 0 80px;
  text-align: center;
  color: var(--white);
  overflow: hidden;
}

.page-header .hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.page-header .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 28, 40, 0.88) 0%, rgba(26, 42, 58, 0.75) 100%);
}

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

.page-header h1 {
  color: var(--white);
  font-size: 3rem;
  margin-bottom: 12px;
}

.page-header p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto;
}

/* About Page */
.company-profile {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.company-profile-text p {
  color: var(--text-light);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 16px;
}

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

.values-section .section-title {
  color: var(--white);
}

.values-section .section-divider {
  background: var(--accent);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  margin-top: 50px;
}

.value-rule {
  text-align: center;
  padding: 36px 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  transition: var(--transition);
}

.value-rule:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-3px);
}

.value-rule .rule-number {
  font-family: 'Libre Baskerville', serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 16px;
}

.value-rule h3 {
  color: var(--white);
  font-size: 1.15rem;
  line-height: 1.5;
}

/* Process Page */
.process-full-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.process-full-card {
  padding: 44px 36px;
  background: var(--off-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--light-gray);
  transition: var(--transition);
}

.process-full-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.process-full-card .process-number {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.process-full-card h3 {
  font-size: 1.35rem;
  margin-bottom: 16px;
}

.process-full-card p {
  color: var(--text-light);
  font-size: 1rem;
  line-height: 1.8;
}

/* Leadership Page */
.leader-section {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  align-items: start;
}

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

.leader-photo-img {
  width: 100%;
  max-width: 350px;
  border-radius: var(--radius-lg);
  margin: 0 auto 24px;
  box-shadow: var(--shadow-lg);
  object-fit: cover;
}

.leader-name {
  font-size: 2rem;
  margin-bottom: 4px;
}

.leader-title-role {
  color: var(--accent);
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.leader-bio p {
  color: var(--text-light);
  font-size: 1.02rem;
  line-height: 1.85;
  margin-bottom: 16px;
}

.leader-bio p:first-child::first-letter {
  font-family: 'Libre Baskerville', serif;
  font-size: 3rem;
  float: left;
  line-height: 1;
  margin: 0 12px 0 0;
  color: var(--accent);
  font-weight: 700;
}

/* Contact Page */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: start;
}

.contact-info-card {
  background: var(--primary);
  padding: 44px;
  border-radius: var(--radius-lg);
  color: var(--white);
}

.contact-info-card h3 {
  color: var(--white);
  font-size: 1.5rem;
  margin-bottom: 28px;
}

.contact-detail {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
  align-items: flex-start;
}

.contact-detail svg {
  width: 24px;
  height: 24px;
  min-width: 24px;
  color: var(--accent-light);
  margin-top: 2px;
}

.contact-detail h4 {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.contact-detail p,
.contact-detail a {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.75);
}

.contact-detail a:hover {
  color: var(--white);
}

.contact-form {
  background: var(--white);
  padding: 44px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.contact-form h3 {
  font-size: 1.5rem;
  margin-bottom: 28px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--light-gray);
  border-radius: var(--radius);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9375rem;
  color: var(--text);
  transition: var(--transition);
  background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(196, 128, 92, 0.1);
}

.form-group textarea {
  height: 140px;
  resize: vertical;
}

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

/* Footer */
.footer {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-logo {
  height: 40px;
  width: auto;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 0.9375rem;
  line-height: 1.7;
  margin-bottom: 8px;
}

.footer-email a {
  color: var(--accent-light);
  font-size: 0.9375rem;
}

.footer-email a:hover {
  color: var(--white);
}

.footer-links h4 {
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 18px;
}

.footer-links a {
  display: block;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.875rem;
  padding: 5px 0;
}

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

.footer-license {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}

.license-img {
  max-width: 200px;
  opacity: 0.7;
}

.footer-bottom {
  text-align: center;
  padding: 24px 0;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.45);
}

.footer-license-text {
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
}

.footer-separator {
  color: rgba(255, 255, 255, 0.25);
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   Responsive
   ============================================ */

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

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    flex-direction: column;
    padding: 24px;
    gap: 4px;
    transform: translateX(100%);
    transition: var(--transition);
    overflow-y: auto;
  }

  .nav.open {
    transform: translateX(0);
  }

  .nav-link {
    width: 100%;
    padding: 14px 16px;
    font-size: 1rem;
  }

  .section {
    padding: 60px 0;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .value-grid,
  .values-grid {
    grid-template-columns: 1fr;
  }

  .process-grid,
  .process-full-grid {
    grid-template-columns: 1fr;
  }

  .about-preview-grid,
  .company-profile,
  .leader-section,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

  .footer-license {
    justify-content: flex-start;
  }

  .page-header {
    padding: 130px 0 50px;
  }

  .page-header h1 {
    font-size: 2.25rem;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .leader-bio p:first-child::first-letter {
    font-size: 2.5rem;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .hero-actions .btn {
    width: 100%;
    max-width: 280px;
  }
}

/* Print */
@media print {
  .header, .hamburger, .hero-scroll, .cta { display: none; }
  .hero { min-height: auto; padding: 40px 0; }
}
