/*
Theme Name: CDT Pizza
Theme URI: http://cdtpizza.com/
Author: CDT Pizza
Description: A modern, responsive Domino's franchise team and careers theme inspired by bold franchise culture websites. Built for CDT Pizza with editable homepage sections, stats, careers CTA, and contact content.
Version: 1.0.0
Text Domain: cdt-pizza
*/

:root {
  --cdt-blue: #00539f;
  --cdt-navy: #003b73;
  --cdt-red: #e31837;
  --cdt-dark: #102338;
  --cdt-light: #f6f8fb;
  --cdt-white: #ffffff;
  --cdt-gray: #667085;
  --cdt-border: #dce3ea;
  --cdt-shadow: 0 18px 50px rgba(16,35,56,.14);
  --cdt-radius: 22px;
  --cdt-max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--cdt-dark);
  background: var(--cdt-white);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
.container { width: min(calc(100% - 40px), var(--cdt-max)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(220,227,234,.8);
}
.header-inner {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand { display: flex; align-items: center; min-width: 170px; }
.brand img { width: 170px; max-height: 72px; object-fit: contain; object-position: left center; }
.brand-name { font-size: 1.35rem; font-weight: 900; color: var(--cdt-navy); letter-spacing: -.03em; }

.primary-nav ul { display: flex; align-items: center; gap: 28px; list-style: none; padding: 0; margin: 0; }
.primary-nav a { font-size: .9rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; position: relative; }
.primary-nav a::after { content: ""; position: absolute; left: 0; bottom: -9px; width: 0; height: 3px; background: var(--cdt-red); transition: width .25s ease; }
.primary-nav a:hover::after, .primary-nav .current-menu-item > a::after { width: 100%; }
.header-cta { padding: 12px 18px; border-radius: 999px; background: var(--cdt-red); color: white; font-weight: 900; font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; }
.menu-toggle { display: none; border: 0; background: var(--cdt-navy); color: white; padding: 10px 14px; border-radius: 10px; font-weight: 800; }

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 75% 20%, rgba(0,83,159,.18), transparent 30%),
    linear-gradient(135deg, #ffffff 0%, #f7fbff 48%, #eef5fb 100%);
  padding: 82px 0 76px;
}
.hero::before { content: ""; position: absolute; width: 560px; height: 560px; border: 64px solid rgba(227,24,55,.06); border-radius: 50%; right: -220px; top: -280px; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 70px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--cdt-red); font-weight: 900; text-transform: uppercase; letter-spacing: .12em; font-size: .82rem; }
.eyebrow::before { content: ""; width: 36px; height: 4px; background: currentColor; border-radius: 99px; }
.hero h1 { margin: 18px 0 18px; font-size: clamp(3rem, 7vw, 6.2rem); line-height: .95; letter-spacing: -.065em; color: var(--cdt-navy); max-width: 780px; }
.hero h1 span { color: var(--cdt-red); }
.hero p { margin: 0 0 30px; max-width: 680px; font-size: 1.18rem; color: #41566d; }
.button-row { display: flex; flex-wrap: wrap; gap: 14px; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 15px 23px; border-radius: 999px; font-weight: 900; text-transform: uppercase; letter-spacing: .05em; font-size: .88rem; transition: transform .2s ease, box-shadow .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--cdt-red); color: white; box-shadow: 0 12px 28px rgba(227,24,55,.25); }
.btn-secondary { border: 2px solid var(--cdt-navy); color: var(--cdt-navy); background: white; }
.hero-card { background: white; border-radius: 32px; padding: 28px; box-shadow: var(--cdt-shadow); transform: rotate(1.2deg); }
.hero-card img { display: block; width: 100%; border-radius: 18px; }
.hero-card .mini { margin-top: 18px; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-weight: 800; color: var(--cdt-navy); }
.hero-card .badge { background: var(--cdt-blue); color: white; border-radius: 999px; padding: 8px 13px; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }

.stats { background: var(--cdt-navy); color: white; }
.stats-grid { display: grid; grid-template-columns: repeat(3,1fr); }
.stat { padding: 36px 28px; text-align: center; border-right: 1px solid rgba(255,255,255,.18); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-size: clamp(2.4rem, 6vw, 4.5rem); line-height: 1; letter-spacing: -.05em; }
.stat span { display: block; margin-top: 10px; text-transform: uppercase; letter-spacing: .14em; font-weight: 800; font-size: .78rem; opacity: .8; }

.section { padding: 94px 0; }
.section-kicker { color: var(--cdt-red); font-weight: 900; text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; }
.section h2 { margin: 10px 0 20px; color: var(--cdt-navy); font-size: clamp(2.2rem, 5vw, 4.2rem); line-height: 1; letter-spacing: -.05em; }
.section-lead { font-size: 1.12rem; color: var(--cdt-gray); max-width: 760px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.feature-panel { background: var(--cdt-light); border-radius: var(--cdt-radius); padding: 40px; border: 1px solid var(--cdt-border); }
.feature-list { display: grid; gap: 18px; margin-top: 26px; }
.feature-item { display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: start; }
.feature-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--cdt-red); color: white; font-weight: 900; font-size: 1.1rem; }
.feature-item h3 { margin: 0 0 4px; color: var(--cdt-navy); }
.feature-item p { margin: 0; color: var(--cdt-gray); }

.values { background: var(--cdt-light); }
.card-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; margin-top: 42px; }
.value-card { background: white; border-radius: 20px; padding: 30px 24px; box-shadow: 0 8px 26px rgba(16,35,56,.07); border-top: 5px solid var(--cdt-blue); }
.value-card:nth-child(even) { border-top-color: var(--cdt-red); }
.value-card h3 { margin: 10px 0 8px; font-size: 1.28rem; color: var(--cdt-navy); }
.value-card p { margin: 0; color: var(--cdt-gray); font-size: .96rem; }

.careers { background: linear-gradient(135deg, var(--cdt-blue), var(--cdt-navy)); color: white; position: relative; overflow: hidden; }
.careers::after { content: ""; position: absolute; inset: auto -120px -220px auto; width: 500px; height: 500px; border-radius: 50%; border: 70px solid rgba(255,255,255,.06); }
.careers .section-kicker, .careers h2 { color: white; }
.careers p { color: rgba(255,255,255,.82); max-width: 760px; }
.careers .btn-secondary { border-color: white; color: white; background: transparent; }

.contact-strip { padding: 54px 0; background: white; border-bottom: 1px solid var(--cdt-border); }
.contact-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 30px; align-items: center; }
.contact-grid h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.3rem); color: var(--cdt-navy); letter-spacing: -.04em; }
.contact-grid p { margin: 9px 0 0; color: var(--cdt-gray); }
.contact-actions { display: flex; justify-content: flex-end; gap: 12px; flex-wrap: wrap; }

.site-footer { background: #081c30; color: rgba(255,255,255,.82); padding: 58px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr .7fr .7fr; gap: 50px; }
.site-footer h3 { color: white; margin-top: 0; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 8px 0; }
.footer-logo { width: 210px; background: white; border-radius: 14px; padding: 10px; }
.footer-bottom { margin-top: 42px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.14); display: flex; justify-content: space-between; gap: 20px; font-size: .88rem; }

.page-hero { padding: 78px 0; background: var(--cdt-light); }
.page-hero h1 { margin: 0; font-size: clamp(2.8rem, 6vw, 5rem); color: var(--cdt-navy); letter-spacing: -.055em; }
.content-area { padding: 70px 0 100px; }
.entry-content { max-width: 850px; }
.entry-content h2, .entry-content h3 { color: var(--cdt-navy); }
.entry-content a { color: var(--cdt-blue); text-decoration: underline; }

@media (max-width: 960px) {
  .hero-grid, .two-col, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: repeat(2,1fr); }
  .hero-card { max-width: 650px; }
  .contact-actions { justify-content: flex-start; }
  .primary-nav { display: none; position: absolute; top: 88px; left: 0; right: 0; background: white; border-bottom: 1px solid var(--cdt-border); padding: 20px; }
  .primary-nav.open { display: block; }
  .primary-nav ul { flex-direction: column; align-items: flex-start; gap: 18px; }
  .menu-toggle { display: inline-flex; }
  .header-cta { display: none; }
}
@media (max-width: 640px) {
  .container { width: min(calc(100% - 26px), var(--cdt-max)); }
  .hero { padding: 58px 0; }
  .hero h1 { font-size: 3.4rem; }
  .section { padding: 70px 0; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.18); }
  .stat:last-child { border-bottom: 0; }
  .card-grid { grid-template-columns: 1fr; }
  .feature-panel { padding: 26px; }
  .footer-bottom { flex-direction: column; }
}
