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

/* ═══ VARIABLES ═══ */
:root {
  --crimson: #BA0C2F;
  --crimson-dark: #8A0922;
  --crimson-light: #9E0A28;
  --gold: #C5973E;
  --gold-dim: #9A7A30;
  --gold-bright: #D4AB5E;
  --gold-pale: #E8D5A3;
  --bg: #F5F0E1;
  --bg-raised: #EDE7D5;
  --bg-subtle: #E8E0CC;
  --text: #2C1810;
  --text-dim: #5A4234;
  --text-bright: #1A0E08;
}

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

body {
  font-family: 'IBM Plex Mono', 'Courier New', monospace;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(139, 119, 90, 0.02) 2px,
      rgba(139, 119, 90, 0.02) 4px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 3px,
      rgba(139, 119, 90, 0.015) 3px,
      rgba(139, 119, 90, 0.015) 6px
    ),
    radial-gradient(
      ellipse at 20% 50%,
      rgba(197, 151, 62, 0.04) 0%,
      transparent 70%
    ),
    radial-gradient(
      ellipse at 80% 30%,
      rgba(186, 12, 47, 0.02) 0%,
      transparent 60%
    );
}

::selection {
  background: var(--crimson);
  color: var(--gold-pale);
}

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

a:hover, a:focus {
  color: var(--crimson-dark);
  outline: none;
}

/* ═══ ANIMATIONS ═══ */
@keyframes blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

@keyframes fade-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ═══ LAYOUT ═══ */
.page {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ═══ HEADER / NAV ═══ */
header {
  border-bottom: 1px solid var(--gold);
  padding: 20px 0;
  margin-bottom: 2rem;
}

.header-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.site-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 900;
  font-size: 1.1rem;
  color: var(--crimson);
  letter-spacing: 0.03em;
}

.nav-toggle {
  display: none;
}

.nav-toggle-label {
  display: none;
  cursor: pointer;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 1.4rem;
  color: var(--text-dim);
  line-height: 1;
  padding: 4px;
  user-select: none;
  transition: color 0.2s;
}

.nav-toggle-label:hover {
  color: var(--crimson);
}

nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
}

nav a {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

nav a:hover, nav a.active {
  color: var(--crimson);
  border-bottom-color: var(--crimson);
  text-shadow: none;
}

/* ═══ DIVIDERS ═══ */
.divider {
  text-align: center;
  color: var(--gold);
  font-size: 0.7rem;
  padding: 2rem 0;
  user-select: none;
  letter-spacing: 0.15em;
}

/* ═══ SECTIONS ═══ */
.section {
  padding: 0.5rem 0;
  animation: fade-in 0.6s ease-out;
}

.section-label {
  font-size: 0.7rem;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
  text-align: center;
  display: block;
}

.section-heading {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: clamp(1.3rem, 3.5vw, 1.9rem);
  color: var(--crimson);
  text-align: center;
  margin-bottom: 1.5rem;
  line-height: 1.25;
}

/* ═══ SERVICE CARDS ═══ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 0.5rem;
}

.card {
  transition: transform 0.15s;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
}

.card:hover {
  transform: translateY(-2px);
}

.card-top, .card-bottom {
  color: var(--gold);
  white-space: pre;
  overflow: hidden;
  font-size: 0.85rem;
}

.card-row {
  display: flex;
  font-size: 0.85rem;
  flex: 1;
  overflow: hidden;
}

.card-border {
  color: var(--gold);
  flex-shrink: 0;
}

.card-content {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
}

.card-title {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  color: var(--crimson);
  font-size: 0.95rem;
  margin-bottom: 6px;
  display: block;
}

.card-desc {
  color: var(--text);
  font-size: 0.8rem;
  line-height: 1.6;
  flex: 1;
  word-break: break-word;
}

.card-icon {
  color: var(--crimson);
  font-size: 0.65rem;
  line-height: 1.15;
  white-space: pre;
  display: block;
  margin-bottom: 8px;
}

/* ═══ CTA ═══ */
.cta {
  text-align: center;
  padding: 2.5rem 2rem;
  background: var(--crimson-dark);
  border: 3px double var(--gold);
  position: relative;
  margin: 0.5rem 0;
  overflow: visible;
}

.cta::before {
  content: '';
  position: absolute;
  top: 5px;
  left: 5px;
  right: 5px;
  bottom: 5px;
  border: 1px solid var(--gold-dim);
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta-image {
  position: absolute;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.cta-image img {
  display: block;
  max-height: 180px;
  width: auto;
  transform: scale(2.5);
  transform-origin: center center;
}

.cta-heading {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: clamp(1.3rem, 3.5vw, 1.9rem);
  color: var(--gold-pale);
  text-align: center;
  margin-bottom: 1rem;
  line-height: 1.25;
}

.cta p {
  font-size: 0.88rem;
  color: var(--gold-pale);
  max-width: 480px;
  margin: 0 auto 1.5rem;
  line-height: 1.75;
  opacity: 0.9;
}

.cta-button {
  display: inline-block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--crimson-dark);
  background: var(--gold);
  border: 2px solid var(--gold);
  padding: 12px 32px;
  transition: all 0.3s;
}

.cta-button:hover {
  background: var(--gold-bright);
  border-color: var(--gold-bright);
  color: var(--crimson-dark);
  box-shadow: 0 0 20px rgba(197, 151, 62, 0.3);
}

/* ═══ CONTACT MODAL ═══ */
.contact-modal {
  border: 3px double var(--gold);
  background: var(--bg);
  color: var(--text);
  padding: 0;
  margin: auto;
  max-width: 520px;
  width: calc(100% - 48px);
  box-shadow: 0 8px 40px rgba(44, 24, 16, 0.25);
  animation: fade-in 0.25s ease-out;
}

.contact-modal::backdrop {
  background: rgba(26, 14, 8, 0.6);
  backdrop-filter: blur(2px);
}

.contact-modal::before {
  content: '';
  position: absolute;
  top: 5px;
  left: 5px;
  right: 5px;
  bottom: 5px;
  border: 1px solid var(--gold-dim);
  pointer-events: none;
  z-index: 0;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 2rem 2rem 0;
  position: relative;
  z-index: 1;
}

.modal-header h2 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--crimson);
  line-height: 1.25;
}

.modal-close {
  background: none;
  border: none;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 1.2rem;
  color: var(--text-dim);
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
  transition: color 0.2s;
}

.modal-close:hover {
  color: var(--crimson);
}

.modal-body {
  padding: 1.25rem 2rem 2rem;
  position: relative;
  z-index: 1;
}

.modal-body p {
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

.form-field {
  margin-bottom: 1rem;
}

.form-field label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.35rem;
}

.form-field input,
.form-field textarea {
  width: 100%;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.85rem;
  color: var(--text);
  background: var(--bg-raised);
  border: 1px solid var(--gold-dim);
  padding: 10px 12px;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(197, 151, 62, 0.15);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--text-dim);
  opacity: 0.5;
}

.form-field textarea {
  resize: vertical;
  min-height: 100px;
  line-height: 1.6;
}

.form-submit {
  display: inline-block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--crimson-dark);
  background: var(--gold);
  border: 2px solid var(--gold);
  padding: 12px 32px;
  cursor: pointer;
  transition: all 0.3s;
  width: 100%;
  margin-top: 0.5rem;
}

.form-submit:hover {
  background: var(--gold-bright);
  border-color: var(--gold-bright);
  box-shadow: 0 0 20px rgba(197, 151, 62, 0.3);
}

/* ═══ FOOTER ═══ */
footer {
  border-top: 1px solid var(--gold);
  margin-top: 2.5rem;
  padding: 2rem 0;
  text-align: center;
}

.footer-name {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--crimson);
  margin-bottom: 0.25rem;
}

.footer-location {
  font-size: 0.72rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.75rem;
}

.footer-copy {
  font-size: 0.68rem;
  color: var(--text-dim);
  opacity: 0.7;
}

.footer-ornament {
  color: var(--gold);
  font-size: 0.6rem;
  margin-top: 0.75rem;
  letter-spacing: 0.3em;
  user-select: none;
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 700px) {
  .page { padding: 0 16px; }

  .header-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    position: relative;
  }

  .site-name {
    font-size: 1.5rem;
    order: 1;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
  }

  .nav-toggle-label {
    display: block;
    order: 0;
  }

  nav ul {
    display: none;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 100%;
    left: 16px;
    background: var(--bg-raised);
    border: 1px solid var(--gold);
    padding: 0.5rem 0;
    min-width: 180px;
    box-shadow: 2px 3px 10px rgba(44, 24, 16, 0.1);
    z-index: 50;
  }

  .nav-toggle:checked ~ nav ul {
    display: flex;
  }

  nav li {
    list-style: none;
  }

  nav a {
    font-size: 0.78rem;
    display: block;
    padding: 8px 20px;
    border-bottom: none;
  }

  nav a:hover {
    background: var(--bg-subtle);
  }

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

  .cta {
    padding: 2rem 1.25rem;
  }

  .cta-image {
    display: none;
  }
}

@media (max-width: 560px) {
  html { font-size: 14px; }

  .contact-modal {
    width: calc(100% - 32px);
  }

  .modal-header,
  .modal-body {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .card-grid {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .card {
    max-width: 36ch;
    width: 100%;
  }

  .cta-button {
    padding: 10px 20px;
    font-size: 0.75rem;
  }
}
