/* ============================================
   CARLSON ART PHOTOGRAPHY
   Brutalist gallery-minimal theme
   ============================================ */

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

:root {
  --bg: #f0eeeb;
  --text: #1a1a1a;
  --text-light: #6b6b6b;
  --border: #1a1a1a;
}

body {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

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

/* --- NAV --- */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 40px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 100;
}

nav .site-name {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text);
}

nav .nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

nav .nav-links li {
  list-style: none;
}

nav .nav-links a {
  font-size: 13px;
  text-decoration: none;
  color: var(--text);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: opacity 0.2s;
}

nav .nav-links a:hover {
  opacity: 0.5;
}

nav .nav-links a.nav-cta {
  border: 1px solid var(--border);
  padding: 8px 20px;
  transition: background 0.2s, color 0.2s;
}

nav .nav-links a.nav-cta:hover {
  background: var(--text);
  color: var(--bg);
  opacity: 1;
}

/* --- BUTTONS --- */
.btn {
  display: inline-block;
  font-size: 13px;
  text-decoration: none;
  color: var(--text);
  border: 1px solid var(--border);
  padding: 12px 28px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 0.2s, color 0.2s;
  cursor: pointer;
  background: transparent;
  font-family: inherit;
}

.btn:hover {
  background: var(--text);
  color: var(--bg);
}

.btn-filled {
  background: var(--text);
  color: var(--bg);
}

.btn-filled:hover {
  background: transparent;
  color: var(--text);
}

/* =============================================
   HOMEPAGE
   ============================================= */

/* --- HERO --- */
.hero {
  padding: 0 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 85vh;
  gap: 0;
}

.hero-text {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 60px;
  padding-right: 60px;
}

.hero-text h1 {
  font-size: 52px;
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.hero-text h1 strong {
  font-weight: 700;
}

.hero-text p {
  font-size: 16px;
  color: var(--text-light);
  max-width: 400px;
  margin-bottom: 32px;
}

.hero-text .service-area {
  font-size: 13px;
  margin-bottom: 32px;
}

.hero-image {
  background: #c8c4be;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--text-light);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  overflow: hidden;
}

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

/* --- SECTION STRUCTURE (homepage) --- */
section {
  padding: 80px 40px;
  border-top: 1px solid var(--border);
}

.section-header {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 48px;
}

.section-number {
  font-size: 12px;
  font-family: 'Courier New', monospace;
  color: var(--text-light);
  min-width: 30px;
}

.section-title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-light);
}

/* --- PUBLISHED IN --- */
.published-in {
  padding: 40px 40px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.published-heading {
  font-size: 16px;
  font-weight: 400;
  color: var(--text-light);
  letter-spacing: 0.05em;
  margin-bottom: 28px;
}

.published-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.pub-logo {
  display: inline-block;
  max-width: 140px;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.pub-logo:hover {
  opacity: 1;
}

.pub-logo img {
  width: 100%;
  height: auto;
  max-height: 40px;
  object-fit: contain;
  filter: grayscale(100%);
  transition: filter 0.2s;
}

.pub-logo:hover img {
  filter: grayscale(0%);
}

/* --- SERVICES (homepage) --- */
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.service-item {
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
}

.service-item:nth-child(odd) {
  padding-right: 40px;
  border-right: 1px solid var(--border);
}

.service-item:nth-child(even) {
  padding-left: 40px;
}

.service-item h3 {
  font-size: 24px;
  font-weight: 400;
  margin-bottom: 12px;
}

.service-item p {
  font-size: 14px;
  color: var(--text-light);
  max-width: 380px;
  line-height: 1.6;
}

/* --- PORTFOLIO GRID (homepage) --- */
.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2px;
}

.portfolio-item {
  aspect-ratio: 1;
  background: #c8c4be;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.portfolio-item .caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 16px;
  font-size: 11px;
  font-family: 'Courier New', monospace;
  color: var(--text-light);
  background: rgba(240, 238, 235, 0.9);
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.portfolio-item:hover .caption {
  transform: translateY(0);
}

.portfolio-placeholder {
  font-size: 12px;
  color: var(--text-light);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* --- HOW IT WORKS (homepage) --- */
.process-steps {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
}

.step {
  padding: 40px 40px 40px 0;
  border-right: 1px solid var(--border);
}

.step:last-child {
  border-right: none;
  padding-left: 40px;
}

.step:nth-child(2) {
  padding-left: 40px;
}

.step-number {
  font-family: 'Courier New', monospace;
  font-size: 48px;
  font-weight: 400;
  color: var(--text-light);
  margin-bottom: 24px;
  line-height: 1;
}

.step h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

.step p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.6;
}

/* --- PRICING (homepage) --- */
.pricing-table {
  max-width: 700px;
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.price-row:first-child {
  border-top: 1px solid var(--border);
}

.price-service {
  font-size: 18px;
  font-weight: 400;
}

.price-detail {
  font-size: 13px;
  color: var(--text-light);
  margin-top: 4px;
}

.price-amount {
  font-family: 'Courier New', monospace;
  font-size: 18px;
  text-align: right;
}

.price-unit {
  font-size: 12px;
  color: var(--text-light);
  display: block;
}

/* --- DIFFERENTIATORS (homepage) --- */
.diff-list {
  max-width: 700px;
}

.diff-item {
  font-size: 16px;
  line-height: 1.6;
  padding: 12px 0;
  border-bottom: 1px solid #e0ddd9;
}

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

.diff-item strong {
  color: var(--text);
}

/* --- TESTIMONIAL (homepage) --- */
.testimonial {
  max-width: 600px;
}

.testimonial-stars {
  font-size: 22px;
  color: #d4a017;
  margin-bottom: 16px;
  letter-spacing: 2px;
}

.testimonial-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0;
  margin-left: 8px;
}

.testimonial blockquote {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
  margin-bottom: 24px;
  font-style: normal;
}

.testimonial cite {
  font-size: 13px;
  font-style: normal;
  color: var(--text-light);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* --- CTA SECTION (homepage) --- */
.cta-section h2 {
  font-size: 42px;
  font-weight: 400;
  margin-bottom: 16px;
}

.cta-section p {
  font-size: 16px;
  color: var(--text-light);
  margin-bottom: 32px;
}

.cta-section .contact-line {
  font-size: 14px;
  margin-bottom: 12px;
  color: var(--text-light);
}

.cta-section .contact-line a {
  color: var(--text);
  text-decoration: none;
}

.contact-urgency {
  font-size: 14px;
  margin-bottom: 32px;
  color: var(--text);
}

.cta-section .contact-line a:hover {
  opacity: 0.5;
}

/* =============================================
   INNER PAGES — Newspaper spread layout
   ============================================= */

/* Page title — centered */
.page-title {
  text-align: center;
  padding: 60px 40px 20px;
}

.page-title h1 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}

.page-title p {
  font-size: 15px;
  color: var(--text-light);
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.6;
}

/* 4-column spread */
.spread {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  padding: 40px;
  gap: 0;
  border-top: 1px solid var(--border);
}

.col {
  padding: 0 20px;
  border-left: 1px solid rgba(26, 26, 26, 0.12);
}

.col:first-child {
  padding-left: 0;
  border-left: none;
}

.col:last-child {
  padding-right: 0;
}

/* Column labels */
.col-label {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 20px;
}

.col-num {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-light);
  font-family: 'Courier New', monospace;
}

.col-name {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Column text */
.col p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 14px;
}

.col p.light {
  color: var(--text-light);
}

.col h3 {
  font-size: 14px;
  font-weight: 700;
  margin-top: 20px;
  margin-bottom: 8px;
}

.col a {
  text-decoration: underline;
}

.col a:hover {
  opacity: 0.5;
}

/* Plain text lists */
.plain-list {
  font-size: 14px;
  line-height: 1.9;
  color: var(--text);
  margin-bottom: 14px;
}

/* Column images */
.col-image {
  width: 100%;
  aspect-ratio: 4/3;
  background: #c8c4be;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

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

.col-caption {
  font-size: 11px;
  color: var(--text-light);
  font-style: italic;
  margin-bottom: 20px;
}

.img-placeholder {
  font-size: 11px;
  color: var(--text-light);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Column price lines */
.col-price {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px solid rgba(26, 26, 26, 0.15);
  font-size: 14px;
}

.col-price:first-of-type {
  border-top: 1px solid rgba(26, 26, 26, 0.15);
}

.col-price-amount {
  font-family: 'Courier New', monospace;
  white-space: nowrap;
}

/* Spec lines */
.spec-line {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid rgba(26, 26, 26, 0.1);
  font-size: 13px;
}

.spec-line:first-of-type {
  border-top: 1px solid rgba(26, 26, 26, 0.1);
}

.spec-label {
  font-family: 'Courier New', monospace;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-light);
  font-size: 12px;
}

/* Work items */
.work-item {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(26, 26, 26, 0.1);
}

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

.work-desc {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.5;
}

/* CTA strip */
.cta-strip {
  border-top: 1px solid var(--border);
  padding: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cta-strip-text h2 {
  font-size: 20px;
  font-weight: 400;
  margin-bottom: 4px;
}

.cta-strip-text p {
  font-size: 14px;
  color: var(--text-light);
}

.cta-strip-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 14px;
}

.cta-strip-links a {
  color: var(--text);
  text-decoration: none;
}

.cta-strip-links a:hover {
  opacity: 0.5;
}

/* --- FOOTER --- */
footer {
  padding: 24px 40px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

footer span {
  font-size: 12px;
  color: var(--text-light);
  letter-spacing: 0.05em;
}

footer a {
  font-size: 12px;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.05em;
}

footer a:hover {
  opacity: 0.5;
}

/* =============================================
   GENERIC PAGE (fallback)
   ============================================= */
.page-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 60px 40px 80px;
}

.page-content .page-header h1 {
  font-size: 32px;
  font-weight: 400;
  margin-bottom: 32px;
  letter-spacing: -0.01em;
}

.page-content .page-body {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text);
}

.page-content .page-body p {
  margin-bottom: 20px;
}

.page-content .page-body a {
  text-decoration: underline;
}

.page-content .page-body a:hover {
  opacity: 0.5;
}

/* =============================================
   CLIENT DOWNLOAD PAGE
   ============================================= */
.download-page {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
}

.download-icon {
  font-size: 48px;
  line-height: 1;
  margin-bottom: 20px;
  color: var(--text-light);
}

/* Password gate (locked state) */
.download-gate {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 40px;
}

.download-gate h1 {
  font-size: 28px;
  font-weight: 400;
  margin-bottom: 12px;
}

.download-subtitle {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 32px;
}

/* WordPress password form styling */
.download-gate .post-password-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 360px;
}

.download-gate .post-password-form label {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-light);
  width: 100%;
  text-align: left;
}

.download-gate .post-password-form input[type="password"] {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  background: transparent;
  font-family: inherit;
  font-size: 15px;
  color: var(--text);
  outline: none;
  margin-top: 8px;
}

.download-gate .post-password-form input[type="password"]:focus {
  border-color: var(--text);
  box-shadow: 0 0 0 1px var(--text);
}

.download-gate .post-password-form input[type="submit"] {
  display: inline-block;
  font-size: 13px;
  color: var(--bg);
  background: var(--text);
  border: 1px solid var(--border);
  padding: 14px 40px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s, color 0.2s;
  width: 100%;
  margin-top: 4px;
}

.download-gate .post-password-form input[type="submit"]:hover {
  background: transparent;
  color: var(--text);
}

/* Unlocked download content */
.download-header {
  text-align: center;
  padding: 60px 40px 20px;
  border-bottom: 1px solid var(--border);
}

.download-header h1 {
  font-size: 28px;
  font-weight: 400;
  margin-bottom: 8px;
}

.download-body {
  max-width: 640px;
  margin: 0 auto;
  padding: 48px 40px 60px;
  font-size: 15px;
  line-height: 1.8;
}

.download-body p {
  margin-bottom: 16px;
}

.download-body a {
  text-decoration: underline;
}

.download-body a:hover {
  opacity: 0.5;
}

/* Download Monitor plugin link styling */
.download-body .download-link,
.download-body a[href*="download"] {
  display: block;
  padding: 16px 20px;
  border: 1px solid var(--border);
  text-decoration: none;
  margin-bottom: 8px;
  font-size: 14px;
  letter-spacing: 0.02em;
  transition: background 0.2s, color 0.2s;
}

.download-body .download-link:hover,
.download-body a[href*="download"]:hover {
  background: var(--text);
  color: var(--bg);
  opacity: 1;
}

.download-footer {
  border-top: 1px solid var(--border);
  padding: 24px 40px;
  text-align: center;
}

.download-footer p {
  font-size: 13px;
  color: var(--text-light);
}

.download-footer a {
  color: var(--text);
  text-decoration: underline;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 900px) {
  /* Inner page spread */
  .spread {
    grid-template-columns: 1fr;
    padding: 0 20px;
  }

  .col {
    padding: 30px 0;
    border-left: none;
    border-top: 1px solid var(--border);
  }

  .col:first-child {
    border-top: none;
  }

  .page-title {
    padding: 40px 20px 16px;
  }

  .page-title h1 {
    font-size: 18px;
  }

  .cta-strip {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 30px 20px;
  }
}

@media (max-width: 768px) {
  .download-gate {
    padding: 60px 20px;
  }

  .download-header {
    padding: 40px 20px 16px;
  }

  .download-body {
    padding: 32px 20px 48px;
  }

  .download-footer {
    padding: 20px;
  }

  .page-content {
    padding: 40px 20px 60px;
  }

  nav {
    padding: 16px 20px;
    flex-wrap: wrap;
    gap: 12px;
  }

  nav .nav-links {
    gap: 20px;
  }

  .hero {
    grid-template-columns: 1fr;
    padding: 0 20px;
    min-height: auto;
  }

  .hero-text {
    padding: 60px 0 40px;
    padding-right: 0;
  }

  .hero-text h1 {
    font-size: 36px;
  }

  .hero-image {
    min-height: 50vh;
  }

  section {
    padding: 60px 20px;
  }

  .published-in {
    padding: 30px 20px;
  }

  .published-logos {
    gap: 20px;
  }

  .pub-logo {
    max-width: 100px;
  }

  .pub-logo img {
    max-height: 28px;
  }

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

  .service-item:nth-child(odd) {
    border-right: none;
    padding-right: 0;
  }

  .service-item:nth-child(even) {
    padding-left: 0;
  }

  .portfolio-grid {
    grid-template-columns: 1fr 1fr;
  }

  .process-steps {
    grid-template-columns: 1fr;
  }

  .step {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 30px 0;
  }

  .step:nth-child(2),
  .step:last-child {
    padding-left: 0;
  }

  .cta-section h2 {
    font-size: 28px;
  }

  footer {
    padding: 20px;
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}
