/*
 * styles.css — Laura's Design Studio
 * Design tokens applied as custom properties.
 * Warm parchment palette, Outfit + Source Serif 4 typography.
 */

/* ============================================================
   Design Tokens
   ============================================================ */
:root {
  --color-primary: #E55424;
  --color-primary-dark: #C4441A;
  --color-primary-light: #FBE8E0;
  --color-secondary: #66A844;
  --color-accent: #E55424;
  --color-bg: #FAF7F2;
  --color-surface: #F0EBE4;
  --color-text: #2A2522;
  --color-text-secondary: #6B5E55;
  --color-border: #DDD5CB;
  --color-footer-bg: #2A2522;
  --color-footer-text: #F0EBE4;
  --font-primary: 'Outfit', sans-serif;
  --font-secondary: 'Source Serif 4', serif;
  --font-size-base: 17px;
  --spacing-base: 8px;
  --max-content: 1200px;
  --max-text: 65ch;
}

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

html {
  font-size: var(--font-size-base);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-secondary);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.65;
  padding-bottom: 42px;
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 200ms ease;
}

a:hover {
  color: var(--color-primary-dark);
}

/* Focus states */
:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  color: var(--color-text);
  line-height: 1.15;
}

p {
  margin-bottom: 1em;
}

ul, ol {
  list-style: none;
}

/* ============================================================
   Typography Hierarchy
   ============================================================ */
.display-heading {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 56px;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

h1 {
  font-weight: 700;
  font-size: 44px;
  line-height: 1.1;
  letter-spacing: -0.015em;
}

h2 {
  font-weight: 600;
  font-size: 32px;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h3 {
  font-weight: 600;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.005em;
}

h4 {
  font-weight: 500;
  font-size: 20px;
  line-height: 1.25;
}

.lead {
  font-family: var(--font-secondary);
  font-weight: 400;
  font-size: 20px;
  line-height: 1.6;
  color: var(--color-text-secondary);
}

.body-text {
  font-family: var(--font-secondary);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.65;
  letter-spacing: 0.005em;
  max-width: var(--max-text);
}

.caption {
  font-family: var(--font-primary);
  font-weight: 400;
  font-size: 13px;
  line-height: 1.4;
  letter-spacing: 0.02em;
}

.section-label {
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-secondary);
  margin-bottom: 16px;
}

.text-primary { color: var(--color-primary); }
.text-secondary-color { color: var(--color-text-secondary); }

/* ============================================================
   Layout Utilities
   ============================================================ */
.container {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 0 24px;
}

.section-padding {
  padding: 96px 0;
}

.section-padding-sm {
  padding: 64px 0;
}

/* ============================================================
   Navigation
   ============================================================ */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(250, 247, 242, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  transition: background 300ms ease;
}

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

.nav-logo img {
  max-height: 40px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text);
  text-decoration: none;
  position: relative;
  padding-bottom: 4px;
  transition: color 200ms ease;
}

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

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

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-primary);
}

/* Hamburger button */
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--color-text);
  font-size: 24px;
}

/* Mobile drawer */
.nav-drawer {
  display: none;
}

/* Spacer to offset fixed nav */
.nav-spacer {
  height: 72px;
}

/* ============================================================
   Hero — index.html
   ============================================================ */
.hero {
  background: var(--color-bg);
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: stretch;
}

.hero-inner {
  display: grid;
  grid-template-columns: 40% 60%;
  width: 100%;
  max-width: 100%;
  min-height: calc(100vh - 72px);
}

.hero-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 48px 48px 80px;
  min-width: 0;
}

.hero-headline {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 56px;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--color-text);
  margin-bottom: 8px;
}

.hero-headline .word-accent { color: var(--color-primary); }

/* The orange circle replacing the period */
.hero-headline .logo-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  background: var(--color-primary);
  border-radius: 50%;
  vertical-align: baseline;
  margin-left: 2px;
  position: relative;
  top: -2px;
}

.hero-rule {
  width: 100%;
  max-width: 280px;
  height: 2px;
  background: var(--color-primary);
  border: none;
  margin: 24px 0;
}

.hero-tagline {
  font-family: var(--font-secondary);
  font-weight: 400;
  font-size: 20px;
  color: var(--color-text-secondary);
  line-height: 1.5;
  margin-bottom: 32px;
}

.hero-image {
  position: relative;
  overflow: hidden;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn-primary {
  display: inline-block;
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 16px;
  color: #fff;
  background: var(--color-primary);
  padding: 14px 32px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 200ms ease;
  text-align: center;
}

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

/* ============================================================
   Services Overview — index.html
   ============================================================ */
.services-overview {
  background: var(--color-bg);
  padding: 96px 0;
}

.services-overview .section-label {
  margin-bottom: 40px;
}

.services-grid {
  display: grid;
  grid-template-columns: 55% 1fr;
  gap: 0 5vw;
  position: relative;
  padding-left: 24px;
}

/* The spine — orange vertical line */
.services-grid::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--color-primary);
}

.service-block-large {
  grid-row: 1 / 2;
}

.service-blocks-stacked {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.service-block {
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
}

.service-block:hover {
  color: inherit;
}

.service-block-img {
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 16px;
  transition: transform 300ms ease, box-shadow 300ms ease;
}

.service-block:hover .service-block-img {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(42, 37, 34, 0.12);
}

.service-block-img img {
  width: 100%;
  height: auto;
  display: block;
}

.service-block-img.ratio-3-2 {
  aspect-ratio: 3 / 2;
}

.service-block-img.ratio-1-1 {
  aspect-ratio: 1 / 1;
}

.service-block-img img {
  object-fit: cover;
  height: 100%;
}

.service-block h3 {
  margin-bottom: 4px;
}

.service-block p {
  font-family: var(--font-secondary);
  font-size: 17px;
  color: var(--color-text-secondary);
  margin-bottom: 0;
}

/* ============================================================
   Portfolio Preview — index.html
   ============================================================ */
.portfolio-preview {
  background: var(--color-surface);
  padding: 96px 0;
}

.portfolio-masonry {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0;
  margin-top: 40px;
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  cursor: pointer;
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92);
  transition: filter 400ms ease, transform 400ms ease;
}

.portfolio-item:hover img {
  filter: saturate(1);
  transform: scale(1.02);
}

.portfolio-item-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px 16px 16px;
  background: linear-gradient(to top, rgba(42, 37, 34, 0.7), transparent);
  opacity: 0;
  transition: opacity 400ms ease;
}

.portfolio-item:hover .portfolio-item-overlay {
  opacity: 1;
}

.portfolio-item-overlay h4 {
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 18px;
  color: #fff;
}

/* Masonry grid positions */
.portfolio-item:nth-child(1) {
  grid-column: 1 / 8;
  grid-row: 1;
  aspect-ratio: 16 / 10;
  margin-right: 16px;
}

.portfolio-item:nth-child(2) {
  grid-column: 8 / 13;
  grid-row: 1;
  aspect-ratio: 16 / 10;
  margin-top: 32px;
}

.portfolio-item:nth-child(3) {
  grid-column: 1 / 5;
  grid-row: 2;
  aspect-ratio: 1 / 1;
  margin-top: 24px;
  margin-right: 12px;
}

.portfolio-item:nth-child(4) {
  grid-column: 5 / 9;
  grid-row: 2;
  aspect-ratio: 1 / 1;
  margin-top: 24px;
  margin-right: 12px;
  margin-left: 12px;
}

.portfolio-link-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 32px;
}

.portfolio-link {
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: 16px;
  color: var(--color-primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.portfolio-link:hover {
  color: var(--color-primary-dark);
}

/* ============================================================
   Testimonials
   ============================================================ */
.testimonials {
  background: var(--color-surface);
  padding: 96px 0;
  position: relative;
  overflow-x: clip;
}

.testimonials-inner {
  max-width: 680px;
  margin: 0 auto;
  position: relative;
  text-align: center;
  padding: 0 24px;
}

.testimonial-quote-mark {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 160px;
  color: var(--color-primary);
  opacity: 0.8;
  line-height: 0.8;
  position: absolute;
  left: -60px;
  top: -20px;
  user-select: none;
  pointer-events: none;
}

.testimonial-slide {
  display: none;
}

.testimonial-slide.active {
  display: block;
}

.testimonial-text {
  font-family: var(--font-secondary);
  font-weight: 400;
  font-style: italic;
  font-size: 22px;
  line-height: 1.6;
  color: var(--color-text);
  margin-bottom: 24px;
}

.testimonial-divider {
  width: 40px;
  height: 2px;
  background: var(--color-primary);
  margin: 0 auto 16px;
  border: none;
}

.testimonial-name {
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 16px;
  color: var(--color-text);
}

.testimonial-business {
  font-family: var(--font-secondary);
  font-weight: 400;
  font-size: 15px;
  color: var(--color-text-secondary);
}

.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

.testimonial-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-border);
  border: none;
  cursor: pointer;
  transition: background 300ms ease;
  padding: 0;
}

.testimonial-dot.active {
  background: var(--color-primary);
}

/* ============================================================
   CTA Section
   ============================================================ */
.cta-section {
  background: var(--color-bg);
  padding: 80px 0;
  text-align: center;
  position: relative;
}

/* Noise texture overlay */
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  background-size: 256px 256px;
  pointer-events: none;
}

.cta-section .container {
  position: relative;
  z-index: 1;
}

.cta-heading {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 36px;
  color: var(--color-text);
  margin-bottom: 16px;
}

.cta-heading .text-primary { color: var(--color-primary); }

.cta-subtext {
  font-family: var(--font-secondary);
  font-weight: 400;
  font-size: 18px;
  color: var(--color-text-secondary);
  margin-bottom: 32px;
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--color-footer-bg);
  color: var(--color-footer-text);
  padding: 64px 0 24px;
}

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

.footer-brand p {
  font-family: var(--font-secondary);
  font-weight: 400;
  font-style: italic;
  font-size: 15px;
  color: var(--color-footer-text);
  opacity: 0.7;
  margin-top: 12px;
}

.footer-brand img {
  max-height: 36px;
  width: auto;
  filter: brightness(0) invert(1);
}

.footer-nav h4,
.footer-contact h4 {
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-footer-text);
  margin-bottom: 16px;
}

.footer-nav ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-nav a {
  font-family: var(--font-primary);
  font-weight: 400;
  font-size: 14px;
  color: var(--color-footer-text);
  text-decoration: none;
  transition: color 200ms ease;
}

.footer-nav a:hover {
  color: var(--color-primary);
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-primary);
  font-weight: 400;
  font-size: 14px;
  color: var(--color-footer-text);
  margin-bottom: 8px;
}

.footer-contact-item a {
  color: var(--color-footer-text);
}

.footer-contact-item a:hover {
  color: var(--color-primary);
}

.footer-contact-item i {
  font-size: 16px;
  color: var(--color-primary);
  flex-shrink: 0;
}

.footer-bottom {
  border-top: 1px solid rgba(240, 235, 228, 0.15);
  padding-top: 24px;
  text-align: center;
}

.footer-bottom p {
  font-family: var(--font-primary);
  font-weight: 400;
  font-size: 12px;
  color: var(--color-text-secondary);
  margin-bottom: 0;
}

/* ============================================================
   About Page — Pull Quote Hero
   ============================================================ */
.about-hero {
  background: var(--color-bg);
  padding: 80px 0 64px;
  text-align: center;
}

.about-hero blockquote {
  max-width: 70%;
  margin: 0 auto;
  font-family: var(--font-secondary);
  font-weight: 400;
  font-style: italic;
  font-size: 28px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--color-text);
}

.about-hero .quote-divider {
  width: 60px;
  height: 2px;
  background: var(--color-primary);
  margin: 32px auto 16px;
  border: none;
}

.about-hero .quote-attribution {
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: 16px;
  color: var(--color-text-secondary);
}

/* ============================================================
   About Page — Biography
   ============================================================ */
.biography {
  background: var(--color-bg);
  padding: 0 0 80px;
}

.biography-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

.biography-content p {
  font-family: var(--font-secondary);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.65;
  color: var(--color-text);
  margin-bottom: 1.5em;
}

/* Drop cap */
.biography-content p:first-of-type::first-letter {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 68px;
  float: left;
  line-height: 0.8;
  padding-right: 8px;
  margin-top: 6px;
  color: var(--color-primary);
}

/* Float image right */
.bio-float-image {
  float: right;
  max-width: 340px;
  margin-left: 32px;
  margin-bottom: 24px;
  border-radius: 6px;
}

/* Full-width inset image */
.bio-inset-image {
  width: 100%;
  max-width: 800px;
  border-radius: 8px;
  margin: 32px 0;
  clear: both;
}

/* ============================================================
   About Page — Partners
   ============================================================ */
.partners {
  background: var(--color-surface);
  padding: 64px 0;
}

.partner-card {
  background: var(--color-bg);
  border-left: 4px solid var(--color-secondary);
  border-radius: 0 8px 8px 0;
  max-width: 640px;
  margin: 0 auto;
  padding: 32px;
}

.partner-role {
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-secondary);
  margin-bottom: 8px;
}

.partner-name {
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 22px;
  color: var(--color-text);
  margin-bottom: 16px;
}

.partner-card p {
  font-family: var(--font-secondary);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.65;
  color: var(--color-text);
  margin-bottom: 0;
}

/* ============================================================
   About Page — Career / Awards
   ============================================================ */
.career-awards {
  background: var(--color-bg);
  padding: 80px 0;
}

.awards-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.awards-row img {
  height: 48px;
  width: auto;
  filter: opacity(0.4) grayscale(0.3);
  transition: filter 300ms ease;
}

.awards-row img:hover {
  filter: opacity(1) grayscale(0);
}

.career-panel {
  max-width: 800px;
  margin: 0 auto;
}

.career-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px 24px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  cursor: pointer;
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: 16px;
  color: var(--color-text);
  transition: background 200ms ease;
}

.career-toggle:hover {
  background: var(--color-border);
}

.career-toggle i {
  transition: transform 300ms ease;
}

.career-toggle.open i {
  transform: rotate(180deg);
}

.career-content {
  display: none;
  padding: 24px;
  border: 1px solid var(--color-border);
  border-top: 0;
  border-radius: 0 0 8px 8px;
}

.career-content.open {
  display: block;
}

.career-columns {
  columns: 2;
  column-gap: 32px;
}

.career-category {
  break-inside: avoid;
  margin-bottom: 24px;
}

.career-category h4 {
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 15px;
  color: var(--color-text);
  margin-bottom: 8px;
}

.career-category li {
  font-family: var(--font-primary);
  font-weight: 400;
  font-size: 15px;
  color: var(--color-text-secondary);
  padding: 2px 0;
}

/* ============================================================
   Services Page — Intro
   ============================================================ */
.services-intro {
  background: var(--color-bg);
  padding: 80px 0 48px;
  text-align: center;
}

.services-intro h1 {
  max-width: 720px;
  margin: 0 auto 16px;
}

.services-intro .lead {
  max-width: 720px;
  margin: 0 auto;
}

/* ============================================================
   Services Page — Print Design
   ============================================================ */
.service-section {
  padding: 80px 0;
}

.service-section.bg-parchment { background: var(--color-bg); }
.service-section.bg-surface { background: var(--color-surface); }

.service-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  align-items: start;
}

.service-layout.reversed {
  grid-template-columns: 2fr 1fr;
}

.service-image-wrapper {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(42, 37, 34, 0.1);
}

.service-image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.service-text {
  min-width: 0;
}

.service-text h2 {
  margin-bottom: 16px;
}

.service-text .body-text {
  margin-bottom: 24px;
}

/* Chip tags for print services */
.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.service-tag {
  font-family: var(--font-primary);
  font-weight: 400;
  font-size: 14px;
  color: var(--color-text);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: 8px 16px;
  border-radius: 20px;
  transition: background 300ms ease, border-color 300ms ease;
}

.bg-surface .service-tag {
  background: var(--color-bg);
}

.service-tag:hover {
  background: var(--color-primary-light);
  border-color: var(--color-primary);
}

/* Branding service list with green checkmarks */
.service-checklist {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.service-checklist li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-secondary);
  font-size: 17px;
  color: var(--color-text);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 400ms ease, transform 400ms ease;
}

.service-checklist li.visible {
  opacity: 1;
  transform: translateY(0);
}

.service-checklist li i {
  color: var(--color-secondary);
  font-size: 18px;
  flex-shrink: 0;
}

/* Digital section — full width banner */
.service-digital-banner {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  max-height: 400px;
}

.service-digital-banner img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  object-position: center 40%;
}

.service-digital-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(42, 37, 34, 0.55), rgba(42, 37, 34, 0.3));
  display: flex;
  align-items: center;
  padding: 48px;
}

.service-digital-content {
  max-width: 600px;
  min-width: 0;
}

.service-digital-content .section-label {
  color: var(--color-bg);
}

.service-digital-content h2 {
  color: #fff;
  margin-bottom: 16px;
}

.service-digital-content p {
  font-family: var(--font-secondary);
  font-size: 17px;
  color: var(--color-bg);
  margin-bottom: 20px;
}

.digital-services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 24px;
}

.digital-services-grid li {
  font-family: var(--font-primary);
  font-weight: 400;
  font-size: 15px;
  color: var(--color-bg);
  display: flex;
  align-items: center;
  gap: 8px;
}

.digital-services-grid li i {
  font-size: 14px;
  color: var(--color-primary);
}

/* ============================================================
   Portfolio Page — Intro
   ============================================================ */
.portfolio-intro {
  background: var(--color-bg);
  padding: 80px 0 48px;
  text-align: center;
}

.portfolio-intro h1 {
  margin-bottom: 16px;
}

.portfolio-intro .lead {
  max-width: 720px;
  margin: 0 auto;
}

/* ============================================================
   Portfolio Page — Gallery
   ============================================================ */
.portfolio-gallery {
  background: var(--color-surface);
  padding: 48px 0 96px;
}

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

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  box-shadow: 0 2px 12px rgba(42, 37, 34, 0.08);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92);
  transition: filter 400ms ease, transform 400ms ease;
}

.gallery-item:hover img {
  filter: saturate(1);
  transform: scale(1.02);
}

.gallery-item-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px 16px 16px;
  background: linear-gradient(to top, rgba(42, 37, 34, 0.65), transparent);
  opacity: 0;
  transition: opacity 400ms ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.gallery-item:hover .gallery-item-overlay {
  opacity: 1;
}

.gallery-item-overlay h3 {
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 18px;
  color: #fff;
  margin-bottom: 2px;
}

.gallery-item-overlay span {
  font-family: var(--font-primary);
  font-weight: 400;
  font-size: 13px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

/* Gallery grid positions — asymmetric masonry */
.gallery-item:nth-child(1) {
  grid-column: 1 / 8;
  aspect-ratio: 2 / 1;
  margin-right: 16px;
  margin-bottom: 24px;
}

.gallery-item:nth-child(2) {
  grid-column: 8 / 13;
  aspect-ratio: 2 / 1;
  margin-top: 24px;
  margin-bottom: 24px;
}

.gallery-item:nth-child(3) {
  grid-column: 1 / 4;
  aspect-ratio: 1 / 1;
  margin-right: 12px;
  margin-bottom: 16px;
}

.gallery-item:nth-child(4) {
  grid-column: 4 / 8;
  aspect-ratio: 1 / 1;
  margin-right: 12px;
  margin-left: 12px;
  margin-bottom: 16px;
}

.gallery-item:nth-child(5) {
  grid-column: 8 / 13;
  aspect-ratio: 4 / 3;
  margin-bottom: 16px;
}

.gallery-item:nth-child(6) {
  grid-column: 1 / 5;
  aspect-ratio: 2 / 1;
  margin-right: 12px;
  margin-bottom: 32px;
}

.gallery-item:nth-child(7) {
  grid-column: 5 / 8;
  aspect-ratio: 1 / 1;
  margin-right: 12px;
  margin-left: 12px;
}

.gallery-item:nth-child(8) {
  grid-column: 5 / 8;
  aspect-ratio: 1 / 1;
  margin-right: 12px;
  margin-left: 12px;
  margin-top: 16px;
}

.gallery-item:nth-child(9) {
  grid-column: 8 / 13;
  grid-row: 3 / 5;
  aspect-ratio: auto;
  min-height: 100%;
}

/* ============================================================
   Contact Page
   ============================================================ */
.contact-section {
  background: var(--color-surface);
  padding: 80px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 55% 40%;
  gap: 5%;
  align-items: start;
}

.contact-info h1 {
  margin-bottom: 24px;
}

.contact-info .body-text {
  margin-bottom: 32px;
}

.contact-phone {
  display: block;
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 40px;
  color: var(--color-primary);
  text-decoration: none;
  margin-bottom: 16px;
  transition: color 200ms ease;
}

.contact-phone:hover {
  color: var(--color-primary-dark);
}

.contact-phone i {
  font-size: 32px;
  margin-right: 8px;
  vertical-align: middle;
}

/* Contact form */
.contact-form-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 40px;
}

.contact-form .form-group {
  margin-bottom: 20px;
}

.contact-form label {
  display: block;
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: 14px;
  color: var(--color-text-secondary);
  margin-bottom: 6px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  font-family: var(--font-secondary);
  font-size: 16px;
  color: var(--color-text);
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 12px 16px;
  transition: border-color 200ms ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--color-primary);
  outline: none;
  box-shadow: 0 0 0 3px var(--color-primary-light);
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form .btn-primary {
  width: 100%;
}

/* ============================================================
   Contact — Location Dateline
   ============================================================ */
.location-dateline {
  background: var(--color-bg);
  padding: 48px 0;
  text-align: right;
}

.location-dateline .dateline-city {
  font-family: var(--font-secondary);
  font-weight: 400;
  font-style: italic;
  font-size: 18px;
  color: var(--color-text-secondary);
  margin-bottom: 4px;
}

.location-dateline .dateline-serving {
  font-family: var(--font-primary);
  font-weight: 400;
  font-size: 14px;
  color: var(--color-text-secondary);
}

/* ============================================================
   404 Page
   ============================================================ */
.error-page {
  background: var(--color-bg);
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px;
}

.error-page h1 {
  font-size: 120px;
  color: var(--color-primary);
  opacity: 0.3;
  margin-bottom: 8px;
}

.error-page h2 {
  margin-bottom: 16px;
}

.error-page p {
  font-family: var(--font-secondary);
  font-size: 18px;
  color: var(--color-text-secondary);
  margin-bottom: 32px;
}

/* ============================================================
   Responsive — Tablet (max-width: 1024px)
   ============================================================ */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 45% 55%;
  }

  .hero-text {
    padding: 32px 32px 32px 48px;
  }

  .hero-headline {
    font-size: 44px;
  }

  .services-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .service-layout {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .service-layout.reversed {
    grid-template-columns: 1fr 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .contact-phone {
    font-size: 32px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .testimonial-quote-mark {
    font-size: 120px;
    left: -20px;
  }
}

/* ============================================================
   Responsive — Mobile (max-width: 768px)
   ============================================================ */
@media (max-width: 768px) {
  /* Nav — mobile */
  .nav-links {
    display: none;
  }

  .nav-hamburger {
    display: block;
  }

  .nav-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--color-bg);
    z-index: 1001;
    transition: right 300ms ease;
    padding: 80px 32px 32px;
    box-shadow: -4px 0 24px rgba(42, 37, 34, 0.15);
  }

  .nav-drawer.open {
    right: 0;
  }

  .nav-drawer-links {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  .nav-drawer-links a {
    font-family: var(--font-primary);
    font-weight: 500;
    font-size: 16px;
    color: var(--color-text);
    text-decoration: none;
    padding: 8px 0;
    border-bottom: 1px solid var(--color-border);
  }

  .nav-drawer-links a.active {
    color: var(--color-primary);
  }

  .nav-drawer-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--color-text);
    cursor: pointer;
  }

  .nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(42, 37, 34, 0.4);
    z-index: 1000;
  }

  .nav-overlay.open {
    display: block;
  }

  /* Hero — mobile: image above text */
  .hero {
    min-height: auto;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-image {
    order: -1;
    aspect-ratio: 3 / 2;
    margin: 16px;
    border-radius: 8px;
    overflow: hidden;
  }

  .hero-text {
    padding: 24px;
    text-align: left;
  }

  .hero-headline {
    font-size: 36px;
    font-weight: 700;
  }

  .hero-tagline {
    font-size: 18px;
  }

  .hero-rule {
    max-width: 180px;
  }

  /* Services overview — stack */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .service-blocks-stacked {
    gap: 32px;
  }

  /* Portfolio masonry — single column */
  .portfolio-masonry {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  .portfolio-item {
    aspect-ratio: 16 / 10 !important;
    margin: 0 !important;
  }

  .portfolio-item-overlay {
    opacity: 1;
  }

  /* Testimonials */
  .testimonials-inner {
    padding: 0 16px;
  }

  .testimonial-quote-mark {
    font-size: 80px;
    position: relative;
    left: 0;
    top: 0;
    text-align: left;
    margin-bottom: -32px;
  }

  .testimonial-text {
    font-size: 19px;
  }

  /* CTA */
  .cta-heading {
    font-size: 28px;
  }

  /* About hero */
  .about-hero blockquote {
    max-width: 100%;
    font-size: 22px;
  }

  /* Biography */
  .bio-float-image {
    float: none;
    max-width: 100%;
    margin: 0 0 24px;
    width: 100%;
  }

  /* Partners */
  .partner-card {
    margin: 0 24px;
  }

  /* Career */
  .career-columns {
    columns: 1;
  }

  .awards-row {
    gap: 24px;
  }

  .awards-row img {
    height: 36px;
  }

  /* Services page layouts */
  .service-layout,
  .service-layout.reversed {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .service-layout .service-image-wrapper {
    order: -1;
  }

  .service-digital-banner {
    max-height: none;
  }

  .service-digital-banner img {
    height: 500px;
  }

  .service-digital-overlay {
    padding: 24px;
  }

  .digital-services-grid {
    grid-template-columns: 1fr;
  }

  /* Portfolio gallery — single column */
  .gallery-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  .gallery-item {
    margin: 0 !important;
  }

  .gallery-item:nth-child(1) { aspect-ratio: 2 / 1; }
  .gallery-item:nth-child(2) { aspect-ratio: 2 / 1; }
  .gallery-item:nth-child(3),
  .gallery-item:nth-child(4),
  .gallery-item:nth-child(5) { aspect-ratio: 4 / 3; }
  .gallery-item:nth-child(6) { aspect-ratio: 2 / 1; }
  .gallery-item:nth-child(7),
  .gallery-item:nth-child(8) { aspect-ratio: 4 / 3; }
  .gallery-item:nth-child(9) { aspect-ratio: 16 / 10; }

  .gallery-item-overlay {
    opacity: 1;
  }

  /* Contact */
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-phone {
    font-size: 28px;
  }

  .contact-form-card {
    padding: 24px;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .location-dateline {
    text-align: center;
  }

  /* Services intro */
  h1 {
    font-size: 36px;
  }

  h2 {
    font-size: 26px;
  }

  .display-heading {
    font-size: 36px;
  }
}

/* ============================================================
   Responsive — Small Mobile (max-width: 480px)
   ============================================================ */
@media (max-width: 480px) {
  .hero-headline {
    font-size: 30px;
  }

  .hero-tagline {
    font-size: 16px;
  }

  .contact-phone {
    font-size: 24px;
  }

  .about-hero blockquote {
    font-size: 20px;
  }

  .cta-heading {
    font-size: 24px;
  }

  .service-digital-banner img {
    height: 400px;
  }
}

/* ============================================================
   Scroll Animations
   ============================================================ */
.fade-in-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms ease, transform 600ms ease;
}

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