/* =========================================================
   In and Out Bail Bonds Express — stylesheet
   Organized by section. Colors and fonts are set as CSS
   variables at the top so the whole site can be re-themed
   from one place.
   ========================================================= */

:root {
  --color-black: #16181c;
  --color-red: #d81f26;
  --color-red-dark: #b3181e;
  --color-blue: #1b6fe0;
  --color-blue-dark: #1558b3;
  --color-brown: #4a3c2f;
  --color-brown-dark: #3a2f25;
  --color-cream: #f7f6f4;
  --color-white: #ffffff;
  --color-text: #1c1c1c;
  --color-text-light: #6b6b6b;

  --font-heading: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --max-width: 1140px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-white);
  line-height: 1.6;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  line-height: 1.2;
  margin: 0 0 16px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-red);
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  font-family: var(--font-body);
  font-size: 1rem;
}

.btn-primary {
  background: var(--color-blue);
  color: var(--color-white);
}

.btn-primary:hover {
  background: var(--color-blue-dark);
}

.btn-phone {
  text-decoration: underline;
}

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

.btn-outline:hover {
  background: var(--color-white);
  color: var(--color-black);
}

/* ---------- Top bar ---------- */
.top-bar {
  background: var(--color-black);
  color: var(--color-white);
}

.top-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding-top: 18px;
  padding-bottom: 18px;
}

.brand {
  background: var(--color-blue);
  color: var(--color-white);
  padding: 14px 22px;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  border-radius: 2px;
}

nav {
  margin-left: auto;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 32px;
  margin: 0;
  padding: 0;
  font-family: var(--font-heading);
  font-size: 1.05rem;
}

nav a.active {
  color: #3fd07a;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-white);
  font-size: 1.8rem;
  cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(rgba(20, 20, 20, 0.35), rgba(20, 20, 20, 0.35)),
    var(--color-brown-dark) center/cover no-repeat;
  padding: 80px 0;
}

.hero.has-photo {
  background-image: linear-gradient(rgba(20, 20, 20, 0.25), rgba(20, 20, 20, 0.25)),
    url("../images/jalibreak.png");
}

.hero .container {
  display: flex;
  justify-content: flex-end;
}

.hero-box {
  background: var(--color-red);
  color: var(--color-black);
  padding: 56px;
  max-width: 640px;
}

.hero-box h1 {
  font-size: 2.75rem;
  margin-bottom: 20px;
}

.hero-box p {
  font-size: 1.15rem;
  margin-bottom: 28px;
}

/* ---------- Services ---------- */
.services {
  padding: 80px 0;
}

.services h2 {
  font-size: 2.25rem;
  margin-bottom: 48px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 40px;
}

.service-card svg {
  width: 36px;
  height: 36px;
  margin-bottom: 16px;
}

.service-card h3 {
  font-size: 1.35rem;
}

.service-card p {
  color: var(--color-text-light);
}

/* ---------- Commitment ---------- */
.commitment {
  padding: 80px 0 0;
}

.commitment h2 {
  font-size: 2.25rem;
  margin: 0 0 40px;
}

.commitment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  width: 80%;
  margin: 0 auto;
}

.commitment-item {
  background: var(--color-brown);
  color: var(--color-white);
  padding: 48px 32px;
}

.commitment-item:nth-child(2) {
  background: var(--color-brown-dark);
}

.commitment-item:nth-child(3) {
  background: var(--color-black);
}

.commitment-item .num {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  opacity: 0.55;
  margin-bottom: 8px;
}

.commitment-item .commitment-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.commitment-item .commitment-desc {
  font-size: 0.95rem;
  line-height: 1.5;
  opacity: 0.85;
  margin: 0;
}

/* ---------- Testimonials ---------- */
.testimonials {
  background: var(--color-cream);
  padding: 80px 0;
}

.testimonial-carousel {
  overflow: hidden;
  margin-top: 32px;
}

.testimonial-track {
  display: flex;
  transition: transform 0.6s ease;
}

.testimonial-card {
  flex: 0 0 100%;
  display: flex;
  gap: 24px;
  align-items: flex-start;
  flex-wrap: wrap;
  border-left: 4px solid var(--color-blue);
  padding-left: 24px;
  box-sizing: border-box;
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-black);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

.testimonial-quote {
  font-size: 1.3rem;
  font-style: italic;
  margin: 0 0 8px;
}

/* ---------- Map ---------- */
.map-section iframe {
  width: 100%;
  height: 360px;
  border: 0;
}

/* ---------- Contact / footer ---------- */
.contact-section {
  background: var(--color-brown);
  color: var(--color-white);
  padding: 72px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
}

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

.contact-form label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.95rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px 4px;
  margin-bottom: 24px;
  background: transparent;
  border: none;
  border-bottom: 2px solid rgba(255, 255, 255, 0.6);
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-bottom-color: var(--color-blue);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.contact-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 20px;
  border: 3px solid rgba(255, 255, 255, 0.25);
}

.contact-info h3 {
  margin-bottom: 4px;
}

.contact-info p {
  margin: 4px 0;
}

a[href^="tel:"]:not(.btn),
a[href^="mailto:"]:not(.btn) {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.social-icons {
  display: flex;
  gap: 16px;
  margin-top: 20px;
}

.social-icons a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  outline: none;
}

.social-icons a:focus-visible {
  outline: 2px solid var(--color-white);
  outline-offset: 2px;
}

footer.site-footer {
  background: var(--color-brown-dark);
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  padding: 20px 0;
  font-size: 0.85rem;
}

/* ---------- Inner page header ---------- */
.page-header {
  background: var(--color-black);
  color: var(--color-white);
  padding: 56px 0;
  text-align: center;
}

.page-header h1 {
  color: var(--color-white);
  margin-bottom: 8px;
}

/* ---------- Responsive nav ---------- */
@media (max-width: 720px) {
  .nav-toggle {
    display: block;
  }

  nav {
    width: 100%;
    display: none;
  }

  nav.open {
    display: block;
  }

  nav ul {
    flex-direction: column;
    gap: 16px;
    padding: 20px 0;
  }

  .hero-box {
    padding: 32px;
  }

  .hero-box h1 {
    font-size: 2rem;
  }
}
