/* ============================================================
   CORP.INTELLIQUINTE.COM — Corporate Design System
   Intelliquinte L.L.C. — Holding Company
   Clean, editorial, light corporate aesthetic
   ============================================================ */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Raleway', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.8;
  color: #1A1A1A;
  background-color: #FFFFFF;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, video, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, textarea, select { font: inherit; color: inherit; border: none; background: none; outline: none; }
button { cursor: pointer; }

/* --- Design Tokens --- */
:root {
  --black:        #000000;
  --white:        #FFFFFF;
  --gray-50:      #FAFAFA;
  --gray-100:     #F4F4F5;
  --gray-200:     #E4E4E7;
  --gray-300:     #D4D4D8;
  --gray-400:     #A1A1AA;
  --gray-500:     #71717A;
  --gray-600:     #52525B;
  --gray-700:     #3F3F46;
  --gray-800:     #27272A;
  --gray-900:     #18181B;

  --text-primary:    var(--gray-900);
  --text-secondary:  var(--gray-600);
  --text-muted:      var(--gray-500);
  --text-light:      var(--gray-400);
  --text-inverse:    var(--white);

  --bg-primary:      var(--white);
  --bg-secondary:    var(--gray-50);
  --bg-muted:        var(--gray-100);
  --bg-dark:         var(--gray-900);

  --border-light:    var(--gray-200);
  --border-medium:   var(--gray-300);

  --font-body:    'Raleway', sans-serif;
  --font-display: 'Poppins', sans-serif;

  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  2rem;
  --text-4xl:  2.75rem;
  --text-5xl:  clamp(2.75rem, 5vw, 4rem);

  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;
  --space-40: 10rem;

  --max-width:    1080px;
  --max-width-sm: 720px;
  --nav-height:   72px;
  --radius-sm:    4px;
  --radius-md:    8px;
  --radius-lg:    12px;

  --shadow-sm:   0 1px 2px rgba(0,0,0,0.05);
  --shadow-md:   0 4px 12px rgba(0,0,0,0.06);
  --shadow-lg:   0 12px 32px rgba(0,0,0,0.08);

  --ease:     cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --dur-fast: 0.15s;
  --dur-base: 0.3s;
  --dur-slow: 0.6s;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-body);
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  font-weight: 700;
}

h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-4xl); font-weight: 600; }
h3 { font-size: var(--text-3xl); font-weight: 600; }
h4 { font-size: var(--text-2xl); font-weight: 600; }
h5 { font-size: var(--text-xl); font-weight: 600; }

p {
  margin-bottom: var(--space-4);
  color: var(--text-secondary);
}

.text-display { font-family: var(--font-display); }
.text-sm { font-size: var(--text-sm); }
.text-xs { font-size: var(--text-xs); }
.text-muted { color: var(--text-muted); }

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-8);
}

.container-sm {
  max-width: var(--max-width-sm);
  margin: 0 auto;
  padding: 0 var(--space-8);
}

section {
  padding: var(--space-24) 0;
}

.section-light {
  background: var(--bg-secondary);
}

.section-dark {
  background: var(--bg-dark);
  color: var(--text-inverse);
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4,
.section-dark h5,
.section-dark h6 {
  color: var(--text-inverse);
}

.section-dark p {
  color: var(--gray-200);
}

.section-dark .section-label {
  color: var(--gray-400);
}

.section-header {
  margin-bottom: var(--space-10);
}

.section-label {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  margin-bottom: var(--space-4);
}

/* Grid */
.grid { display: grid; gap: var(--space-8); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

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

.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.text-center { text-align: center; }

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-base) var(--ease);
}

.nav.scrolled {
  border-bottom-color: var(--border-light);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-8);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo img.nav-icon {
  height: 26px;
  width: auto;
}

.nav-logo img.nav-wordmark {
  height: 14px;
  width: auto;
}

.nav-logo .nav-llc {
  font-family: 'Raleway', sans-serif;
  font-size: 11px;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  margin-left: -4px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.nav-links a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--dur-fast) var(--ease);
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 24px;
  height: 24px;
  justify-content: center;
  cursor: pointer;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--text-primary);
  transition: transform var(--dur-base) var(--ease), opacity var(--dur-fast) var(--ease);
}

.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

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

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    width: 260px;
    height: 100vh;
    flex-direction: column;
    align-items: flex-start;
    padding: calc(var(--nav-height) + var(--space-8)) var(--space-8);
    gap: var(--space-5);
    background: var(--bg-primary);
    border-left: 1px solid var(--border-light);
    transform: translateX(100%);
    transition: transform var(--dur-base) var(--ease);
  }

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

  .nav-links a {
    font-size: var(--text-base);
    padding: var(--space-2) 0;
    width: 100%;
  }
}

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.15);
  z-index: 999;
  opacity: 0;
  transition: opacity var(--dur-base) var(--ease);
}
.nav-overlay.visible { display: block; opacity: 1; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-weight: 600;
  font-size: var(--text-sm);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-sm);
  transition: all var(--dur-fast) var(--ease);
  white-space: nowrap;
  border: 1.5px solid transparent;
}

.btn-primary {
  background: var(--text-primary);
  color: var(--text-inverse);
  border-color: var(--text-primary);
}
.btn-primary:hover {
  background: var(--gray-700);
  border-color: var(--gray-700);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--border-medium);
}
.btn-secondary:hover {
  border-color: var(--text-primary);
}

.btn-lg {
  font-size: var(--text-base);
  padding: var(--space-4) var(--space-8);
}

/* ============================================================
   HERO
   ============================================================ */
.corp-hero {
  padding: calc(var(--nav-height) + var(--space-32)) 0 var(--space-24);
}

.corp-hero-eyebrow {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  margin-bottom: var(--space-6);
}

.corp-hero h1 {
  font-size: var(--text-5xl);
  line-height: 1.1;
  letter-spacing: -0.035em;
  margin-bottom: var(--space-8);
  max-width: 700px;
}

.corp-hero .lead {
  font-size: var(--text-xl);
  color: var(--text-secondary);
  max-width: 580px;
  margin-bottom: 0;
  line-height: 1.7;
}

/* --- Fact Strip --- */
.fact-strip {
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  padding: 0;
}

.fact-strip-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.fact-item {
  padding: var(--space-8) var(--space-6);
  border-right: 1px solid var(--border-light);
}

.fact-item:last-child { border-right: none; }

.fact-item .fact-value {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: var(--space-1);
}

.fact-item .fact-label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

@media (max-width: 768px) {
  .fact-strip-inner {
    grid-template-columns: 1fr 1fr;
  }
  .fact-item:nth-child(2) { border-right: none; }
  .fact-item:nth-child(1),
  .fact-item:nth-child(2) {
    border-bottom: 1px solid var(--border-light);
  }
}

/* ============================================================
   BRANDS / PORTFOLIO
   ============================================================ */
.brands-section {
  background: var(--bg-secondary);
}

.section-eyebrow {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  margin-bottom: var(--space-4);
}

.brands-section h2 {
  margin-bottom: var(--space-3);
}

.brands-section > .container > p {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  max-width: 560px;
  margin-bottom: var(--space-12);
  line-height: 1.7;
}

.brand-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-10);
  transition: box-shadow var(--dur-base) var(--ease);
}

.brand-card:hover {
  box-shadow: var(--shadow-lg);
}

.brand-card-eyebrow {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: var(--space-5);
}

.brand-card h3 {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-4);
}

.brand-card > p {
  color: var(--text-secondary);
  margin-bottom: var(--space-6);
  line-height: 1.7;
}

.brand-detail-list {
  margin-bottom: var(--space-8);
}

.brand-detail-list li {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  padding: var(--space-3) 0;
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-detail-list li:last-child {
  border-bottom: 1px solid var(--border-light);
}

.brand-detail-list .detail-label {
  color: var(--text-muted);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.brand-detail-list .detail-value {
  font-weight: 600;
  color: var(--text-primary);
}

.brand-card-link {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  transition: gap var(--dur-fast) var(--ease);
}

.brand-card-link:hover {
  gap: var(--space-3);
}

.brand-card-link svg {
  transition: transform var(--dur-fast) var(--ease);
}

.brand-card-link:hover svg {
  transform: translateX(2px);
}

/* ============================================================
   PRINCIPLES
   ============================================================ */
.principles-section {
  border-top: 1px solid var(--border-light);
}

.principles-header {
  margin-bottom: var(--space-16);
  max-width: 560px;
}

.principles-header h2 {
  margin-bottom: var(--space-4);
}

.principles-header p {
  font-size: var(--text-lg);
  line-height: 1.7;
}

.principle-item {
  padding-bottom: var(--space-10);
  border-bottom: 1px solid var(--border-light);
}

.principle-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.principle-number {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: var(--space-4);
}

.principle-item h4 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
}

.principle-item p {
  font-size: var(--text-base);
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.7;
  max-width: 520px;
}

/* ============================================================
   GOVERNANCE / STRUCTURE
   ============================================================ */
.structure-section {
  background: var(--bg-secondary);
}

.structure-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: start;
}

.structure-content h2 {
  margin-bottom: var(--space-6);
}

.structure-content > p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-8);
}

.structure-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.structure-list-item {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
}

.structure-list-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  flex-shrink: 0;
  color: var(--text-primary);
}

.structure-list-item h5 {
  font-size: var(--text-base);
  font-weight: 600;
  margin-bottom: 2px;
}

.structure-list-item p {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin: 0;
  line-height: 1.6;
}

.structure-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border-light);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.metric-card {
  background: var(--bg-primary);
  padding: var(--space-8);
  text-align: center;
}

.metric-card .metric-value {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: var(--space-2);
}

.metric-card .metric-label {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .structure-grid {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }
}

/* ============================================================
   CTA
   ============================================================ */
.cta-section {
  border-top: 1px solid var(--border-light);
  padding: var(--space-24) 0;
}

.cta-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-8);
}

.cta-inner h2 {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-2);
}

.cta-inner p {
  color: var(--text-secondary);
  margin: 0;
  max-width: 480px;
}

.cta-actions {
  display: flex;
  gap: var(--space-4);
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .cta-inner {
    flex-direction: column;
    text-align: center;
  }
  .cta-actions {
    flex-direction: column;
    width: 100%;
  }
  .cta-actions .btn { width: 100%; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--bg-primary);
  color: var(--text-muted);
  padding: var(--space-16) 0 var(--space-8);
  border-top: 1px solid var(--border-light);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-12);
  margin-bottom: var(--space-12);
}

.footer-brand h4 {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.footer-brand p {
  font-size: var(--text-sm);
  color: var(--text-muted);
  max-width: 280px;
  margin: 0;
}

.footer-links {
  display: flex;
  gap: var(--space-16);
}

.footer-col h5 {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-primary);
  margin-bottom: var(--space-4);
}

.footer-col a {
  display: block;
  font-size: var(--text-sm);
  color: var(--text-muted);
  padding: 2px 0;
  transition: color var(--dur-fast) var(--ease);
}
.footer-col a:hover { color: var(--text-primary); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-6);
  border-top: 1px solid var(--border-light);
  font-size: var(--text-xs);
  color: var(--text-light);
}

.footer-bottom p { margin: 0; color: var(--text-light); }
.footer-bottom a {
  color: var(--text-muted);
  transition: color var(--dur-fast) var(--ease);
}
.footer-bottom a:hover { color: var(--text-primary); }

.footer-legal-links {
  display: flex;
  gap: var(--space-6);
}

@media (max-width: 768px) {
  section { padding: var(--space-16) 0; }

  .corp-hero {
    padding-top: calc(var(--nav-height) + var(--space-16));
  }

  h1 { font-size: clamp(2rem, 7vw, 3.5rem); }
  h2 { font-size: var(--text-3xl); }

  .container { padding: 0 var(--space-6); }

  .footer-inner {
    flex-direction: column;
    gap: var(--space-8);
  }

  .footer-links { flex-direction: column; gap: var(--space-6); }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-3);
    text-align: center;
  }
}

/* --- Legal --- */
.legal-content {
  padding: calc(var(--nav-height) + var(--space-16)) 0 var(--space-24);
}

.legal-content h1 {
  font-size: var(--text-4xl);
  margin-bottom: var(--space-2);
}

.legal-content .legal-date {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-bottom: var(--space-12);
}

.legal-content h2 {
  font-size: var(--text-2xl);
  margin-top: var(--space-12);
  margin-bottom: var(--space-4);
}

.legal-content h3 {
  font-size: var(--text-xl);
  margin-top: var(--space-8);
  margin-bottom: var(--space-3);
}

.legal-content p { margin-bottom: var(--space-4); }

.legal-content ul {
  list-style: disc;
  padding-left: var(--space-6);
  margin-bottom: var(--space-4);
}

.legal-content ul li {
  font-size: var(--text-base);
  color: var(--text-secondary);
  margin-bottom: var(--space-2);
}

.legal-content a {
  color: var(--text-primary);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--border-medium);
  text-underline-offset: 3px;
  transition: text-decoration-color var(--dur-fast);
}
.legal-content a:hover {
  text-decoration-color: var(--text-primary);
}

/* Page Hero */
.page-hero {
  padding: calc(var(--nav-height) + var(--space-20)) 0 var(--space-12);
}

.page-hero h1 { margin-bottom: var(--space-4); }
.page-hero .lead {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  max-width: 600px;
}

/* --- Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.24s; }
.reveal-delay-3 { transition-delay: 0.36s; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* Justify helper */
.justify-center { justify-content: center; }
