/* ===================================
   AlphaGraphics Dallas - Shared Styles
   =================================== */

/* ---- Variables ---- */
:root {
  --primary: #c8102e;
  --primary-dark: #a00d25;
  --primary-light: #e8394f;
  --secondary: #1a2744;
  --secondary-dark: #0d1833;
  --accent: #f5a623;
  --white: #ffffff;
  --off-white: #f8f9fa;
  --light-gray: #e9ecef;
  --mid-gray: #868e96;
  --dark-gray: #343a40;
  --text: #2c2c2c;
  --text-light: #6c757d;
  --border: #dee2e6;
  --shadow: 0 4px 20px rgba(0,0,0,0.1);
  --shadow-hover: 0 8px 40px rgba(0,0,0,0.18);
  --radius: 8px;
  --radius-lg: 16px;
  --transition: all 0.3s ease;
  --font-primary: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-heading: 'Montserrat', 'Segoe UI', sans-serif;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-primary); color: var(--text); background: var(--white); line-height: 1.7; overflow-x: hidden; }
a { color: inherit; text-decoration: none; transition: var(--transition); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
h1,h2,h3,h4,h5,h6 { font-family: var(--font-heading); font-weight: 700; line-height: 1.3; color: var(--secondary); }

/* ---- Typography ---- */
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.7rem); }
h4 { font-size: 1.2rem; }
p { margin-bottom: 1rem; }
.text-primary { color: var(--primary); }
.text-white { color: var(--white); }
.text-center { text-align: center; }

/* ---- Container ---- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.container-wide { max-width: 1400px; margin: 0 auto; padding: 0 20px; }

/* ---- Buttons ---- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 32px; font-size: 1rem; font-weight: 600; border-radius: var(--radius); cursor: pointer; transition: var(--transition); border: 2px solid transparent; text-align: center; }
.btn-primary { background: var(--primary); color: var(--white); border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(200,16,46,0.35); }
.btn-secondary { background: var(--secondary); color: var(--white); border-color: var(--secondary); }
.btn-secondary:hover { background: var(--secondary-dark); border-color: var(--secondary-dark); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--white); border-color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--primary); }
.btn-outline-red { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline-red:hover { background: var(--primary); color: var(--white); }
.btn-lg { padding: 18px 44px; font-size: 1.1rem; }
.btn-sm { padding: 10px 22px; font-size: 0.9rem; }

/* ---- Section ---- */
.section { padding: 80px 0; }
.section-sm { padding: 50px 0; }
.section-alt { background: var(--off-white); }
.section-dark { background: var(--secondary); color: var(--white); }
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 { color: var(--white); }
.section-red { background: var(--primary); color: var(--white); }
.section-red h1, .section-red h2, .section-red h3 { color: var(--white); }
.section-header { text-align: center; margin-bottom: 60px; }
.section-header .subtitle { font-size: 0.95rem; text-transform: uppercase; letter-spacing: 2px; color: var(--primary); font-weight: 600; margin-bottom: 12px; display: block; }
.section-header h2 { margin-bottom: 16px; }
.section-header p { max-width: 650px; margin: 0 auto; color: var(--text-light); font-size: 1.05rem; }
.divider { width: 60px; height: 4px; background: var(--primary); margin: 16px auto; border-radius: 2px; }

/* ---- Top Bar ---- */
.top-bar { background: var(--secondary-dark); color: #ccc; font-size: 0.82rem; padding: 8px 0; }
.top-bar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.top-bar-left, .top-bar-right { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.top-bar a { color: #ccc; }
.top-bar a:hover { color: var(--accent); }
.top-bar i { margin-right: 5px; color: var(--primary); }
.social-icons-top { display: flex; gap: 10px; align-items: center; }
.social-icons-top a { color: #aaa; font-size: 0.85rem; }
.social-icons-top a:hover { color: var(--accent); }

/* ---- Navigation ---- */
.main-nav { background: var(--white); box-shadow: 0 2px 15px rgba(0,0,0,0.1); position: sticky; top: 0; z-index: 1000; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 12px 20px; }
.logo-link { display: flex; align-items: center; }
.logo-img { height: 60px; width: auto; object-fit: contain; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links > li { position: relative; }
.nav-links > li > a { display: flex; align-items: center; gap: 5px; padding: 10px 16px; font-size: 0.95rem; font-weight: 600; color: var(--secondary); border-radius: var(--radius); transition: var(--transition); }
.nav-links > li > a:hover, .nav-links > li > a.active { color: var(--primary); background: rgba(200,16,46,0.06); }
.nav-cta { background: var(--primary) !important; color: var(--white) !important; padding: 10px 22px !important; border-radius: var(--radius) !important; }
.nav-cta:hover { background: var(--primary-dark) !important; transform: translateY(-2px); }
.dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu { position: absolute; top: calc(100% + 8px); left: 0; background: var(--white); border-radius: var(--radius); box-shadow: 0 8px 40px rgba(0,0,0,0.15); min-width: 220px; padding: 8px 0; opacity: 0; visibility: hidden; transform: translateY(-10px); transition: var(--transition); z-index: 200; border-top: 3px solid var(--primary); }
.dropdown-menu li a { display: block; padding: 10px 22px; color: var(--text); font-size: 0.93rem; font-weight: 500; transition: var(--transition); }
.dropdown-menu li a:hover { color: var(--primary); background: var(--off-white); padding-left: 28px; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 8px; }
.hamburger span { display: block; width: 25px; height: 2.5px; background: var(--secondary); border-radius: 2px; transition: var(--transition); }

/* ---- Page Hero ---- */
.page-hero { background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-dark) 100%); color: var(--white); padding: 80px 0; text-align: center; position: relative; overflow: hidden; }
.page-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"); }
.page-hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin-bottom: 16px; position: relative; }
.page-hero p { font-size: 1.1rem; max-width: 650px; margin: 0 auto 28px; color: rgba(255,255,255,0.85); position: relative; }
.breadcrumb { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 0.9rem; color: rgba(255,255,255,0.7); margin-bottom: 20px; position: relative; }
.breadcrumb a { color: var(--accent); }
.breadcrumb span { color: rgba(255,255,255,0.5); }

/* ---- Cards ---- */
.card { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; transition: var(--transition); }
.card:hover { box-shadow: var(--shadow-hover); transform: translateY(-5px); }
.card-img { width: 100%; height: 220px; object-fit: cover; }
.card-body { padding: 24px; }
.card-badge { display: inline-block; background: var(--primary); color: var(--white); font-size: 0.75rem; font-weight: 700; padding: 4px 12px; border-radius: 20px; margin-bottom: 10px; letter-spacing: 0.5px; }
.card-body h3 { font-size: 1.15rem; margin-bottom: 10px; color: var(--secondary); }
.card-body p { font-size: 0.92rem; color: var(--text-light); margin-bottom: 16px; }
.card-link { color: var(--primary); font-weight: 600; font-size: 0.93rem; display: inline-flex; align-items: center; gap: 6px; }
.card-link:hover { gap: 10px; }

/* ---- Grid Systems ---- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 28px; }

/* ---- Service List Items ---- */
.service-item { display: flex; align-items: flex-start; gap: 16px; padding: 24px; background: var(--white); border-radius: var(--radius); border-left: 4px solid var(--primary); box-shadow: var(--shadow); transition: var(--transition); }
.service-item:hover { transform: translateX(6px); box-shadow: var(--shadow-hover); }
.service-item .icon { width: 52px; height: 52px; background: linear-gradient(135deg, var(--primary), var(--primary-light)); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.service-item .icon i { color: var(--white); font-size: 1.4rem; }
.service-item h4 { margin-bottom: 6px; color: var(--secondary); }
.service-item p { font-size: 0.92rem; color: var(--text-light); margin: 0; }

/* ---- Why Choose Us ---- */
.why-card { text-align: center; padding: 36px 24px; border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow); transition: var(--transition); }
.why-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.why-icon { width: 72px; height: 72px; background: linear-gradient(135deg, var(--primary), var(--primary-light)); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; }
.why-icon i { color: var(--white); font-size: 1.8rem; }
.why-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.why-card p { font-size: 0.92rem; color: var(--text-light); margin: 0; }

/* ---- Stats ---- */
.stats-bar { background: var(--primary); padding: 50px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat-item h3 { font-size: 2.5rem; font-weight: 800; color: var(--white); margin-bottom: 6px; }
.stat-item p { color: rgba(255,255,255,0.85); font-size: 0.95rem; font-weight: 500; margin: 0; }

/* ---- Testimonials ---- */
.testimonial { background: var(--white); padding: 32px; border-radius: var(--radius-lg); box-shadow: var(--shadow); position: relative; }
.testimonial::before { content: '\201C'; font-size: 5rem; color: var(--primary); opacity: 0.15; position: absolute; top: 10px; left: 20px; line-height: 1; font-family: Georgia, serif; }
.testimonial .stars { color: #ffc107; margin-bottom: 14px; font-size: 1.1rem; }
.testimonial p { font-size: 0.97rem; color: var(--text); font-style: italic; margin-bottom: 20px; position: relative; }
.testimonial .reviewer { display: flex; align-items: center; gap: 14px; }
.testimonial .reviewer-avatar { width: 46px; height: 46px; background: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--white); font-weight: 700; font-size: 1.1rem; flex-shrink: 0; }
.testimonial .reviewer-info strong { display: block; color: var(--secondary); font-size: 0.95rem; }
.testimonial .reviewer-info span { color: var(--text-light); font-size: 0.85rem; }

/* ---- CTA Section ---- */
.cta-section { background: linear-gradient(135deg, var(--secondary) 0%, #2a3f6f 100%); color: var(--white); padding: 90px 0; text-align: center; position: relative; overflow: hidden; }
.cta-section::after { content: ''; position: absolute; right: -100px; top: -100px; width: 400px; height: 400px; background: var(--primary); opacity: 0.08; border-radius: 50%; }
.cta-section h2 { color: var(--white); margin-bottom: 16px; }
.cta-section p { color: rgba(255,255,255,0.85); max-width: 580px; margin: 0 auto 36px; font-size: 1.05rem; }
.cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; position: relative; z-index: 1; }

/* ---- Forms ---- */
.form-group { margin-bottom: 22px; }
.form-label { display: block; font-weight: 600; margin-bottom: 7px; font-size: 0.93rem; color: var(--secondary); }
.form-control { width: 100%; padding: 13px 18px; border: 2px solid var(--border); border-radius: var(--radius); font-size: 0.97rem; font-family: var(--font-primary); transition: var(--transition); background: var(--white); color: var(--text); }
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(200,16,46,0.12); }
textarea.form-control { resize: vertical; min-height: 130px; }
select.form-control { cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23666' d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }

/* ---- Info Box ---- */
.info-box { padding: 28px; background: var(--off-white); border-radius: var(--radius-lg); border-left: 4px solid var(--primary); }
.info-box h4 { color: var(--primary); margin-bottom: 12px; }
.info-box ul li { padding: 6px 0; color: var(--text-light); font-size: 0.95rem; display: flex; align-items: flex-start; gap: 10px; }
.info-box ul li::before { content: '✓'; color: var(--primary); font-weight: 700; flex-shrink: 0; }

/* ---- Tag Pills ---- */
.tag { display: inline-block; padding: 5px 14px; background: rgba(200,16,46,0.1); color: var(--primary); border-radius: 20px; font-size: 0.82rem; font-weight: 600; margin: 4px; }

/* ---- Accordion ---- */
.accordion-item { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 10px; overflow: hidden; }
.accordion-header { padding: 18px 22px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-weight: 600; color: var(--secondary); background: var(--white); user-select: none; transition: var(--transition); }
.accordion-header:hover { background: var(--off-white); }
.accordion-header.active { background: var(--secondary); color: var(--white); }
.accordion-header .icon { transition: var(--transition); }
.accordion-header.active .icon { transform: rotate(45deg); }
.accordion-body { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.accordion-body-inner { padding: 18px 22px; color: var(--text-light); font-size: 0.95rem; border-top: 1px solid var(--border); }

/* ---- Alert Banner ---- */
.alert-banner { background: var(--accent); color: var(--secondary); padding: 12px 0; text-align: center; font-size: 0.9rem; font-weight: 600; }
.alert-banner i { margin-right: 6px; }

/* ---- Animations ---- */
.animate-on-scroll { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.animate-on-scroll.visible { opacity: 1; transform: translateY(0); }
.animate-delay-1 { transition-delay: 0.1s; }
.animate-delay-2 { transition-delay: 0.2s; }
.animate-delay-3 { transition-delay: 0.3s; }
.animate-delay-4 { transition-delay: 0.4s; }

/* ---- Footer ---- */
footer { background: var(--secondary-dark); color: #ccc; }
.footer-top { padding: 70px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 50px; }
.footer-logo { height: 55px; width: auto; margin-bottom: 18px; filter: brightness(0) invert(1); }
.footer-about p { font-size: 0.92rem; line-height: 1.7; color: #aaa; max-width: 300px; }
.footer-social { display: flex; gap: 10px; margin-top: 22px; }
.footer-social a { width: 38px; height: 38px; background: rgba(255,255,255,0.08); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #aaa; font-size: 0.9rem; transition: var(--transition); }
.footer-social a:hover { background: var(--primary); color: var(--white); }
.footer-col h4 { color: var(--white); font-size: 1rem; margin-bottom: 22px; padding-bottom: 12px; border-bottom: 2px solid var(--primary); display: inline-block; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: #aaa; font-size: 0.92rem; transition: var(--transition); }
.footer-col ul li a:hover { color: var(--primary); padding-left: 4px; }
.contact-list li { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.contact-list li i { color: var(--primary); margin-top: 3px; flex-shrink: 0; width: 16px; }
.contact-list li a { color: #aaa; font-size: 0.92rem; }
.contact-list li a:hover { color: var(--primary); }
.contact-list li span { color: #aaa; font-size: 0.92rem; }
.footer-bottom { background: #050c1a; padding: 18px 0; text-align: center; }
.footer-bottom p { color: #666; font-size: 0.85rem; margin: 0; }

/* ---- Responsive ---- */
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
  .hamburger { display: flex; }
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); flex-direction: column; padding: 20px; gap: 4px; box-shadow: 0 10px 30px rgba(0,0,0,0.15); z-index: 999; }
  .nav-links.open { display: flex; }
  .nav-links > li > a { padding: 12px 16px; }
  .dropdown-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; background: var(--off-white); margin-top: 4px; border-top: none; border-left: 3px solid var(--primary); }
  .top-bar .container { flex-direction: column; text-align: center; }
  .top-bar-left, .top-bar-right { justify-content: center; }
}
@media (max-width: 768px) {
  .section { padding: 55px 0; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-buttons { flex-direction: column; align-items: center; }
}
@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  h1 { font-size: 1.8rem; }
}
