/* styles.css – GMC Key Replacement Austin */

/* Color palette */
:root {
  --blue: #004c97;
  --yellow: #ffcc33;
  --black: #111111;
  --white: #ffffff;
  --gray-light: #f5f7fa;
  --gray-mid: #d3d7df;
  --text-main: #222222;
  --text-muted: #555555;
}

/* Reset-ish */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-size: 1.1rem;
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text-main);
  background-color: var(--white);
  line-height: 1.5;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover,
a:focus {
  text-decoration: underline;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: var(--white);
  border-bottom: 1px solid var(--gray-mid);
}

.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-main {
  font-weight: 700;
  color: var(--black);
}

.logo-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.main-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 1.5rem;
}

.main-nav a {
  font-weight: 500;
}

.header-phone {
  font-weight: 700;
  color: var(--blue);
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  border: 2px solid var(--blue);
}

.header-phone:hover {
  background-color: var(--blue);
  color: var(--white);
  text-decoration: none;
}

/* Mobile nav toggle */

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.25rem;
  cursor: pointer;
}

.nav-toggle-bar {
  width: 20px;
  height: 2px;
  background-color: var(--black);
  display: block;
  margin: 4px 0;
}

/* Hero */

.hero {
  height: 60vh;
  min-height: 400px;
  background-image: url("images/banner.avif");
  background-size: cover;
  background-position: center;
  position: relative;
  color: var(--white);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(0, 0, 0, 0.5), rgba(0, 76, 151, 0.6));
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-content {
  max-width: 700px;
  padding: 1.5rem;
}

.hero .hcap {
  margin: 0 0 0.5rem;
  font-size: 2.2rem;
}

.hero p {
  margin: 0 0 1.2rem;
  font-size: 1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  font-weight: 600;
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
}

.btn-primary {
  background-color: var(--yellow);
  color: var(--black);
  border-color: var(--yellow);
}

.btn-primary:hover {
  background-color: #ffdb66;
  border-color: #ffdb66;
  text-decoration: none;
}

.btn-secondary {
  background-color: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn-secondary:hover {
  background-color: var(--white);
  color: var(--blue);
  text-decoration: none;
}

/* Sections */

.section-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 2.5rem 1rem;
}

.section-intro {
  max-width: 680px;
  color: var(--text-muted);
}

/* Decorative separators */

.decor-hr {
  border: 0;
  height: 3px;
  background: linear-gradient(to right, var(--blue), var(--yellow));
  margin: 0;
}

.mountain-divider {
  width: 100%;
  height: 60px;
  display: block;
  fill: var(--gray-light);
}

/* Content placeholder */

.content-section {
  padding: 1rem 4rem;
  min-height: 200px;
  background-color: var(--gray-light);
}

/* Services */

.services-section {
  background-color: var(--white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.service-card {
  background-color: var(--gray-light);
  border-radius: 10px;
  padding: 1rem 1.1rem;
  border: 1px solid #e0e3eb;
}

.service-card h3 {
  margin-top: 0;
}

/* Cost */

.cost-section {
  background-color: var(--white);
}

.cost-note {
  margin-top: 1rem;
  background-color: var(--gray-light);
  border-radius: 8px;
  padding: 1rem;
}

/* Map */

.map-section {
  background-color: var(--white);
}

.map-wrapper {
  margin-top: 1.5rem;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--gray-mid);
  min-height: 260px;
  background-color: var(--gray-light);
}

.map-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Contact */

.contact-section {
  background-color: var(--gray-light);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.contact-block h3 {
  margin-top: 0;
}

.contact-phone {
  font-size: 1.2rem;
  font-weight: 700;
}

/* Footer */

.site-footer {
  background-color: var(--black);
  color: var(--white);
  margin-top: 2rem;
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 2rem 1rem 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.footer-col h2 {
  font-size: 1rem;
  margin-top: 0;
}

.footer-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-menu li {
  margin-bottom: 0.3rem;
}

.site-footer a {
  color: #f0f4ff;
}

.site-footer a:hover {
  color: var(--yellow);
  text-decoration: none;
}

.footer-contact p {
  margin: 0.2rem 0;
}

.hours {
  margin-top: 0.7rem;
  font-size: 0.9rem;
  color: #dddddd;
}

.social-icons {
  display: flex;
  gap: 0.5rem;
  margin: 0.6rem 0;
}

.social-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: var(--blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.social-icon svg {
  width: 16px;
  height: 16px;
  fill: var(--white);
}

.footer-bottom {
  border-top: 1px solid #333333;
  text-align: center;
  padding: 0.7rem 1rem 1rem;
  font-size: 0.85rem;
  color: #bbbbbb;
}

/* Floating call button */

.floating-call {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  background-color: var(--blue);
  color: var(--white);
  border-radius: 999px;
  padding: 0.5rem 0.9rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  display: inline-flex;
  flex-direction: column;
  gap: 0.1rem;
  font-size: 0.85rem;
  z-index: 40;
}

.floating-call-label {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  font-size: 0.7rem;
}

.floating-call-phone {
  font-weight: 700;
}

.floating-call:hover {
  background-color: #0062c4;
  text-decoration: none;
}

/* Responsive */

@media (max-width: 800px) {
  .main-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background-color: var(--white);
    border-bottom: 1px solid var(--gray-mid);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s ease;
  }

  .main-nav ul {
    flex-direction: column;
    padding: 0.6rem 1rem 1rem;
    gap: 0.5rem;
  }

  .main-nav.nav-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-toggle {
    display: block;
  }

  .header-phone {
    display: none; /* rely on floating call button on mobile */
  }

  .hero-content {
    text-align: left;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 801px) {
  .main-nav {
    position: static;
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }
}
