/* ============================================================
   AlphaGraphics Dallas – Main Stylesheet
   ============================================================ */

/* ---------- CSS Variables ---------- */
:root {
  --red:       #cc0000;
  --red-dark:  #a30000;
  --dark:      #1a1a1a;
  --mid:       #444444;
  --light-bg:  #f5f5f5;
  --white:     #ffffff;
  --border:    #e0e0e0;
  --shadow:    0 4px 18px rgba(0,0,0,.10);
  --radius:    8px;
  --font:      'Inter', 'Helvetica Neue', Arial, sans-serif;
  --transition: .25s ease;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--dark);
  line-height: 1.7;
  background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--red-dark); }
ul { list-style: none; }

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--dark);
}
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.25rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }
p  { margin-bottom: 1rem; }

/* ---------- Utility ---------- */
.container      { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.text-center    { text-align: center; }
.text-red       { color: var(--red); }
.btn {
  display: inline-block;
  padding: 13px 32px;
  border-radius: 5px;
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .3px;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  border: none;
}
.btn-primary {
  background: var(--red);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--red-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(204,0,0,.3);
}
.btn-outline {
  background: transparent;
  color: var(--red);
  border: 2px solid var(--red);
}
.btn-outline:hover {
  background: var(--red);
  color: var(--white);
  transform: translateY(-2px);
}
.btn-white {
  background: var(--white);
  color: var(--red);
  font-weight: 700;
}
.btn-white:hover {
  background: var(--light-bg);
  color: var(--red-dark);
  transform: translateY(-2px);
}
.section-label {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 3px;
  margin-bottom: 14px;
}
.section-title { margin-bottom: .5rem; }
.section-sub   { color: var(--mid); font-size: 1.05rem; margin-bottom: 2rem; }

/* ---------- TOP BAR ---------- */
.top-bar {
  background: var(--dark);
  color: #ccc;
  font-size: .82rem;
  padding: 7px 0;
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.top-bar a { color: #ccc; }
.top-bar a:hover { color: var(--white); }
.top-bar-left, .top-bar-right { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.top-bar i { margin-right: 5px; color: var(--red); }
.social-links { display: flex; gap: 10px; align-items: center; }
.social-links a {
  color: #aaa;
  font-size: .9rem;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid #555;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.social-links a:hover {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}

/* ---------- HEADER / NAV ---------- */
header {
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0,0,0,.08);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.logo img { height: 56px; width: auto; }
.logo span {
  display: block;
  font-size: .7rem;
  color: var(--mid);
  margin-top: 3px;
  letter-spacing: .5px;
}
/* Primary Nav */
nav.primary-nav ul {
  display: flex;
  align-items: center;
  gap: 6px;
}
nav.primary-nav ul li { position: relative; }
nav.primary-nav ul li a {
  display: block;
  padding: 8px 12px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--dark);
  border-radius: 4px;
  white-space: nowrap;
  transition: background var(--transition), color var(--transition);
}
nav.primary-nav ul li a:hover,
nav.primary-nav ul li a.active {
  background: var(--red);
  color: var(--white);
}
/* Dropdown */
.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-width: 220px;
  padding: 8px 0;
  z-index: 999;
}
.dropdown-menu li a {
  padding: 9px 18px;
  font-size: .88rem;
  color: var(--dark) !important;
  border-radius: 0 !important;
}
.dropdown-menu li a:hover {
  background: var(--light-bg) !important;
  color: var(--red) !important;
}
nav.primary-nav ul li:hover .dropdown-menu { display: block; }
.nav-cta {
  margin-left: 10px;
}
/* Hamburger */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background: var(--dark);
  border-radius: 3px;
  transition: transform .3s, opacity .3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Mobile Nav */
.mobile-nav {
  display: none;
  background: var(--dark);
  padding: 16px 20px 20px;
}
.mobile-nav.open { display: block; }
.mobile-nav ul { display: flex; flex-direction: column; gap: 2px; }
.mobile-nav ul li a {
  display: block;
  padding: 10px 12px;
  color: var(--white);
  font-size: .95rem;
  font-weight: 500;
  border-radius: 4px;
  transition: background var(--transition);
}
.mobile-nav ul li a:hover { background: var(--red); color: var(--white); }
.mobile-nav .mobile-sub { padding-left: 20px; }
.mobile-nav .mobile-sub a { font-size: .88rem; color: #bbb; }
.mobile-cta { margin-top: 12px; }

/* ---------- PAGE HERO ---------- */
.hero {
  background: linear-gradient(135deg, #1a1a1a 0%, #3a0000 60%, #cc0000 100%);
  color: var(--white);
  padding: 90px 20px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.hero h1 { color: var(--white); margin-bottom: 1rem; }
.hero p  { color: rgba(255,255,255,.85); font-size: 1.15rem; max-width: 650px; margin: 0 auto 2rem; }
.hero-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- SERVICE HERO (inner pages) ---------- */
.page-hero {
  background: linear-gradient(135deg, #1a1a1a 0%, #2a0000 55%, #cc0000 100%);
  color: var(--white);
  padding: 60px 20px;
  text-align: center;
}
.page-hero h1 { color: var(--white); margin-bottom: .6rem; }
.page-hero p  { color: rgba(255,255,255,.8); max-width: 700px; margin: 0 auto 1.5rem; font-size: 1.05rem; }
.breadcrumb {
  font-size: .83rem;
  color: rgba(255,255,255,.6);
  margin-bottom: 12px;
}
.breadcrumb a { color: rgba(255,255,255,.7); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb span { margin: 0 6px; }

/* ---------- SERVICES GRID (Home) ---------- */
.services-section { padding: 80px 0; background: var(--white); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}
.service-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
  background: var(--white);
}
.service-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}
.service-card-img {
  height: 200px;
  overflow: hidden;
  background: var(--light-bg);
}
.service-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.service-card:hover .service-card-img img { transform: scale(1.06); }
.service-card-body { padding: 20px; }
.service-card-body h3 { margin-bottom: .5rem; }
.service-card-body p  { font-size: .92rem; color: var(--mid); margin-bottom: 1rem; }
.service-card-link {
  font-size: .88rem;
  font-weight: 600;
  color: var(--red);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.service-card-link:hover { gap: 9px; }

/* ---------- WHY CHOOSE US ---------- */
.why-section { padding: 80px 0; background: var(--light-bg); }
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 28px;
  margin-top: 2.5rem;
}
.why-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px 24px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  transition: box-shadow var(--transition), transform var(--transition);
}
.why-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.why-icon {
  width: 60px;
  height: 60px;
  background: #fde8e8;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.5rem;
  color: var(--red);
}
.why-card h4 { margin-bottom: .5rem; font-size: 1.05rem; }
.why-card p  { font-size: .9rem; color: var(--mid); margin: 0; }

/* ---------- CTA BANNER ---------- */
.cta-banner {
  background: linear-gradient(90deg, var(--red) 0%, #8b0000 100%);
  color: var(--white);
  padding: 60px 20px;
  text-align: center;
}
.cta-banner h2 { color: var(--white); margin-bottom: .7rem; }
.cta-banner p  { color: rgba(255,255,255,.85); max-width: 580px; margin: 0 auto 2rem; }

/* ---------- STATS STRIP ---------- */
.stats-strip { background: var(--dark); color: var(--white); padding: 50px 0; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
  text-align: center;
}
.stat-item h3 { font-size: 2.4rem; color: var(--red); }
.stat-item p  { font-size: .9rem; color: #bbb; margin: 0; }

/* ---------- TESTIMONIALS ---------- */
.testimonials-section { padding: 80px 0; background: var(--white); }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 2.5rem;
}
.testimonial-card {
  background: var(--light-bg);
  border-radius: var(--radius);
  padding: 28px;
  border-left: 4px solid var(--red);
}
.testimonial-stars { color: #f5a623; margin-bottom: 10px; font-size: .95rem; }
.testimonial-text  { font-size: .95rem; color: var(--mid); font-style: italic; margin-bottom: 16px; }
.testimonial-author { font-weight: 700; font-size: .9rem; }
.testimonial-role   { font-size: .82rem; color: #888; }

/* ---------- SERVICE PAGE CONTENT ---------- */
.service-content-section { padding: 70px 0; }
.service-content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}
.service-content-grid.reverse { direction: rtl; }
.service-content-grid.reverse > * { direction: ltr; }
.service-features { margin: 1.5rem 0; }
.service-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
  font-size: .95rem;
}
.service-features li i { color: var(--red); margin-top: 3px; flex-shrink: 0; }
.service-img-wrap {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.service-img-wrap img { width: 100%; height: 360px; object-fit: cover; }

/* Product Cards */
.products-section { padding: 60px 0; background: var(--light-bg); }
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 2rem;
}
.product-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
  border: 1px solid var(--border);
  transition: box-shadow var(--transition), transform var(--transition);
}
.product-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.product-card-icon {
  font-size: 2.2rem;
  color: var(--red);
  margin-bottom: 12px;
}
.product-card h4 { margin-bottom: .4rem; font-size: 1rem; }
.product-card p  { font-size: .87rem; color: var(--mid); margin: 0; }

/* Order CTA */
.order-cta-section {
  background: linear-gradient(135deg, #1a1a1a 0%, var(--red) 100%);
  color: var(--white);
  padding: 60px 20px;
  text-align: center;
}
.order-cta-section h2 { color: var(--white); margin-bottom: .7rem; }
.order-cta-section p  { color: rgba(255,255,255,.82); max-width: 560px; margin: 0 auto 1.8rem; }
.order-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Process Steps */
.process-section { padding: 60px 0; }
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 24px;
  margin-top: 2.5rem;
  counter-reset: steps;
}
.process-step {
  text-align: center;
  padding: 24px 16px;
  position: relative;
  counter-increment: steps;
}
.process-step::before {
  content: counter(steps);
  width: 46px;
  height: 46px;
  background: var(--red);
  color: var(--white);
  font-size: 1.2rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}
.process-step h4 { margin-bottom: .4rem; font-size: 1rem; }
.process-step p  { font-size: .88rem; color: var(--mid); margin: 0; }

/* ---------- ABOUT PAGE ---------- */
.about-intro { padding: 70px 0; }
.about-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}
.about-img { border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.about-img img { width: 100%; height: 420px; object-fit: cover; }
.about-values { padding: 70px 0; background: var(--light-bg); }
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 24px;
  margin-top: 2.5rem;
}
.value-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  border-top: 4px solid var(--red);
  box-shadow: 0 2px 10px rgba(0,0,0,.05);
}
.value-card h4 { margin-bottom: .5rem; }
.value-card p  { font-size: .92rem; color: var(--mid); margin: 0; }
.team-section { padding: 70px 0; }

/* ---------- CONTACT PAGE ---------- */
.contact-section { padding: 70px 0; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 50px;
  align-items: start;
}
.contact-info h3 { margin-bottom: 1.2rem; }
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 22px;
}
.contact-item-icon {
  width: 44px;
  height: 44px;
  background: #fde8e8;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
  font-size: 1rem;
  flex-shrink: 0;
}
.contact-item-text h5 { margin-bottom: 2px; font-size: .95rem; }
.contact-item-text p, .contact-item-text a {
  font-size: .92rem;
  color: var(--mid);
  margin: 0;
}
.contact-form { background: var(--light-bg); border-radius: 12px; padding: 36px; }
.contact-form h3 { margin-bottom: 1.5rem; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: .88rem; font-weight: 600; margin-bottom: 5px; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 5px;
  font-size: .92rem;
  font-family: var(--font);
  background: var(--white);
  color: var(--dark);
  transition: border-color var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--red);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.map-section { padding: 0 0 70px; }
.map-section iframe { width: 100%; border-radius: 12px; }
.hours-table { width: 100%; margin-top: .5rem; }
.hours-table td { padding: 4px 0; font-size: .9rem; }
.hours-table td:first-child { color: var(--mid); width: 130px; }
.hours-table td:last-child { font-weight: 600; }

/* ---------- FOOTER ---------- */
footer {
  background: var(--dark);
  color: #ccc;
  padding: 60px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid #333;
}
.footer-col h5 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 1.2rem;
  position: relative;
  padding-bottom: 10px;
}
.footer-col h5::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 34px;
  height: 2px;
  background: var(--red);
}
.footer-logo img { height: 50px; margin-bottom: 14px; }
.footer-about { font-size: .88rem; line-height: 1.7; color: #aaa; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { font-size: .88rem; color: #aaa; transition: color var(--transition), padding-left var(--transition); }
.footer-col ul li a:hover { color: var(--white); padding-left: 4px; }
.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .88rem;
  color: #aaa;
  margin-bottom: 10px;
}
.footer-contact li i { color: var(--red); margin-top: 3px; flex-shrink: 0; }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a {
  width: 34px;
  height: 34px;
  background: #333;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #aaa;
  font-size: .85rem;
  transition: background var(--transition), color var(--transition);
}
.footer-social a:hover { background: var(--red); color: var(--white); }
.footer-bottom {
  padding: 18px 0;
  text-align: center;
  font-size: .82rem;
  color: #777;
}
.footer-bottom a { color: #999; }
.footer-bottom a:hover { color: var(--white); }

/* ---------- SCROLL TO TOP ---------- */
#scrollTop {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 42px;
  height: 42px;
  background: var(--red);
  color: var(--white);
  border: none;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 12px rgba(204,0,0,.4);
  z-index: 900;
  transition: background var(--transition), transform var(--transition);
}
#scrollTop:hover { background: var(--red-dark); transform: translateY(-2px); }
#scrollTop.visible { display: flex; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .service-content-grid { grid-template-columns: 1fr; gap: 30px; }
  .service-content-grid.reverse { direction: ltr; }
  .about-intro-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; }
  nav.primary-nav { display: none; }
  .hamburger { display: flex; }
  .hero { padding: 60px 20px; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .services-grid { grid-template-columns: 1fr; }
  .hero-btns { flex-direction: column; align-items: center; }
  .order-btns { flex-direction: column; align-items: center; }
  .top-bar .container { flex-direction: column; gap: 4px; }
}
