/*
Theme Name: Locksmith Pro
Theme URI: https://example.com
Author: Your Name
Description: A professional WordPress theme for locksmith businesses.
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: locksmith-pro
*/

/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  --primary:     #1a4fa0;   /* deep blue */
  --primary-dk:  #133a78;
  --primary-lt:  #2d6ecf;
  --accent:      #f5a623;   /* warm gold */
  --accent-dk:   #d4881a;
  --text:        #1c1c1c;
  --text-muted:  #555;
  --bg:          #ffffff;
  --bg-light:    #f4f7fb;
  --border:      #dce4f0;
  --radius:      8px;
  --shadow:      0 4px 20px rgba(26,79,160,.12);
  --font-sans:   'Inter', 'Segoe UI', Arial, sans-serif;
  --max-w:       1160px;
  --transition:  .25s ease;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
}

img { max-width: 100%; height: auto; display: block; }
a  { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-lt); }

ul { list-style: none; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
}
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p  { margin-bottom: 1rem; }

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container {
  width: 90%;
  max-width: var(--max-w);
  margin: 0 auto;
}

.section {
  padding: 80px 0;
}

.section--gray {
  background: var(--bg-light);
}

.section__header {
  text-align: center;
  margin-bottom: 56px;
}

.section__header h2 { margin-bottom: .5rem; }

.section__header p {
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
}

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

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  align-items: center;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
  text-decoration: none;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn--primary:hover {
  background: var(--accent-dk);
  border-color: var(--accent-dk);
  color: #fff;
  transform: translateY(-2px);
}

.btn--outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.7);
}
.btn--outline:hover {
  background: rgba(255,255,255,.15);
  color: #fff;
}

.btn--blue {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.btn--blue:hover {
  background: var(--primary-dk);
  border-color: var(--primary-dk);
  color: #fff;
  transform: translateY(-2px);
}

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.site-header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
  text-decoration: none;
}

.site-header__logo .logo-icon {
  width: 38px;
  height: 38px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.2rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.site-nav a {
  font-weight: 500;
  color: var(--text);
  position: relative;
}

.site-nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 2px;
  background: var(--primary);
  transition: width var(--transition);
}

.site-nav a:hover::after,
.site-nav a.current-menu-item::after { width: 100%; }

.site-header__cta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.site-header__phone {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--primary);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav-toggle span {
  width: 25px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: linear-gradient(135deg, var(--primary-dk) 0%, var(--primary-lt) 100%);
  color: #fff;
  padding: 100px 0 80px;
  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.04'%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");
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  padding: 6px 16px;
  border-radius: 30px;
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: rgba(255,255,255,.95);
}

.hero h1 { color: #fff; margin-bottom: 20px; }

.hero p {
  font-size: 1.15rem;
  color: rgba(255,255,255,.88);
  max-width: 500px;
  margin-bottom: 32px;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero__card {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 16px;
  padding: 40px;
  text-align: center;
  backdrop-filter: blur(6px);
  min-width: 280px;
}

.hero__card .big-icon {
  font-size: 5rem;
  margin-bottom: 20px;
  display: block;
}

.hero__card h3 { color: #fff; margin-bottom: 8px; }
.hero__card p  { color: rgba(255,255,255,.8); font-size: .95rem; margin-bottom: 0; }

.hero__stats {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.2);
}

.hero__stat strong { display: block; font-size: 1.6rem; color: var(--accent); }
.hero__stat span   { font-size: .8rem; color: rgba(255,255,255,.75); }

/* ============================================================
   TRUST BAR
   ============================================================ */
.trust-bar {
  background: var(--primary);
  padding: 18px 0;
}

.trust-bar__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.9);
  font-size: .9rem;
  font-weight: 500;
}

.trust-item .icon { font-size: 1.1rem; }

/* ============================================================
   SERVICE CARDS
   ============================================================ */
.service-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 36px rgba(26,79,160,.18);
}

.service-card__icon {
  font-size: 2.6rem;
  margin-bottom: 18px;
  display: block;
}

.service-card h3 { margin-bottom: 10px; }
.service-card p  { color: var(--text-muted); font-size: .95rem; margin-bottom: 0; }

/* ============================================================
   WHY CHOOSE US
   ============================================================ */
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.feature-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.feature-item__icon {
  flex-shrink: 0;
  width: 48px; height: 48px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.2rem;
}

.feature-item h4 { margin-bottom: 4px; }
.feature-item p  { color: var(--text-muted); margin-bottom: 0; font-size: .95rem; }

.about-visual {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-lt) 100%);
  border-radius: 16px;
  padding: 60px 40px;
  text-align: center;
  color: #fff;
}

.about-visual .big-num {
  font-size: 5rem;
  font-weight: 800;
  color: var(--accent);
  display: block;
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonial-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  position: relative;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 16px; left: 24px;
  font-size: 5rem;
  font-weight: 900;
  color: var(--primary);
  opacity: .12;
  line-height: 1;
}

.testimonial-card__stars { color: #f5a623; margin-bottom: 14px; font-size: 1.1rem; }
.testimonial-card p { font-style: italic; color: var(--text-muted); margin-bottom: 20px; }
.testimonial-card__author { font-weight: 700; color: var(--primary); }

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner {
  background: linear-gradient(135deg, var(--primary-dk) 0%, var(--primary-lt) 100%);
  padding: 80px 0;
  text-align: center;
  color: #fff;
}

.cta-banner h2 { color: #fff; margin-bottom: 16px; }
.cta-banner p  { color: rgba(255,255,255,.85); max-width: 540px; margin: 0 auto 32px; font-size: 1.1rem; }

.cta-banner__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-phone {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent);
  display: block;
  margin-bottom: 24px;
}

/* ============================================================
   CONTACT FORM
   ============================================================ */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 56px;
  align-items: start;
}

.contact-info h3 { margin-bottom: 24px; }

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
}

.contact-detail__icon {
  width: 42px; height: 42px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-detail h4 { font-size: .85rem; color: var(--text-muted); margin-bottom: 2px; font-weight: 500; }
.contact-detail p  { font-weight: 600; margin-bottom: 0; }

.contact-form {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
}

.contact-form h3 { margin-bottom: 24px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: .9rem;
  margin-bottom: 6px;
  color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: .95rem;
  color: var(--text);
  background: #fff;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,79,160,.12);
}

.form-group textarea { resize: vertical; min-height: 120px; }

/* ============================================================
   SERVICES PAGE - FULL DETAIL
   ============================================================ */
.page-hero {
  background: linear-gradient(135deg, var(--primary-dk) 0%, var(--primary-lt) 100%);
  padding: 60px 0;
  color: #fff;
  text-align: center;
}

.page-hero h1 { color: #fff; margin-bottom: 10px; }
.page-hero p  { color: rgba(255,255,255,.85); max-width: 560px; margin: 0 auto; }

.service-detail-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.service-detail-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(26,79,160,.18);
}

.service-detail-card__header {
  background: var(--primary);
  padding: 32px;
  text-align: center;
  color: #fff;
}

.service-detail-card__header .icon { font-size: 3rem; display: block; margin-bottom: 12px; }
.service-detail-card__header h3   { color: #fff; }

.service-detail-card__body {
  padding: 28px;
}

.service-detail-card__body ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.service-detail-card__body ul li::before {
  content: '✓ ';
  color: var(--primary);
  font-weight: 700;
}

.service-detail-card__body ul li { color: var(--text-muted); font-size: .95rem; }

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.team-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow);
}

.team-card__avatar {
  width: 80px; height: 80px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  margin: 0 auto 16px;
}

.team-card h3 { margin-bottom: 4px; }
.team-card .role { color: var(--primary); font-weight: 600; font-size: .9rem; margin-bottom: 10px; }
.team-card p { color: var(--text-muted); font-size: .9rem; margin-bottom: 0; }

.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 24px;
  text-align: center;
}

.stat-box {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 20px;
  box-shadow: var(--shadow);
}

.stat-box strong { display: block; font-size: 2.5rem; color: var(--primary); font-weight: 800; margin-bottom: 6px; }
.stat-box span   { color: var(--text-muted); font-size: .9rem; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: #0d2650;
  color: rgba(255,255,255,.75);
}

.site-footer__top {
  padding: 60px 0 40px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
}

.footer-brand .logo-text {
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 14px;
}

.footer-brand p { font-size: .9rem; line-height: 1.7; }

.footer-col h4 {
  color: #fff;
  font-size: .95rem;
  font-weight: 700;
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a { color: rgba(255,255,255,.7); font-size: .9rem; }
.footer-col ul a:hover { color: var(--accent); }

.footer-contact-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 12px;
  font-size: .9rem;
}

.footer-contact-item .icon { color: var(--accent); flex-shrink: 0; margin-top: 2px; }

.site-footer__bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .85rem;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .hero__inner       { grid-template-columns: 1fr; text-align: center; }
  .hero__actions     { justify-content: center; }
  .hero__visual      { display: none; }
  .contact-wrap      { grid-template-columns: 1fr; }
  .site-footer__top  { grid-template-columns: 1fr 1fr; }
  .form-row          { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .site-nav, .site-header__cta .btn { display: none; }

  .nav-toggle { display: flex; }

  .site-nav.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 72px 0 0 0;
    background: #fff;
    z-index: 200;
    padding: 32px;
    gap: 24px;
    box-shadow: 0 8px 32px rgba(0,0,0,.12);
  }

  .site-nav.open a { font-size: 1.2rem; }

  .trust-bar__inner { gap: 20px; }
  .site-footer__top { grid-template-columns: 1fr; }
  .site-footer__bottom { flex-direction: column; gap: 8px; text-align: center; }
}
