/* Cash 4 Gold Trading Post - Optimized Static Site CSS */
/* Mobile-first responsive design */

:root {
  --gold: #D4AF37;
  --gold-dark: #B8960C;
  --gold-light: #F4E4A6;
  --black: #1a1a1a;
  --dark-gray: #2d2d2d;
  --white: #ffffff;
  --light-gray: #f5f5f5;
  --text-gray: #666666;
  --shadow: 0 4px 6px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.15);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--black);
  background: var(--white);
}

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

/* Header */
header {
  background: var(--black);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow);
}

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

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--gold);
}

.logo img {
  height: 50px;
  width: auto;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
  text-decoration: none;
}

.logo-text span {
  color: var(--white);
}

/* Navigation */
nav {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

nav a {
  color: var(--white);
  text-decoration: none;
  padding: 8px 15px;
  border-radius: 4px;
  font-weight: 500;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

nav a:hover, nav a.active {
  background: var(--gold);
  color: var(--black);
}

.mobile-menu-btn {
  display: none;
  background: var(--gold);
  color: var(--black);
  border: none;
  padding: 10px 15px;
  font-size: 1.2rem;
  cursor: pointer;
  border-radius: 4px;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--black) 0%, var(--dark-gray) 100%);
  color: var(--white);
  padding: 60px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="%23D4AF37" opacity="0.1"/></svg>') repeat;
  background-size: 30px 30px;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 2.2rem;
  margin-bottom: 20px;
  color: var(--gold);
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.95;
}

.hero-cta {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  font-size: 1rem;
}

.btn-primary {
  background: var(--gold);
  color: var(--black);
}

.btn-primary:hover {
  background: var(--gold-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

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

.btn-secondary:hover {
  background: var(--gold);
  color: var(--black);
}

.btn-call {
  background: #28a745;
  color: var(--white);
}

.btn-call:hover {
  background: #218838;
}

/* Cards Section */
.cards-section {
  padding: 60px 0;
  background: var(--light-gray);
}

.cards-section h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 40px;
  color: var(--black);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.card {
  background: var(--white);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  border-top: 4px solid var(--gold);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.card-icon {
  font-size: 3rem;
  margin-bottom: 15px;
}

.card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--gold-dark);
}

.card p {
  color: var(--text-gray);
  margin-bottom: 20px;
}

/* Services Section */
.services-section {
  padding: 60px 0;
  background: var(--white);
}

.services-section h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 15px;
  color: var(--black);
}

.services-section .subtitle {
  text-align: center;
  color: var(--text-gray);
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

.services-list li {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 20px;
  background: var(--light-gray);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.services-list li:hover {
  background: var(--gold-light);
}

.services-list li::before {
  content: '✓';
  color: var(--gold-dark);
  font-weight: bold;
  font-size: 1.2rem;
}

/* Location Cards */
.locations-section {
  padding: 60px 0;
  background: var(--dark-gray);
  color: var(--white);
}

.locations-section h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 40px;
  color: var(--gold);
}

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

.location-card {
  background: var(--black);
  border-radius: 10px;
  padding: 25px;
  border: 1px solid var(--gold);
  transition: all 0.3s ease;
}

.location-card:hover {
  border-color: var(--gold-light);
  transform: translateY(-3px);
}

.location-card h3 {
  color: var(--gold);
  font-size: 1.3rem;
  margin-bottom: 15px;
}

.location-card address {
  font-style: normal;
  margin-bottom: 10px;
  line-height: 1.5;
}

.location-card .phone {
  font-size: 1.2rem;
  color: var(--gold);
  text-decoration: none;
  display: block;
  margin: 15px 0;
  font-weight: 600;
}

.location-card .phone:hover {
  color: var(--gold-light);
}

.location-card .hours {
  font-size: 0.9rem;
  opacity: 0.85;
  margin-bottom: 15px;
}

.location-card .btn {
  width: 100%;
  text-align: center;
}

/* Content Section */
.content-section {
  padding: 60px 0;
}

.content-section h2 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: var(--black);
}

.content-section h3 {
  font-size: 1.4rem;
  margin: 30px 0 15px;
  color: var(--gold-dark);
}

.content-section p {
  margin-bottom: 15px;
  color: var(--text-gray);
}

.content-section ul {
  margin: 20px 0;
  padding-left: 25px;
}

.content-section li {
  margin-bottom: 10px;
}

/* Map Section */
.map-section {
  padding: 40px 0;
  background: var(--light-gray);
}

.map-container {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.map-container iframe {
  width: 100%;
  height: 400px;
  border: 0;
}

/* FAQ Section */
.faq-section {
  padding: 60px 0;
}

.faq-section h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 40px;
}

.faq-item {
  background: var(--white);
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.faq-question {
  padding: 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  background: var(--light-gray);
  transition: background 0.3s ease;
}

.faq-question:hover {
  background: var(--gold-light);
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--gold-dark);
  transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
  padding: 20px;
  max-height: 500px;
}

/* Breadcrumb */
.breadcrumb {
  padding: 15px 0;
  background: var(--light-gray);
  font-size: 0.9rem;
}

.breadcrumb a {
  color: var(--gold-dark);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb span {
  color: var(--text-gray);
  margin: 0 8px;
}

/* Footer */
footer {
  background: var(--black);
  color: var(--white);
  padding: 50px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h4 {
  color: var(--gold);
  margin-bottom: 20px;
  font-size: 1.2rem;
}

.footer-section p, .footer-section address {
  font-style: normal;
  line-height: 1.8;
  opacity: 0.9;
}

.footer-section a {
  color: var(--white);
  text-decoration: none;
  display: block;
  padding: 5px 0;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: var(--gold);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  opacity: 0.7;
  font-size: 0.9rem;
}

.footer-tagline {
  text-align: center;
  color: var(--gold);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 30px;
}

/* Sticky Mobile Call Button */
.mobile-call-btn {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #28a745;
  color: var(--white);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  text-align: center;
  line-height: 60px;
  font-size: 1.5rem;
  box-shadow: var(--shadow-lg);
  z-index: 999;
  text-decoration: none;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7); }
  70% { box-shadow: 0 0 0 15px rgba(40, 167, 69, 0); }
  100% { box-shadow: 0 0 0 0 rgba(40, 167, 69, 0); }
}

/* Two Column Layout */
.two-column {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
}

.sidebar {
  background: var(--light-gray);
  padding: 25px;
  border-radius: 10px;
  height: fit-content;
  position: sticky;
  top: 100px;
}

.sidebar h3 {
  color: var(--gold-dark);
  margin-bottom: 15px;
  font-size: 1.2rem;
}

.sidebar-contact {
  margin-bottom: 25px;
}

.sidebar-contact a {
  display: block;
  padding: 12px 20px;
  background: var(--gold);
  color: var(--black);
  text-decoration: none;
  border-radius: 5px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 10px;
  transition: all 0.3s ease;
}

.sidebar-contact a:hover {
  background: var(--gold-dark);
}

.sidebar-hours p {
  padding: 8px 0;
  border-bottom: 1px solid #ddd;
}

/* Responsive Design */
@media (max-width: 992px) {
  .two-column {
    grid-template-columns: 1fr;
  }
  
  .sidebar {
    position: static;
  }
}

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: block;
  }
  
  nav {
    display: none;
    width: 100%;
    flex-direction: column;
    background: var(--dark-gray);
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
  }
  
  nav.active {
    display: flex;
  }
  
  nav a {
    padding: 12px 15px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  
  .hero h1 {
    font-size: 1.8rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .mobile-call-btn {
    display: block;
  }
  
  .cards-section, .services-section, .locations-section, .content-section {
    padding: 40px 0;
  }
  
  .map-container iframe {
    height: 300px;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 40px 0;
  }
  
  .hero h1 {
    font-size: 1.5rem;
  }
  
  .btn {
    padding: 12px 24px;
    font-size: 0.95rem;
  }
  
  .locations-grid {
    grid-template-columns: 1fr;
  }
}

/* Print Styles */
@media print {
  header, footer, .mobile-call-btn, .hero-cta {
    display: none;
  }
  
  body {
    color: #000;
  }
}
