/* =====================================================================
   Hobbes Digital — Site Styles
   Extends tokens.css with light-mode aliases and component styles.
   ===================================================================== */

/* --- Light-mode variable aliases (UI palette) ----------------------- */
:root {
  --paper:      #EDE7DA;
  --paper-deep: #E2DBCA;
  --ink:        #131A1A;
  --ink-2:      #3A4242;
  --clay:       #8E2A2A;
  --clay-deep:  #6E1F1F;
  --sand:       #E2DBCA;
  --stone:      #8A8378;
  --stone-2:    #C9C2B3;
  --moss:       #4A6B4A;
  --hairline:   rgba(19, 26, 26, 0.10);
}

/* --- Reset & base (light-mode override) ----------------------------- */
html, body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--t-body);
  line-height: var(--lh-relaxed);
  -webkit-font-smoothing: antialiased;
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4 {
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: var(--tr-tight);
  line-height: var(--lh-tight);
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: var(--t-h1); }
h2 { font-size: var(--t-h2); line-height: var(--lh-snug); }
h3 { font-size: var(--t-h3); line-height: var(--lh-snug); font-weight: 500; }
h4 { font-size: var(--t-h4); font-family: var(--font-body); font-weight: 600; letter-spacing: 0; }

p { font-size: var(--t-body); line-height: var(--lh-relaxed); color: var(--ink-2); margin: 0; text-wrap: pretty; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--clay); color: var(--paper); }

/* --- Layout --------------------------------------------------------- */
.container {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--page-pad-desktop);
}

@media (max-width: 768px) {
  .container { padding: 0 var(--page-pad-mobile); }
}

/* --- Utilities ------------------------------------------------------ */
.eyebrow {
  font-family: var(--font-body);
  font-size: var(--t-eyebrow);
  font-weight: 600;
  letter-spacing: var(--tr-eyebrow);
  text-transform: uppercase;
  color: var(--stone);
}

.lead {
  font-size: var(--t-lead);
  line-height: var(--lh-relaxed);
  color: var(--ink-2);
}

/* --- Buttons -------------------------------------------------------- */
.btn {
  font-family: var(--font-body);
  font-size: var(--t-small);
  font-weight: 500;
  padding: 12px 22px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background var(--dur-base) var(--ease), color var(--dur-base) var(--ease), transform 80ms var(--ease);
  text-decoration: none;
}

.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--clay);
  color: #fff;
}
.btn-primary:hover { background: var(--clay-deep); }

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.btn-secondary:hover { background: rgba(19, 26, 26, 0.06); }

.btn-dark {
  background: var(--ink);
  color: var(--paper);
}
.btn-dark:hover { background: #000; }

/* --- Nav ------------------------------------------------------------ */
.nav {
  border-bottom: 1px solid var(--hairline);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 36px;
  padding: 20px 0;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
  display: flex;
  align-items: baseline;
  flex-shrink: 0;
}

.nav-logo span { color: var(--clay); }

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: var(--t-small);
  color: var(--ink-2);
  text-decoration: none;
  transition: color var(--dur-base) var(--ease);
}

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

.nav-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-phone {
  font-size: var(--t-small);
  color: var(--stone);
  text-decoration: none;
}

@media (max-width: 768px) {
  .nav-phone { display: none; }
  .nav-links { gap: 16px; }
}

@media (max-width: 540px) {
  .nav-links { display: none; }
}

/* --- Hero ----------------------------------------------------------- */
.hero {
  padding: 96px 0 80px;
}

.hero-eyebrow {
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(48px, 6.5vw, 88px);
  max-width: 980px;
  margin-bottom: 32px;
}

.hero h1 em {
  font-style: italic;
  font-weight: 400;
}

.hero-lead {
  max-width: 600px;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* --- Section divider ------------------------------------------------ */
.section-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.section-divider::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--ink);
  flex-shrink: 0;
}

/* --- Work grid ------------------------------------------------------ */
.work-section {
  padding: 64px 0 96px;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

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

@media (max-width: 600px) {
  .work-grid { grid-template-columns: 1fr; }
}

.work-card {
  background: var(--paper);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  text-decoration: none;
  display: block;
  transition: box-shadow var(--dur-base) var(--ease);
}

.work-card:hover { box-shadow: var(--shadow-lift); }

.work-card-image {
  aspect-ratio: 4/3;
  display: flex;
  align-items: flex-end;
  padding: 24px;
}

.work-card-image-title {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.5vw, 32px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.work-card-body {
  padding: 20px 24px 24px;
}

.work-card-body .eyebrow {
  display: block;
  margin-bottom: 8px;
}

.work-card-body h3 {
  font-size: 20px;
  margin-bottom: 8px;
  color: var(--ink);
}

.work-card-body p {
  font-size: var(--t-small);
  color: var(--stone);
  line-height: var(--lh-relaxed);
}

/* --- Services section ----------------------------------------------- */
.services-section {
  padding: 80px 0;
  background: var(--paper-deep);
}

.services-intro {
  max-width: 720px;
  margin-bottom: 56px;
}

.services-intro h2 { margin-bottom: 0; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

@media (max-width: 768px) {
  .services-grid { grid-template-columns: 1fr; gap: 48px; }
}

.service-item-number {
  font-family: var(--font-display);
  font-size: 56px;
  color: var(--clay);
  font-weight: 300;
  line-height: 1;
  display: block;
  margin-bottom: 16px;
}

.service-item h3 {
  font-size: 26px;
  margin-bottom: 12px;
}

.service-item p {
  font-size: var(--t-small);
}

/* --- Quote ---------------------------------------------------------- */
.quote-section {
  padding: 96px 0;
}

.quote-inner {
  max-width: 880px;
}

blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 40px);
  font-weight: 400;
  font-style: italic;
  line-height: 1.3;
  color: var(--ink);
  letter-spacing: -0.015em;
}

.quote-attribution {
  margin-top: 32px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.quote-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--sand);
  border: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
  flex-shrink: 0;
}

.quote-meta-name {
  font-size: var(--t-small);
  color: var(--ink);
  font-weight: 500;
}

.quote-meta-role {
  font-size: var(--t-meta);
  color: var(--stone);
  margin-top: 2px;
}

/* --- CTA section ---------------------------------------------------- */
.cta-section {
  padding: 96px 0;
  background: var(--ink);
  color: var(--paper);
}

.cta-section .eyebrow { color: var(--stone); }

.cta-section h2 {
  font-size: clamp(36px, 5vw, 60px);
  color: var(--paper);
  max-width: 800px;
  margin: 24px 0 28px;
}

.cta-section h2 em { font-style: italic; font-weight: 400; }

.cta-section p {
  font-size: 18px;
  color: var(--stone-2);
  max-width: 520px;
  margin-bottom: 40px;
}

/* --- Footer --------------------------------------------------------- */
footer {
  border-top: 1px solid var(--hairline);
  padding: 64px 0 48px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}

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

@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.footer-logo span { color: var(--clay); }

.footer-tagline {
  font-size: var(--t-small);
  color: var(--stone);
  margin-top: 12px;
  line-height: var(--lh-relaxed);
  max-width: 340px;
}

.footer-col h4 {
  margin-bottom: 12px;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col li {
  font-size: var(--t-small);
  color: var(--ink-2);
}

.footer-col a {
  color: var(--ink-2);
  text-decoration: none;
  transition: color var(--dur-base) var(--ease);
}

.footer-col a:hover { color: var(--clay); }

.footer-bottom {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
  display: flex;
  justify-content: space-between;
  font-size: var(--t-meta);
  color: var(--stone);
}

/* --- Page hero (shared between Services, About, Resources) ---------- */
.page-hero {
  padding: 80px 0 64px;
  border-bottom: 1px solid var(--hairline);
}

.page-hero .eyebrow { margin-bottom: 20px; display: block; }

.page-hero h1 { max-width: 780px; margin-bottom: 24px; }

.page-hero p { max-width: 600px; }

/* --- Services page -------------------------------------------------- */
.services-page-list {
  padding: 80px 0;
}

.service-row {
  display: grid;
  grid-template-columns: 80px 1fr 1fr;
  gap: 48px;
  padding: 56px 0;
  border-bottom: 1px solid var(--hairline);
  align-items: start;
}

.service-row:first-child { padding-top: 0; }

@media (max-width: 768px) {
  .service-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.service-row-number {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 300;
  color: var(--clay);
  line-height: 1;
}

.service-row h3 {
  font-size: clamp(24px, 2.5vw, 32px);
}

.service-row p {
  font-size: var(--t-body);
}

.service-row p + p { margin-top: 16px; }

.process-section {
  padding: 80px 0;
  background: var(--paper-deep);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 48px;
}

@media (max-width: 900px) {
  .process-steps { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 540px) {
  .process-steps { grid-template-columns: 1fr; }
}

.process-step-num {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 300;
  color: var(--clay);
  line-height: 1;
  margin-bottom: 16px;
}

.process-step h4 { margin-bottom: 8px; }

.process-step p { font-size: var(--t-small); }

/* --- Contact page --------------------------------------------------- */
.contact-hero {
  padding: 80px 0 64px;
}

.contact-hero h1 { max-width: 680px; margin-bottom: 24px; }
.contact-hero p { max-width: 520px; }

.contact-body {
  padding: 0 0 96px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 96px;
  align-items: start;
}

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

/* --- Form ----------------------------------------------------------- */
.form-group {
  margin-bottom: 24px;
}

label {
  display: block;
  font-size: var(--t-small);
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 8px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
  width: 100%;
  font-family: var(--font-body);
  font-size: var(--t-body);
  color: var(--ink);
  background: var(--paper);
  border: 1px solid rgba(19, 26, 26, 0.25);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  transition: border-color var(--dur-base) var(--ease);
  box-sizing: border-box;
  appearance: none;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--ink);
}

textarea {
  min-height: 140px;
  resize: vertical;
  line-height: var(--lh-relaxed);
}

.form-hint {
  font-size: var(--t-meta);
  color: var(--stone);
  margin-top: 6px;
}

.contact-details h3 {
  font-size: var(--t-h4);
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0;
  margin-bottom: 16px;
}

.contact-detail-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 28px;
}

.contact-detail-label {
  font-size: var(--t-meta);
  color: var(--stone);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.contact-detail-value {
  font-size: var(--t-body);
  color: var(--ink);
}

.contact-detail-value a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: rgba(19,26,26,0.3);
  text-underline-offset: 3px;
  transition: text-decoration-color var(--dur-base) var(--ease);
}

.contact-detail-value a:hover { text-decoration-color: var(--ink); }

.divider { width: 100%; height: 1px; background: var(--hairline); margin: 32px 0; }

/* --- About page --------------------------------------------------------- */
.about-mission {
  padding: 80px 0;
  background: var(--paper-deep);
}

.about-mission-inner {
  max-width: 800px;
}

.about-mission .eyebrow {
  display: block;
  margin-bottom: 20px;
}

.about-mission h2 { margin-bottom: 32px; }

.about-mission p { margin-bottom: 16px; max-width: none; }

.about-principles {
  padding: 80px 0;
}

.about-principles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

@media (max-width: 768px) {
  .about-principles-grid { grid-template-columns: 1fr; gap: 40px; }
}

.about-principles-grid h3 { margin-bottom: 12px; font-size: 22px; }
.about-principles-grid p { font-size: var(--t-small); max-width: none; }

.about-fit {
  padding: 80px 0 96px;
  background: var(--paper-deep);
}

.about-fit-inner {
  max-width: 720px;
}

.about-fit h2 { margin-bottom: 24px; }
.about-fit p { margin-bottom: 16px; max-width: none; }

.about-fit a {
  color: var(--clay);
  text-decoration: underline;
  text-decoration-color: rgba(142,42,42,0.4);
  text-underline-offset: 3px;
  transition: text-decoration-color var(--dur-base) var(--ease);
}
.about-fit a:hover { text-decoration-color: var(--clay); }

/* --- Resources listing -------------------------------------------------- */
.resources-list {
  padding: 48px 0 96px;
}

.resource-card {
  display: block;
  text-decoration: none;
  padding: 40px 0;
  border-bottom: 1px solid var(--hairline);
  transition: opacity var(--dur-base) var(--ease);
  max-width: 880px;
}

.resource-card:first-of-type { border-top: 1px solid var(--hairline); }
.resource-card:hover { opacity: 0.7; }

.resource-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.resource-tag {
  font-size: var(--t-meta);
  font-weight: 500;
  color: var(--stone);
  background: var(--paper-deep);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
}

.resource-card-title {
  font-size: clamp(22px, 2.8vw, 32px);
  color: var(--ink);
  margin-bottom: 12px;
  line-height: var(--lh-snug);
  max-width: none;
}

.resource-card-desc {
  font-size: var(--t-body);
  color: var(--stone);
  margin-bottom: 16px;
  line-height: var(--lh-relaxed);
  max-width: none;
}

.resource-card-link {
  font-size: var(--t-small);
  font-weight: 500;
  color: var(--clay);
}

/* --- Resource post article --------------------------------------------- */
.resource-post {
  padding: 64px 0 96px;
}

.resource-back {
  font-size: var(--t-small);
  color: var(--stone);
  text-decoration: none;
  display: inline-block;
  margin-bottom: 40px;
  transition: color var(--dur-base) var(--ease);
}
.resource-back:hover { color: var(--ink); }

.resource-post-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.resource-post-header h1 {
  font-size: clamp(36px, 5vw, 64px);
  max-width: 880px;
  margin-bottom: 24px;
}

.resource-post-header .lead {
  max-width: 680px;
  margin-bottom: 64px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--hairline);
}

.resource-post-body {
  max-width: 680px;
}

.resource-post-body h2 {
  font-size: clamp(22px, 2.4vw, 30px);
  margin: 48px 0 16px;
}

.resource-post-body h3 {
  font-size: 20px;
  margin: 32px 0 12px;
  font-weight: 500;
}

.resource-post-body p {
  margin-bottom: 20px;
  max-width: none;
}

.resource-post-body ul,
.resource-post-body ol {
  padding-left: 24px;
  margin-bottom: 20px;
}

.resource-post-body li {
  margin-bottom: 8px;
  max-width: none;
}

.resource-post-body strong {
  color: var(--ink);
  font-weight: 600;
}

.resource-post-body a {
  color: var(--clay);
  text-decoration: underline;
  text-decoration-color: rgba(142, 42, 42, 0.4);
  text-underline-offset: 3px;
  transition: text-decoration-color var(--dur-base) var(--ease);
}
.resource-post-body a:hover { text-decoration-color: var(--clay); }

.resource-post-body blockquote {
  border-left: 3px solid var(--clay);
  margin: 32px 0;
  padding: 8px 24px;
  font-size: var(--t-body);
  font-style: italic;
}

.resource-post-body hr {
  border: none;
  border-top: 1px solid var(--hairline);
  margin: 48px 0;
}

.resource-post-body code {
  background: var(--paper-deep);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  font-size: 0.9em;
  font-family: var(--font-mono);
}

.resource-post-body pre {
  background: var(--paper-deep);
  padding: 24px;
  border-radius: var(--radius-md);
  overflow-x: auto;
  margin-bottom: 24px;
}

.resource-post-body pre code {
  background: none;
  padding: 0;
  font-size: var(--t-small);
}
