/* ============================================================
   THE DYNAMITE AGENCY — style.css
   Companion to index.html (Bootstrap 5)
   Import order: Bootstrap → Google Fonts → this file
   ============================================================ */

/* ── TOKENS ── */
:root {
  --cream:     #F5F2EC;
  --ink:       #1A1916;
  --ink-mid:   #3D3C38;
  --ink-light: #8A887E;
  --rule:      #D6D2C8;
  --accent:    #B8A98A;
  --white:     #FFFFFF;
  --serif:     'Cormorant Garamond', Georgia, serif;
  --sans:      'Jost', system-ui, sans-serif;
  --px-section: 80px;
  --py-section: 120px;
}

/* ── RESETS & BASE ── */
*, *::before, *::after { box-sizing: border-box; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  /* prevent Bootstrap body margin interfering with fixed nav */
  padding-top: 64px;
}

/* ── SPACING UTILITIES ── */
.px-section  { padding-left: var(--px-section) !important; padding-right: var(--px-section) !important; }
.py-section  { padding-top: var(--py-section) !important; padding-bottom: var(--py-section) !important; }
.mb-section  { margin-bottom: 64px; }


/* ============================================================
   NAVIGATION
   ============================================================ */
.tda-nav {
  background: var(--cream);
  border-bottom: 1px solid var(--rule);
  height: 64px;
  padding: 0 48px;
}

.tda-nav-inner { height: 64px; }

.nav-left,
.nav-right {
  gap: 32px;
  flex: 1;
}

.nav-left a,
.nav-right a {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mid);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-left a:hover,
.nav-right a:hover { color: var(--ink); }

.nav-logo a {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--ink);
  text-decoration: none;
  display: block;
  line-height: 1;
}

.nav-logo span {
  display: block;
  font-family: var(--sans);
  font-size: 8px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-light);
  margin-top: 3px;
}

.nav-cta {
  font-family: var(--sans) !important;
  font-size: 10px !important;
  font-weight: 400 !important;
  letter-spacing: 0.16em !important;
  text-transform: uppercase !important;
  color: var(--white) !important;
  background: var(--ink) !important;
  padding: 9px 20px !important;
  text-decoration: none !important;
  transition: background 0.2s !important;
  border-radius: 0 !important;
}

.nav-cta:hover { background: var(--ink-mid) !important; }

/* Override Bootstrap navbar-toggler default colors */
.tda-nav .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%231A1916' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.tda-mobile-link {
  font-family: var(--sans) !important;
  font-size: 13px !important;
  font-weight: 300 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  color: var(--ink-mid) !important;
}


/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: calc(100vh - 64px);
}

/* Bootstrap row needs h-100 parent or explicit min-height */
.hero > .row { min-height: calc(100vh - 64px); }

.hero-left {
  padding: 80px 64px 80px 80px;
  border-right: 1px solid var(--rule);
}

.hero-eyebrow {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-light);
  display: flex;
  align-items: center;
  gap: 16px;
}

.hero-eyebrow::before {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  flex-shrink: 0;
  background: var(--accent);
}

.hero-headline {
  font-family: var(--serif);
  font-size: clamp(52px, 6vw, 88px);
  font-weight: 300;
  line-height: 1.0;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.hero-headline em {
  font-style: italic;
  font-weight: 300;
  color: var(--ink-mid);
}

.hero-body {
  max-width: 420px;
  font-size: 15px;
  font-weight: 300;
  line-height: 1.75;
  color: var(--ink-mid);
}

/* Buttons */
.btn-primary,
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white) !important;
  background: var(--ink) !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 16px 36px;
  text-decoration: none;
  transition: background 0.2s;
  display: inline-block;
  box-shadow: none !important;
}

.btn-primary:hover { background: var(--ink-mid) !important; }

.btn-ghost {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 2px;
  transition: border-color 0.2s;
  background: transparent;
}

.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }

.hero-stats {
  padding-top: 64px;
  border-top: 1px solid var(--rule);
}

.stat-num {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 400;
  line-height: 1;
  color: var(--ink);
}

.stat-label {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-light);
  margin-top: 6px;
}

/* Hero right image panel */
.hero-right {
  background: var(--ink);
}

.hero-right-inner {
  grid-template-rows: 1fr 1fr;
}

.hero-img-top {
  background: linear-gradient(135deg, #2C2B27 0%, #1A1916 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-img-top::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Ccircle cx='30' cy='30' r='0.5' fill='rgba(245,242,236,0.12)'/%3E%3C/svg%3E");
  opacity: 0.4;
}

.hero-placeholder-label {
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0.12em;
  color: rgba(245, 242, 236, 0.35);
  position: relative;
  z-index: 1;
}

.hero-img-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.hero-img-cell {
  background: #222119;
  display: flex;
  align-items: flex-end;
  padding: 20px;
  overflow: hidden;
}

.hero-img-cell + .hero-img-cell {
  border-left: 1px solid rgba(255, 255, 255, 0.06);
}

.hero-img-cell::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Crect x='19.5' y='0' width='1' height='40' fill='rgba(245,242,236,0.04)'/%3E%3Crect x='0' y='19.5' width='40' height='1' fill='rgba(245,242,236,0.04)'/%3E%3C/svg%3E");
}

.cell-tag {
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(245, 242, 236, 0.45);
  font-family: var(--sans);
  position: relative;
  z-index: 1;
}


/* ============================================================
   SECTION HEADER (the ruled title bar)
   ============================================================ */
.section-header {
  grid-template-columns: auto 1fr;
  gap: 24px;
  padding-left: var(--px-section);
  padding-right: var(--px-section);
}

.section-header::after {
  content: '';
  display: block;
  height: 1px;
  background: var(--rule);
}

.section-label {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-light);
  white-space: nowrap;
}


/* ============================================================
   SERVICES
   ============================================================ */
.tda-services {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.service-item {
  padding: 48px 40px;
  border-right: 1px solid var(--rule);
  transition: background 0.3s;
}

.service-item:last-child { border-right: none; }
.service-item:hover      { background: var(--cream); }

/* On small screens collapse borders */
@media (max-width: 767.98px) {
  .service-item {
    border-right: none;
    border-bottom: 1px solid var(--rule);
    padding: 40px 0;
  }
}

.service-num {
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 400;
  color: var(--accent);
  letter-spacing: 0.08em;
}

.service-title {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 400;
  line-height: 1.15;
  color: var(--ink);
}

.service-body {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.75;
  color: var(--ink-mid);
}

.service-link {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 2px;
  transition: gap 0.2s, border-color 0.2s;
}

.service-link:hover { border-color: var(--ink); color: var(--ink); }


/* ============================================================
   WORK GRID  (CSS Grid — Bootstrap 12-col can't do this layout)
   ============================================================ */
.tda-work {
  padding-top: var(--py-section);
  padding-bottom: var(--py-section);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2px;
}

.work-item {
  background: var(--ink);
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.work-item:hover .work-bg { transform: scale(1.03); }

.work-item--large { grid-column: span 7; aspect-ratio: 4 / 3; }
.work-item--tall  { grid-column: span 5; aspect-ratio: 3 / 4; }
.work-item--med   { grid-column: span 4; aspect-ratio: 1 / 1; }
.work-item--wide  { grid-column: span 8; aspect-ratio: 16 / 7; }

.work-bg {
  position: absolute;
  inset: 0;
  transition: transform 0.6s ease;
}

.work-bg-1 { background: linear-gradient(135deg, #2C2B27 0%, #1A1916 60%, #2E2A20 100%); }
.work-bg-2 { background: linear-gradient(160deg, #1F2830 0%, #1A1916 50%, #241E18 100%); }
.work-bg-3 { background: linear-gradient(110deg, #28241C 0%, #1A1916 100%); }
.work-bg-4 { background: linear-gradient(145deg, #221F19 0%, #2A2520 50%, #1A1916 100%); }

.work-meta {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 24px 28px;
  background: linear-gradient(to top, rgba(26, 25, 22, 0.9) 0%, transparent 100%);
}

.work-category {
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  font-family: var(--sans);
}

/* .work-title is used by Bootstrap — use a distinct class */
.work-title-text {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 400;
  color: var(--cream);
  margin-top: 4px;
  line-height: 1.25;
}

@media (max-width: 767.98px) {
  .work-grid { grid-template-columns: 1fr; }
  .work-item--large,
  .work-item--tall,
  .work-item--med,
  .work-item--wide { grid-column: span 1; aspect-ratio: 4 / 3; }
}


/* ============================================================
   PULL QUOTE
   ============================================================ */
.pullquote {
  grid-template-columns: 1fr 2fr 1fr;
  gap: 64px;
  padding: 120px 80px;
  background: var(--ink);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.pullquote-rule {
  height: 1px;
  background: rgba(245, 242, 236, 0.15);
}

.pullquote-text {
  font-family: var(--serif);
  font-size: clamp(28px, 3.5vw, 52px);
  font-weight: 300;
  font-style: italic;
  line-height: 1.25;
  color: var(--cream);
}

.pullquote-text em {
  font-style: normal;
  color: var(--accent);
}

@media (max-width: 767.98px) {
  .pullquote { grid-template-columns: 1fr; padding: 80px 24px; }
  .pullquote-rule { display: none; }
}


/* ============================================================
   PROCESS
   ============================================================ */
.tda-process {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.process-intro h2 {
  font-family: var(--serif);
  font-size: clamp(36px, 4vw, 60px);
  font-weight: 300;
  line-height: 1.1;
  color: var(--ink);
}

.process-intro h2 em {
  font-style: italic;
  font-weight: 300;
}

.process-intro p {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.75;
  color: var(--ink-mid);
  max-width: 440px;
}

.process-step {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 24px;
  align-items: start;
  padding: 28px 0;
  border-bottom: 1px solid var(--rule);
}

.process-step:first-child { border-top: 1px solid var(--rule); }

.step-num {
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 400;
  color: var(--accent);
  padding-top: 2px;
}

.step-content h4 {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0;
}

.step-content p {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--ink-mid);
  margin: 6px 0 0;
}


/* ============================================================
   CLIENTS
   ============================================================ */
.tda-clients {
  padding-top: 80px;
  padding-bottom: 80px;
  border-bottom: 1px solid var(--rule);
}

.clients-label {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-light);
  white-space: nowrap;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.client-name {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 400;
  color: var(--rule);
  letter-spacing: 0.04em;
  transition: color 0.2s;
  cursor: default;
}

.client-name:hover { color: var(--ink-light); }


/* ============================================================
   TESTIMONIAL
   ============================================================ */
.tda-testimonial {
  border-bottom: 1px solid var(--rule);
}

.testimonial-quote {
  font-family: var(--serif);
  font-size: clamp(22px, 2.5vw, 34px);
  font-weight: 300;
  line-height: 1.45;
  color: var(--ink);
  border: none;
  padding: 0;
  margin: 0;
}

.testimonial-quote::before {
  content: '\201C';
  font-size: 80px;
  line-height: 0.6;
  display: block;
  color: var(--accent);
  font-family: var(--serif);
  margin-bottom: 24px;
}

.testimonial-line {
  width: 32px;
  flex-shrink: 0;
  height: 1px;
  background: var(--accent);
}

.testimonial-name {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mid);
}

.testimonial-role {
  font-size: 11px;
  color: var(--ink-light);
  margin-left: 4px;
}

.testimonial-visual {
  aspect-ratio: 3 / 4;
  background: var(--ink);
}

.testimonial-visual-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, #2C2A24 0%, #1A1916 100%);
}

.testimonial-visual::after {
  content: 'Featured Property';
  position: absolute;
  bottom: 24px;
  left: 24px;
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(245, 242, 236, 0.35);
}


/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band {
  background: var(--ink);
}

.cta-band h2 {
  font-family: var(--serif);
  font-size: clamp(36px, 4.5vw, 72px);
  font-weight: 300;
  line-height: 1.05;
  color: var(--cream);
}

.cta-band h2 em {
  font-style: italic;
  color: var(--accent);
}

.btn-cream {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--cream);
  padding: 16px 36px;
  text-decoration: none;
  transition: background 0.2s;
  display: inline-block;
}

.btn-cream:hover { background: var(--white); color: var(--ink); }

.btn-outline {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(245, 242, 236, 0.6);
  text-decoration: none;
  border-bottom: 1px solid rgba(245, 242, 236, 0.2);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}

.btn-outline:hover {
  color: var(--cream);
  border-color: rgba(245, 242, 236, 0.5);
}


/* ============================================================
   FOOTER
   ============================================================ */
.tda-footer {
  background: var(--ink);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-grid-row {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-brand-name {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 400;
  color: var(--cream);
  letter-spacing: 0.04em;
}

.footer-brand-tag {
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(245, 242, 236, 0.35);
}

.footer-brand-body {
  font-size: 13px;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(245, 242, 236, 0.5);
  max-width: 280px;
}

.footer-col-title {
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(245, 242, 236, 0.35);
}

.footer-links li { margin-bottom: 12px; }

.footer-links a {
  font-size: 13px;
  font-weight: 300;
  color: rgba(245, 242, 236, 0.6);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--cream); }

.footer-bottom { padding-top: 32px; }

.footer-copy {
  font-size: 11px;
  font-weight: 300;
  color: rgba(245, 242, 236, 0.25);
  letter-spacing: 0.06em;
}

.footer-social a {
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(245, 242, 236, 0.35);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-social a:hover { color: var(--cream); }


/* ============================================================
   SCROLL ANIMATION
   ============================================================ */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: none;
}


/* ============================================================
   RESPONSIVE OVERRIDES
   ============================================================ */
@media (max-width: 991.98px) {
  :root {
    --px-section: 32px;
    --py-section: 80px;
  }

  .tda-nav { padding: 0 24px; }

  .hero-left {
    padding: 60px 32px;
    border-right: none;
    border-bottom: 1px solid var(--rule);
  }

  .pullquote { padding: 80px 32px; }

  .tda-clients { flex-direction: column; align-items: flex-start !important; }
  .clients-label { writing-mode: horizontal-tb; transform: none; }
}

@media (max-width: 575.98px) {
  :root {
    --px-section: 20px;
    --py-section: 64px;
  }

  .footer-social { display: none !important; }
}
