/* =============================================
   Extreme Pizza – Pentagon City
   Shared Stylesheet: /assets/css/common.css
   ============================================= */

/* --- Variables --- */
:root {
  --red:        #c8102e;   /* Extreme Pizza brand red */
  --red-dark:   #a00d24;   /* hover / pressed state */
  --black:      #1a1a1a;
  --white:      #ffffff;
  --gray-light: #f5f5f5;
  --gray-mid:   #e0e0e0;
  --gray-text:  #555555;
  --font-head:  'Oswald', sans-serif;
  --font-body:  'Source Sans 3', sans-serif;
  --max-width:  1100px;
  --header-h:   68px;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-body);
  color: var(--black);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.15;
}

/* --- Header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--black);
  height: var(--header-h);
  box-shadow: 0 2px 6px rgba(0,0,0,0.35);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-link { display: flex; align-items: center; }

.logo {
  height: 44px;
  width: auto;
  /* The logo is on a transparent background; looks fine on dark header */
}

/* --- Order Button --- */
.btn-order {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 10px 24px;
  border-radius: 3px;
  transition: background 0.2s ease;
  white-space: nowrap;
}

.btn-order:hover,
.btn-order:focus {
  background: var(--red-dark);
  text-decoration: none;
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

.btn-order--large {
  font-size: 1.15rem;
  padding: 14px 36px;
}

/* --- Hero (base styles; override per page) --- */
.hero {
  position: relative;
  background: var(--black);
  color: var(--white);
  min-height: 380px;
  display: flex;
  align-items: center;
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 60px 24px;
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  color: var(--white);
  margin-bottom: 12px;
}

.hero-sub {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.85);
  max-width: 560px;
  margin-bottom: 28px;
}

/* Hero with background image */
.hero--bg {
  background-size: cover;
  background-position: center;
}

/* Dark overlay for readability over photos */
.hero--bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1;
}

/* --- Section utility classes --- */
.section {
  padding: 60px 24px;
}

.section--gray {
  background: var(--gray-light);
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: var(--black);
  margin-bottom: 20px;
}

.section-title--red {
  color: var(--red);
}

/* --- Card grid --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 28px;
}

.card {
  background: var(--white);
  border: 1px solid var(--gray-mid);
  border-radius: 4px;
  padding: 28px 24px;
}

.card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

/* --- CTA band --- */
.cta-band {
  background: var(--red);
  color: var(--white);
  text-align: center;
  padding: 48px 24px;
}

.cta-band h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--white);
  margin-bottom: 20px;
}

.btn-order--light {
  background: var(--white);
  color: var(--red);
}

.btn-order--light:hover,
.btn-order--light:focus {
  background: var(--gray-light);
  outline-color: var(--white);
}

/* --- Footer --- */
.site-footer {
  background: var(--black);
  color: rgba(255,255,255,0.75);
  text-align: center;
  padding: 28px 24px;
  font-size: 0.9rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-name {
  font-family: var(--font-head);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--white);
  margin-bottom: 6px;
}

.footer-address { margin-bottom: 4px; }

.site-footer a {
  color: rgba(255,255,255,0.75);
}
.site-footer a:hover { color: var(--white); }

/* --- Responsive --- */
@media (max-width: 600px) {
  .logo { height: 36px; }
  .btn-order { font-size: 0.9rem; padding: 8px 16px; }
  .hero-inner { padding: 40px 16px; }
  .section { padding: 40px 16px; }
}
