/* ==========================================================================
   Reality Checkpoint — Design System
   Clean, minimal, premium. Photography speaks for itself.
   ========================================================================== */

/* --- Custom Properties --- */
:root {
  --color-bg: #FAFAF7;
  --color-bg-alt: #F2F0EB;
  --color-bg-dark: #1C1C1C;
  --color-text: #1C1C1C;
  --color-text-muted: #6B6B6B;
  --color-text-light: #999;
  --color-text-on-dark: #F5F3EE;
  --color-accent: #B8860B;
  --color-accent-hover: #9A7209;
  --color-accent-light: rgba(184, 134, 11, 0.1);
  --color-border: #E2DFD8;
  --color-border-light: #EDEBE6;

  --font-heading: 'DM Serif Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --max-width: 1200px;
  --max-width-narrow: 800px;
  --nav-height: 56px;

  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 48px;
  --space-xl: 80px;
  --space-2xl: 120px;
}


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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  font-weight: 400;
}

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

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--color-accent-hover);
}

ul, ol {
  list-style: none;
}


/* --- Typography --- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.2;
  color: var(--color-text);
}

h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
}

h3 {
  font-size: clamp(1.3rem, 2.5vw, 1.6rem);
}

h4 {
  font-family: var(--font-body);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
}

p {
  margin-bottom: 1em;
}

p:last-child {
  margin-bottom: 0;
}

.text-muted {
  color: var(--color-text-muted);
}

.text-center {
  text-align: center;
}

.lead {
  font-size: 1.2rem;
  line-height: 1.8;
  color: var(--color-text-muted);
}


/* --- Layout --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.container-narrow {
  max-width: var(--max-width-narrow);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section {
  padding: var(--space-xl) 0;
}

.section-lg {
  padding: var(--space-2xl) 0;
}

.section-alt {
  background: var(--color-bg-alt);
}

.section-dark {
  background: var(--color-bg-dark);
  color: var(--color-text-on-dark);
}

.section-dark h2,
.section-dark h3 {
  color: var(--color-text-on-dark);
}

.section-dark .text-muted,
.section-dark .lead {
  color: rgba(245, 243, 238, 0.7);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.section-header p {
  margin-top: var(--space-sm);
  color: var(--color-text-muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.divider {
  width: 48px;
  height: 2px;
  background: var(--color-accent);
  margin: var(--space-md) 0;
}

.divider-center {
  margin-left: auto;
  margin-right: auto;
}


/* --- Navigation --- */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: #FAFAF7;
  border-bottom: 1px solid var(--color-border-light);
  z-index: 1000;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.site-nav.scrolled {
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.06);
}

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

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--color-text);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.nav-logo span {
  color: var(--color-accent);
}

.nav-logo:hover {
  color: var(--color-text);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.nav-links a {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-text);
}

.nav-links .nav-cta {
  background: var(--color-text);
  color: var(--color-bg);
  padding: 10px 24px;
  border-radius: 4px;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  transition: background 0.2s ease;
}

.nav-links .nav-cta:hover {
  background: var(--color-accent);
  color: #fff;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}


/* --- Buttons --- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 14px 32px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--color-text);
  color: var(--color-bg);
}

.btn-primary:hover {
  background: var(--color-accent);
  color: #fff;
}

.btn-accent {
  background: var(--color-accent);
  color: #fff;
}

.btn-accent:hover {
  background: var(--color-accent-hover);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--color-text);
  border: 1.5px solid var(--color-text);
}

.btn-outline:hover {
  background: var(--color-text);
  color: var(--color-bg);
}

.btn-outline-light {
  background: transparent;
  color: var(--color-text-on-dark);
  border: 1.5px solid rgba(245, 243, 238, 0.4);
}

.btn-outline-light:hover {
  background: var(--color-text-on-dark);
  color: var(--color-bg-dark);
}

.btn-sm {
  padding: 10px 24px;
  font-size: 0.8rem;
}

.btn + .btn {
  margin-left: var(--space-sm);
}


/* --- Hero --- */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding: var(--space-2xl) 0;
  margin-top: var(--nav-height);
}

.hero-content {
  max-width: 720px;
}

.hero h1 {
  margin-bottom: var(--space-md);
}

.hero .lead {
  margin-bottom: var(--space-lg);
  font-size: 1.25rem;
}

.hero-small {
  min-height: 40vh;
  padding: var(--space-xl) 0;
}

.hero-small h1 {
  margin-bottom: var(--space-sm);
}

.hero-centered {
  text-align: center;
}

.hero-centered .hero-content {
  margin: 0 auto;
}

/* Hero with background image */
.hero-image {
  position: relative;
  background-size: cover;
  background-position: center;
  color: var(--color-text-on-dark);
}

.hero-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(28, 28, 28, 0.7) 0%,
    rgba(28, 28, 28, 0.4) 100%
  );
}

.hero-image .container {
  position: relative;
  z-index: 1;
}

.hero-image h1 {
  color: var(--color-text-on-dark);
}

.hero-image .lead {
  color: rgba(245, 243, 238, 0.7);
}


/* --- Cards --- */
.card {
  background: #fff;
  border: 1px solid var(--color-border-light);
  border-radius: 6px;
  overflow: hidden;
  transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.card:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.card-img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.card-body {
  padding: var(--space-md);
}

.card-body h3 {
  color: #000;
  font-weight: 400;
  font-size: 1.3rem;
  margin-bottom: var(--space-xs);
  text-shadow: 0 0 0 #000;
  -webkit-text-stroke: 0.3px #000;
}

.card-body p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}


/* --- Tier / Service Cards --- */
.tier-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: var(--space-lg);
  position: relative;
  transition: box-shadow 0.3s ease;
}

.tier-card:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.tier-card.featured {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 1px var(--color-accent);
}

.tier-badge {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  background: var(--color-accent-light);
  padding: 4px 12px;
  border-radius: 3px;
  margin-bottom: var(--space-md);
}

.tier-name {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  margin-bottom: var(--space-xs);
}

.tier-question {
  font-style: italic;
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
}

.tier-price {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  color: var(--color-text);
  margin-bottom: var(--space-md);
}

.tier-price small {
  font-size: 0.5em;
  font-family: var(--font-body);
  color: var(--color-text-muted);
  font-weight: 400;
}

.tier-description {
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
  line-height: 1.7;
}

.tier-deliverables {
  margin-bottom: var(--space-lg);
}

.tier-deliverables h4 {
  margin-bottom: var(--space-sm);
}

.tier-deliverables li {
  padding: 6px 0;
  padding-left: 20px;
  position: relative;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.tier-deliverables li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: 700;
}


/* --- Grid --- */
.grid {
  display: grid;
  gap: var(--space-md);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}


/* --- Feature Row (image + text side by side) --- */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.feature-row.reverse {
  direction: rtl;
}

.feature-row.reverse > * {
  direction: ltr;
}

.feature-text h2 {
  margin-bottom: var(--space-sm);
}

.feature-text .lead {
  margin-bottom: var(--space-md);
}

.feature-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 6px;
}


/* --- Tier Overview Table --- */
.tier-table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-lg) 0;
  font-size: 0.95rem;
}

.tier-table th {
  text-align: left;
  padding: var(--space-sm) var(--space-md);
  border-bottom: 2px solid var(--color-text);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
}

.tier-table td {
  padding: var(--space-sm) var(--space-md);
  border-bottom: 1px solid var(--color-border-light);
  vertical-align: top;
}

.tier-table tr:last-child td {
  border-bottom: none;
}


/* --- Forms --- */
.form-group {
  margin-bottom: var(--space-md);
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
  color: var(--color-text);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text);
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-light);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.form-note {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: var(--space-xs);
}

.form-message {
  padding: var(--space-sm);
  border-radius: 4px;
  margin-top: var(--space-md);
  font-size: 0.95rem;
}

.form-message.success {
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #c8e6c9;
}

.form-message.error {
  background: #fbe9e7;
  color: #c62828;
  border: 1px solid #ffccbc;
}

/* Honeypot */
.form-hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}


/* --- CTA Banner --- */
.cta-banner {
  background: var(--color-bg-dark);
  color: var(--color-text-on-dark);
  text-align: center;
  padding: var(--space-xl) var(--space-md);
}

.cta-banner h2 {
  color: var(--color-text-on-dark);
  margin-bottom: var(--space-sm);
}

.cta-banner p {
  color: rgba(245, 243, 238, 0.7);
  margin-bottom: var(--space-lg);
  font-size: 1.1rem;
}


/* --- Portfolio Grid --- */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  cursor: pointer;
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.portfolio-item:hover img {
  transform: scale(1.05);
}

.portfolio-item .portfolio-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: background 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
  background: rgba(0,0,0,0.5);
}

.portfolio-item .portfolio-overlay {
  flex-direction: column;
  gap: 0;
}

.portfolio-overlay span {
  color: rgba(255,255,255,0.9);
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 2.5vw, 1.8rem);
  letter-spacing: 0.04em;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
  text-align: center;
  padding: 0 10%;
}

.portfolio-soon {
  font-family: var(--font-body) !important;
  font-size: clamp(0.7rem, 1.2vw, 0.9rem) !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase;
  color: rgba(255,255,255,0) !important;
  transition: color 0.3s ease;
  margin-top: 4px;
}

.portfolio-item:hover .portfolio-soon {
  color: rgba(255,255,255,0.7) !important;
}


/* --- Footer --- */
.site-footer {
  background: var(--color-bg-dark);
  color: var(--color-text-on-dark);
  padding: var(--space-xl) 0 var(--space-lg);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.footer-brand .nav-logo {
  color: var(--color-text-on-dark);
  font-size: 1.3rem;
}

.footer-brand p {
  color: rgba(245, 243, 238, 0.6);
  font-size: 0.95rem;
  margin-top: var(--space-sm);
  max-width: 360px;
}

.site-footer h4 {
  color: var(--color-text-on-dark);
  margin-bottom: var(--space-md);
}

.footer-links li {
  margin-bottom: var(--space-xs);
}

.footer-links a {
  color: rgba(245, 243, 238, 0.6);
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

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

.social-links {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-sm);
}

.social-links a {
  color: rgba(245, 243, 238, 0.6);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: color 0.2s ease;
}

.social-links a:hover {
  color: var(--color-accent);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: var(--space-md);
  font-size: 0.8rem;
  color: rgba(245, 243, 238, 0.4);
  text-align: center;
}


/* --- Utility --- */
.mt-1 { margin-top: var(--space-xs); }
.mt-2 { margin-top: var(--space-sm); }
.mt-3 { margin-top: var(--space-md); }
.mt-4 { margin-top: var(--space-lg); }
.mb-1 { margin-bottom: var(--space-xs); }
.mb-2 { margin-bottom: var(--space-sm); }
.mb-3 { margin-bottom: var(--space-md); }
.mb-4 { margin-bottom: var(--space-lg); }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


/* --- Responsive --- */
@media (max-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  :root {
    --space-xl: 56px;
    --space-2xl: 80px;
  }

  /* Mobile nav */
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-bg);
    flex-direction: column;
    justify-content: flex-start;
    padding: var(--space-lg) var(--space-md);
    gap: 0;
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }

  .nav-links.open {
    transform: translateX(0);
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: var(--space-sm) 0;
    font-size: 1rem;
    border-bottom: 1px solid var(--color-border-light);
  }

  .nav-links .nav-cta {
    display: block;
    text-align: center;
    margin-top: var(--space-md);
    border-bottom: none;
  }

  /* Grids */
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .feature-row {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .feature-row.reverse {
    direction: ltr;
  }

  .feature-image {
    height: 280px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  /* Hero */
  .hero {
    min-height: 70vh;
  }

  .btn + .btn {
    margin-left: 0;
    margin-top: var(--space-sm);
  }

  .hero .btn {
    display: block;
    text-align: center;
  }

  .tier-table {
    font-size: 0.85rem;
  }

  .tier-table th,
  .tier-table td {
    padding: var(--space-xs) var(--space-sm);
  }
}

@media (max-width: 480px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .hero-small {
    min-height: auto;
    padding: var(--space-lg) 0;
  }
}
