/* ============================================================
   LAWSON GROUP — General Service Template Stylesheet
   Most flexible template — use for any local service business
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=DM+Serif+Display:ital@0;1&display=swap');

:root {
  /* === PRIMARY CUSTOMIZATION — update per business === */
  --brand-primary:   #1B3A5C;   /* Deep Navy */
  --brand-secondary: #4A8490;   /* Muted Teal */
  --brand-accent:    #4A8490;   /* Default same as secondary — override if biz has brand color */

  --bg-warm:    #F0EDE6;
  --bg-light:   #F8F9FA;
  --bg-pale:    #D4E5EB;
  --text-dark:  #2B2B2B;
  --text-muted: #6B7280;
  --white:      #FFFFFF;

  --font-sans:  'DM Sans', system-ui, -apple-system, sans-serif;
  --font-serif: 'DM Serif Display', Georgia, serif;
  --radius:     8px;
  --shadow:     0 2px 12px rgba(0,0,0,0.08);
  --shadow-lg:  0 8px 32px rgba(0,0,0,0.13);
  --transition: all 0.2s ease;
  --max-width:  1140px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: var(--font-sans); color: var(--text-dark); background: var(--bg-light); line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-secondary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--brand-primary); }
ul { list-style: none; }

h1, h2, h3, h4 { font-family: var(--font-sans); font-weight: 700; line-height: 1.25; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); }
h3 { font-size: 1.2rem; font-weight: 600; }
p  { font-size: 1rem; line-height: 1.7; }

.container  { max-width: var(--max-width); margin: 0 auto; padding: 0 1.25rem; }
.section    { padding: 5rem 0; }
.section--dark   { background: var(--brand-primary); color: var(--white); }
.section--cream  { background: var(--bg-warm); }
.section--white  { background: var(--white); }
.section--pale   { background: var(--bg-pale); }
.text-center { text-align: center; }
.section-label   { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; color: var(--brand-secondary); margin-bottom: 0.5rem; display: block; }
.section-subtitle { color: var(--text-muted); font-size: 1.05rem; max-width: 560px; margin: 0 auto; }

.btn { display: inline-block; padding: 0.9rem 1.8rem; border-radius: var(--radius); font-family: var(--font-sans); font-weight: 600; font-size: 1rem; cursor: pointer; border: 2px solid transparent; transition: var(--transition); text-align: center; }
.btn--primary { background: var(--brand-primary); color: var(--white); }
.btn--primary:hover { background: #142d48; color: var(--white); }
.btn--secondary { background: var(--brand-secondary); color: var(--white); }
.btn--secondary:hover { background: #3a6870; color: var(--white); }
.btn--outline { background: transparent; border-color: var(--brand-primary); color: var(--brand-primary); }
.btn--outline:hover { background: var(--brand-primary); color: var(--white); }
.btn--outline-white { background: transparent; border-color: var(--white); color: var(--white); }
.btn--outline-white:hover { background: var(--white); color: var(--brand-primary); }
.btn--lg { padding: 1.1rem 2.25rem; font-size: 1.05rem; }

/* NAV */
.nav { position: sticky; top: 0; z-index: 100; background: var(--white); box-shadow: 0 1px 0 rgba(0,0,0,0.08); padding: 0 1.25rem; }
.nav__inner { max-width: var(--max-width); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; height: 68px; }
.nav__logo { font-size: 1.2rem; font-weight: 700; color: var(--brand-primary); }
.nav__links { display: flex; gap: 2rem; align-items: center; }
.nav__links a { font-weight: 500; color: var(--text-dark); font-size: 0.95rem; }
.nav__links a:hover { color: var(--brand-secondary); }
.nav__toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.nav__toggle span { display: block; width: 24px; height: 2px; background: var(--text-dark); margin: 5px 0; }

/* HERO — flexible, text-heavy with optional image */
.hero { background: var(--brand-primary); color: var(--white); padding: 7rem 0 5rem; position: relative; overflow: hidden; }
.hero::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 4px; background: var(--brand-secondary); }
.hero__inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 4rem; align-items: center; }
.hero__text .section-label { color: var(--bg-pale); }
.hero__title { font-size: clamp(2.2rem, 5vw, 3.4rem); color: var(--white); margin: 0.5rem 0 1.25rem; }
.hero__subtitle { font-size: 1.15rem; opacity: 0.85; margin-bottom: 2rem; line-height: 1.65; max-width: 460px; }
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero__credentials { margin-top: 2.5rem; display: flex; gap: 1.5rem; flex-wrap: wrap; }
.hero__cred { display: flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; opacity: 0.8; }
.hero__image-side { background: rgba(255,255,255,0.06); border-radius: var(--radius); height: 420px; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.4); font-size: 0.85rem; border: 1px solid rgba(255,255,255,0.1); }
/* REPLACE hero__image-side: add overflow: hidden; and a child <img> tag */

/* SERVICES GRID */
.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.service-card { background: var(--white); border-radius: var(--radius); padding: 1.75rem; box-shadow: var(--shadow); border-top: 3px solid var(--brand-secondary); transition: var(--transition); }
.service-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-top-color: var(--brand-primary); }
.service-card__icon { font-size: 2rem; margin-bottom: 0.75rem; display: block; }
.service-card__title { font-weight: 700; color: var(--brand-primary); margin-bottom: 0.5rem; font-size: 1.05rem; }
.service-card__desc { color: var(--text-muted); font-size: 0.92rem; line-height: 1.6; }

/* ABOUT SECTION */
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
.about__image { background: var(--bg-pale); border-radius: var(--radius); min-height: 400px; display: flex; align-items: center; justify-content: center; color: var(--text-muted); font-size: 0.85rem; }
.about__content p + p { margin-top: 1rem; }
.about__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 2rem; }
.about__stat { text-align: center; padding: 1.25rem; background: var(--bg-pale); border-radius: var(--radius); }
.about__stat-number { font-size: 2.2rem; font-weight: 700; color: var(--brand-primary); line-height: 1; margin-bottom: 0.25rem; }
.about__stat-label { font-size: 0.85rem; color: var(--text-muted); font-weight: 500; }

/* TESTIMONIALS */
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.testimonial-card { background: var(--white); border-radius: var(--radius); padding: 1.75rem; box-shadow: var(--shadow); }
.testimonial-card__quote { font-size: 2rem; color: var(--brand-secondary); line-height: 1; margin-bottom: 0.5rem; }
.testimonial-card__stars { color: #F59E0B; margin-bottom: 0.75rem; }
.testimonial-card__text { font-size: 0.95rem; line-height: 1.65; margin-bottom: 1.25rem; color: var(--text-dark); }
.testimonial-card__author { display: flex; align-items: center; gap: 0.75rem; }
.testimonial-card__avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--bg-pale); display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--brand-primary); flex-shrink: 0; }
.testimonial-card__name { font-weight: 700; font-size: 0.9rem; color: var(--brand-primary); }
.testimonial-card__detail { font-size: 0.8rem; color: var(--text-muted); }

/* CTA SECTION */
.cta-section { background: var(--brand-secondary); color: var(--white); text-align: center; padding: 5rem 1.25rem; }
.cta-section h2 { color: var(--white); margin-bottom: 0.75rem; font-size: clamp(1.8rem, 4vw, 2.6rem); }
.cta-section p { opacity: 0.9; font-size: 1.1rem; margin-bottom: 2rem; max-width: 520px; margin-left: auto; margin-right: auto; }

/* CONTACT FORM */
.contact__grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 3rem; align-items: start; }
.contact__map-placeholder { background: var(--bg-pale); border-radius: var(--radius); height: 220px; display: flex; align-items: center; justify-content: center; color: var(--text-muted); font-size: 0.85rem; margin-bottom: 1.5rem; border: 2px dashed var(--brand-secondary); }
.contact__item { display: flex; gap: 0.75rem; margin-bottom: 1.25rem; align-items: flex-start; }
.contact__icon { font-size: 1.2rem; flex-shrink: 0; margin-top: 0.05rem; }
.contact__text strong { display: block; color: var(--brand-primary); font-weight: 600; margin-bottom: 0.15rem; }
.contact__text { font-size: 0.95rem; }
.contact-form { background: var(--white); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 0.4rem; color: var(--brand-primary); }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 0.75rem 1rem; border: 1.5px solid #D1D5DB; border-radius: var(--radius); font-family: var(--font-sans); font-size: 1rem; color: var(--text-dark); transition: var(--transition); background: var(--bg-light); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--brand-secondary); box-shadow: 0 0 0 3px rgba(74,132,144,0.15); }
.form-group textarea { min-height: 120px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* FOOTER */
.footer { background: var(--brand-primary); color: rgba(255,255,255,0.85); padding: 3.5rem 1.25rem 1.5rem; }
.footer__inner { max-width: var(--max-width); margin: 0 auto; display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 3rem; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255,255,255,0.12); }
.footer__brand-name { font-size: 1.2rem; font-weight: 700; color: var(--white); margin-bottom: 0.75rem; }
.footer__tagline { font-size: 0.9rem; opacity: 0.7; line-height: 1.5; margin-bottom: 1.25rem; }
.footer__social { display: flex; gap: 0.75rem; }
.footer__social a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,0.12); display: flex; align-items: center; justify-content: center; color: var(--white); transition: var(--transition); }
.footer__social a:hover { background: var(--brand-secondary); }
.footer__col-title { font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--white); margin-bottom: 1rem; }
.footer__links { display: flex; flex-direction: column; gap: 0.5rem; }
.footer__links a { font-size: 0.9rem; color: rgba(255,255,255,0.7); }
.footer__links a:hover { color: var(--white); }
.footer__bottom { max-width: var(--max-width); margin: 1.5rem auto 0; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; font-size: 0.82rem; opacity: 0.6; }
.footer__bottom a { color: inherit; }

/* RESPONSIVE */
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__image-side { display: none; }
  .about__grid { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .section { padding: 3.5rem 0; }
  .hero { padding: 5rem 0 3.5rem; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; }
  .contact__grid { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .about__stats { grid-template-columns: 1fr 1fr; }
  .nav__links { display: none; }
  .nav__toggle { display: block; }
  .nav__links.open { display: flex; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0; background: var(--white); padding: 1.5rem 1.25rem; box-shadow: var(--shadow-lg); gap: 1.25rem; }
}
