/* ============================================================
   SCHOLARLY PRESENCE — styles.css
   Black / gray / white academic palette
   Fonts: Cormorant Garamond (serif) + DM Sans (sans)
   ============================================================ */

/* --- Variables --- */
:root {
  --black:       #111111;
  --charcoal:    #1a1a1a;
  --gray-dark:   #333333;
  --gray:        #777777;
  --gray-light:  #d8d8d8;
  --gray-soft:   #f5f5f5;
  --white:       #ffffff;
  --text:        #222222;
  --muted:       #6f6f6f;
  --serif:       'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans:        'DM Sans', system-ui, -apple-system, sans-serif;
  --max-width:   1180px;
  --nav-height:  76px;
  --radius:      3px;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: var(--sans); }

/* --- Container --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(1.9rem, 3.8vw, 3.1rem); }
h2 { font-size: clamp(1.55rem, 2.8vw, 2.3rem); }
h3 { font-size: 1.12rem; font-weight: 500; }

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 0.62rem 1.5rem;
  font-family: var(--sans);
  font-size: 0.855rem;
  font-weight: 400;
  letter-spacing: 0.025em;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: background 0.18s, border-color 0.18s, color 0.18s;
  cursor: pointer;
  white-space: nowrap;
}
.btn-dark  { background: var(--black);  color: var(--white); border-color: var(--black); }
.btn-dark:hover  { background: var(--charcoal); border-color: var(--charcoal); }
.btn-outline { background: transparent; color: var(--black); border-color: var(--gray-dark); }
.btn-outline:hover { border-color: var(--black); }
.btn-light { background: var(--white); color: var(--black); border-color: var(--white); }
.btn-light:hover { background: var(--gray-soft); }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--white);
  border-bottom: 1px solid var(--gray-light);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
  gap: 2rem;
}

.brand { display: flex; flex-direction: column; flex-shrink: 0; }

.brand-name {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--black);
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.brand-tagline {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gray);
  margin-top: 3px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}

.main-nav ul a {
  font-size: 0.845rem;
  color: var(--gray-dark);
  transition: color 0.15s;
}
.main-nav ul a:hover { color: var(--black); }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--black);
  padding: 0.25rem;
  line-height: 1;
}

/* Mobile menu */
.mobile-menu {
  display: none;
  background: var(--white);
  border-top: 1px solid var(--gray-light);
  padding: 1.25rem 2rem 1.75rem;
}
.mobile-menu.open { display: block; }
.mobile-menu ul { display: flex; flex-direction: column; gap: 1.1rem; }
.mobile-menu ul a {
  font-size: 1rem;
  color: var(--gray-dark);
  display: block;
  padding: 0.1rem 0;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding: 5.5rem 0 4.5rem;
  background: var(--white);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-text h1 {
  color: var(--black);
  margin-bottom: 1.75rem;
  max-width: 530px;
}

.hero-text p {
  font-size: 0.975rem;
  color: var(--text);
  max-width: 490px;
  margin-bottom: 0.9rem;
  line-height: 1.78;
}

.hero-sub {
  font-size: 0.9rem;
  color: var(--muted);
  font-style: italic;
  margin-top: 0.5rem;
}

.hero-actions {
  display: flex;
  gap: 0.85rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

/* --- Browser Frame (hero visual) --- */
.browser-frame {
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 48px rgba(17,17,17,0.10), 0 2px 8px rgba(17,17,17,0.05);
}

.browser-bar {
  background: var(--gray-soft);
  padding: 0.55rem 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  border-bottom: 1px solid var(--gray-light);
}

.browser-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gray-light);
  flex-shrink: 0;
}

.browser-url {
  flex: 1;
  text-align: center;
  font-size: 0.62rem;
  color: var(--gray);
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: 3px;
  padding: 0.12rem 0.5rem;
  margin-left: 0.4rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* --- Mock scholar site inside browser --- */
.mock-site { font-size: 0; }

.mock-nav {
  background: var(--white);
  border-bottom: 1px solid var(--gray-light);
  padding: 0.45rem 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.mock-brand {
  font-family: var(--serif);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--black);
  white-space: nowrap;
}

.mock-links {
  display: flex;
  gap: 0.45rem;
}

.mock-links span {
  font-size: 0.5rem;
  color: var(--gray);
}

.mock-hero-area {
  background: var(--gray-soft);
  padding: 1.1rem 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.mock-text-col { flex: 1; }

.mock-h2 {
  font-family: var(--serif);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--black);
  margin-bottom: 0.25rem;
  line-height: 1.2;
}

.mock-role {
  font-size: 0.5rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.mock-btn {
  display: inline-block;
  font-size: 0.48rem;
  padding: 0.2rem 0.55rem;
  background: var(--black);
  color: var(--white);
  border-radius: 2px;
  letter-spacing: 0.03em;
}

.mock-photo {
  width: 56px;
  height: 68px;
  border-radius: 2px;
  background: linear-gradient(135deg, #d0d0d0 0%, #b8b8b8 100%);
  flex-shrink: 0;
}

.mock-sections {
  padding: 0.6rem 0.75rem;
  display: flex;
  gap: 0.5rem;
}

.mock-section-bar {
  font-size: 0.48rem;
  color: var(--muted);
  padding: 0.18rem 0.45rem;
  border: 1px solid var(--gray-light);
  border-radius: 2px;
}

/* ============================================================
   VALUE CARDS
   ============================================================ */
.values {
  padding: 4rem 0;
  background: var(--gray-soft);
  border-top: 1px solid var(--gray-light);
  border-bottom: 1px solid var(--gray-light);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.value-card {
  padding: 2.25rem 1.75rem;
  text-align: center;
  border-right: 1px solid var(--gray-light);
}
.value-card:last-child { border-right: none; }

.value-icon {
  width: 34px;
  height: 34px;
  margin: 0 auto 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.value-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--gray-dark);
}

.value-card h3 {
  font-size: 1rem;
  color: var(--black);
  margin-bottom: 0.7rem;
  line-height: 1.3;
}

.value-card p {
  font-size: 0.855rem;
  color: var(--muted);
  line-height: 1.68;
}

/* ============================================================
   MORE THAN A WEBSITE
   ============================================================ */
.more-than {
  padding: 6rem 0;
  background: var(--white);
}

.more-than-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.more-than-text h2 {
  color: var(--black);
  margin-bottom: 0.8rem;
}

.section-rule {
  width: 36px;
  height: 2px;
  background: var(--gray-dark);
  margin-bottom: 1.5rem;
}

.more-than-text > p {
  font-size: 0.975rem;
  color: var(--text);
  line-height: 1.78;
  margin-bottom: 1.5rem;
  max-width: 440px;
}

.check-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.check-list li {
  font-size: 0.9rem;
  color: var(--text);
  padding-left: 1.5rem;
  position: relative;
  line-height: 1.55;
}

.check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--gray-dark);
  font-size: 0.7rem;
  top: 3px;
}

/* --- Library Visual (CSS illustration) --- */
.library-visual {
  border-radius: 4px;
  overflow: hidden;
  background: #1a1210;
  padding: 1.75rem 1.75rem 0;
  position: relative;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-shadow: 0 8px 40px rgba(17,17,17,0.18);
}

.library-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(170deg, #2a2018 0%, #111008 100%);
  z-index: 0;
}

.shelf-back {
  position: absolute;
  bottom: 90px;
  left: 0; right: 0;
  height: 8px;
  background: #2d2010;
  z-index: 1;
}

.bookshelf-row {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  position: relative;
  z-index: 2;
  padding-bottom: 4px;
}

.book {
  border-radius: 1px 1px 0 0;
  flex-shrink: 0;
  position: relative;
}

.book::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 3px;
  height: 100%;
  background: rgba(255,255,255,0.05);
}

.shelf-plank {
  height: 10px;
  background: #3a2a18;
  border-top: 1px solid #4a3a25;
  position: relative;
  z-index: 2;
  box-shadow: 0 3px 8px rgba(0,0,0,0.4);
}

.desk-surface {
  height: 55px;
  background: #2a1f12;
  display: flex;
  align-items: center;
  padding: 0 1.25rem;
  gap: 1.2rem;
  position: relative;
  z-index: 2;
  border-top: 1px solid #3d2e1a;
}

.globe-obj {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #2e3d52, #1a2535);
  border: 1px solid #3a4d62;
  flex-shrink: 0;
}

.open-book-obj {
  display: flex;
  align-items: flex-end;
  gap: 1px;
  flex-shrink: 0;
}

.ob-page {
  width: 22px; height: 16px;
  background: #e8e0d0;
  border-radius: 1px;
}
.ob-left { border-radius: 1px 0 0 1px; transform: perspective(50px) rotateY(8deg); }
.ob-right { border-radius: 0 1px 1px 0; transform: perspective(50px) rotateY(-8deg); }

.mug-obj {
  width: 20px; height: 24px;
  border-radius: 2px 2px 5px 5px;
  background: #5a4530;
  border: 1px solid #6a5540;
  flex-shrink: 0;
  position: relative;
}

.mug-obj::after {
  content: '';
  position: absolute;
  right: -7px; top: 5px;
  width: 7px; height: 10px;
  border: 1px solid #6a5540;
  border-left: none;
  border-radius: 0 4px 4px 0;
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.how-it-works {
  padding: 6rem 0;
  background: var(--gray-soft);
  border-top: 1px solid var(--gray-light);
  border-bottom: 1px solid var(--gray-light);
}

.section-header {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 4rem;
}

.section-header h2 { color: var(--black); }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  top: 17px;
  left: calc(1/6 * 100%);
  right: calc(1/6 * 100%);
  height: 1px;
  background: var(--gray-light);
  z-index: 0;
}

.step {
  padding: 0 2.5rem 0 0;
  position: relative;
  z-index: 1;
}
.step:last-child { padding-right: 0; }

.step-number {
  width: 34px; height: 34px;
  border: 1px solid var(--gray-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: var(--gray-dark);
  font-family: var(--serif);
  margin-bottom: 1.25rem;
  background: var(--gray-soft);
}

.step h3 {
  font-size: 1.05rem;
  color: var(--black);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.step p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.72;
}

/* ============================================================
   EXAMPLE SITE
   ============================================================ */
.example-site {
  padding: 6rem 0;
  background: var(--white);
}

.example-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4.5rem;
  align-items: center;
}

.example-text h2 {
  color: var(--black);
  margin-bottom: 1.2rem;
}

.example-text p {
  font-size: 0.955rem;
  color: var(--text);
  line-height: 1.78;
  margin-bottom: 2rem;
  max-width: 440px;
}

/* Example site frame preview */
.example-frame {
  border: 1px solid var(--gray-light);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 6px 28px rgba(17,17,17,0.08);
}

.ef-header {
  background: var(--black);
  color: var(--white);
  padding: 0.7rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.ef-scholar-name {
  font-family: var(--serif);
  font-size: 0.8rem;
  font-weight: 500;
  white-space: nowrap;
}

.ef-nav-items {
  font-size: 0.6rem;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.03em;
}

.ef-hero-area {
  background: var(--gray-soft);
  padding: 1.75rem 1.25rem;
  border-bottom: 1px solid var(--gray-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.ef-title {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--black);
  margin-bottom: 0.3rem;
}

.ef-sub {
  font-size: 0.68rem;
  color: var(--muted);
}

.ef-portrait {
  width: 52px; height: 62px;
  border-radius: 2px;
  background: linear-gradient(135deg, #d0d0d0 0%, #b5b5b5 100%);
  flex-shrink: 0;
}

.ef-content-strips {
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.ef-strip {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.ef-strip-label {
  font-size: 0.65rem;
  color: var(--gray-dark);
  white-space: nowrap;
  min-width: 110px;
}

.ef-strip-line {
  flex: 1;
  height: 6px;
  background: var(--gray-light);
  border-radius: 2px;
}

.ef-strip-line.short { max-width: 55%; }
.ef-strip-line.medium { max-width: 75%; }

/* ============================================================
   TESTIMONIAL
   ============================================================ */
.testimonial {
  padding: 5rem 0;
  background: var(--gray-soft);
  border-top: 1px solid var(--gray-light);
  border-bottom: 1px solid var(--gray-light);
}

.quote-block {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.quote-mark {
  font-family: var(--serif);
  font-size: 5rem;
  color: var(--gray-light);
  line-height: 1;
  margin-bottom: -0.5rem;
}

blockquote {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-style: italic;
  color: var(--black);
  line-height: 1.6;
  margin-bottom: 1.75rem;
}

.quote-attr {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  align-items: center;
}

.quote-name {
  font-size: 0.875rem;
  color: var(--gray-dark);
  font-weight: 500;
}

.quote-title {
  font-size: 0.75rem;
  color: var(--muted);
  font-style: italic;
}

/* Placeholder state — visible only until a real quote is added */
.testimonial--placeholder .quote-block {
  border: 1px dashed var(--gray-light);
  border-radius: 4px;
  padding: 2.25rem 2.5rem;
  background: var(--white);
}

.placeholder-notice {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.62rem;
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--white);
  background: var(--gray-dark);
  padding: 0.22rem 0.65rem;
  border-radius: 2px;
  margin-bottom: 1.5rem;
}

/* ============================================================
   FINAL CTA
   ============================================================ */
.cta-section {
  background: var(--black);
  padding: 5.5rem 0;
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  flex-wrap: wrap;
}

.cta-text h2 {
  font-family: var(--serif);
  color: var(--white);
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  margin-bottom: 0.5rem;
  line-height: 1.25;
}

.cta-text p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.55);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--charcoal);
  padding: 2.25rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

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

.footer-name {
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--white);
  margin-bottom: 0.2rem;
  line-height: 1.2;
}

.footer-service {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.38);
  letter-spacing: 0.02em;
}

.footer-nav {
  display: flex;
  gap: 1.5rem;
}

.footer-nav a {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.52);
  transition: color 0.15s;
}
.footer-nav a:hover { color: var(--white); }

.footer-copy {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.3);
}

/* ============================================================
   RESPONSIVE — TABLET (≤ 960px)
   ============================================================ */
@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero-text h1 { max-width: 100%; }
  .hero-text p  { max-width: 100%; }

  .hero-visual { order: -1; max-width: 520px; }

  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .value-card:nth-child(2) { border-right: none; }
  .value-card:nth-child(3) { border-right: 1px solid var(--gray-light); border-top: 1px solid var(--gray-light); }
  .value-card:nth-child(4) { border-right: none; border-top: 1px solid var(--gray-light); }

  .more-than-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .more-than-text > p { max-width: 100%; }

  .library-visual { max-height: 260px; min-height: 200px; }

  .steps::before { display: none; }
  .steps {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .step { padding: 0; }

  .example-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .example-text p { max-width: 100%; }

  .cta-inner {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
}

/* ============================================================
   RESPONSIVE — MOBILE (≤ 640px)
   ============================================================ */
@media (max-width: 640px) {
  .container { padding: 0 1.25rem; }

  /* Nav */
  .main-nav ul  { display: none; }
  .main-nav > .btn { display: none; }
  .menu-toggle { display: block; }

  /* Hero */
  .hero { padding: 3rem 0 2.5rem; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .hero-actions .btn { width: 100%; text-align: center; }

  /* Values */
  .values { padding: 3rem 0; }
  .values-grid { grid-template-columns: 1fr; }
  .value-card { border-right: none; border-bottom: 1px solid var(--gray-light); text-align: left; padding: 1.75rem 0; }
  .value-card:last-child { border-bottom: none; }
  .value-icon { margin: 0 0 0.85rem; }

  /* More Than */
  .more-than { padding: 4rem 0; }
  .library-visual { min-height: 180px; padding: 1.25rem 1.25rem 0; }
  .bookshelf-row { gap: 2px; }

  /* How It Works */
  .how-it-works  { padding: 4rem 0; }
  .section-header { margin-bottom: 2.5rem; }

  /* Example */
  .example-site { padding: 4rem 0; }

  /* Testimonial */
  .testimonial { padding: 3.5rem 0; }
  .quote-mark { font-size: 3.5rem; }

  /* CTA */
  .cta-section { padding: 4rem 0; }
  .cta-text h2 { font-size: 1.7rem; }
  .cta-inner .btn { align-self: stretch; text-align: center; }

  /* Footer */
  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 1.25rem;
  }

  .footer-nav { justify-content: center; }
}

/* ============================================================
   ACCESSIBILITY
   ============================================================ */
:focus-visible {
  outline: 2px solid var(--black);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
