/*
Theme Name: Freedom Locksmith Theme
Theme URI: https://thefreewebsiteguys.com
Author: The Free Website Guys
Author URI: https://thefreewebsiteguys.com
Description: WordPress theme generated from Lovable frontend with full Customizer integration.
Version: 1.0.0
License: GPL-2.0-or-later
Text Domain: flmt
*/

:root {
  --background: #ffffff;
  --foreground: #1a2230;
  --primary: #0f3b70;
  --primary-foreground: #ffffff;
  --primary-dark: #0a2a50;
  --primary-light: #2d5f9d;
  --accent: #ce2222;
  --accent-dark: #a51b1b;
  --accent-light: #d65d5d;
  --gold: #0ca8f4;
  --gold-dark: #0788cc;
  --gold-light: #66c8f3;
  --secondary: #f4f6f9;
  --muted: #6f7785;
  --border: #e3e8ef;
  --charcoal: #1a2230;
  --charcoal-light: #2a3342;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  background: var(--background);
  color: var(--foreground);
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
.container { width: min(1200px, calc(100% - 2rem)); margin: 0 auto; }
.section-padding { padding: 4rem 0; }
@media (min-width: 768px) { .section-padding { padding: 6rem 0; } }
.bg-background { background: var(--background); }

.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 1000;
  background: rgba(0, 0, 0, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.header-row { height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
@media (min-width: 768px) { .header-row { height: 112px; } }
.site-logo { max-height: 80px; width: auto; display: block; }
@media (min-width: 768px) { .site-logo { max-height: 112px; } }
.desktop-nav { display: none; gap: 1.5rem; align-items: center; }
.desktop-nav button, .mobile-nav button {
  border: 0; background: transparent; color: rgba(255,255,255,0.8); cursor: pointer; font-weight: 600;
}
.desktop-nav button:hover, .mobile-nav button:hover { color: #fff; }
.header-cta { display: none; align-items: center; }
/* Header CTA: replica del diseño reference (h-10, rounded-md, text-sm, ring focus) */
.header-cta .btn {
  height: 40px;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color 0.2s, color 0.2s;
}
.header-cta .btn:hover { background: color-mix(in, var(--primary) 90%, white); }
.header-cta .btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(0,0,0,.92), 0 0 0 4px var(--primary);
}
.header-cta .btn .flmt-icon { width: 1rem; height: 1rem; }
.menu-toggle { border: 0; background: transparent; color: #fff; font-size: 24px; cursor: pointer; }
.mobile-panel { display: none; padding: 1rem 0; border-top: 1px solid rgba(255,255,255,0.2); }
.mobile-panel.is-open { display: block; }
.mobile-nav { display: flex; flex-direction: column; gap: .75rem; }
@media (min-width: 1024px) {
  .desktop-nav, .header-cta { display: flex; }
  .menu-toggle, .mobile-panel { display: none !important; }
}

/* Icons */
.flmt-icon {
  flex-shrink: 0;
  width: 1.2em;
  height: 1.2em;
  display: inline-block;
  vertical-align: middle;
}
.flmt-icon-faq { width: 1em; height: 1em; }
.menu-toggle .flmt-icon { width: 24px; height: 24px; }
.carousel-arrow .flmt-icon { width: 20px; height: 20px; }
.section-header h2 .flmt-icon { width: 1em; height: 1em; margin-right: .35rem; vertical-align: -0.15em; }
.contact-label .flmt-icon { width: 1rem; height: 1rem; margin-right: .4rem; vertical-align: -0.2em; }
.contact-label { display: inline-flex; align-items: center; }
.footer-grid p .flmt-icon { width: 1rem; height: 1rem; margin-right: .4rem; vertical-align: -0.2em; }
.feature-icon-wrap .flmt-icon, .pillar-icon-wrap .flmt-icon { width: 2rem; height: 2rem; color: var(--primary); }
.faq-button .faq-icon { flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.faq-icon .flmt-icon { transition: transform 0.3s ease; }
.faq-item.active .faq-icon .flmt-icon { transform: rotate(180deg); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  border-radius: .75rem; padding: .9rem 1.4rem; font-weight: 700; transition: .25s;
  border: 1px solid transparent; cursor: pointer;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); }
.btn-outline { border: 2px solid rgba(255,255,255,.35); color: #fff; background: transparent; }
.btn-outline:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn-block { width: 100%; }

.hero {
  position: relative; min-height: 100vh; overflow: hidden;
  display: flex; align-items: center; padding-top: 80px;
}
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15,59,112,.95), rgba(15,59,112,.85), rgba(15,59,112,.7)); }
.hero-content { position: relative; z-index: 3; text-align: center; width: min(900px, 100%); margin: 0 auto; color: #fff; }
.pill {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 1rem; margin-bottom: 2rem;
  border-radius: 9999px;
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.pill .flmt-icon { width: 1rem; height: 1rem; color: var(--gold); flex-shrink: 0; }
.hero h1 {
  color: var(--primary-foreground);
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 1.5rem;
}
.hero-title-highlight { color: var(--gold); }
@media (min-width: 768px) {
  .hero h1 { font-size: 3rem; }
}
@media (min-width: 1024px) {
  .hero h1 { font-size: 3.75rem; }
}
.gold { color: var(--gold); }
.hero p { font-size: clamp(1rem, 2vw, 1.25rem); color: rgba(255,255,255,.85); max-width: 720px; margin: 0 auto 2rem; }
.hero-actions { display: flex; flex-direction: column; gap: .8rem; margin-bottom: 2.5rem; }
.hero-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
.hero-badge {
  display: flex; align-items: center; gap: 0.75rem;
  width: fit-content;
  max-width: 100%;
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 0.5rem;
  padding: 0.75rem 1.25rem;
}
.hero-badge-icon { flex-shrink: 0; }
.hero-badge-icon .flmt-icon { width: 1.5rem; height: 1.5rem; color: var(--gold); }
.hero-badge-text {
  display: flex; flex-direction: column; align-items: flex-start; gap: 0.15em;
  line-height: 1.4; text-align: left; font-size: 0.9375rem;
}
.hero-badge-text span { font-weight: 400; color: rgba(255,255,255,.9); }
@media (min-width: 640px) {
  .hero-actions { flex-direction: row; justify-content: center; }
}

.section-header { text-align: center; margin-bottom: 3rem; }
.section-header > * + * { margin-top: 1rem; }
.section-header h2 { margin: 0; font-size: clamp(1.8rem, 3vw, 3rem); line-height: 1.15; }
.section-header p { margin: 0 auto; max-width: 740px; color: var(--muted); font-size: 1.1rem; }
.about-section-header,
#about .section-header { margin-bottom: 3rem; text-align: center; }
#about .section-header p { color: rgba(255,255,255,.9); }
#about .section-header .gold { color: var(--gold); }
/* Badge About: réplica del diseño reference (inline-flex, rounded-full, px-2.5 py-0.5, text-xs, font-semibold, bg-gold/20, text-gold, border-gold/30, hover:bg-primary/80, focus:ring-2) */
.about-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.125rem 0.625rem;   /* py-0.5 px-2.5 */
  border-radius: 9999px;        /* rounded-full */
  border: 1px solid color-mix(in srgb, var(--gold) 30%, transparent);
  font-size: 0.75rem;           /* text-xs */
  font-weight: 600;             /* font-semibold */
  background: color-mix(in srgb, var(--gold) 20%, transparent);
  color: var(--gold);
  margin-bottom: 1rem;          /* mb-4 */
  transition: color 0.2s, background-color 0.2s, border-color 0.2s;
}
.about-badge:hover { background: rgba(15, 59, 112, 0.8); color: var(--primary-foreground); }
.about-badge:focus { outline: none; box-shadow: 0 0 0 2px rgba(0,0,0,.92), 0 0 0 4px var(--gold); }
@media (min-width: 768px) {
  .about-section-header,
  #about .section-header { margin-bottom: 4rem; }
}

.services { background: var(--secondary); }
.services-viewport { overflow: hidden; }
.services-track { display: flex; transition: transform 0.3s ease-in-out; }
.service-slide { padding: 0.75rem; flex: 0 0 auto; }
.service-card {
  background: var(--background);
  color: var(--foreground);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  height: 100%;
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.service-card:hover {
  border-color: rgba(15, 59, 112, 0.3);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}
.service-card-media { position: relative; overflow: hidden; }
.service-card img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.service-card:hover img { transform: scale(1.05); }
.service-body {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
}
.service-card-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  background: rgba(15, 59, 112, 0.1);
  color: var(--primary);
  transition: transform 0.3s ease, background-color 0.3s ease;
}
.service-card-icon .flmt-icon { width: 1.25rem; height: 1.25rem; color: inherit; }
.service-card:hover .service-card-icon {
  transform: scale(1.1);
  background: rgba(15, 59, 112, 0.2);
}
.service-body-text { flex: 1; min-width: 0; }
.service-title { margin: 0 0 .4rem; font-size: 1.1rem; font-weight: 700; }
.service-description { margin: 0; color: var(--muted); font-size: .95rem; }
.carousel-controls { margin-top: 1.2rem; display: flex; flex-direction: column; align-items: center; gap: .9rem; }
.carousel-arrows { display: flex; gap: 1rem; }
.carousel-arrow { width: 48px; height: 48px; border-radius: 999px; border: 1px solid rgba(15,59,112,.3); background: #fff; cursor: pointer; }
.carousel-arrow:hover { background: var(--primary); color: #fff; }
.carousel-dots { display: flex; gap: .5rem; }
.carousel-dots button { width: 10px; height: 10px; border-radius: 999px; border: 0; background: rgba(15,59,112,.3); cursor: pointer; }
.carousel-dots button.active { width: 32px; background: var(--primary); }

.about { position: relative; overflow: hidden; color: #fff; }
.about-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.about-overlay { position: absolute; inset: 0; background: rgba(15,59,112,.85); }
.about-wrap { position: relative; z-index: 3; }
.about-grid { display: grid; gap: 2rem; max-width: 1040px; margin: 0 auto 3rem; align-items: start; }
.owner-photo { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 1rem; border: 2px solid rgba(12,168,244,.3); }
.about-grid > div > h3 { margin: 40px 0 0.25rem 0; }
.about-grid > div > p.gold { margin: 0; }
@media (max-width: 767px) {
  .about-grid > div:first-child { text-align: center; }
}
/* Story box: réplica referencia; se adapta al contenido sin espacio inferior extra */
.story-box {
  background: rgba(255,255,255,.1);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  border-radius: 1.5rem;
  border: 1px solid rgba(255,255,255,.2);
  padding: 30px 2rem;
  align-self: stretch;
  min-height: 29rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-size: 1.0625rem;
}
@media (min-width: 768px) {
  .story-box { padding: 30px 2.5rem; min-height: 36rem; }
}
.story-box p { margin: 0 0 1rem; }
.story-box .about-highlight { color: var(--gold); font-weight: bold; }
.story-box p:last-of-type { margin-bottom: 0; }
/* Blockquote: réplica referencia (border-l-4 border-gold pl-5 italic text-primary-foreground/70 text-base) */
.story-box blockquote {
  margin: 1.25rem 0 0;
  padding: 0 0 0 1.25rem;
  border: none;
  border-left: 4px solid var(--gold);
  font-size: 1rem;
  font-style: italic;
  color: rgba(255, 255, 255, 0.7);
  text-align: left;
}
.story-box > *:last-child { margin-bottom: 0; }
.pillars { display: grid; gap: 1rem; grid-template-columns: 1fr; max-width: 980px; margin: 0 auto; }
.pillar { text-align: center; padding: 1.25rem; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); border-radius: 1rem; }
.pillar-icon-wrap {
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto .75rem;
  border-radius: 50%;
  background: color-mix(in srgb, var(--gold) 20%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
}
.pillar .flmt-icon { color: var(--gold); }
@media (min-width: 768px) {
  .about-grid { grid-template-columns: 2fr 3fr; }
  .pillars { grid-template-columns: repeat(3, minmax(0,1fr)); }
}

.why { background: var(--background); }
.features-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; max-width: 1040px; margin: 0 auto; }
.feature { display: flex; gap: 1rem; background: rgba(244,246,249,.7); border-radius: 1rem; padding: 1.25rem; align-items: flex-start; }
.feature-icon-wrap {
  flex-shrink: 0;
  width: 4rem;
  height: 4rem;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, var(--primary), var(--gold));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}
.feature-icon-wrap .flmt-icon { color: #fff; }
.stats { margin-top: 3rem; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; max-width: 900px; margin-inline: auto; }
.stat-item { text-align: center; }
.stat-value { font-size: clamp(2rem, 3vw, 3rem); color: var(--primary); font-weight: 700; margin: 0; }
.stat-label { margin: 0; color: var(--muted); }
@media (min-width: 768px) {
  .features-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .stats { grid-template-columns: repeat(4,minmax(0,1fr)); }
}

.pricing { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; }
.pricing p { color: rgba(255,255,255,.85); }
/* Pricing header: réplica reference (max-w-2xl mx-auto text-center) */
#pricing .section-header {
  max-width: 42rem;
  margin-inline: auto;
  margin-bottom: 3rem;
  text-align: center;
}
#pricing .section-header > * + * { margin-top: 1.25rem; }
#pricing .section-header p { max-width: none; color: rgba(255,255,255,.85); }
.reviews { background: var(--secondary); }
.reviews-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; max-width: 1040px; margin: 0 auto; }
.review-card { background: #fff; border: 1px solid var(--border); border-radius: .9rem; padding: 1.2rem; position: relative; }
.review-quote-icon { display: block; color: var(--primary); opacity: 0.35; margin-bottom: 0.5rem; }
.review-stars { color: var(--gold); margin-bottom: .8rem; font-size: 1.5em; line-height: 1; }
.review-quote-icon .flmt-icon { width: 2rem; height: 2rem; }
.review-text { color: #364154; margin: 0 0 1rem; line-height: 1.5; }
.review-author { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.review-author-info { display: flex; flex-direction: column; gap: 0.15rem; }
.review-author-name { font-weight: 600; color: var(--foreground); display: block; }
.review-author-label { font-size: 0.8125rem; color: var(--muted); font-weight: 400; }
/* Réplica: w-12 h-12 rounded-full bg-primary flex items-center justify-center */
.review-initials { display: flex; align-items: center; justify-content: center; width: 3rem; height: 3rem; flex-shrink: 0; background: var(--primary); color: var(--primary-foreground); font-size: 0.875rem; font-weight: 700; border-radius: 50%; }
@media (min-width: 768px) { .reviews-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }

/* FAQ: contenedor más estrecho para verse centrado */
#faq .container { max-width: 720px; }

.faq-item { border-bottom: 1px solid var(--border); }
.faq-button {
  width: 100%; border: 0; background: transparent; text-align: left; font-size: 1rem; font-weight: 600;
  padding: 1rem 0; display: flex; align-items: center; justify-content: space-between; gap: 1rem; cursor: pointer;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}
.faq-button:hover { text-decoration: underline; }
.faq-answer {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  padding: 0;
  color: var(--muted);
  transition:
    max-height 0.5s cubic-bezier(0.33, 1, 0.68, 1),
    opacity 0.4s ease-in-out,
    padding 0.35s ease-in-out;
}
.faq-item.active .faq-answer {
  max-height: 500px;
  opacity: 1;
  padding: 0 0 1rem;
}

/* Contact: réplica del diseño reference (section-padding bg-background, bloques por método) */
#contact .section-header { margin-bottom: 3rem; }
.contact-grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; max-width: 1140px; margin: 0 auto; }
.contact-info { display: flex; flex-direction: column; gap: 0; }
/* Réplica: flex items-start gap-4 (reference) */
.contact-method {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
}
.contact-method:last-of-type { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
/* Réplica: w-12 h-12 rounded-xl bg-primary/10 flex items-center justify-center flex-shrink-0 */
.contact-method-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  background: color-mix(in srgb, var(--primary) 10%, transparent);
  color: var(--primary);
}
.contact-method-icon .flmt-icon { width: 1.25rem; height: 1.25rem; }
.contact-method-content { flex: 1; min-width: 0; }
.contact-method-row { margin: 0 0 0.15rem; font-weight: 700; color: var(--foreground); font-size: 1rem; }
.contact-method-row strong { font-weight: 700; }
.contact-method-value { margin: 0 0 0.2rem; font-size: 1rem; line-height: 1.4; }
.contact-method-value a { color: var(--primary); font-weight: 500; }
.contact-method-value a:hover { text-decoration: underline; }
.contact-method-note { margin: 0; font-size: 0.875rem; color: var(--muted); line-height: 1.4; text-align: center; }
.contact-method-note-accent { font-weight: 700; color: var(--accent); }
.contact-method-cta .contact-method-content .btn { margin-bottom: 0.35rem; }
.contact-method-cta .contact-method-note { margin-top: 0; }
@media (max-width: 767px) {
	.contact-method-note.contact-method-note-accent { text-align: left; }
}
.contact-panel { background: var(--secondary); border-radius: 1rem; padding: 1.5rem; }
.contact-panel h3 { margin: 0 0 1.25rem; font-size: 1.25rem; font-weight: 700; }
.contact-form label { display: block; font-weight: 600; margin-bottom: .25rem; }
.contact-form input, .contact-form textarea {
  width: 100%; border: 1px solid var(--border); border-radius: .5rem; padding: .75rem; font: inherit; background: #fff;
}
.contact-form textarea { resize: none; min-height: 120px; }
.contact-form p { margin-bottom: 1rem; }
.contact-form p:last-of-type { margin-bottom: 0; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 1fr 1fr; gap: 3rem; } }

.site-footer { background: var(--charcoal); color: #fff; }
.site-footer.section-padding { padding-top: 3rem; padding-bottom: 2rem; }
@media (min-width: 768px) { .site-footer.section-padding { padding-top: 4rem; padding-bottom: 2.5rem; } }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: start; }
/* Quick Links: réplica reference (heading + lista vertical con spacing) */
.footer-links { min-width: 0; }
.footer-grid .footer-heading { margin: 0 0 1rem; font-size: 1rem; font-weight: 700; color: #fff; letter-spacing: 0.02em; line-height: 1.3; }
.footer-nav { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-nav p { margin: 0; }
.footer-link {
  background: none; border: 0; padding: 0; font: inherit; cursor: pointer; color: rgba(255,255,255,.78);
  text-align: left; transition: color 0.2s ease; font-size: 0.9375rem; line-height: 1.5;
}
.footer-link:hover { color: var(--gold); }
footer a.footer-link { color: rgba(255,255,255,.78); font-size: 0.9375rem; }
footer a.footer-link:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 1.5rem; padding-top: 1rem; padding-bottom: 0; text-align: center; color: rgba(255,255,255,.55); font-size: .9rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.2fr 1fr 1fr 1fr; } .footer-nav { gap: 0.625rem; } }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
