/*
Theme Name: Third Door Productions
Theme URI: https://example.com/third-door-productions
Author: Third Door Productions
Description: Custom cinematic WordPress theme for Third Door Productions. Responsive homepage, project portfolio, Customizer options, and Sofia Sans typography.
Version: 1.0.0
Requires at least: 6.2
Tested up to: 6.7
Requires PHP: 7.4
Text Domain: third-door-productions
*/

:root {
  --tdp-gold: #f6b51f;
  --tdp-gold-2: #ffc84d;
  --tdp-red: #7b0011;
  --tdp-red-dark: #3a0007;
  --tdp-ink: #17120f;
  --tdp-cream: #fff8ec;
  --tdp-paper: #fffdf8;
  --tdp-muted: #6e625d;
  --tdp-line: rgba(123,0,17,.12);
  --tdp-radius: 22px;
  --tdp-shadow: 0 18px 60px rgba(58,0,7,.12);
  --tdp-font: "Sofia Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--tdp-font);
  color: var(--tdp-ink);
  background: var(--tdp-paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }

.tdp-container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.tdp-section { padding: 88px 0; position: relative; }
.tdp-section--tight { padding: 64px 0; }
.tdp-kicker {
  margin: 0 0 10px;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--tdp-red);
}
.tdp-section-title {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.02;
  letter-spacing: -.035em;
}
.tdp-lead { color: var(--tdp-muted); font-size: 1.08rem; max-width: 760px; }

.tdp-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: var(--tdp-gold);
  color: #2b1500;
  font-weight: 800;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  cursor: pointer;
}
.tdp-button:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(246,181,31,.28); }
.tdp-button--outline { background: transparent; border-color: rgba(255,255,255,.55); color: #fff; }
.tdp-button--dark { background: var(--tdp-red); color: #fff; }

/* Header */
.tdp-site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(58,0,7,.96);
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.07);
  backdrop-filter: blur(14px);
}
.tdp-header-inner { min-height: 76px; display: flex; align-items: center; gap: 32px; }
.tdp-brand { display: flex; align-items: center; flex: 0 0 auto; }
.tdp-brand img { width: 118px; max-height: 58px; object-fit: contain; }
.tdp-nav { margin-left: auto; }
.tdp-nav ul { display: flex; gap: 28px; align-items: center; list-style: none; margin: 0; padding: 0; }
.tdp-nav a { font-size: .95rem; font-weight: 700; color: rgba(255,255,255,.86); }
.tdp-nav a:hover { color: var(--tdp-gold-2); }
.tdp-header-cta { white-space: nowrap; }
.tdp-menu-toggle { display: none; margin-left: auto; border: 0; background: transparent; color: #fff; font-size: 1.7rem; }

/* Hero */
.tdp-hero {
  position: relative;
  min-height: 680px;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 72% 46%, rgba(246,181,31,.26), transparent 34%),
    linear-gradient(110deg, rgba(8,5,4,.96) 0%, rgba(30,8,6,.92) 47%, rgba(73,7,12,.82) 100%);
}
.tdp-hero::before,
.tdp-hero::after {
  content: "";
  position: absolute;
  inset: auto;
  pointer-events: none;
}
.tdp-hero::before {
  width: 540px; height: 540px;
  right: -90px; top: 50%; transform: translateY(-48%);
  border-radius: 50%;
  border: 28px solid rgba(246,181,31,.15);
  box-shadow: inset 0 0 0 18px rgba(123,0,17,.35);
}
.tdp-hero::after {
  width: 620px; height: 240px;
  right: -80px; bottom: 60px;
  border: 2px solid rgba(255,200,77,.18);
  transform: rotate(-8deg);
}
.tdp-hero.has-image { background-size: cover; background-position: center; }
.tdp-hero.has-image::before { background: linear-gradient(90deg, rgba(8,5,4,.96), rgba(8,5,4,.7) 55%, rgba(8,5,4,.18)); inset: 0; width: auto; height: auto; border: 0; border-radius: 0; box-shadow: none; transform: none; }
.tdp-hero-inner { position: relative; z-index: 2; padding: 92px 0; max-width: 760px; }
.tdp-hero-kicker { color: var(--tdp-gold-2); font-size: .85rem; letter-spacing: .28em; text-transform: uppercase; font-weight: 800; }
.tdp-hero h1 { margin: 18px 0 18px; font-size: clamp(3rem, 7vw, 6.2rem); line-height: .92; letter-spacing: -.055em; }
.tdp-hero h1 span { color: var(--tdp-gold-2); }
.tdp-hero p { max-width: 680px; color: rgba(255,255,255,.82); font-size: clamp(1.05rem, 2vw, 1.26rem); }
.tdp-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.tdp-hero-meta { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 38px; color: rgba(255,255,255,.56); font-size: .88rem; }
.tdp-hero-meta strong { color: #fff; }

/* Services */
.tdp-services { background: var(--tdp-cream); }
.tdp-section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 36px; }
.tdp-section-head .tdp-lead { margin: 0; max-width: 520px; }
.tdp-service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tdp-service-card {
  background: rgba(255,255,255,.78);
  border: 1px solid var(--tdp-line);
  border-radius: 18px;
  padding: 24px;
  min-height: 170px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 8px 24px rgba(58,0,7,.04);
  transition: transform .2s ease, box-shadow .2s ease;
}
.tdp-service-card:hover { transform: translateY(-4px); box-shadow: var(--tdp-shadow); }
.tdp-service-icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: rgba(123,0,17,.08); color: var(--tdp-red); font-size: 1.3rem; font-weight: 900; }
.tdp-service-card h3 { margin: 22px 0 0; font-size: 1.06rem; line-height: 1.25; }

/* Scope */
.tdp-scope { overflow: hidden; }
.tdp-scope::before { content: ""; position: absolute; width: 460px; height: 460px; left: -200px; top: 80px; border-radius: 50%; background: rgba(246,181,31,.1); }
.tdp-scope-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; position: relative; z-index: 2; }
.tdp-scope-visual {
  min-height: 510px;
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(246,181,31,.95), rgba(123,0,17,.98)),
    #7b0011;
  position: relative;
  overflow: hidden;
  box-shadow: var(--tdp-shadow);
}
.tdp-scope-visual::before { content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%; border: 34px solid rgba(255,255,255,.14); left: 50%; top: 50%; transform: translate(-50%,-50%); }
.tdp-scope-visual::after { content: "THIRD\A DOOR"; white-space: pre; position: absolute; bottom: 30px; left: 30px; font-weight: 900; font-size: clamp(3.2rem, 7vw, 6rem); line-height: .78; letter-spacing: -.06em; color: rgba(255,255,255,.13); }
.tdp-scope-copy p { color: var(--tdp-muted); font-size: 1.04rem; }
.tdp-scope-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 26px; padding: 0; margin: 28px 0 0; list-style: none; }
.tdp-scope-list li { position: relative; padding-left: 22px; font-weight: 700; }
.tdp-scope-list li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--tdp-gold); position: absolute; left: 0; top: .6em; box-shadow: 0 0 0 5px rgba(246,181,31,.12); }
.tdp-details { margin-top: 28px; border-top: 1px solid var(--tdp-line); padding-top: 18px; }
.tdp-details summary { cursor: pointer; color: var(--tdp-red); font-weight: 800; }
.tdp-details p { font-size: .96rem; }

/* Portfolio */
.tdp-projects { background: #1a0708; color: #fff; }
.tdp-projects .tdp-kicker { color: var(--tdp-gold-2); }
.tdp-projects .tdp-lead { color: rgba(255,255,255,.6); }
.tdp-project-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; margin-top: 36px; }
.tdp-project-card { min-height: 330px; border-radius: 22px; overflow: hidden; position: relative; background: linear-gradient(155deg,#5f0b15,#160607); border: 1px solid rgba(255,255,255,.09); }
.tdp-project-card img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.tdp-project-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 28%, rgba(0,0,0,.84)); }
.tdp-project-placeholder { position: absolute; inset: 0; background: radial-gradient(circle at 65% 30%, rgba(246,181,31,.36), transparent 28%), linear-gradient(140deg,#4a0710,#130506); }
.tdp-project-placeholder::before { content: ""; position: absolute; width: 160px; height: 160px; border: 18px solid rgba(255,255,255,.07); border-radius: 50%; right: 18px; top: 26px; }
.tdp-project-info { position: absolute; inset: auto 24px 24px; z-index: 3; }
.tdp-project-info h3 { margin: 0 0 6px; font-size: 1.42rem; line-height: 1.1; }
.tdp-project-info p { margin: 0; color: rgba(255,255,255,.64); font-size: .9rem; }

/* Process */
.tdp-process { background: linear-gradient(100deg,var(--tdp-red-dark),var(--tdp-red)); color: #fff; }
.tdp-process .tdp-kicker { color: var(--tdp-gold-2); }
.tdp-process-grid { display: grid; grid-template-columns: 1.1fr 1fr 1fr 1fr 1fr; gap: 24px; align-items: start; }
.tdp-process-intro h2 { margin: 0; font-size: clamp(2.4rem,5vw,4.8rem); line-height: .9; letter-spacing: -.05em; }
.tdp-step { position: relative; padding-left: 4px; }
.tdp-step-num { width: 42px; height: 42px; border-radius: 50%; background: var(--tdp-gold); color: #311400; display: grid; place-items: center; font-weight: 900; margin-bottom: 18px; }
.tdp-step h3 { margin: 0 0 8px; }
.tdp-step p { margin: 0; color: rgba(255,255,255,.64); font-size: .9rem; }

/* About + Contact */
.tdp-about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: stretch; }
.tdp-about-card, .tdp-contact-card { border-radius: 26px; padding: clamp(28px,5vw,48px); }
.tdp-about-card { background: var(--tdp-cream); border: 1px solid var(--tdp-line); }
.tdp-about-card p { color: var(--tdp-muted); }
.tdp-contact-card { background: linear-gradient(135deg,var(--tdp-gold-2),var(--tdp-gold)); color: #321500; box-shadow: var(--tdp-shadow); }
.tdp-contact-card .tdp-kicker { color: var(--tdp-red); }
.tdp-contact-card h2 { margin: 0 0 14px; font-size: clamp(2.2rem,4vw,3.5rem); line-height: .95; letter-spacing: -.04em; }
.tdp-contact-items { display: grid; gap: 12px; margin: 26px 0; }
.tdp-contact-item { display: flex; gap: 12px; align-items: center; font-weight: 800; }
.tdp-contact-item span:first-child { width: 34px; height: 34px; border-radius: 50%; background: rgba(123,0,17,.1); display: grid; place-items: center; color: var(--tdp-red); }

/* Footer */
.tdp-site-footer { background: #260005; color: rgba(255,255,255,.75); padding: 34px 0; }
.tdp-footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center; }
.tdp-footer-logo img { width: 112px; }
.tdp-footer-meta { text-align: right; font-size: .88rem; }
.tdp-footer-meta a:hover { color: var(--tdp-gold-2); }

/* Internal content */
.tdp-content { padding: 72px 0; }
.tdp-content article { max-width: 820px; margin: 0 auto; }
.tdp-content h1 { font-size: clamp(2.6rem,6vw,5rem); line-height: .95; }
.tdp-content .entry-content { font-size: 1.05rem; }
.tdp-content .entry-content > * { margin-bottom: 1.35em; }

@media (max-width: 980px) {
  .tdp-menu-toggle { display: block; }
  .tdp-nav { display: none; position: absolute; left: 0; right: 0; top: 76px; background: #3a0007; padding: 18px 20px 24px; }
  .tdp-nav.is-open { display: block; }
  .tdp-nav ul { flex-direction: column; align-items: flex-start; gap: 12px; }
  .tdp-header-cta { display: none; }
  .tdp-service-grid { grid-template-columns: repeat(2,1fr); }
  .tdp-scope-grid { grid-template-columns: 1fr; }
  .tdp-scope-visual { min-height: 360px; }
  .tdp-project-grid { grid-template-columns: repeat(2,1fr); }
  .tdp-process-grid { grid-template-columns: 1fr 1fr; }
  .tdp-process-intro { grid-column: 1 / -1; }
  .tdp-about-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .tdp-container { width: min(100% - 28px, 1180px); }
  .tdp-section { padding: 64px 0; }
  .tdp-header-inner { min-height: 68px; }
  .tdp-nav { top: 68px; }
  .tdp-brand img { width: 98px; }
  .tdp-hero { min-height: 600px; }
  .tdp-hero-inner { padding: 76px 0; }
  .tdp-hero h1 { font-size: clamp(3rem,15vw,4.6rem); }
  .tdp-section-head { display: block; }
  .tdp-section-head .tdp-lead { margin-top: 16px; }
  .tdp-service-grid, .tdp-project-grid, .tdp-process-grid { grid-template-columns: 1fr; }
  .tdp-scope-list { grid-template-columns: 1fr; }
  .tdp-footer-grid { grid-template-columns: 1fr; }
  .tdp-footer-meta { text-align: left; }
}
