/* ============================================
   ALLCHIMNEY SWEEPS — allchimney-sweeps.co.uk
   Main Stylesheet
   ============================================ */

/* --- Google Fonts async loaded in HTML --- */

/* --- CSS Variables --- */
:root {
  --blue-dark:    #0d2d5e;
  --blue-mid:     #1a4a8a;
  --blue-light:   #2a6dd9;
  --blue-pale:    #e8f0fb;
  --white:        #ffffff;
  --charcoal:     #1e1e2e;
  --grey-light:   #f5f7fa;
  --grey-mid:     #6b7280;
  --whatsapp:     #25d366;
  --whatsapp-dark:#1da851;
  --accent:       #f0a500;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Source Sans 3', system-ui, sans-serif;

  --radius:       6px;
  --radius-lg:    12px;
  --shadow:       0 4px 20px rgba(13,45,94,0.10);
  --shadow-lg:    0 8px 40px rgba(13,45,94,0.16);

  --transition:   0.3s ease;
  --max-width:    1140px;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--charcoal);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-light); text-decoration: none; }
a:hover { color: var(--blue-dark); }

/* --- Scroll Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.2;
  color: var(--blue-dark);
}
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }

.italic-accent { font-style: italic; color: var(--blue-light); }

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

/* --- Layout --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.section { padding: 72px 0; }
.section-sm { padding: 48px 0; }
.section-lg { padding: 96px 0; }

.section-blue {
  background: var(--blue-dark);
  color: var(--white);
}
.section-blue h1,
.section-blue h2,
.section-blue h3 { color: var(--white); }
.section-blue .italic-accent { color: #7eb3ff; }

.section-pale { background: var(--grey-light); }
.section-pale-blue { background: var(--blue-pale); }

/* --- Header / Nav --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--blue-dark);
  box-shadow: 0 2px 16px rgba(0,0,0,0.18);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  max-width: var(--max-width);
  margin: 0 auto;
  height: 90px;
}

.site-logo {
  display: flex;
  align-items: center;
  background: transparent;
  padding: 0;
  border: none;
}

.site-logo img {
  height: 80px;
  width: auto;
  display: block;
}

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

.site-nav a {
  color: rgba(255,255,255,0.88);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  padding: 8px 14px;
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
}
.site-nav a:hover { background: rgba(255,255,255,0.12); color: var(--white); }

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown > a::after { content: " ▾"; font-size: 11px; }
.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 220px;
  padding: 8px 0;
  z-index: 200;
}
.dropdown-menu a {
  display: block;
  color: var(--charcoal);
  font-weight: 500;
  font-size: 14px;
  padding: 9px 18px;
  border-radius: 0;
}
.dropdown-menu a:hover { background: var(--blue-pale); color: var(--blue-dark); }
.nav-dropdown:hover .dropdown-menu { display: block; }

.header-cta {
  background: var(--whatsapp);
  color: var(--white) !important;
  border-radius: 20px !important;
  padding: 8px 16px !important;
  font-weight: 700 !important;
}
.header-cta:hover { background: var(--whatsapp-dark) !important; }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  margin: 5px 0;
  transition: var(--transition);
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 30px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  text-align: center;
}
.btn-primary {
  background: var(--blue-light);
  color: var(--white);
  border-color: var(--blue-light);
}
.btn-primary:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.btn-whatsapp {
  background: var(--whatsapp);
  color: var(--white);
  border-color: var(--whatsapp);
}
.btn-whatsapp:hover {
  background: var(--whatsapp-dark);
  border-color: var(--whatsapp-dark);
  color: var(--white);
  transform: translateY(-2px);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.6);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--blue-dark);
  border-color: var(--white);
}
.btn-sm { padding: 10px 20px; font-size: 14px; }

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 580px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--blue-dark);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.38;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  padding: 60px 20px;
  margin: 0 auto 0 0;
}
.hero-content h1 { color: var(--white); margin-bottom: 16px; }
.hero-content p { color: rgba(255,255,255,0.9); font-size: 18px; margin-bottom: 0; }
.hero-badge {
  display: inline-block;
  background: var(--accent);
  color: var(--blue-dark);
  font-weight: 700;
  font-size: 13px;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* --- Photo Break Strip --- */
.photo-strip {
  width: 100%;
  height: 320px;
  object-fit: cover;
  object-position: center 50%;
  display: block;
}
.photo-strip-tall { height: 420px; }
.photo-pos-smoke { object-position: center 65%; }
.photo-pos-fireplace { object-position: center 70%; }
.photo-pos-flame { object-position: center 60%; }

/* --- Split sections --- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.split-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.split-img img {
  width: 100%;
  height: 380px;
  object-fit: cover;
}
.split-reverse { direction: rtl; }
.split-reverse > * { direction: ltr; }

/* --- Service Cards --- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 40px;
}
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.card-img { width: 100%; height: 200px; object-fit: cover; }
.card-body { padding: 24px; }
.card-body h3 { margin-bottom: 10px; font-size: 1.2rem; }
.card-body p { color: var(--grey-mid); font-size: 15px; margin-bottom: 16px; }

/* --- Why Choose — Numbered --- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
  margin-top: 40px;
}
.why-item { position: relative; padding-left: 0; }
.why-number {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--blue-pale);
  line-height: 1;
  margin-bottom: 8px;
}
.section-blue .why-number { color: rgba(255,255,255,0.12); }
.why-item h3 { margin-bottom: 8px; font-size: 1.15rem; }
.why-item p { font-size: 15px; color: var(--grey-mid); }
.section-blue .why-item p { color: rgba(255,255,255,0.75); }
.section-blue .why-item h3 { color: var(--white); }

/* --- Credentials Bar --- */
.creds-bar {
  background: var(--blue-pale);
  padding: 20px 0;
  border-top: 3px solid var(--blue-light);
}
.creds-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 32px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}
.cred-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 15px;
  color: var(--blue-dark);
}
.cred-icon {
  width: 36px;
  height: 36px;
  background: var(--blue-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 16px;
  flex-shrink: 0;
}

/* --- Team Section --- */
.team-grid {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-top: 40px;
}
.team-card {
  display: flex;
  flex-direction: row;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  text-align: left;
}
.team-card-reverse {
  flex-direction: row-reverse;
}
.team-card-img {
  width: 45%;
  min-width: 45%;
  height: auto;
  object-fit: cover;
  object-position: center top;
  background: var(--blue-pale);
  display: block;
}
.team-placeholder {
  width: 45%;
  min-width: 45%;
  background: var(--blue-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: var(--blue-mid);
  font-weight: 600;
  text-align: center;
  padding: 20px;
}
.team-card-body { padding: 32px; display: flex; flex-direction: column; justify-content: center; }
.team-card-body h3 { margin-bottom: 6px; }
.team-card-body .role { color: var(--blue-light); font-weight: 600; font-size: 14px; margin-bottom: 12px; }
.team-card-body p { font-size: 15px; color: var(--grey-mid); }
.team-caption { font-style: italic; font-size: 14px !important; margin-top: 12px; border-top: 1px solid var(--blue-pale); padding-top: 12px; }
@media (max-width: 720px) {
  .team-card,
  .team-card-reverse {
    flex-direction: column;
  }
  .team-card-img,
  .team-placeholder {
    width: 100%;
    min-width: 100%;
    height: 260px;
  }
  .team-card-body { padding: 24px; }
}

/* --- Location Grid --- */
.locations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-top: 32px;
}
.location-pill {
  display: block;
  text-align: center;
  padding: 12px 16px;
  background: var(--white);
  border: 2px solid var(--blue-pale);
  border-radius: 30px;
  font-weight: 600;
  font-size: 14px;
  color: var(--blue-dark);
  transition: all var(--transition);
}
.location-pill:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  color: var(--white);
  transform: translateY(-2px);
}

/* --- CTA Band --- */
.cta-band {
  background: var(--blue-light);
  padding: 60px 0;
  text-align: center;
}
.cta-band h2 { color: var(--white); margin-bottom: 12px; }
.cta-band h2 .italic-accent { color: rgba(255,255,255,0.75); }
.cta-band p { color: rgba(255,255,255,0.88); font-size: 18px; margin-bottom: 28px; }

/* --- Contact Section --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}
.contact-icon {
  width: 44px;
  height: 44px;
  background: var(--blue-pale);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.contact-detail h4 { font-family: var(--font-body); font-size: 13px; text-transform: uppercase; letter-spacing: 1px; color: var(--grey-mid); margin-bottom: 2px; }
.contact-detail p { font-size: 17px; font-weight: 600; color: var(--blue-dark); margin: 0; }

/* --- FAQ --- */
.faq-item {
  border-bottom: 1px solid #e5e7eb;
  padding: 20px 0;
}
.faq-item:first-child { border-top: 1px solid #e5e7eb; }
.faq-q {
  font-weight: 700;
  font-size: 16px;
  color: var(--blue-dark);
  margin-bottom: 8px;
  cursor: pointer;
}
.faq-a { font-size: 15px; color: var(--grey-mid); }

/* --- Section Header --- */
.section-header { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.section-header p { font-size: 18px; color: var(--grey-mid); margin-top: 12px; }
.section-blue .section-header p { color: rgba(255,255,255,0.75); }
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--blue-light);
  margin-bottom: 10px;
}
.section-blue .eyebrow { color: #7eb3ff; }

/* --- Footer --- */
.site-footer {
  background: var(--blue-dark);
  color: rgba(255,255,255,0.80);
  padding: 56px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}
.footer-logo { margin-bottom: 16px; }
.footer-logo img { height: 52px; }
.footer-desc { font-size: 15px; line-height: 1.6; margin-bottom: 20px; }
.footer-col h4 {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--white);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: rgba(255,255,255,0.75); font-size: 15px; transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.10);
  margin-top: 48px;
  padding: 20px;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-bottom p { font-size: 13px; color: rgba(255,255,255,0.50); margin: 0; }

/* --- Responsive --- */
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split-reverse { direction: ltr; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .site-nav { display: none; }
  .site-nav.open { display: flex; flex-direction: column; align-items: flex-start; position: absolute; top: 70px; left: 0; right: 0; background: var(--blue-dark); padding: 16px 20px; gap: 4px; }
  .site-nav.open .dropdown-menu { position: static; box-shadow: none; background: rgba(255,255,255,0.08); }
  .site-nav.open .dropdown-menu a { color: rgba(255,255,255,0.80); }
  .nav-toggle { display: block; }
  .header-inner { position: relative; }
  .hero { min-height: 420px; }
  .hero-content { padding: 48px 20px; }
  .photo-strip { height: 220px; }
  .section { padding: 52px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .cards-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .btn-group { flex-direction: column; }
  .btn-group .btn { text-align: center; }
  .locations-grid { grid-template-columns: repeat(2, 1fr); }
}
