/* ==========================================================================
   Denver Meyer — B&W Editorial Style
   Loaded AFTER styles.css to apply the black-and-white editorial palette.
   ========================================================================== */

/* ---------- 0. Variable overrides ---------- */
:root {
  --color-bg: #FFFFFF;
  --color-surface: #FFFFFF;
  --color-dark: #000000;
  --color-text: #000000;
  --color-text-secondary: #444444;
  --color-text-light: #777777;
  --color-terracotta: #FF5A00;
  --color-terracotta-dark: #E04F00;
  --color-terracotta-light: rgba(255, 90, 0, 0.08);
  --color-border: #D0D0D0;
  --color-white: #FFFFFF;

  /* Divider line colour — dark charcoal, not black */
  --color-divider: #333333;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.10);
}

/* ---------- 1. Base ---------- */
body {
  background-color: #FFFFFF;
  color: #000000;
}

::selection {
  background-color: #FF5A00;
  color: #FFFFFF;
}

:focus-visible {
  outline-color: #FF5A00;
}

/* ---------- 2. Navigation ---------- */
.nav {
  background: rgba(0, 0, 0, 0.96);
}

.nav--scrolled {
  border-bottom-color: rgba(255,255,255,0.08);
}

.nav__mobile {
  background: rgba(0, 0, 0, 0.98);
}

.nav__links a::after {
  background-color: #FF5A00;
}

/* ---------- 3. Hero ---------- */
.hero {
  background-color: #000000;
}

/* Hero overlay tagline — left-aligned under subtitle in hero image */
.hero__image-wrap {
  position: relative;
}

.hero__overlay-tagline {
  position: absolute;
  top: 68%;
  left: 5.5%;
  right: 50%;
  text-align: left;
  font-size: clamp(0.95rem, 1.15vw, 1.1rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.7;
  color: #FF5A00;
  margin: 0;
}

@media (max-width: 767px) {
  .hero__overlay-tagline {
    font-size: 0.8rem;
    top: auto;
    bottom: var(--space-xl);
    left: var(--space-lg);
    right: var(--space-lg);
    line-height: 1.5;
  }
}

.hero__tagline-text {
  color: rgba(255, 255, 255, 0.7);
}

.hero__location {
  color: rgba(255, 255, 255, 0.5);
}

/* Tagline banner — hidden */
.tagline-banner {
  display: none;
}

/* Hero tagline strip — pulled up into hero's black padding */
.hero-tagline-strip {
  background-color: #000000;
  margin-top: -4rem;
  position: relative;
  z-index: 1;
  padding: 0 0 var(--space-lg);
  text-align: center;
}

.hero-tagline-strip__text {
  font-size: clamp(0.95rem, 1.2vw, 1.1rem);
  font-weight: 400;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
  max-width: none;
}

.hero-tagline-strip__location {
  display: block;
  margin-top: var(--space-sm);
  font-size: var(--type-small);
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}

@media (max-width: 767px) {
  .hero-tagline-strip {
    display: none;
  }
}

/* ---------- 4. Brands ---------- */
.brands {
  background-color: #FFFFFF;
  border-top: 1px solid var(--color-divider);
}

.brands--hero {
  background-color: #FFFFFF;
  border-top: 1px solid var(--color-divider);
  padding: var(--space-5xl) 0;
}

.brands--hero .brands__heading {
  color: #000000;
  font-size: var(--type-caption);
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: var(--space-4xl);
}

/* Editorial brand logos — override base grayscale/brightness(0) filter */
.brands__grid img,
.brands--hero .brands__grid img {
  filter: none;
  opacity: 0.85;
  max-height: 56px;
  width: auto;
  object-fit: contain;
  transition: opacity var(--transition-base);
}


.brands__grid img:hover,
.brands--hero .brands__grid img:hover {
  opacity: 1;
}

.brands--hero .brands__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  justify-items: center;
  gap: var(--space-4xl) var(--space-4xl);
}

@media (max-width: 767px) {
  .brands--hero .brands__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-2xl) var(--space-2xl);
  }
  .brands__grid img,
  .brands--hero .brands__grid img {
    max-height: 40px;
  }
}

/* ---------- 5. Intro ---------- */
.intro {
  background-color: #FFFFFF;
}

/* ---------- 6. Services ---------- */
.services {
  background-color: #FFFFFF;
}

.service-card {
  background-color: #FFFFFF;
  border-color: #D0D0D0;
}

.service-card:hover {
  border-color: #000000;
}

.service-card__number {
  color: #FF5A00;
}

/* Service detail — match spacing between items */
.service-detail {
  border-bottom-color: #D0D0D0;
  padding: var(--space-4xl) 0;
}

.service-detail__number {
  color: #FF5A00;
  opacity: 0.15;
}

/* Process */
.process {
  background-color: #000000;
}

.process__step {
  border-color: rgba(255,255,255,0.1);
}

.process__step:hover {
  border-top-color: #FF5A00;
  border-bottom-color: #FF5A00;
}

.process__step-number {
  color: #FF5A00;
}

/* ---------- 7. Page Header (Interior pages) ---------- */
.page-header {
  background-color: #FFFFFF;
  color: #000000;
  padding-bottom: var(--space-3xl);
}

.page-header__label {
  color: #777777;
}

.page-header__title {
  color: #000000;
}

/* Article pages — smaller, lighter heading */
.article .page-header__title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 300;
  line-height: 1.3;
}

.page-header__subtitle {
  color: #444444;
}

/* Injected divider after page-header — full width, soft grey */
.page-header-divider {
  width: 100%;
  height: 0;
  border: none;
  border-top: 1px solid #D0D0D0;
  margin: 0;
}

/* Gap after header divider → content (consistent across all interior pages) */
.page-header + .page-header-divider + section,
.page-header + .page-header-divider + * {
  padding-top: var(--space-4xl) !important;
}

/* ---------- 8. Testimonials ---------- */
.testimonials {
  background-color: #000000;
}

.testimonial-card {
  border-left: 3px solid #FF5A00;
}

.testimonial-card__author {
  color: rgba(255,255,255,0.7);
  font-weight: 300;
}

/* ---------- Stats bar ---------- */
.stats {
  background-color: #000000;
  padding: var(--space-4xl) 0;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-2xl);
  text-align: center;
}

.stats__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
}

.stats__number {
  font-family: var(--font-primary);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1;
  color: #FFFFFF;
}

.stats__label {
  font-size: var(--type-caption);
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}

@media (max-width: 767px) {
  .stats__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-2xl) var(--space-lg);
  }
}

/* Pull quote */
.pull-quote {
  border-top: 2px solid #FF5A00;
  border-bottom: none;
}

.pull-quote--bordered {
  border-bottom: 2px solid #FF5A00;
  padding-bottom: var(--space-2xl);
}

.pull-quote__author {
  color: #FF5A00;
}

/* ---------- 9. CTA Section ---------- */
.cta {
  background-color: #000000;
}

.cta__heading {
  color: #FFFFFF;
}

.cta__text {
  color: rgba(255,255,255,0.7);
}

.cta__phone {
  display: inline-block;
  margin-top: var(--space-lg);
  font-size: var(--type-body-lg);
  font-weight: 400;
  letter-spacing: 0.04em;
  color: #FF5A00;
  text-decoration: none;
}

.cta__phone:hover {
  color: #E04F00;
}

/* CTA buttons — white on black, ALL pages (CTA is always on black bg) */
.cta .btn {
  background-color: #FFFFFF;
  color: #000000;
  border: none;
  border-radius: 4px;
  font-weight: 500;
}

.cta .btn:hover {
  background-color: #E8E8E8;
}

/* ---------- 10. Insights ---------- */
.insights-preview {
  background-color: #FFFFFF;
  border-top-color: #D0D0D0;
}

.insight-card {
  background-color: #FFFFFF;
  border-color: #D0D0D0;
  display: flex;
  flex-direction: column;
}

.insight-card .insight-card__excerpt {
  flex: 1;
}

.insight-card:hover {
  border-color: #000000;
}

.insight-card__link {
  color: #FF5A00;
}

.insight-card:hover .insight-card__link {
  color: #E04F00;
}

/* Article page */
.article {
  background-color: #FFFFFF;
}

.article__body h2 {
  font-size: var(--type-h3);
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-top: var(--space-3xl);
  margin-bottom: var(--space-lg);
}

/* ---------- 11. Portfolio ---------- */
.project-card {
  background-color: #000000;
}

/* ---------- 12. About ---------- */
.about-content {
  background-color: #FFFFFF;
}

/* Design Philosophy — pure white */
.about-section {
  background-color: #FFFFFF;
}

/* Accent line between Design Philosophy and Leadership (injected via server) */
.about-accent-divider {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  height: 0;
  border: none;
  border-top: 1px solid var(--color-divider);
}

/* ---------- 12b. About — two-column bio layout ---------- */
.about-content__grid--two-col {
  grid-template-columns: 1fr;
  gap: var(--space-3xl);
}

@media (min-width: 768px) {
  .about-content__grid--two-col {
    grid-template-columns: 1fr 2fr;
    gap: var(--space-4xl);
    align-items: start;
  }
}

.about-content__image {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

@media (min-width: 768px) {
  .about-content__image {
    position: sticky;
    top: calc(var(--nav-height, 72px) + var(--space-xl));
  }
}

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

/* Mobile: hide 2nd image from left column, show inline version */
.about-content__image--mobile-only {
  display: block !important;
}
.about-content__image img.about-content__image--desktop-only {
  display: none !important;
}

@media (min-width: 768px) {
  .about-content__image--mobile-only {
    display: none !important;
  }
  .about-content__image img.about-content__image--desktop-only {
    display: block !important;
  }
}

/* ---------- 13. Contact photo ---------- */
.contact__photo {
  margin-bottom: var(--space-2xl);
}

.contact__photo img {
  width: 100%;
  max-width: 480px;
  height: auto;
  display: block;
}

@media (min-width: 1024px) {
  .contact__grid {
    align-items: start;
  }
}

/* ---------- 13. Contact ---------- */
.contact {
  background-color: #FFFFFF;
}

.contact__link {
  color: #FF5A00;
}

.contact__link:hover {
  color: #E04F00;
}

.contact__info-heading {
  font-weight: 400;
}

.form-group input,
.form-group select,
.form-group textarea {
  background-color: #FFFFFF;
  border-color: #D0D0D0;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #FF5A00;
  box-shadow: 0 0 0 3px rgba(255, 90, 0, 0.08);
}

/* Contact form submit button — black on white bg */
.contact__form .btn {
  background-color: #000000;
  color: #FFFFFF;
  border-radius: 4px;
  font-weight: 500;
}

.contact__form .btn:hover {
  background-color: #222222;
}

/* ---------- 14. Buttons (global) ---------- */
.btn {
  border-radius: 4px;
  font-weight: 500;
}

.btn--primary {
  background-color: #000000;
  color: #FFFFFF;
}

.btn--primary:hover {
  background-color: #222222;
}

.btn--terracotta {
  background-color: #000000;
  color: #FFFFFF;
}

.btn--terracotta:hover {
  background-color: #222222;
}

.btn--white {
  background-color: #FFFFFF;
  color: #000000;
}

.btn--white:hover {
  background-color: #F0F0F0;
}

.btn--ghost-white {
  border-radius: 4px;
  font-weight: 500;
}

.btn--outline {
  border-color: #D0D0D0;
  color: #000000;
}

.btn--outline:hover {
  border-color: #000000;
}

/* ---------- 15. Footer ---------- */
.footer {
  background-color: #FFFFFF;
  color: #000000;
}

.footer__top {
  border-bottom-color: #D0D0D0;
}

.footer__brand {
  color: #000000;
}

.footer__title {
  color: #777777;
}

.footer__studio {
  display: block;
  font-size: var(--type-caption);
  color: #777777;
  margin-top: var(--space-xs);
  font-weight: 300;
}

.footer__links a {
  color: #777777;
}

.footer__links a:hover {
  color: #000000;
}

.footer__bottom {
  color: #999999;
}

/* Mobile: centre footer content */
@media (max-width: 767px) {
  .footer__top,
  .footer__bottom {
    align-items: center;
    text-align: center;
  }
  .footer__links {
    justify-content: center;
  }
}

/* Divider before footer (contact page) */
.footer-divider {
  width: 100%;
  height: 0;
  border: none;
  border-top: 1px solid var(--color-divider);
  margin: 0;
}

/* ---------- 16. Section dividers — contained width like footer, black ---------- */
.section-divider,
.section-divider--terracotta,
.section-divider--dark {
  max-width: calc(var(--max-width) - var(--space-xl) * 2);
  margin-left: auto !important;
  margin-right: auto !important;
  border-top: 1px solid var(--color-divider) !important;
  border-top-width: 1px !important;
}

/* ---------- 17. Section labels ---------- */
.section-label--terracotta {
  color: #FF5A00;
}

/* ---------- 18. Project nav ---------- */
.project-nav {
  border-top-color: #D0D0D0;
}

/* ---------- 19. Project card CTA ---------- */
.project-card__cta {
  display: block;
  margin-top: var(--space-md);
  font-size: var(--type-small);
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}

/* ---------- 20. Hero location ---------- */
.hero__location {
  display: block;
  margin-top: var(--space-lg);
  font-size: var(--type-small);
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-light);
}

@media (max-width: 768px) {
  .hero__location {
    display: none;
  }
}

/* ---------- 21. Portfolio — scrollable brand sections ---------- */
.portfolio-brand {
  padding: var(--space-5xl) 0;
}

.portfolio-brand + .portfolio-brand {
  border-top: 1px solid var(--color-divider);
}

.portfolio-brand__heading {
  font-family: var(--font-primary);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 300;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #000000;
  margin: 0 0 var(--space-sm);
}

.portfolio-brand__sub {
  font-size: var(--type-small);
  font-weight: 300;
  color: #999999;
  letter-spacing: 0.02em;
  margin: 0 0 var(--space-3xl);
  word-spacing: 0.15em;
}

.portfolio-brand__sub .sep {
  margin: 0 0.6em;
}

.portfolio-brand__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  align-items: start;
}

@media (min-width: 640px) {
  .portfolio-brand__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}


.portfolio-brand__img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
  cursor: pointer;
  transition: opacity var(--transition-base);
}

.portfolio-brand__img:hover {
  opacity: 0.85;
}

/* Image card wrapper with caption */
.portfolio-brand__card {
  display: flex;
  flex-direction: column;
}

.portfolio-brand__caption {
  font-size: var(--type-caption);
  font-weight: 300;
  color: #999999;
  letter-spacing: 0.02em;
  margin-top: var(--space-sm);
  line-height: 1.4;
}

/* Odd last image spans full width */
.portfolio-brand__card:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.portfolio-brand__card:last-child:nth-child(odd) .portfolio-brand__img {
  max-height: 480px;
  object-position: center;
}

/* Gallery pages — masonry with natural proportions */
.portfolio-brand--gallery .portfolio-brand__grid {
  display: block !important;
  columns: 2;
  column-gap: var(--space-xl);
}

@media (max-width: 639px) {
  .portfolio-brand--gallery .portfolio-brand__grid {
    columns: 1;
  }
}

.portfolio-brand--gallery .portfolio-brand__card {
  break-inside: avoid;
  margin-bottom: var(--space-xl);
  display: block;
  width: 100%;
}

.portfolio-brand--gallery .portfolio-brand__img {
  width: 100%;
  aspect-ratio: auto !important;
  height: auto !important;
  object-fit: contain;
  display: block;
}


.portfolio-brand__gallery-link {
  display: inline-block;
  margin-top: var(--space-2xl);
  font-size: var(--type-small);
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #777777;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.portfolio-brand__gallery-link:hover {
  color: #000000;
}

/* ---------- 22. Page header label (breadcrumb) ---------- */
.page-header__label {
  display: block;
  font-size: var(--type-caption);
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #777777;
  margin-bottom: var(--space-md);
}

.page-header__label a:hover {
  color: #000000;
}

