@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Source+Sans+3:wght@400;600&display=swap');
@import 'tokens.css';

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

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

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

a { color: inherit; text-decoration: none; }

/* ── TYPOGRAPHY ── */
h1, h2, h3 { font-family: var(--font-display); line-height: 1.25; }
h1 { font-size: clamp(1.75rem, 5vw, 2.75rem); margin-bottom: 1.25rem; }
h2 { font-size: clamp(1.35rem, 3.5vw, 2rem); margin-bottom: 1rem; }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); margin-bottom: .75rem; }
p  { margin-bottom: 1rem; }
ul { list-style: none; }

/* ── SKIP LINK ── */
.skip-link {
  position: absolute; left: -9999px; top: auto;
  background: var(--color-secondary); color: #fff;
  padding: .5rem 1rem; z-index: 200; font-size: .9rem;
}
.skip-link:focus { left: 0; top: 0; }

/* ── HEADER ── */
.site-header {
  background: var(--color-primary);
  color: #fff;
  position: sticky; top: 0; z-index: 100;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: .75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo-link { display: flex; align-items: center; }
.logo-link svg { height: 48px; width: auto; }
.logo-link svg text { fill: #fff; }

.header-phone {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--color-accent);
  font-weight: 700;
  white-space: nowrap;
  display: none;
}

/* ── NAV ── */
.site-nav { display: flex; align-items: center; }

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none; border: none; cursor: pointer;
  padding: .4rem;
  aria-label: "Menu";
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: #fff;
  transition: transform .25s, opacity .25s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-list {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0; right: 0;
  background: var(--color-primary);
  padding: 1rem 1.25rem 1.5rem;
  gap: .5rem;
}
.nav-list.is-open { display: flex; }

.nav-list a {
  color: #fff;
  font-size: 1.1rem;
  padding: .5rem 0;
  border-bottom: 1px solid rgba(255,255,255,.1);
  display: block;
  transition: color .2s;
}
.nav-list a:hover,
.nav-list a[aria-current="page"] { color: var(--color-accent); }
.nav-list a[aria-current="page"] { font-weight: 600; }

/* ── HERO ── */
.hero {
  background: var(--color-primary);
  color: #fff;
  padding: 3.5rem 1.25rem 4rem;
  text-align: center;
}
.hero h1 { color: #fff; }
.hero .tagline {
  font-size: 1.15rem;
  color: var(--color-accent);
  margin-bottom: 2rem;
  font-style: italic;
}
.hero-cta { display: flex; flex-direction: column; align-items: center; gap: .85rem; }

/* ── BUTTONS ── */
.btn {
  display: inline-block;
  padding: .75rem 1.75rem;
  border-radius: 3px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, color .2s;
  text-align: center;
}
.btn-primary {
  background: var(--color-secondary);
  color: #fff;
}
.btn-primary:hover { background: #be1240; }
.btn-secondary {
  background: transparent;
  color: var(--color-accent);
  border: 2px solid var(--color-accent);
}
.btn-secondary:hover {
  background: var(--color-accent);
  color: var(--color-primary);
}

/* ── MAIN CONTENT ── */
main { padding-bottom: 3rem; }

.section-light { background: var(--color-bg); }
.section-tinted { background: #f9f4ef; }

section { padding: 3rem 1.25rem; }

.container { max-width: 900px; margin: 0 auto; }
.container-wide { max-width: 1200px; margin: 0 auto; }

/* ── SECTION INTRO IMAGE ── */
.section-image {
  width: 100%;
  border-radius: 6px;
  margin-bottom: 1.5rem;
  object-fit: cover;
  aspect-ratio: 16/9;
}

/* ── SERVICES GRID ── */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.service-card {
  background: var(--color-bg);
  border: 1px solid #e5e0d8;
  border-radius: 6px;
  padding: 1.5rem;
  border-left: 4px solid var(--color-secondary);
}
.service-card h3 { color: var(--color-primary); }
.service-card ul { margin-top: .75rem; }
.service-card li {
  padding: .35rem 0;
  border-bottom: 1px solid #f0ebe3;
  padding-left: 1rem;
  position: relative;
  color: #374151;
}
.service-card li::before {
  content: '';
  position: absolute; left: 0; top: 50%;
  transform: translateY(-50%);
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--color-accent);
}

/* ── CTA BANNER ── */
.cta-banner {
  background: var(--color-secondary);
  color: #fff;
  text-align: center;
  padding: 2.5rem 1.25rem;
}
.cta-banner h2 { color: #fff; margin-bottom: .75rem; }
.cta-banner p { margin-bottom: 1.5rem; opacity: .9; }
.cta-banner .btn-secondary {
  color: #fff; border-color: #fff;
}
.cta-banner .btn-secondary:hover {
  background: #fff; color: var(--color-secondary);
}

/* ── ABOUT ── */
.about-content p { font-size: 1.05rem; color: #1f2937; }
.about-quote {
  border-left: 4px solid var(--color-accent);
  padding-left: 1.25rem;
  margin: 1.5rem 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--color-primary);
}

/* ── CONTACT ── */
.contact-grid { display: flex; flex-direction: column; gap: 2rem; margin-top: 1rem; }
.contact-info { }
.contact-info h2 { color: var(--color-primary); }
.contact-detail {
  display: flex; align-items: flex-start; gap: .75rem;
  margin-bottom: 1.25rem;
}
.contact-icon {
  width: 36px; height: 36px;
  background: var(--color-secondary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: #fff; font-size: 1rem;
}
.contact-detail-text strong { display: block; color: var(--color-primary); }
.contact-detail-text a { color: var(--color-secondary); }

/* ── MAP ── */
.map-wrapper {
  width: 100%;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid #e5e0d8;
  margin-top: 2rem;
}
.map-wrapper iframe { display: block; width: 100%; height: 320px; border: 0; }

/* ── FORM ── */
.contact-form-section { background: #f9f4ef; }
.contact-form {
  display: flex; flex-direction: column; gap: 1rem;
  margin-top: 1.25rem;
}
.form-group { display: flex; flex-direction: column; gap: .35rem; }
.form-group label { font-weight: 600; color: var(--color-primary); font-size: .95rem; }
.form-group input,
.form-group textarea {
  width: 100%;
  padding: .65rem .9rem;
  border: 1.5px solid #d1c9be;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text);
  background: var(--color-bg);
  transition: border-color .2s;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-secondary);
}
.form-group textarea { resize: vertical; min-height: 130px; }
.rgpd-notice {
  font-size: .82rem; color: #6b7280;
  margin-top: .5rem;
  padding: .75rem;
  background: #fff;
  border-radius: 4px;
  border: 1px solid #e5e0d8;
}

/* ── REVIEWS ── */
.reviews { background: var(--color-bg); }
.reviews-header {
  display: flex; align-items: center; gap: .75rem;
  margin-bottom: 1.5rem;
}
.reviews-header h2 { margin-bottom: 0; }
.google-badge {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .3rem .75rem;
  border: 1px solid #e5e0d8;
  border-radius: 20px;
  font-size: .85rem;
  color: #374151;
}
.reviews-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.review-card {
  border: 1px solid #e5e0d8;
  border-radius: 6px;
  padding: 1.25rem;
  background: #fff;
}
.review-card .stars { color: var(--color-accent); font-size: 1.1rem; margin-bottom: .5rem; }
.review-card .author { font-weight: 600; color: var(--color-primary); }
.review-card .date { font-size: .82rem; color: #9ca3af; margin-bottom: .65rem; }
.review-card p { font-size: .95rem; color: #374151; margin-bottom: 0; }
.reviews-attribution { font-size: .78rem; color: #9ca3af; margin-top: 1.25rem; }

/* ── FOOTER ── */
.site-footer {
  background: var(--color-primary);
  color: rgba(255,255,255,.8);
  padding: 2.5rem 1.25rem 1.25rem;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex; flex-direction: column; gap: 2rem;
}
.footer-brand { }
.footer-brand .logo-text {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: #fff;
  display: block; margin-bottom: .4rem;
}
.footer-brand p { font-size: .88rem; }
.footer-links h4 { color: #fff; font-family: var(--font-display); font-size: 1rem; margin-bottom: .75rem; }
.footer-links a { display: block; padding: .25rem 0; color: rgba(255,255,255,.7); font-size: .9rem; transition: color .2s; }
.footer-links a:hover { color: var(--color-accent); }
.footer-contact h4 { color: #fff; font-family: var(--font-display); font-size: 1rem; margin-bottom: .75rem; }
.footer-contact p, .footer-contact a { font-size: .9rem; color: rgba(255,255,255,.7); display: block; margin-bottom: .25rem; }
.footer-contact a { color: var(--color-accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 1.25rem;
  font-size: .78rem;
  color: rgba(255,255,255,.5);
  display: flex; flex-direction: column; gap: .4rem;
}

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  background: var(--color-primary);
  color: #fff;
  padding: 2.5rem 1.25rem 3rem;
  text-align: center;
}
.page-hero h1 { color: #fff; }
.page-hero p { color: rgba(255,255,255,.8); max-width: 640px; margin: 0 auto; }

/* ── DECORATIVE RULE ── */
.accent-rule {
  width: 48px; height: 3px;
  background: var(--color-accent);
  margin: 0 auto 1.5rem;
}

/* ── TABLET & DESKTOP ── */
@media (min-width: 768px) {
  .header-phone { display: block; }
  .nav-toggle { display: none; }
  .nav-list {
    display: flex !important;
    flex-direction: row;
    position: static;
    background: none;
    padding: 0;
    gap: 1.5rem;
  }
  .nav-list a {
    border-bottom: none;
    padding: 0;
    font-size: 1rem;
  }
  .hero { padding: 5rem 1.25rem 6rem; }
  .hero-cta { flex-direction: row; justify-content: center; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { flex-direction: row; }
  .contact-info { flex: 1; }
  .footer-inner { flex-direction: row; justify-content: space-between; }
  .footer-bottom { flex-direction: row; justify-content: space-between; }
}

@media (min-width: 1200px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .reviews-grid { grid-template-columns: repeat(3, 1fr); }
}
