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

:root {
  /* Brand colors — matched to the new R&R Fabrication logo */
  --steel:        #0a0a0a;   /* near-black, primary dark */
  --steel-mid:    #1a1a1a;   /* one step up from black, for elevation */
  --steel-soft:   #2a2a2a;   /* hero overlay base */
  --accent:       #f5c518;   /* logo gold */
  --accent-deep:  #c89c00;   /* darker gold for hover/active states */
  --md-red:       #c8102e;   /* Maryland flag red */
  --steel-chrome: #9ca3af;   /* metallic gray accent */
  --light:        #f4f2ee;   /* warm cream (kept; complements gold) */
  --text:         #1a1a1a;
  --muted:        #5a5a5a;
  --border:       #e3e0d8;
  --radius:       4px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Georgia', serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: #fff;
}

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

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, nav, .logo, .btn {
  font-family: 'Arial', 'Helvetica Neue', sans-serif;
}

/* ===== UTILITY BAR ===== */
.utility-bar {
  background: var(--steel-mid);
  color: rgba(255,255,255,0.78);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.utility-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 36px;
}

.utility-bar a {
  color: var(--accent);
  font-weight: 700;
  transition: color 0.2s;
}

.utility-bar a:hover { color: #fff; }

.utility-contact {
  display: flex;
  align-items: center;
  gap: 14px;
}

.utility-sep { color: rgba(255,255,255,0.28); }

/* ===== HEADER ===== */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--steel);
  border-bottom: 3px solid var(--accent);
  /* Thin Maryland-red sub-stripe under the gold — echoes the logo's flag accents */
  box-shadow: 0 3px 0 0 var(--md-red);
}

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

.logo img {
  height: 64px;
  width: auto;
  display: block;
}

nav {
  display: flex;
  gap: 28px;
}

nav a {
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.2s;
}

nav a:hover { color: var(--accent); }

/* ===== HERO ===== */
.hero {
  position: relative;
  background: var(--steel);
  color: #fff;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.42;
  filter: grayscale(20%) contrast(1.05);
}

/* Left-to-right black gradient over the hero photo so the headline stays crisp */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10,10,10,0.85) 0%, rgba(10,10,10,0.55) 55%, rgba(10,10,10,0.25) 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  padding: 100px 24px 100px;
  max-width: 680px;
}

.hero-content h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
}

.hero-content h1 span { color: var(--accent); }

.subheadline {
  font-size: 1.1rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.82);
  margin-bottom: 36px;
  max-width: 580px;
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--steel);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: var(--radius);
  transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
  box-shadow: 0 2px 0 var(--accent-deep);
}

.btn:hover {
  background: var(--accent-deep);
  color: var(--steel);
  transform: translateY(-1px);
  box-shadow: 0 3px 0 var(--md-red);
}

/* ===== SERVICES ===== */
.services {
  padding: 80px 0;
  background: #fff;
}

.services h2 {
  font-size: 1.9rem;
  font-weight: 800;
  margin-bottom: 36px;
  color: var(--steel);
}

/* Section heading accent stripe — gold with a small Maryland-red tail */
.services h2,
.why h2,
.faq h2 {
  position: relative;
  padding-bottom: 14px;
}

.services h2::after,
.why h2::after,
.faq h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 56px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent) 70%, var(--md-red) 70%, var(--md-red) 100%);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 28px;
}

.service-card {
  padding: 32px 28px;
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
  background: #fff;
  transition: box-shadow 0.2s;
}

.service-card:hover {
  box-shadow: 0 4px 18px rgba(0,0,0,0.08);
}

.service-card.has-photo {
  padding: 0;
  overflow: hidden;
}

.service-photo {
  height: 200px;
  overflow: hidden;
}

.service-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: grayscale(20%);
  transition: transform 0.4s ease;
}

.service-card.has-photo:hover .service-photo img {
  transform: scale(1.04);
}

.service-body {
  padding: 24px 28px;
}

.service-icon {
  width: 40px;
  height: 40px;
  color: var(--accent);
  margin-bottom: 16px;
}

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

.service-card h3,
.service-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--steel);
}

.service-card p,
.service-body p {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ===== WHY ===== */
.why {
  background: var(--steel);
  color: #fff;
  padding: 72px 0;
}

.why h2 {
  font-size: 1.9rem;
  font-weight: 800;
  margin-bottom: 24px;
  color: #fff;
}

.why-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.why-list li {
  padding-left: 24px;
  position: relative;
  font-size: 1rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.5;
}

.why-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
}

/* ===== ABOUT ===== */
.about {
  padding: 80px 0;
  background: var(--light);
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.about-photo {
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  overflow: hidden;
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.about-text h2 {
  font-size: 1.9rem;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--steel);
}

.about-text p {
  color: var(--muted);
  margin-bottom: 16px;
  font-size: 1rem;
}

.about-details {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-top: 1px solid var(--border);
  padding-top: 24px;
}

.about-detail-item {
  display: flex;
  gap: 12px;
  font-size: 0.9rem;
  line-height: 1.5;
}

.detail-label {
  font-family: Arial, sans-serif;
  font-weight: 700;
  color: var(--steel);
  min-width: 90px;
  flex-shrink: 0;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  padding-top: 2px;
}

.about-detail-item span:last-child {
  color: var(--muted);
}

/* ===== FAQ ===== */
.faq {
  padding: 80px 0;
  background: #fff;
  border-top: 1px solid var(--border);
}

.faq h2 {
  font-size: 1.9rem;
  font-weight: 800;
  margin-bottom: 36px;
  color: var(--steel);
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

.faq-item {
  padding: 28px;
  background: var(--light);
  border-radius: var(--radius);
  border-left: 3px solid var(--accent);
}

.faq-item h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--steel);
  margin-bottom: 10px;
}

.faq-item p {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.65;
}

/* section intro text */
.section-intro {
  font-size: 1rem;
  color: var(--muted);
  max-width: 720px;
  margin-bottom: 40px;
  line-height: 1.7;
}

/* ===== CONTACT ===== */
.contact {
  padding: 80px 0;
  background: #fff;
  border-top: 1px solid var(--border);
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.contact-text h2 {
  font-size: 1.9rem;
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--steel);
}

.contact-text p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 8px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1.05rem;
}

.contact-item svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--accent);
}

.contact-item a {
  color: var(--steel);
  font-weight: 600;
  transition: color 0.2s;
}

.contact-item a:hover { color: var(--accent); }

.contact-item span { color: var(--muted); }

/* ===== FOOTER ===== */
footer {
  background: var(--steel);
  color: rgba(255,255,255,0.7);
  font-family: Arial, sans-serif;
  font-size: 0.92rem;
  border-top: 3px solid var(--accent);
  box-shadow: inset 0 3px 0 0 var(--md-red);
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 56px;
  padding: 60px 24px 40px;
  align-items: start;
}

.footer-brand img {
  height: 96px;
  width: auto;
  display: block;
  margin-bottom: 18px;
}

.footer-tagline {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.6;
  max-width: 360px;
}

.footer-col h4 {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--accent);
  margin-bottom: 18px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col li {
  line-height: 1.5;
}

.footer-col a {
  color: rgba(255,255,255,0.78);
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--accent); }

.footer-address { color: rgba(255,255,255,0.65); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 18px 0;
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 720px) {
  .utility-bar { font-size: 0.74rem; }
  .utility-bar .container { height: auto; padding: 8px 24px; flex-direction: column; gap: 4px; text-align: center; }
  .utility-contact { gap: 8px; }
  .header-inner { flex-direction: column; height: auto; padding: 14px 0; gap: 10px; }
  .logo img { height: 52px; }
  nav { gap: 16px; }
  .hero-content { padding: 64px 24px 64px; }
  .about-inner, .contact-inner { grid-template-columns: 1fr; gap: 32px; }
  .about-photo-placeholder { order: -1; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; padding: 40px 24px 24px; }
  .footer-brand img { height: 80px; }
}
