/* ================================================================
   style.css — Mobile-first stylesheet for trade lead gen sites

   REPLACE BEFORE BUILD:
   - --primary and --primary-dark: set from site.config.json meta.primaryColor
     and meta.primaryColorDark
   - --primary-light: set from site.config.json meta.primaryColorLight
   ================================================================ */

/* ================================================================
   CUSTOM PROPERTIES
   ================================================================ */
:root {
  /* REPLACE: trade-specific brand colors from site.config.json */
  --primary:       #1A5DB0;
  --primary-dark:  #0F3E7A;
  --primary-light: #EBF3FF;

  /* Fixed across all sites */
  --cta:            #E65100;
  --cta-dark:       #BF360C;
  --whatsapp:       #25D366;
  --whatsapp-dark:  #1DA851;

  --white:       #FFFFFF;
  --off-white:   #F8F9FA;
  --light-grey:  #F5F5F5;
  --border:      #E0E0E0;
  --text:        #1A1A1A;
  --text-muted:  #555555;

  --radius:     6px;
  --shadow:     0 2px 8px rgba(0,0,0,0.08);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.12);

  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;

  --header-height: 88px;
  --bar-height:    60px;
  --max-width:     1100px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  /* Room for sticky bottom bar on mobile */
  padding-bottom: var(--bar-height);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

ul, ol {
  list-style: none;
}

/* ================================================================
   TYPOGRAPHY
   ================================================================ */
h1 {
  font-size: clamp(1.75rem, 5vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
}

h2 {
  font-size: clamp(1.375rem, 4vw, 1.625rem);
  font-weight: 600;
  line-height: 1.3;
}

h3 {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.35;
}

p {
  margin-bottom: 1rem;
}

p:last-child {
  margin-bottom: 0;
}

/* ================================================================
   LAYOUT UTILITIES
   ================================================================ */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.visually-hidden {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.section {
  padding: 56px 0;
}

.section--alt {
  background: var(--off-white);
}

.section-heading {
  margin-bottom: 32px;
}

.last-updated {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 8px;
}

/* ================================================================
   BUTTONS
   ================================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 24px;
  height: 56px;
  border: none;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, transform 0.1s;
  white-space: nowrap;
  line-height: 1;
}

.btn:active {
  transform: scale(0.98);
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--cta);
  color: var(--white);
  width: 100%;
}

.btn-primary:hover {
  background: var(--cta-dark);
  color: var(--white);
}

.btn-whatsapp {
  background: var(--whatsapp);
  color: var(--white);
  width: 100%;
}

.btn-whatsapp:hover {
  background: var(--whatsapp-dark);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  width: 100%;
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
}

/* Header call button — compact, not full-width */
.btn-call {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--cta);
  color: var(--white);
  padding: 8px 14px;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  height: 40px;
}

.btn-call:hover {
  background: var(--cta-dark);
  color: var(--white);
  text-decoration: none;
}

/* ================================================================
   SITE HEADER
   ================================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  height: var(--header-height);
  box-shadow: var(--shadow);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: 16px;
}

.brand-name {
  text-decoration: none;
  flex-shrink: 0;
  max-width: 65%;
  line-height: 0;
}

.brand-name img {
  display: block;
  height: 60px;
  width: auto;
}

.brand-name:hover {
  text-decoration: none;
}

/* ================================================================
   HERO
   ================================================================ */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  padding: 48px 0 40px;
  text-align: center;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 12px;
}

.hero-subheadline {
  font-size: 17px;
  line-height: 1.5;
  color: rgba(255,255,255,0.9);
  margin-bottom: 28px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-ctas {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
}

.hero .btn {
  max-width: 380px;
  width: 100%;
}

/* Trust bar — below hero CTAs */
.trust-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: 24px;
  margin-top: 8px;
}

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

.trust-item svg {
  flex-shrink: 0;
  color: rgba(255,255,255,0.8);
}

/* ================================================================
   ENTITY / INTRO SECTION (AEO critical — first body content)
   ================================================================ */
.intro-section {
  padding: 40px 0;
  background: var(--white);
}

.entity-intro {
  font-size: 18px;
  color: var(--text);
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

/* ================================================================
   FORM SECTION
   ================================================================ */
.form-section {
  padding: 56px 0;
}

.form-inner {
  max-width: 580px;
  margin: 0 auto;
}

.form-inner h2 {
  margin-bottom: 6px;
}

.response-promise {
  color: var(--primary);
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 24px;
}

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

.form-label {
  display: block;
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--text);
}

.form-input,
.form-select,
.form-textarea {
  display: block;
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 17px;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.15s;
  appearance: none;
  -webkit-appearance: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.form-input:invalid:not(:placeholder-shown) {
  border-color: var(--cta);
}

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

.form-submit {
  margin-top: 8px;
}

.form-consent {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 12px;
  line-height: 1.55;
}

.form-consent a {
  color: var(--primary);
}

/* ================================================================
   SERVICES SECTION
   ================================================================ */
.services-section {
  padding: 56px 0;
  background: var(--off-white);
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 28px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  text-decoration: none;
  color: var(--text);
  transition: box-shadow 0.15s, border-color 0.15s;
}

.service-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
  text-decoration: none;
  color: var(--text);
}

.service-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.service-info {
  flex: 1;
  min-width: 0;
}

.service-name {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 4px;
}

.service-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0;
}

.service-price {
  font-size: 13px;
  color: var(--primary);
  font-weight: 600;
  margin-top: 6px;
}

.service-arrow {
  color: var(--primary);
  flex-shrink: 0;
  align-self: center;
}

/* ================================================================
   TRUST SIGNALS SECTION
   ================================================================ */
.trust-section {
  padding: 56px 0;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.badge-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 500;
}

.badge-item svg {
  color: var(--primary);
  flex-shrink: 0;
}

.google-rating {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 32px;
}

.rating-score {
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
}

.rating-stars {
  color: #FBBC04;
  font-size: 18px;
  letter-spacing: 2px;
}

.rating-label {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.3;
}

/* Testimonials */
.testimonials-heading {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.testimonial-card {
  background: var(--off-white);
  border-left: 3px solid var(--primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 20px;
}

.testimonial-text {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 10px;
  color: var(--text);
}

.testimonial-author {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
}

/* ================================================================
   LOCAL CONTEXT SECTION
   ================================================================ */
.local-section {
  padding: 56px 0;
  background: var(--off-white);
}

.local-inner {
  max-width: 800px;
}

/* ================================================================
   AREAS SERVED
   ================================================================ */
.areas-section {
  padding: 56px 0;
}

.areas-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.area-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 15px;
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
}

.area-tag:hover {
  border-color: var(--primary);
  color: var(--primary);
  text-decoration: none;
}

/* ================================================================
   FAQ SECTION
   ================================================================ */
.faq-section {
  padding: 56px 0;
  background: var(--off-white);
}

.faq-list {
  margin-top: 28px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

details {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 8px;
  background: var(--white);
}

summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  gap: 12px;
  line-height: 1.4;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: '+';
  font-size: 22px;
  font-weight: 300;
  color: var(--primary);
  flex-shrink: 0;
  line-height: 1;
}

details[open] summary::after {
  content: '\2212';
}

.faq-answer {
  padding: 0 20px 18px;
  font-size: 16px;
  color: var(--text);
  line-height: 1.65;
}

.faq-answer p {
  margin-bottom: 0;
}

/* ================================================================
   GOOGLE MAPS
   ================================================================ */
.map-section {
  padding: 56px 0;
}

.map-embed {
  width: 100%;
  height: 300px;
  border: 0;
  border-radius: var(--radius);
}

/* ================================================================
   SITE FOOTER
   ================================================================ */
.site-footer {
  background: #1A1A1A;
  color: rgba(255,255,255,0.8);
  padding: 48px 0 24px;
  font-size: 15px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
}

.footer-brand {
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
  display: block;
}

.footer-desc {
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  line-height: 1.6;
  margin: 0;
}

.footer-heading {
  font-size: 13px;
  font-weight: 600;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 14px;
}

.footer-links-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links-list a {
  color: rgba(255,255,255,0.7);
  font-size: 15px;
}

.footer-links-list a:hover {
  color: var(--white);
  text-decoration: none;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  color: rgba(255,255,255,0.8);
  font-size: 15px;
}

.footer-contact-item:last-child {
  margin-bottom: 0;
}

.footer-contact-item a {
  color: var(--white);
}

.footer-contact-item a:hover {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
}

.footer-bottom {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  color: rgba(255,255,255,0.45);
}

.footer-bottom a {
  color: rgba(255,255,255,0.55);
}

.footer-bottom a:hover {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
}

.cookie-notice {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
}

.cookie-notice a {
  color: rgba(255,255,255,0.6);
}

/* ================================================================
   STICKY BOTTOM BAR (mobile only — shown by JS after hero scroll)
   ================================================================ */
.sticky-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  background: #1A1A1A;
  height: var(--bar-height);
  transform: translateY(100%);
  transition: transform 0.25s ease;
}

.sticky-bottom-bar.visible {
  transform: translateY(0);
}

.sticky-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.15s;
}

.sticky-btn:hover {
  opacity: 0.92;
  text-decoration: none;
  color: var(--white);
}

.sticky-call {
  background: var(--cta);
}

.sticky-whatsapp {
  background: var(--whatsapp);
}

/* ================================================================
   PAGE HEADER (interior pages: about, contact, services, areas)
   ================================================================ */
.page-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  padding: 40px 0;
}

.page-header h1 {
  color: var(--white);
  margin-bottom: 8px;
}

.breadcrumb {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
}

.breadcrumb a {
  color: rgba(255,255,255,0.85);
}

.breadcrumb a:hover {
  color: var(--white);
}

.breadcrumb-sep {
  margin: 0 6px;
}

/* ================================================================
   CONTACT PAGE
   ================================================================ */
.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 40px;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: var(--off-white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.15s;
}

.contact-method:hover {
  border-color: var(--primary);
  text-decoration: none;
  color: var(--text);
}

.contact-method-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--white);
}

.contact-method-icon.call {
  background: var(--cta);
}

.contact-method-icon.wa {
  background: var(--whatsapp);
}

.contact-method-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.contact-method-value {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
}

/* ================================================================
   ABOUT PAGE
   ================================================================ */
.about-section {
  padding: 56px 0;
}

.about-inner {
  max-width: 800px;
}

.credentials-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 24px 0;
}

.credential-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.credential-item svg {
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ================================================================
   THANK-YOU PAGE
   ================================================================ */
.thankyou-section {
  padding: 80px 0;
  text-align: center;
}

.thankyou-icon {
  margin: 0 auto 24px;
  color: var(--primary);
}

.thankyou-section h1 {
  margin-bottom: 16px;
}

.thankyou-section .lead {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 32px;
}

/* ================================================================
   SERVICE PAGE
   ================================================================ */
.service-page-section {
  padding: 56px 0;
}

.service-page-inner {
  max-width: 800px;
}

/* ================================================================
   AREA PAGE
   ================================================================ */
.area-page-section {
  padding: 56px 0;
}

.area-page-inner {
  max-width: 800px;
}

/* ================================================================
   MEDIA QUERIES — tablet and desktop
   ================================================================ */
@media (min-width: 640px) {
  .hero {
    padding: 64px 0 52px;
  }

  .hero-ctas {
    flex-direction: row;
    justify-content: center;
  }

  .hero .btn {
    width: auto;
    min-width: 210px;
  }

  .trust-bar {
    flex-wrap: nowrap;
    gap: 40px;
  }

  .trust-item {
    font-size: 15px;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .contact-methods {
    flex-direction: row;
  }
}

@media (min-width: 1024px) {
  .hero {
    padding: 80px 0 64px;
  }

  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-inner {
    grid-template-columns: 2fr 1fr 1fr;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .map-embed {
    height: 420px;
  }
}

/* Hide sticky bar and remove body padding on desktop */
@media (min-width: 768px) {
  .sticky-bottom-bar {
    display: none;
  }

  body {
    padding-bottom: 0;
  }
}
