/* ============================================
   Floyd's Paint & Body — styles.css
   Brand: Black / White / Red (#cc0000)
   Mobile-first, max-width 1200px
   ============================================ */

/* ----- Reset & Base ----- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --black:      #0a0a0a;
  --dark:       #111111;
  --card-bg:    #1a1a1a;
  --border:     #2a2a2a;
  --red:        #cc0000;
  --red-hover:  #aa0000;
  --white:      #ffffff;
  --gray:       #aaaaaa;
  --max-w:      1200px;
  --radius:     6px;
  --transition: 0.2s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--black);
  color: var(--white);
  font-family: 'Segoe UI', Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

/* ----- Layout ----- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-block;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--radius);
  padding: 14px 28px;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  white-space: nowrap;
  text-align: center;
}

.btn-primary {
  background-color: var(--red);
  color: var(--white);
  border: 2px solid var(--red);
}
.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--red-hover);
  border-color: var(--red-hover);
}

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

.btn-large {
  font-size: 1.2rem;
  padding: 18px 40px;
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--black);
  border-bottom: 2px solid var(--red);
  padding: 12px 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo-link {
  display: flex;
  align-items: center;
}

.logo {
  height: 64px;
  width: auto;
}

.logo-fallback {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--white);
  letter-spacing: 0.03em;
}

.header-cta {
  flex-shrink: 0;
  font-size: 0.9rem;
  padding: 12px 20px;
}

/* ============================================
   HERO
   ============================================ */
.hero {
  background-color: var(--dark);
  border-bottom: 2px solid var(--border);
  padding: 80px 0 72px;
  text-align: center;
}

.hero-inner {
  max-width: 760px;
}

.hero-logo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 28px;
}

.hero-logo {
  width: auto;
  max-width: 420px;
  height: auto;
}

@media (max-width: 600px) {
  .hero-logo {
    max-width: 280px;
  }
}

.hero h1 {
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--white);
  margin-bottom: 20px;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--gray);
  margin-bottom: 36px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.hero-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================
   SECTION SHARED
   ============================================ */
.section-title {
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 900;
  text-align: center;
  margin-bottom: 48px;
  letter-spacing: 0.02em;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background-color: var(--red);
  margin: 14px auto 0;
  border-radius: 2px;
}

/* ============================================
   SERVICES
   ============================================ */
.services {
  padding: 80px 0;
  background-color: var(--black);
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.service-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  border-top: 3px solid var(--red);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  transition: border-color var(--transition);
}

.service-card:hover {
  border-color: var(--red);
  border-top-color: var(--red);
}

.service-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
}

.service-icon svg {
  width: 100%;
  height: 100%;
}

.service-card h3 {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 12px;
}

.service-card p {
  color: var(--gray);
  font-size: 0.97rem;
  line-height: 1.6;
}

/* ============================================
   GALLERY
   ============================================ */
.gallery {
  padding: 80px 0;
  background-color: var(--dark);
  border-top: 2px solid var(--border);
  border-bottom: 2px solid var(--border);
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.gallery-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  position: relative;
}

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

.gallery-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--card-bg);
  border: 2px dashed var(--border);
  border-radius: var(--radius);
}

.gallery-placeholder span {
  color: var(--gray);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-align: center;
  padding: 16px;
}

/* ============================================
   CONTACT
   ============================================ */
.contact {
  padding: 80px 0;
  background-color: var(--black);
}

.contact-inner {
  text-align: center;
}

.contact-name {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.contact-phone {
  font-size: 2.2rem;
  font-weight: 900;
  margin-bottom: 36px;
}

.contact-phone a {
  color: var(--red);
  transition: color var(--transition);
}
.contact-phone a:hover {
  color: var(--red-hover);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background-color: var(--dark);
  border-top: 2px solid var(--red);
  padding: 28px 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.footer-inner p {
  color: var(--gray);
  font-size: 0.88rem;
}

.footer-inner a {
  color: var(--red);
  transition: color var(--transition);
}
.footer-inner a:hover {
  color: var(--red-hover);
}

/* ============================================
   RESPONSIVE — Tablet (600px+)
   ============================================ */
@media (min-width: 600px) {
  .logo {
    height: 76px;
  }

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

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

/* ============================================
   RESPONSIVE — Desktop (900px+)
   ============================================ */
@media (min-width: 900px) {
  .logo {
    height: 88px;
  }

  .header-cta {
    font-size: 1rem;
    padding: 14px 28px;
  }

  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
