/* Theme overrides — loaded after styles.css */
:root {
  --ink: #0b1220;
  --ink-2: #111a2e;
  --ink-3: #1b2740;
  --paper: #f6f8fb;
  --line: #e3e8ef;
  --text: #1c2536;
  --muted: #5b667a;
  --accent: #2dd4bf;
  --accent-strong: #14b8a6;
  --accent-ink: #042f2a;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --bs-primary: var(--accent-strong);
  --bs-primary-rgb: 20, 184, 166;
}

html { scroll-behavior: smooth; scroll-padding-top: 4.5rem; }
body {
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5 {
  font-family: var(--font);
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-transform: none !important;
}
a { color: var(--accent-strong); }
a:hover { color: var(--accent); }

.bg-light { background-color: var(--paper) !important; }
.bg-dark { background-color: var(--ink) !important; }
.bg-black { background-color: var(--ink) !important; }
.text-muted, .text-black-50 { color: var(--muted) !important; }

/* Section headings */
section h1.section-title,
#audits h1, #projects h1, #about h1 {
  font-size: clamp(1.9rem, 3.5vw, 2.6rem) !important;
  font-weight: 700 !important;
  letter-spacing: -0.025em;
  line-height: 1.15 !important;
}
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-strong);
  margin-bottom: 0.75rem;
}

/* Buttons */
.btn {
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  padding: 0.85rem 1.75rem;
  border-radius: 0.6rem;
  box-shadow: none !important;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover, .btn-primary:focus { background: #5eead4; color: var(--accent-ink); }
.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}
.btn-ghost:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, 0.06); }

/* Nav */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(11, 18, 32, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.site-nav .inner {
  max-width: 1140px; margin: 0 auto; padding: 0.75rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.site-nav .brand { display: flex; align-items: center; gap: 0.6rem; color: #fff; font-weight: 700; text-decoration: none; letter-spacing: -0.01em; }
.site-nav .brand img { height: 30px; width: auto; filter: invert(1); }
.site-nav .links { display: flex; align-items: center; gap: 1.5rem; }
.site-nav .links a { color: rgba(255, 255, 255, 0.75); text-decoration: none; font-size: 0.95rem; font-weight: 500; }
.site-nav .links a:hover { color: #fff; }
.site-nav .links a.btn { color: var(--accent-ink); padding: 0.45rem 1rem; font-size: 0.9rem; }
@media (max-width: 640px) { .site-nav .links a:not(.btn) { display: none; } }

/* Hero */
.masthead {
  position: relative;
  overflow: hidden;
  min-height: 0;
  padding: 9rem 0 6rem;
  background:
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(45, 212, 191, 0.16), transparent 70%),
    linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%);
  color: #fff;
}
.masthead::before {
  content: "";
  position: absolute; inset: 0;
  background: url("../assets/img/Ramon_Llull_-_Ars_Magna_Fig_1_inverted_transparent.png") no-repeat right -8% center / min(55vw, 640px);
  opacity: 0.12;
  pointer-events: none;
}
.masthead .container { position: relative; }
.masthead h1 {
  font-family: var(--font);
  font-size: clamp(2.3rem, 5.5vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 800;
  background: none;
  -webkit-text-fill-color: #fff;
  color: #fff;
  max-width: 16ch;
}
.masthead h1 em { font-style: normal; color: var(--accent); -webkit-text-fill-color: var(--accent); }
.masthead .lead {
  max-width: 40rem;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: rgba(255, 255, 255, 0.78);
  margin: 1.5rem 0 2.25rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.trust-strip {
  margin-top: 4rem; padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.75rem;
  color: rgba(255, 255, 255, 0.55); font-size: 0.9rem;
}
.trust-strip strong { color: rgba(255, 255, 255, 0.9); font-weight: 600; letter-spacing: 0.01em; }
.trust-strip .label { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.75rem; }

/* Why Omega */
.why-section { padding: 6rem 0; background: #fff; }
.feature-card {
  height: 100%;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 2rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(11, 18, 32, 0.08); }
.feature-card .icon {
  width: 2.75rem; height: 2.75rem; border-radius: 0.7rem;
  display: flex; align-items: center; justify-content: center;
  background: var(--ink); color: var(--accent); margin-bottom: 1.25rem; font-size: 1.1rem;
}
.feature-card h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.6rem; }
.feature-card p { color: var(--muted); margin: 0; }
.why-links { margin-top: 2.5rem; color: var(--muted); }

/* About */
.projects-section { padding: 2rem 0; }
.projects-section img.rounded-circle { object-fit: cover; border: 4px solid #fff; box-shadow: 0 10px 30px rgba(11, 18, 32, 0.12) !important; }

/* Testimonials */
.testimonial-section {
  margin-top: 0; padding: 6rem 0;
  background: #fff; overflow: visible;
}
.testimonial-header { color: var(--ink); font-size: clamp(1.9rem, 3.5vw, 2.6rem); font-weight: 700; margin-bottom: 3rem; }
.testimonial-section .row > div { display: flex; }
.testimonial-card {
  display: flex; flex-direction: column; width: 100%;
  margin: 0.75rem 0; padding: 2rem; text-align: left;
  background: var(--paper); color: var(--text);
  border: 1px solid var(--line); border-radius: 1rem; box-shadow: none;
}
.testimonial-text { font-size: 1.02rem; line-height: 1.6; flex: 1; margin-bottom: 1.25rem; }
.testimonial-text::before { content: "\201C"; display: block; font-size: 2.6rem; line-height: 1; color: var(--accent-strong); margin-bottom: 0.25rem; }
.testimonial-author { color: var(--muted); font-size: 0.9rem; font-weight: 600; margin: 0 0 1rem; }
.testimonial-card .client-logo {
  margin: 0; width: 56px; height: 56px; background: #fff;
  border: 1px solid var(--line); order: 3;
}
.testimonial-card .client-logo:hover { transform: none; }

/* Partners (dark; logo filters in index.html rely on a dark bg) */
#projects { padding: 5rem 0 !important; }
#projects h1 { color: #fff; }

/* Reports */
#audits { padding-top: 5rem; }
#audits .container .container h1 { color: var(--ink) !important; }
.audit-card img, #audits img.img-fluid { border: 1px solid var(--line); box-shadow: 0 6px 20px rgba(11, 18, 32, 0.08); transition: transform 0.2s ease, box-shadow 0.2s ease; }
#audits a:hover img { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(11, 18, 32, 0.14); }
#audits h5 { font-size: 0.95rem !important; font-weight: 600; line-height: 1.3; }

/* Contact */
.contact-section { padding: 6rem 0 5rem; background: var(--ink) !important; }
.contact-section .card {
  background: var(--ink-2); border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem; color: #fff;
}
.contact-section .card h4 { color: #fff; font-family: var(--font); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.12em; }
.contact-section .card hr { border-color: var(--accent); border-width: 2px; opacity: 1; width: 2rem; }
.contact-section .card .text-primary { color: var(--accent) !important; font-size: 1.4rem; }
.contact-section .card .small, .contact-section .card .text-black-50 { color: rgba(255, 255, 255, 0.7) !important; font-size: 0.95rem !important; }
.contact-section .card a { color: #fff; }
.contact-section .card a:hover { color: var(--accent); }
.footer { background: var(--ink) !important; padding: 3rem 0; border-top: 1px solid rgba(255, 255, 255, 0.06); }
.footer a { color: rgba(255, 255, 255, 0.55); }
