@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,700;9..144,900&family=Inter:wght@400;500;600&display=swap');

:root {
  --navy: #0b2545;
  --cream: #faf6ef;
  --lobster: #c8362f;
  --lobster-dark: #a4291f;
  --ink: #1b1d23;
  --muted: #6b6f7a;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background-color: var(--cream);
  background-image:
    radial-gradient(rgba(11, 37, 69, 0.04) 1px, transparent 1px),
    radial-gradient(rgba(11, 37, 69, 0.04) 1px, transparent 1px);
  background-size: 24px 24px;
  background-position: 0 0, 12px 12px;
}

.font-display {
  font-family: 'Fraunces', Georgia, serif;
  font-optical-sizing: auto;
  letter-spacing: -0.01em;
}

.body-copy {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 1.125rem;
  line-height: 1.7;
}

.section-anchor {
  scroll-margin-top: 5rem;
}

.hero-lead {
  font-size: 1.05rem;
  line-height: 1.65;
}

.car-capacity {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1rem;
}

.car-capacity-item {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 0.5rem;
  padding: 0.65rem 0.75rem;
}

.brand-navy { color: var(--navy); }
.bg-brand-navy { background-color: var(--navy); }
.brand-cream { color: var(--cream); }
.bg-brand-cream { background-color: var(--cream); }
.brand-lobster { color: var(--lobster); }
.bg-brand-lobster { background-color: var(--lobster); }
.bg-brand-lobster:hover { background-color: var(--lobster-dark); }
.border-brand-navy { border-color: var(--navy); }

.nav-link {
  position: relative;
  padding-bottom: 2px;
  transition: color 0.15s ease;
}

.nav-link:hover {
  color: var(--lobster);
}

.nav-active {
  color: var(--navy);
  font-weight: 600;
}

.nav-active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  background: var(--lobster);
  border-radius: 2px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--lobster);
  color: white;
  font-weight: 600;
  padding: 0.85rem 1.5rem;
  border-radius: 9999px;
  transition: transform 0.1s ease, background 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 6px 18px -8px rgba(200, 54, 47, 0.55);
}

.btn-primary:hover {
  background: var(--lobster-dark);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--navy);
  font-weight: 600;
  padding: 0.85rem 1.5rem;
  border-radius: 9999px;
  border: 2px solid var(--navy);
  transition: background 0.15s ease, color 0.15s ease;
}

.btn-outline:hover {
  background: var(--navy);
  color: var(--cream);
}

.card {
  background: white;
  border-radius: 1rem;
  padding: 1.5rem;
  border: 1px solid rgba(11, 37, 69, 0.08);
  box-shadow: 0 1px 0 rgba(11, 37, 69, 0.04), 0 12px 28px -20px rgba(11, 37, 69, 0.15);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 1px 0 rgba(11, 37, 69, 0.04), 0 18px 36px -20px rgba(11, 37, 69, 0.2);
}

.field-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.35rem;
}

.field-input,
.field-select,
.field-textarea {
  width: 100%;
  background: white;
  border: 1px solid rgba(11, 37, 69, 0.18);
  border-radius: 0.625rem;
  padding: 0.65rem 0.85rem;
  font-size: 0.95rem;
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field-input:focus,
.field-select:focus,
.field-textarea:focus {
  outline: none;
  border-color: var(--lobster);
  box-shadow: 0 0 0 3px rgba(200, 54, 47, 0.18);
}

.field-input.field-invalid,
.field-select.field-invalid,
.field-textarea.field-invalid {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15);
}

.field-error {
  font-size: 0.8125rem;
  color: #b91c1c;
  margin-top: 0.35rem;
}

.field-textarea {
  min-height: 110px;
  resize: vertical;
}

.success-banner {
  background: #ecfdf5;
  border: 1px solid #34d399;
  color: #065f46;
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
}

.error-banner {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  color: #991b1b;
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
}

.error-banner a {
  color: inherit;
}

.info-banner {
  background: rgba(11, 37, 69, 0.06);
  border: 1px solid rgba(11, 37, 69, 0.12);
  color: var(--navy);
  border-radius: 0.75rem;
  padding: 0.875rem 1.25rem;
}

.info-banner a {
  color: inherit;
}

.btn-primary:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.hidden { display: none; }

.site-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 1rem;
  border: 1px solid rgba(11, 37, 69, 0.08);
  box-shadow: 0 12px 28px -20px rgba(11, 37, 69, 0.25);
}

.photo-frame {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
}

.photo-frame picture {
  display: block;
  width: 100%;
  height: 100%;
}

.contact-email {
  display: block;
  margin-top: 0.25rem;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--navy);
  text-decoration: none;
  overflow-wrap: normal;
  word-break: normal;
}

.contact-email:hover {
  color: var(--lobster);
}

@media (min-width: 768px) {
  .contact-email {
    font-size: 1.2rem;
    white-space: nowrap;
  }
}

.photo-credit {
  font-size: 0.7rem;
  color: var(--muted);
  margin-top: 0.5rem;
}

.photo-credit a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.product-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.product-gallery .gallery-main {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 10;
}

.product-gallery .gallery-item {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.product-gallery picture,
.product-gallery picture img {
  width: 100%;
  height: 100%;
  display: block;
}

.product-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-caption {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 0.35rem;
  line-height: 1.3;
}

.photo-credit-light {
  color: rgba(255, 255, 255, 0.4);
}

.photo-credit-light a {
  color: rgba(255, 255, 255, 0.55);
}

.founder-card {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  margin-top: 2.5rem;
  padding: 1.25rem;
  background: white;
  border-radius: 1rem;
  border: 1px solid rgba(11, 37, 69, 0.08);
  box-shadow: 0 12px 28px -22px rgba(11, 37, 69, 0.18);
}

.founder-photo {
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 9999px;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid rgba(200, 54, 47, 0.35);
}

.placeholder-box {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(11, 37, 69, 0.08), rgba(11, 37, 69, 0.03));
  border: 1px dashed rgba(11, 37, 69, 0.25);
  border-radius: 1rem;
  color: var(--muted);
  font-style: italic;
  min-height: 220px;
}
