/* ── Base ──────────────────────────────────────────────────── */
:root {
  --red:      #b60000;
  --red-dark: #8a0000;
  --red-glow: rgba(182,0,0,0.14);
  --bg:       #F8F4F0;
  --card:     #FFFFFF;
  --text:     #1a1208;
  --muted:    #7a6a58;
  --border:   #e4d9cf;
  --input-bg: #FAF6F2;
}

body {
  background: var(--bg);
  font-family: 'DM Sans', Arial, sans-serif;
  color: var(--text);
}

/* ══════════════════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════════════ */
.appt-hero {
  position: relative;
  height: 300px;
  background-image: url('/Photos/engine.jpg');
  background-size: cover;
  background-position: center 35%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.appt-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom,
      rgba(0,0,0,0.10) 0%,
      rgba(0,0,0,0.35) 20%,
      rgba(15,0,0,0.72) 40%,
      rgba(0,0,0,0.90) 100%
    );
}
.appt-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,0.55) 100%);
}
.appt-hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(182,0,0,0.22);
  border: 1px solid rgba(182,0,0,0.5);
  border-radius: 40px;
  padding: 5px 16px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
}
.hero-eyebrow-dot {
  width: 6px;
  height: 6px;
  background: #ff4040;
  border-radius: 50%;
  animation: blink 1.6s ease-in-out infinite;
}
@keyframes blink {
  0%,100% { opacity: 1; }
  50%      { opacity: 0.3; }
}
.appt-hero-content h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.9rem, 5.5vw, 3rem);
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.5px;
  line-height: 1.1;
  text-shadow: 0 4px 28px rgba(0,0,0,0.5);
}
.appt-hero-content p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
  font-weight: 300;
  letter-spacing: 0.3px;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.25} }

.hero-content h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.9rem, 5.5vw, 3rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.5px;
  line-height: 1.1;
  text-shadow: 0 4px 28px rgba(0,0,0,0.5);
}
.hero-content p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  font-weight: 300;
  font-style: italic;
}

.appt-hero-content h1 { margin: 0; }
.appt-hero-content p  { margin: 0; }

/* ══════════════════════════════════════════════════════════
   MAIN LAYOUT
══════════════════════════════════════════════════════════ */
.contact-wrap {
  max-width: 1020px;
  margin: 0 auto;
  padding: 48px 20px 72px;
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 24px;
  align-items: start;
}

/* ══════════════════════════════════════════════════════════
   LEFT — INFO PANEL
══════════════════════════════════════════════════════════ */
.info-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Dark card at top */
.info-brand {
  background: #111111;
  border-radius: 16px;
  padding: 28px 24px;
  position: relative;
  overflow: hidden;
}
.info-brand::before {
  content: '';
  position: absolute;
  top: -40%;
  left: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(182,0,0,0.2) 0%, transparent 70%);
  pointer-events: none;
}
.info-brand-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
  position: relative;
  z-index: 1;
}
.info-brand-tag {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.42);
  font-weight: 400;
  position: relative;
  z-index: 1;
  letter-spacing: 0.3px;
}
.info-brand-divider {
  height: 1px;
  background: rgba(255,255,255,0.08);
  margin: 18px 0;
}

/* Info rows inside dark card */
.info-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  position: relative;
  z-index: 1;
  margin-bottom: 14px;
}
.info-row:last-child { margin-bottom: 0; }

.info-icon {
  width: 34px;
  height: 34px;
  background: rgba(182,0,0,0.18);
  border: 1px solid rgba(182,0,0,0.35);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
  margin-top: 1px;
}
.info-row-text {}
.info-row-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 2px;
}
.info-row-value {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.82);
  font-weight: 500;
  line-height: 1.4;
}
.info-row-value a {
  color: rgba(255,255,255,0.82);
  text-decoration: none;
  transition: color 0.2s;
}
.info-row-value a:hover { color: #ff6060; }

/* Hours card */
.hours-card {
  background: var(--card);
  border-radius: 14px;
  border-top: 3px solid var(--red);
  box-shadow: 0 2px 4px rgba(0,0,0,0.04), 0 6px 20px rgba(0,0,0,0.07), 0 0 0 1px var(--border);
  padding: 20px 20px 16px;
}
.hours-card-title {
  font-family: 'Playfair Display', serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.hours-card-title span { font-size: 1rem; }

.hours-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.83rem;
}
.hours-row:last-child { border-bottom: none; }
.hours-day { color: var(--muted); font-weight: 500; }
.hours-time { color: var(--text); font-weight: 600; }
.hours-closed { color: #ccc; font-weight: 500; }

/* Social links */
.social-card {
  background: var(--card);
  border-radius: 14px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.04), 0 6px 20px rgba(0,0,0,0.07), 0 0 0 1px var(--border);
  padding: 16px 20px;
  display: flex;
  gap: 10px;
}
.social-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px;
  border-radius: 9px;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
  transition: background 0.2s, transform 0.2s;
}
.social-btn-fb {
  background: #e8f0fe;
  color: #1877F2;
}
.social-btn-fb:hover { background: #d0e2ff; transform: translateY(-2px); }
.social-btn-web {
  background: var(--input-bg);
  color: var(--red);
  border: 1px solid var(--border);
}
.social-btn-web:hover { background: #FFF0F0; transform: translateY(-2px); }

/* ══════════════════════════════════════════════════════════
   RIGHT — MESSAGE FORM
══════════════════════════════════════════════════════════ */
.form-panel {
  background: var(--card);
  border-radius: 16px;
  border-top: 3px solid var(--red);
  box-shadow: 0 2px 4px rgba(0,0,0,0.04), 0 12px 32px rgba(0,0,0,0.09), 0 0 0 1px var(--border);
  overflow: hidden;
}

.form-panel-head {
  padding: 28px 28px 0;
}
.form-panel-head h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.form-panel-head p {
  font-size: 0.82rem;
  color: var(--muted);
  font-style: italic;
}

.form-divider {
  height: 1px;
  background: var(--border);
  margin: 20px 28px 0;
}

.contact-form {
  padding: 22px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.field label {
  font-size: 0.71rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.9px;
}
.field input,
.field textarea {
  width: 100%;
  padding: 13px 15px;
  background: var(--input-bg);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.92rem;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  resize: vertical;
}
.field textarea { min-height: 120px; }

.field input:focus,
.field textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 4px var(--red-glow);
  background: #fff;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #bbb;
}

.submit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
}
.submit-note {
  font-size: 0.75rem;
  color: var(--muted);
  font-style: italic;
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  background: linear-gradient(135deg, #cc0000, #b60000);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.2px;
  box-shadow: 0 4px 16px rgba(182,0,0,0.38);
  transition: box-shadow 0.2s, transform 0.2s;
}
.btn-submit:hover:not(:disabled) {
  box-shadow: 0 6px 24px rgba(182,0,0,0.55);
  transform: translateY(-1px);
}
.btn-submit:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

/* ══════════════════════════════════════════════════════════
   MOBILE
══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

  .appt-hero { height: 200px; }
  .appt-hero-content h1 { font-size: 1.65rem; }

  .contact-wrap {
    grid-template-columns: 1fr;
    padding: 24px 14px 72px;
    gap: 16px;
  }

  /* On mobile: form first, info below */
  .form-panel  { order: 1; }
  .info-panel  { order: 2; }

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

  .form-panel-head { padding: 22px 20px 0; }
  .form-divider    { margin: 16px 20px 0; }
  .contact-form    { padding: 18px 20px 22px; }

  .submit-row { flex-direction: column; align-items: stretch; }
  .btn-submit { width: 100%; justify-content: center; }
}

@media (max-width: 400px) {
  .hero-content h1 { font-size: 1.45rem; }
}