/* The PC Ready Guide — PC Ready concept direction
   Color palette: paper white, lilac, cobalt, coral
   Fonts: Instrument Serif (display), DM Sans (body) */

:root {
  --paper-white: #fcfbff;
  --paper-cream: #f5f1ff;
  --lilac: #c4b5fd;
  --lilac-light: #ede9fe;
  --lilac-pale: #f5f3ff;
  --cobalt: #2563eb;
  --cobalt-dark: #1d4ed8;
  --coral: #fb7185;
  --coral-soft: #fecdd3;
  --text-main: #1e1e2f;
  --text-muted: #6b7280;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  line-height: 1.6;
  color: var(--text-main);
  background-color: var(--paper-white);
  min-height: 100vh;
}

h1, h2 { font-family: 'Instrument Serif', serif; font-weight: 400; line-height: 1.1; }
h1 { font-size: clamp(2.5rem, 6vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); margin-bottom: 1rem; }
h3 { font-family: 'DM Sans', sans-serif; font-size: clamp(1.25rem, 2.5vw, 1.5rem); font-weight: 500; }
p { margin-bottom: 1.5rem; }

.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--cobalt);
  margin-bottom: 1.25rem;
  display: inline-block;
}

.eyebrow-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--coral);
  margin-right: 6px;
  vertical-align: middle;
  animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

@media (prefers-reduced-motion: reduce) {
  .eyebrow-dot { animation: none; opacity: 1; transform: scale(1); }
}

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

.skip-link { position: absolute; left: -999px; top: auto; width: 1px; height: 1px; overflow: hidden; background: transparent; z-index: -1; }
.skip-link:focus { left: 0; top: 0; width: auto; height: auto; background: var(--cobalt); color: white; padding: 0.75rem; z-index: 9999; }

/* Navigation */
.nav {
  background: var(--paper-white);
  border-bottom: 1px solid var(--lilac-light);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

.nav-inner { max-width: 1200px; margin: 0 auto; padding: 1rem 1.5rem; display: flex; justify-content: space-between; align-items: center; }

.nav-links { display: flex; gap: 2rem; list-style: none; }

.nav-links a { color: var(--text-muted); font-family: inherit; font-size: 0.875rem; transition: color 0.2s ease; position: relative; }

.nav-links a:hover,
.nav-links a:focus { color: var(--cobalt); }

.nav-cta { color: var(--cobalt); font-weight: 500; }
.logo { color: var(--text-main); font-weight: 700; text-decoration: none; }
.nav-links a { text-decoration: none; }

/* Hero Section */
.hero { min-height: 83vh; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3rem; align-items: center; padding: 8rem max(1.5rem, calc((100vw - 1200px) / 2)) 4rem; position: relative; background: radial-gradient(ellipse at 0% 100%, #ded2ff, transparent 56%), radial-gradient(ellipse at 100% 0%, #ffd3dd, transparent 49%), var(--paper-white); }

.hero h1 { font-size: clamp(2.7rem, 6vw, 5.1rem); margin: 0 0 1.25rem; }
.hero h1 em { color: #5136a5; }

.hero .eyebrow { margin-bottom: 1.5rem; }

.hero-desc { color: var(--text-muted); margin-bottom: 2rem; max-width: 480px; }

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; border-radius: 99px; padding: 0.65rem 1.15rem; font-weight: 700; text-decoration: none; }
.btn-primary { background: var(--cobalt-dark); color: white; }
.btn-secondary { color: var(--cobalt-dark); background: white; border: 1px solid var(--lilac); }
.btn-link { color: var(--cobalt-dark); padding-inline: 0; }

.hero-feature {
  background: var(--paper-cream);
  border-radius: 8px;
  padding: 2rem;
  border: 1px solid var(--lilac-light);
}

.feature-badge {
  font-size: 0.625rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--coral);
  background: var(--coral-soft);
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 1rem;
}

.feature-img {
  display: block;
  width: 100%;
  height: clamp(180px, 30vw, 290px);
  object-fit: contain;
  background: white;
  border-radius: 4px;
  margin-bottom: 1rem;
}

.feature-content {
  text-align: left;
}

.feature-tag {
  font-size: 0.625rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cobalt);
  margin-bottom: 0.5rem;
  display: inline-block;
}

.feature-content h2 {
  font-family: 'Instrument Serif', serif;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.feature-content p {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}

/* Story Grid */
.stories { padding: 6rem 1.5rem; background: var(--paper-cream); }

.stories-inner { max-width: 1100px; margin: 0 auto; }

.stories .section-label { margin-bottom: 2.5rem; }

.story-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }

.story-card {
  background: var(--paper-white);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.story-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(37, 99, 235, 0.1); }

@media (prefers-reduced-motion: reduce) { .story-card:hover { transform: none; box-shadow: none; } }

.story-img {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: var(--lilac-pale);
}

.story-img img { width: 100%; height: 100%; object-fit: cover; }

.story-content { padding: 1.5rem; flex-grow: 1; display: flex; flex-direction: column; }

.story-tag {
  font-size: 0.625rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cobalt);
  margin-bottom: 0.5rem;
  display: inline-block;
}

.story-content h3 { font-size: 1rem; margin-bottom: 0.5rem; }

.story-content p { color: var(--text-muted); font-size: 0.8125rem; margin-bottom: 1rem; flex-grow: 1; }

.read-link { font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--coral); }

.story-service {
  background: linear-gradient(135deg, var(--paper-cream), var(--lilac-pale));
}

.story-featured { grid-column: 1 / -1; }

@media (min-width: 768px) {
  .story-featured .story-img { height: 240px; }
  .story-featured .story-content { max-width: 600px; margin: 0 auto; }
}

/* Services Panel */
.services-panel {
  padding: 6rem 1.5rem;
  background: var(--paper-white);
}

.panel-inner {
  max-width: 500px;
  margin: 0 auto;
  background: var(--lilac-light);
  border-radius: 8px;
  padding: 2.5rem;
  border: 1px solid var(--lilac);
}

.panel-title {
  font-family: 'Instrument Serif', serif;
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.panel-desc {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}

.panel-services {
  list-style: none;
  margin-bottom: 2rem;
}

.panel-services li {
  display: flex;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(196, 181, 253, 0.4);
}

.panel-services li:last-child { border-bottom: none; }

.service-num {
  font-family: 'Instrument Serif', serif;
  font-size: 1.5rem;
  color: var(--coral);
  line-height: 1;
}

.panel-services strong {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  display: block;
  margin-bottom: 0.25rem;
}

.panel-services span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.panel-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-panel { background: var(--cobalt); color: white; }
.btn-panel-secondary { background: transparent; border: 1px solid var(--cobalt); color: var(--cobalt); }

/* Contact Strip */
.contact-strip { padding: 3rem 1.5rem; background: linear-gradient(135deg, var(--paper-cream), var(--lilac-pale)); border-top: 1px solid var(--lilac-light); margin-top: auto; }

.contact-strip p { color: var(--text-muted); margin-bottom: 1.5rem; font-size: 0.875rem; }

.strip-links { display: flex; gap: 1rem; flex-wrap: wrap; }

.strip-btn {
  padding: 0.625rem 1.25rem;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-main);
  background: var(--lilac);
  border-radius: 4px;
  transition: background 0.2s ease;
}

.strip-btn:hover { background: var(--lilac-light); }

.strip-btn[target] { display: inline-flex; align-items: center; gap: 0.5rem; }

/* Footer */
.footer { padding: 2rem 1.5rem; background: var(--paper-white); border-top: 1px solid var(--lilac-light); margin-top: 4rem; text-align: center; }

.footer p { color: var(--text-muted); font-size: 0.875rem; }

/* Mobile Nav */
@media (max-width: 768px) {
  .nav-links { position: fixed; top: 0; right: 0; bottom: 0; width: 65%; background: var(--paper-white); flex-direction: column; justify-content: center; align-items: center; gap: 2rem; transform: translateX(100%); transition: transform 0.3s ease; z-index: 999; }
  
  .nav-active .nav-links { transform: translateX(0); }
  
  .nav-burger { display: flex; width: 32px; height: 32px; flex-direction: column; justify-content: space-between; cursor: pointer; z-index: 1001; }
  
  .nav-burger span { width: 100%; height: 2px; background: var(--text-muted); transition: all 0.3s ease; }
  
  .nav-burger[aria-expanded="true"] span { background: var(--cobalt); }
  
  .nav-burger[aria-expanded="true"] span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-burger[aria-expanded="true"] span:nth-child(3) { transform: rotate(-45deg) translate(7px, -6px); }
  
  .hero { grid-template-columns: 1fr; padding-top: 6rem; }
  
  .hero-feature { order: -1; }
  
  .story-grid { grid-template-columns: 1fr; }
  
  .contact-strip { padding: 2rem 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  .eyebrow-dot { animation: none; opacity: 1; }
}
/* Mobile menu states and keyboard focus */
.nav-burger { border: 0; background: none; padding: 6px 4px; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 4px; }

@media (min-width: 769px) {
  .nav-burger { display: none; }
}

@media (max-width: 768px) {
  .nav-links { visibility: hidden; }
  .nav-active .nav-links { visibility: visible; }
}
