*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --crimson:       #801311;
  --crimson-deep:  #680C07;
  --crimson-light: #9E1715;
  --crimson-dim:   rgba(128,19,17,0.08);
  --crimson-glow:  rgba(128,19,17,0.18);
  --charcoal:      #262626;
  --charcoal-mid:  #444444;
  --charcoal-light:#666666;
  --gray-bg:       #F4F4F4;
  --gray-line:     #E0E0E0;
  --white:         #FFFFFF;
  --text-body:     #333333;
  --text-muted:    #666666;
  --hero-bg:       #801311;
  --hero-deep:     #680C07;
  --card-shadow:   0 2px 16px rgba(0,0,0,0.07);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--white);
  color: var(--text-body);
  line-height: 1.7;
  overflow-x: hidden;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 0 5%;
  height: 68px;
  display: flex; align-items: center; justify-content: space-between;
  background: var(--white);
  border-bottom: 1px solid var(--gray-line);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.nav-logo {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none;
}
.logo-mark {
  width: 42px; height: 42px; border-radius: 8px;
  background: var(--crimson);
  display: flex; align-items: center; justify-content: center;
  font-family: 'DM Serif Display', serif;
  font-size: 16px; color: var(--white); font-weight: 400;
  letter-spacing: -0.5px; flex-shrink: 0;
}
.logo-text-block { line-height: 1.2; }
.logo-text-block .lt-top {
  display: block; font-size: 14px; font-weight: 700;
  color: var(--charcoal); letter-spacing: 0.5px;
}
.logo-text-block .lt-sub {
  display: block; font-size: 9.5px; font-weight: 500;
  color: var(--crimson); letter-spacing: 2px; text-transform: uppercase;
}
.nav-links { display: flex; gap: 2.25rem; list-style: none; }
.nav-links a {
  color: var(--charcoal-mid); text-decoration: none;
  font-size: 13.5px; font-weight: 500; letter-spacing: 0.2px;
  transition: color 0.2s;
  position: relative; padding-bottom: 2px;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -2px; left: 0; right: 0;
  height: 2px; background: var(--crimson);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.25s;
}
.nav-links a:hover { color: var(--crimson); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-cta {
  background: var(--crimson); color: var(--white);
  padding: 0.55rem 1.4rem; border-radius: 6px;
  font-size: 13px; font-weight: 600; text-decoration: none;
  letter-spacing: 0.3px;
  transition: background 0.2s, transform 0.15s;
}
.nav-cta:hover { background: var(--crimson-deep); transform: translateY(-1px); }

/* ── HERO ── */
#hero {
  min-height: 100vh;
  background: var(--hero-bg);
  display: flex; align-items: center;
  padding: 8rem 5% 6rem;
  position: relative; overflow: hidden;
}
.hero-pattern {
  position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 56px 56px;
}
.hero-radial {
  position: absolute; bottom: -20%; right: -10%;
  width: 70vw; height: 70vh;
  background: radial-gradient(ellipse, rgba(0,0,0,0.2) 0%, transparent 65%);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; max-width: 660px; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  padding: 0.35rem 1.1rem; border-radius: 20px;
  font-size: 11px; font-weight: 600; letter-spacing: 2.5px;
  text-transform: uppercase; color: rgba(255,255,255,0.9);
  margin-bottom: 1.75rem;
}
.hero-eyebrow::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,0.9);
  animation: blink 2s infinite;
}
@keyframes blink {
  0%,100% { opacity:1; } 50% { opacity:0.3; }
}
.hero-h1 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2.6rem, 5vw, 4rem);
  font-weight: 400; line-height: 1.15; color: var(--white);
  margin-bottom: 1.5rem;
}
.hero-h1 em { font-style: italic; color: rgba(255,255,255,0.75); }
.hero-sub {
  font-size: 1.05rem; color: rgba(255,255,255,0.8);
  max-width: 520px; margin-bottom: 2.5rem;
  font-weight: 300; line-height: 1.8;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn-white {
  background: var(--white); color: var(--crimson);
  padding: 0.9rem 2.2rem; border-radius: 7px;
  font-size: 14px; font-weight: 700; text-decoration: none;
  letter-spacing: 0.5px; transition: all 0.2s;
}
.btn-white:hover { background: var(--gray-bg); transform: translateY(-2px); }
.btn-outline-white {
  background: transparent; color: var(--white);
  padding: 0.9rem 2.2rem; border-radius: 7px;
  font-size: 14px; font-weight: 500; text-decoration: none;
  border: 1.5px solid rgba(255,255,255,0.45);
  transition: all 0.2s;
}
.btn-outline-white:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }
.hero-stats {
  display: flex; gap: 3.5rem; margin-top: 4.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.18);
}
.stat-num {
  display: block;
  font-family: 'DM Serif Display', serif;
  font-size: 2.2rem; color: var(--white); line-height: 1;
}
.stat-label {
  display: block; margin-top: 4px;
  font-size: 11px; color: rgba(255,255,255,0.6);
  letter-spacing: 1.5px; text-transform: uppercase;
}

/* ── SHARED SECTION STYLES ── */
section { padding: 6rem 5%; }
.bg-white  { background: var(--white); }
.bg-gray   { background: var(--gray-bg); }
.bg-crimson { background: var(--hero-bg); }

.section-eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: 3px;
  text-transform: uppercase; color: var(--crimson);
  margin-bottom: 0.6rem;
}
.section-eyebrow-light {
  font-size: 11px; font-weight: 700; letter-spacing: 3px;
  text-transform: uppercase; color: rgba(255,255,255,0.65);
  margin-bottom: 0.6rem;
}
.section-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.85rem, 3vw, 2.6rem);
  font-weight: 400; color: var(--charcoal);
  line-height: 1.2; margin-bottom: 1rem;
}
.section-title-light {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.85rem, 3vw, 2.6rem);
  font-weight: 400; color: var(--white);
  line-height: 1.2; margin-bottom: 1rem;
}
.section-sub {
  font-size: 1rem; color: var(--text-muted);
  max-width: 560px; font-weight: 300;
}
.section-sub-light {
  font-size: 1rem; color: rgba(255,255,255,0.72);
  max-width: 560px; font-weight: 300;
}
.section-header { margin-bottom: 3.5rem; }
.section-header-center { margin-bottom: 3.5rem; text-align: center; }
.section-header-center .section-sub,
.section-header-center .section-sub-light { margin: 0 auto; }

/* ── DIVIDER ── */
.crimson-divider {
  height: 3px; border: none;
  background: linear-gradient(90deg, var(--crimson), var(--crimson-deep));
}
.line-divider {
  height: 1px; border: none;
  background: var(--gray-line);
}

/* ── ABOUT ── */
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 5rem; align-items: center;
}
.about-img {
  background: var(--gray-bg);
  border: 1px solid var(--gray-line);
  border-radius: 16px;
  aspect-ratio: 4/3;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.about-img::before {
  content: '';
  position: absolute; bottom: 0; left: 0;
  width: 100%; height: 4px;
  background: linear-gradient(90deg, var(--crimson), var(--crimson-deep));
}
.about-img-inner { text-align: center; padding: 2rem; }
.about-img-inner svg { opacity: 0.3; }
.about-img-inner p {
  font-size: 11px; color: var(--text-muted);
  margin-top: 1rem; letter-spacing: 1.5px; text-transform: uppercase;
}
.about-text p {
  font-size: 0.95rem; color: var(--text-body);
  margin-bottom: 1.25rem; line-height: 1.8;
}
.pill-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.75rem; }
.pill {
  background: var(--crimson-dim);
  border: 1px solid var(--crimson-glow);
  color: var(--crimson); font-size: 12px; font-weight: 600;
  padding: 0.3rem 0.9rem; border-radius: 20px; letter-spacing: 0.3px;
}

/* ── SERVICES ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.5rem;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--gray-line);
  border-radius: 14px;
  padding: 2rem 1.75rem;
  box-shadow: var(--card-shadow);
  transition: border-color 0.3s, transform 0.25s, box-shadow 0.3s;
  position: relative; overflow: hidden;
  cursor: default;
}
.service-card::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--crimson), var(--crimson-deep));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s;
}
.service-card:hover {
  border-color: var(--crimson-glow);
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(128,19,17,0.12);
}
.service-card:hover::after { transform: scaleX(1); }
.service-icon {
  width: 52px; height: 52px; border-radius: 12px;
  background: var(--crimson-dim);
  border: 1px solid var(--crimson-glow);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
}
.service-icon svg {
  width: 24px; height: 24px;
  stroke: var(--crimson); fill: none; stroke-width: 1.5;
}
.service-card h3 {
  font-size: 1rem; font-weight: 700;
  color: var(--charcoal); margin-bottom: 0.5rem;
}
.service-card p {
  font-size: 0.875rem; color: var(--text-muted); line-height: 1.75;
}

/* ── PROJECTS ── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 2rem;
}
.project-card {
  background: var(--white);
  border: 1px solid var(--gray-line);
  border-radius: 14px; overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: transform 0.25s, box-shadow 0.3s;
}
.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 36px rgba(128,19,17,0.13);
}
.project-thumb {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--hero-bg) 0%, var(--hero-deep) 100%);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.project-thumb::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 32px 32px;
}
.project-thumb-inner { text-align: center; z-index: 1; padding: 1rem; }
.project-thumb-inner span {
  display: block;
  font-family: 'DM Serif Display', serif;
  font-size: 1.3rem; color: var(--white);
}
.project-thumb-inner small {
  display: block; margin-top: 4px;
  font-size: 11px; color: rgba(255,255,255,0.6);
  letter-spacing: 2px; text-transform: uppercase;
}
.project-badge {
  position: absolute; top: 14px; right: 14px;
  padding: 4px 11px; border-radius: 20px;
  font-size: 10px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase;
}
.badge-live { background: rgba(0,190,90,0.18); color: #00A050; border: 1px solid rgba(0,190,90,0.35); }
.badge-soon { background: rgba(255,255,255,0.18); color: rgba(255,255,255,0.9); border: 1px solid rgba(255,255,255,0.3); }
.badge-open { background: rgba(255,255,255,0.12); color: rgba(255,255,255,0.75); border: 1px solid rgba(255,255,255,0.2); }
.project-body { padding: 1.5rem 1.75rem; }
.project-body h3 {
  font-size: 1.05rem; font-weight: 700;
  color: var(--charcoal); margin-bottom: 0.4rem;
}
.project-body p {
  font-size: 0.875rem; color: var(--text-muted);
  line-height: 1.75; margin-bottom: 1.1rem;
}
.project-link {
  font-size: 12.5px; font-weight: 700; color: var(--crimson);
  text-decoration: none; letter-spacing: 0.3px;
  display: inline-flex; align-items: center; gap: 6px;
  transition: gap 0.2s;
}
.project-link:hover { gap: 10px; }
.project-link svg {
  width: 14px; height: 14px;
  stroke: currentColor; fill: none; stroke-width: 2.2;
}

/* ── WHY MDS (crimson bg) ── */
#why { background: var(--hero-bg); }
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}
.why-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 14px; padding: 2rem 1.5rem;
  text-align: center;
  transition: background 0.3s, border-color 0.3s;
}
.why-card:hover {
  background: rgba(255,255,255,0.13);
  border-color: rgba(255,255,255,0.3);
}
.why-num {
  font-family: 'DM Serif Display', serif;
  font-size: 3rem; color: rgba(255,255,255,0.35);
  line-height: 1; display: block; margin-bottom: 0.5rem;
}
.why-card h4 {
  font-size: 0.95rem; font-weight: 700;
  color: var(--white); margin-bottom: 0.5rem;
}
.why-card p { font-size: 0.82rem; color: rgba(255,255,255,0.68); line-height: 1.7; }

/* ── CONTACT ── */
#contact { background: var(--gray-bg); }
.contact-wrapper {
  display: grid; grid-template-columns: 1fr 1.5fr;
  gap: 5rem; align-items: start;
}
.contact-info-title {
  font-family: 'DM Serif Display', serif;
  font-size: 2rem; color: var(--charcoal);
  font-weight: 400; line-height: 1.2; margin-bottom: 1rem;
}
.contact-info > p {
  font-size: 0.95rem; color: var(--text-muted); margin-bottom: 2.5rem;
}
.contact-detail {
  display: flex; align-items: flex-start; gap: 14px; margin-bottom: 1.4rem;
}
.c-icon {
  width: 38px; height: 38px; border-radius: 9px; flex-shrink: 0;
  background: var(--crimson-dim); border: 1px solid var(--crimson-glow);
  display: flex; align-items: center; justify-content: center;
}
.c-icon svg { width: 16px; height: 16px; stroke: var(--crimson); fill: none; stroke-width: 2; }
.c-text span {
  display: block; font-size: 10.5px; font-weight: 700;
  color: var(--text-muted); letter-spacing: 1.5px; text-transform: uppercase;
}
.c-text strong {
  display: block; font-size: 14px; color: var(--charcoal); font-weight: 600; margin-top: 2px;
}
.contact-form {
  background: var(--white);
  border: 1px solid var(--gray-line);
  border-radius: 16px; padding: 2.5rem;
  box-shadow: var(--card-shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.fg { margin-bottom: 1.1rem; }
.fg label {
  display: block; font-size: 11.5px; font-weight: 700;
  color: var(--charcoal-mid); margin-bottom: 0.4rem;
  letter-spacing: 0.5px; text-transform: uppercase;
}
.fg input, .fg textarea, .fg select {
  width: 100%; background: var(--gray-bg);
  border: 1.5px solid var(--gray-line);
  border-radius: 8px; padding: 0.75rem 1rem;
  color: var(--charcoal); font-family: 'Inter', sans-serif;
  font-size: 14px; outline: none;
  transition: border-color 0.2s, background 0.2s;
}
.fg input:focus, .fg textarea:focus, .fg select:focus {
  border-color: var(--crimson); background: var(--white);
}
.fg textarea { resize: vertical; min-height: 120px; }
.fg select { cursor: pointer; }
.fg select option { background: var(--white); }
.form-submit {
  width: 100%; background: var(--crimson); color: var(--white);
  border: none; border-radius: 8px; padding: 1rem;
  font-family: 'Inter', sans-serif; font-size: 15px; font-weight: 700;
  cursor: pointer; letter-spacing: 0.5px;
  transition: background 0.2s, transform 0.15s;
  margin-top: 0.5rem;
}
.form-submit:hover { background: var(--crimson-deep); transform: translateY(-1px); }

/* ── FOOTER ── */
footer {
  background: var(--charcoal);
  padding: 3rem 5%;
}
.footer-inner {
  display: flex; align-items: flex-start; justify-content: space-between;
  flex-wrap: wrap; gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand {}
.footer-brand .lt-top { color: var(--white); }
.footer-brand .lt-sub { color: rgba(255,255,255,0.45); }
.footer-tagline {
  font-size: 12px; color: rgba(255,255,255,0.45);
  margin-top: 0.5rem; max-width: 220px;
}
.footer-links-col h5 {
  font-size: 11px; font-weight: 700; color: rgba(255,255,255,0.45);
  letter-spacing: 2px; text-transform: uppercase; margin-bottom: 1rem;
}
.footer-links-col ul { list-style: none; }
.footer-links-col li { margin-bottom: 0.5rem; }
.footer-links-col a {
  font-size: 13px; color: rgba(255,255,255,0.65); text-decoration: none;
  transition: color 0.2s;
}
.footer-links-col a:hover { color: var(--white); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 1.5rem; flex-wrap: wrap; gap: 1rem;
}
.footer-bottom p { font-size: 12px; color: rgba(255,255,255,0.35); }
.footer-projects {
  display: flex; gap: 1.5rem;
}
.footer-projects a {
  font-size: 12px; color: rgba(255,255,255,0.45); text-decoration: none;
  transition: color 0.2s;
}
.footer-projects a:hover { color: var(--white); }

/* ── REVEAL ANIMATION ── */
.reveal {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ── RESPONSIVE ── */
@media (max-width: 880px) {
  .about-grid, .contact-wrapper { grid-template-columns: 1fr; gap: 3rem; }
  .nav-links { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .hero-stats { gap: 2rem; }
  .footer-inner { flex-direction: column; }
}

/* WordPress compatibility */
body.admin-bar nav { top: 32px; }
@media (max-width: 782px) { body.admin-bar nav { top: 46px; } }
body.mds-exact-page { margin: 0; }
#wpadminbar { position: fixed; }
