/* CLYRON Design System — Pure CSS */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;500&family=Inter:wght@300;400;500&display=swap');

:root {
  /* Strict Color Palette */
  --white: #FFFFFF;
  --black: #000000;
  --off-white: #F5F1E8;
  --mid-gray: #2E3134;
  --light-gray: #D8D1C3;
  --deep-black: #0B0B0D;
  --gold: #B89B5E;
  --soft-gray: #B9B4AA;
  
  /* System variables */
  --transition-speed: 300ms;
  --max-width: 1100px;
  --reading-width: 720px;
}

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

html, body {
  background-color: var(--white);
  color: var(--black);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-weight: 400;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography Base */
h1, h2, h3, .serif-display {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 300;
  font-style: normal;
}

p, span, a, button, input, textarea, label {
  font-family: 'Inter', sans-serif;
}

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

@media (max-width: 640px) {
  .container {
    padding: 0 24px;
  }
}

/* Editorial Spacing Doctrine */
section {
  padding-top: 120px;
  padding-bottom: 120px;
  position: relative;
  background-color: var(--white);
}

section.alternate-bg {
  background-color: var(--off-white);
}

section.dark-bg {
  background-color: var(--deep-black);
  color: var(--white);
}

@media (max-width: 1024px) {
  section {
    padding-top: 80px;
    padding-bottom: 80px;
  }
}

/* Separation lines */
.divider {
  height: 1px;
  background-color: var(--light-gray);
  width: 64px;
  margin: 40px 0;
}

.divider--center {
  margin: 40px auto;
}

/* Header */
.header {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--white);
  border-bottom: 1px solid var(--light-gray);
  height: 80px;
  display: flex;
  align-items: center;
  transition: background-color var(--transition-speed) ease;
}

.header__container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.header__logo {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.4em;
  font-size: 20px;
  color: var(--black);
  text-decoration: none;
  display: inline-block;
  outline: none;
  padding: 8px 0;
}

.header__logo:focus-visible {
  outline: 1px solid var(--black);
  outline-offset: 4px;
}

.header__nav {
  display: flex;
  gap: 40px;
  align-items: center;
}

.header__link {
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--black);
  text-decoration: none;
  padding: 8px 0;
  outline: none;
  position: relative;
  transition: opacity var(--transition-speed) ease;
}

.header__link:hover {
  opacity: 0.6;
}

.header__link:focus-visible {
  outline: 1px solid var(--black);
  outline-offset: 4px;
}

.header__link--active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: var(--black);
}

/* Mobile Nav Toggle */
.header__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  outline: none;
  z-index: 200;
}

.header__toggle-line {
  display: block;
  width: 20px;
  height: 1px;
  background-color: var(--black);
  margin: 6px 0;
  transition: transform var(--transition-speed) ease, opacity var(--transition-speed) ease;
}

@media (max-width: 640px) {
  .header__logo {
    letter-spacing: 0.25em;
  }
  
  .header__nav {
    display: none;
  }
  
  .header__toggle {
    display: block;
  }
  
  /* Open state animations for toggle */
  .header__toggle--open .header__toggle-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  
  .header__toggle--open .header__toggle-line:nth-child(2) {
    opacity: 0;
  }
  
  .header__toggle--open .header__toggle-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

/* Mobile Nav Overlay */
.mobile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: var(--white);
  z-index: 150;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-speed) ease, visibility var(--transition-speed) ease;
}

.mobile-overlay--open {
  opacity: 1;
  visibility: visible;
}

.mobile-overlay__nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.mobile-overlay__link {
  font-family: 'Cormorant Garamond', serif;
  font-size: 32px;
  font-weight: 300;
  color: var(--black);
  text-decoration: none;
  outline: none;
  transition: opacity var(--transition-speed) ease;
}

.mobile-overlay__link:hover {
  opacity: 0.6;
}

.mobile-overlay__link:focus-visible {
  outline: 1px solid var(--black);
  outline-offset: 8px;
}

/* Roman Numerals Component */
.section-number {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 0.05em;
  color: var(--mid-gray);
  margin-bottom: 48px;
}

.dark-bg .section-number {
  color: var(--mid-gray);
}

/* Hero Typography */
.hero-title {
  font-size: 64px;
  line-height: 1.15;
  letter-spacing: 0;
  color: var(--black);
  max-width: 900px;
  margin-bottom: 40px;
}

@media (max-width: 1024px) {
  .hero-title {
    font-size: 48px;
  }
}

@media (max-width: 640px) {
  .hero-title {
    font-size: 36px;
    line-height: 1.2;
  }
}

.hero-subtitle {
  font-size: 18px;
  line-height: 1.7;
  color: var(--mid-gray);
  font-weight: 400;
  max-width: var(--reading-width);
  margin-bottom: 24px;
}

.hero-title--light {
  color: var(--white);
  max-width: 760px;
  margin-bottom: 24px;
}

.hero-subtitle--light {
  color: var(--off-white);
  margin-bottom: 18px;
}

.home-hero {
  min-height: calc(92vh - 80px);
  display: flex;
  align-items: flex-start;
  overflow: hidden;
  background-color: var(--deep-black);
  color: var(--white);
  padding-top: 0;
  padding-bottom: 0;
}

.home-hero__media {
  position: absolute;
  inset: 0;
  background-image: url('../assets/img/hero-clyron-architecture.png');
  background-size: cover;
  background-position: center right;
  opacity: 0.52;
}

.home-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(11, 11, 13, 0.56);
}

.home-hero__content {
  position: relative;
  z-index: 1;
  padding-top: 78px;
  padding-bottom: 78px;
}

.home-hero__text {
  max-width: 620px;
  color: var(--soft-gray);
  font-size: 18px;
  line-height: 1.7;
  margin-bottom: 40px;
}

.eyebrow {
  color: var(--gold);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

@media (max-width: 640px) {
  .home-hero {
    min-height: auto;
  }

  .home-hero__content {
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .button-row {
    align-items: stretch;
    flex-direction: column;
  }

  .button-row .cta-button {
    width: 100%;
  }
}

/* Em Dash Lists */
.em-dash-list {
  list-style: none;
  margin-bottom: 48px;
}

.em-dash-list li {
  font-size: 18px;
  line-height: 1.7;
  color: var(--black);
  margin-bottom: 12px;
}

.em-dash-list--gray li {
  color: var(--mid-gray);
}

@media (max-width: 640px) {
  .em-dash-list li {
    font-size: 16px;
  }
}

/* CTA Button Component */
.cta-button {
  display: inline-block;
  border: 1px solid var(--black);
  background-color: transparent;
  color: var(--black);
  padding: 20px 40px;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  text-decoration: none;
  text-align: center;
  transition: background-color var(--transition-speed) ease, color var(--transition-speed) ease;
  outline: none;
  cursor: pointer;
  border-radius: 0 !important; /* Hard Ban on rounded corners */
}

.cta-button:hover {
  background-color: var(--black);
  color: var(--white);
}

.cta-button:focus-visible {
  outline: 1px solid var(--black);
  outline-offset: 4px;
}

/* Inverted CTA Button */
.cta-button--inverted {
  border-color: var(--white);
  color: var(--white);
}

.cta-button--inverted:hover {
  background-color: var(--off-white);
  color: var(--black);
}

.cta-button--inverted:focus-visible {
  outline: 1px solid var(--white);
  outline-offset: 4px;
}

.cta-button--ghost {
  border-color: rgba(245, 241, 232, 0.36);
  color: var(--off-white);
}

.cta-button--ghost:hover {
  background-color: transparent;
  border-color: var(--gold);
  color: var(--gold);
}

/* Section Centered Column */
.editorial-centered {
  max-width: var(--reading-width);
  margin: 0 auto;
}

.editorial-centered--text {
  text-align: center;
}

.editorial-centered h2 {
  font-size: 36px;
  line-height: 1.3;
  margin-bottom: 32px;
  color: var(--black);
}

@media (max-width: 640px) {
  .editorial-centered h2 {
    font-size: 28px;
  }
}

.editorial-centered .body-text {
  font-size: 18px;
  line-height: 1.7;
  color: var(--black);
  margin-bottom: 32px;
}

.section-title {
  font-size: 44px;
  line-height: 1.2;
  letter-spacing: 0;
  color: var(--black);
  margin-bottom: 48px;
}

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

@media (max-width: 640px) {
  .section-title {
    font-size: 32px;
  }
}

/* Anchor Phrase Statement */
.anchor-statement {
  font-size: 40px;
  line-height: 1.25;
  letter-spacing: 0;
  color: var(--white);
  max-width: 900px;
  margin: 0 auto;
  font-weight: 300;
}

@media (max-width: 1024px) {
  .anchor-statement {
    font-size: 36px;
  }
}

@media (max-width: 640px) {
  .anchor-statement {
    font-size: 28px;
    line-height: 1.3;
  }
}

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid rgba(184, 155, 94, 0.42);
  border-bottom: 1px solid rgba(184, 155, 94, 0.42);
}

.pillar-item {
  min-height: 280px;
  padding: 40px 28px;
  border-right: 1px solid rgba(184, 155, 94, 0.24);
}

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

.pillar-item h3 {
  color: var(--white);
  font-size: 28px;
  line-height: 1.2;
  margin-bottom: 20px;
}

.pillar-item p {
  color: var(--soft-gray);
  font-size: 15px;
  line-height: 1.7;
  font-weight: 300;
}

.specialty-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 40px;
  margin-top: 28px;
}

.specialty-list li {
  border-top: 1px solid var(--light-gray);
  padding: 18px 0;
  color: var(--mid-gray);
  font-size: 16px;
  line-height: 1.5;
}

.specialty-list li::before {
  content: '—';
  color: var(--gold);
  margin-right: 10px;
}

@media (max-width: 900px) {
  .pillar-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pillar-item:nth-child(2) {
    border-right: none;
  }

  .pillar-item:nth-child(-n+2) {
    border-bottom: 1px solid rgba(184, 155, 94, 0.24);
  }
}

@media (max-width: 640px) {
  .pillar-grid,
  .specialty-list {
    grid-template-columns: 1fr;
  }

  .pillar-item {
    min-height: auto;
    border-right: none;
    border-bottom: 1px solid rgba(184, 155, 94, 0.24);
    padding: 32px 0;
  }

  .pillar-item:last-child {
    border-bottom: none;
  }
}

/* Editorial Vertical List (No Cards, No Icons) */
.editorial-list {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin-top: 48px;
}

.editorial-item {
  border-top: 1px solid var(--light-gray);
  padding: 32px 0;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  align-items: start;
}

.editorial-item:last-child {
  border-bottom: 1px solid var(--light-gray);
}

.editorial-item__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  font-weight: 400;
  color: var(--black);
  line-height: 1.3;
}

.editorial-item__desc {
  font-size: 16px;
  line-height: 1.7;
  color: var(--mid-gray);
  font-weight: 300;
}

@media (max-width: 768px) {
  .editorial-item {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 24px 0;
  }
}

/* Page 2 Strong Close */
.strong-close-desc {
  font-size: 18px;
  line-height: 1.7;
  color: var(--soft-gray);
  max-width: 640px;
  margin: 32px auto 48px auto;
  font-weight: 300;
}

.final-cta {
  padding-top: 140px;
  padding-bottom: 150px;
}

/* Evaluation Page */
.evaluation-hero {
  min-height: 620px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: var(--deep-black);
  color: var(--white);
  padding-top: 0;
  padding-bottom: 0;
}

.evaluation-hero__media {
  position: absolute;
  inset: 0;
  background-image: url('../assets/img/hero-clyron-architecture.png');
  background-size: cover;
  background-position: center right;
  opacity: 0.34;
  filter: contrast(1.18) brightness(0.72);
}

.evaluation-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(11, 11, 13, 0.98) 0%, rgba(11, 11, 13, 0.9) 46%, rgba(11, 11, 13, 0.76) 100%),
    rgba(11, 11, 13, 0.72);
}

.evaluation-hero__content {
  position: relative;
  z-index: 1;
  padding-top: 96px;
  padding-bottom: 96px;
}

.evaluation-hero .eyebrow {
  color: var(--gold);
}

.evaluation-hero .hero-title {
  color: var(--white);
  max-width: 820px;
}

.evaluation-hero .hero-subtitle {
  color: var(--off-white);
  max-width: 720px;
}

.evaluation-hero__list {
  list-style: none !important;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 32px;
  max-width: 720px;
  margin-top: 40px;
  padding-left: 0;
}

.evaluation-hero__list li {
  border-top: 1px solid rgba(184, 155, 94, 0.34);
  color: var(--off-white);
  font-size: 15px;
  line-height: 1.5;
  padding-top: 14px;
  margin: 0;
}

.evaluation-hero__list li::before {
  content: '—';
  color: var(--gold);
  margin-right: 10px;
}

.evaluation-form-section {
  background-color: var(--off-white);
  padding-top: 110px;
  padding-bottom: 120px;
}

.evaluation-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 0.75fr);
  gap: 80px;
  align-items: start;
}

.evaluation-intro {
  max-width: 560px;
}

.evaluation-intro h2 {
  font-size: 44px;
  line-height: 1.18;
  color: var(--black);
  margin-bottom: 28px;
}

.evaluation-intro p {
  color: var(--mid-gray);
  font-size: 18px;
  line-height: 1.75;
  margin-bottom: 36px;
}

.evaluation-note {
  border-top: 1px solid var(--gold);
  color: var(--mid-gray);
  font-size: 14px;
  line-height: 1.7;
  padding-top: 24px;
}

.evaluation-form-panel {
  border-top: 1px solid var(--gold);
  border-bottom: 1px solid var(--light-gray);
  padding: 40px 0 8px;
}

.evaluation-closing {
  padding-top: 140px;
  padding-bottom: 150px;
}

@media (max-width: 900px) {
  .evaluation-grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }
}

@media (max-width: 640px) {
  .evaluation-hero {
    min-height: auto;
  }

  .evaluation-hero__content {
    padding-top: 72px;
    padding-bottom: 76px;
  }

  .evaluation-hero__list {
    grid-template-columns: 1fr;
    margin-top: 32px;
  }

  .evaluation-form-section {
    padding-top: 78px;
    padding-bottom: 86px;
  }

  .evaluation-intro h2 {
    font-size: 34px;
  }

  .evaluation-form-panel {
    padding-top: 32px;
  }
}

/* Form Styles */
.form-container {
  max-width: 560px;
  margin: 0;
}

@media (max-width: 640px) {
  .form-container {
    width: 100%;
    padding: 0;
  }
}

.diagnostico-form {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.form-group {
  display: flex;
  flex-direction: column;
  position: relative;
}

.form-label {
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--mid-gray);
  margin-bottom: 12px;
}

.form-input {
  font-size: 16px;
  color: var(--black);
  background-color: transparent;
  border: none;
  border-bottom: 1px solid var(--light-gray);
  padding: 8px 0;
  width: 100%;
  outline: none;
  border-radius: 0 !important; /* Hard ban on rounded corners */
  transition: border-color var(--transition-speed) ease;
}

.form-input:focus {
  border-bottom-color: var(--gold);
}

.form-input:focus-visible {
  outline: none;
}

textarea.form-input {
  resize: none;
}

.form-honeypot {
  position: absolute;
  top: 0;
  left: 0;
  height: 0;
  width: 0;
  opacity: 0;
  pointer-events: none;
  z-index: -1;
}

/* Success State & Exclusivity Card (just styled text block) */
.success-message {
  font-size: 32px;
  line-height: 1.4;
  color: var(--black);
  text-align: center;
  padding: 80px 0;
  font-weight: 300;
  max-width: 640px;
  margin: 0 auto;
}

@media (max-width: 640px) {
  .success-message {
    font-size: 24px;
    padding: 40px 0;
  }
}

.diagnostico-info {
  font-size: 16px;
  line-height: 1.7;
  color: var(--mid-gray);
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px auto;
  font-weight: 400;
}

.final-closing {
  font-size: 36px;
  line-height: 1.4;
  color: var(--black);
  text-align: center;
  font-weight: 300;
  max-width: 720px;
  margin: 0 auto;
  padding: 200px 0;
}

@media (max-width: 640px) {
  .final-closing {
    font-size: 24px;
    padding: 120px 0;
  }
}

/* Fade-In Scroll Animations */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 400ms ease-out, transform 400ms ease-out;
}

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

@media (prefers-reduced-motion: reduce) {
  .fade-in {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* Footer */
.footer {
  border-top: 1px solid var(--light-gray);
  padding: 48px 0;
  background-color: var(--off-white);
}

.footer__container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  text-align: left;
}

.footer__brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 400;
  color: var(--black);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.footer__text {
  font-size: 11px;
  color: var(--mid-gray);
  letter-spacing: 0.05em;
  font-weight: 400;
  margin-bottom: 6px;
}

.footer__links {
  display: flex;
  gap: 22px;
  align-items: center;
}

.footer__links a {
  color: var(--black);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
}

.footer__links a:hover {
  color: var(--gold);
}

@media (max-width: 640px) {
  .footer__container,
  .footer__links {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer__links {
    gap: 14px;
  }
}
