/* =============================================
   WF Window Cleaners — Main Stylesheet
   Mobile-first, semantic, accessible
   ============================================= */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700;800&family=Open+Sans:wght@400;500;600&display=swap');

/* ---------- Custom Properties ---------- */
:root {
  --blue:        #1A6BB5;
  --blue-light:  #4DA8DA;
  --white:       #FFFFFF;
  --bg-light:    #F0F7FF;
  --dark:        #1A1A2E;
  --gray:        #5A6070;
  --gray-light:  #E5EEF7;

  --font-display: 'Montserrat', system-ui, -apple-system, sans-serif;
  --font-body:    'Open Sans', system-ui, -apple-system, sans-serif;

  --max-w:   1160px;
  --radius:  8px;
  --shadow:  0 2px 12px rgba(26,107,181,0.12);
  --trans:   0.2s ease;
}

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

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

body {
  font-family: var(--font-body);
  color: var(--dark);
  background: var(--white);
  line-height: 1.7;
}

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

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

ul { list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.25;
  color: var(--dark);
}

/* ---------- Utilities ---------- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section { padding: 4rem 0; }
.section--light { background: var(--bg-light); }
.section--dark  { background: var(--dark); color: var(--white); }
.section--blue  { background: var(--blue); color: var(--white); }

.section-title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  margin-bottom: 0.5rem;
  text-align: center;
}
.section-subtitle {
  text-align: center;
  color: var(--gray);
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.section--dark  .section-subtitle,
.section--blue  .section-subtitle { color: rgba(255,255,255,0.8); }
.section--dark  .section-title,
.section--blue  .section-title    { color: var(--white); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background var(--trans), color var(--trans), border-color var(--trans), transform var(--trans);
  text-decoration: none;
  line-height: 1.2;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }

.btn--primary {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}
.btn--primary:hover { background: #145a9e; border-color: #145a9e; }

.btn--white {
  background: var(--white);
  color: var(--blue);
  border-color: var(--white);
}
.btn--white:hover { background: var(--bg-light); border-color: var(--bg-light); }

.btn--outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn--outline:hover { background: var(--white); color: var(--blue); }

.btn--lg { padding: 1.1rem 2.5rem; font-size: 1.1rem; }

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.25rem;
  height: 70px;
}

.nav-logo img {
  height: 48px;
  width: auto;
}
.nav-logo:hover { text-decoration: none; }

.nav-links {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 70px;
  left: 0; right: 0;
  background: var(--white);
  padding: 1rem 1.25rem 1.5rem;
  box-shadow: 0 8px 16px rgba(0,0,0,0.08);
  gap: 0;
}
.nav-links.is-open { display: flex; }

.nav-links li a {
  display: block;
  padding: 0.65rem 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--dark);
  border-bottom: 1px solid var(--gray-light);
  transition: color var(--trans);
}
.nav-links li:last-child a { border-bottom: none; }
.nav-links li a:hover,
.nav-links li a.active { color: var(--blue); text-decoration: none; }

.nav-cta { display: none; }

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  width: 36px;
  height: 36px;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2.5px;
  background: var(--dark);
  border-radius: 2px;
  transition: transform var(--trans), opacity var(--trans);
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

@media (min-width: 768px) {
  .nav-toggle { display: none; }
  .nav-links {
    display: flex !important;
    flex-direction: row;
    position: static;
    box-shadow: none;
    padding: 0;
    gap: 0.25rem;
    background: transparent;
  }
  .nav-links li a {
    padding: 0.4rem 0.75rem;
    border-bottom: none;
    border-radius: var(--radius);
  }
  .nav-links li a:hover { background: var(--bg-light); }
  .nav-cta {
    display: inline-block;
    margin-left: 1rem;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--dark);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('./assets/hero.png');
  background-size: cover;
  background-position: center;
  opacity: 0.35;
}

.hero-content {
  position: relative;
  z-index: 1;
  color: var(--white);
  padding: 4rem 1.25rem;
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
}

.hero-eyebrow {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-light);
  margin-bottom: 1rem;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  margin-bottom: 1rem;
  max-width: 700px;
}

.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: rgba(255,255,255,0.88);
  margin-bottom: 2rem;
  max-width: 580px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

@media (min-width: 768px) {
  .hero { min-height: 620px; }
}

/* ---------- Services Grid ---------- */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

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

.service-card {
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow);
  transition: transform var(--trans), box-shadow var(--trans);
}
.service-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(26,107,181,0.18); }

.service-card-icon {
  font-size: 2.2rem;
  margin-bottom: 0.75rem;
  line-height: 1;
}

.service-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
  color: var(--blue);
}

.service-card p {
  font-size: 0.9rem;
  color: var(--gray);
  line-height: 1.6;
}

/* ---------- Why Choose Us ---------- */
.why-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 680px;
  margin: 0 auto;
}

.why-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow);
}

.why-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.why-item h4 { font-size: 1rem; margin-bottom: 0.2rem; color: var(--blue); }
.why-item p  { font-size: 0.9rem; color: var(--gray); }

/* ---------- CTA Banner ---------- */
.cta-banner {
  text-align: center;
  padding: 4.5rem 1.25rem;
}

.cta-banner h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
  color: var(--white);
  margin-bottom: 0.75rem;
}
.cta-banner p {
  color: rgba(255,255,255,0.85);
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

/* ---------- Page Header (inner pages) ---------- */
.page-header {
  background: linear-gradient(135deg, var(--blue) 0%, #0f4c8a 100%);
  color: var(--white);
  padding: 3.5rem 1.25rem 3rem;
  text-align: center;
}
.page-header h1 {
  color: var(--white);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  margin-bottom: 0.5rem;
}
.page-header p {
  color: rgba(255,255,255,0.85);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto;
}

/* ---------- Services Detail ---------- */
.service-detail {
  display: grid;
  gap: 3rem;
}

.service-block {
  display: grid;
  gap: 1rem;
}

.service-block-inner {
  background: var(--white);
  border-left: 4px solid var(--blue);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow);
}

.service-block-inner h2 {
  font-size: 1.35rem;
  color: var(--blue);
  margin-bottom: 0.75rem;
}
.service-block-inner p {
  color: var(--gray);
  margin-bottom: 1rem;
}
.service-block-inner p:last-of-type { margin-bottom: 1.25rem; }

/* ---------- Service Area ---------- */
.area-grid {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 600px) { .area-grid { grid-template-columns: repeat(3, 1fr); } }

.area-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--blue-light);
}
.area-card.primary { border-top-color: var(--blue); }

.area-card-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--blue);
  margin-bottom: 0.4rem;
}
.area-card h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.area-card p  { font-size: 0.9rem; color: var(--gray); }

.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-top: 2rem;
}
.map-wrap iframe {
  display: block;
  width: 100%;
  height: 380px;
  border: 0;
}

/* ---------- Contact ---------- */
.contact-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2.5rem 2rem;
  max-width: 580px;
  margin: 0 auto;
  text-align: center;
}

.contact-card h2 { font-size: 1.5rem; color: var(--blue); margin-bottom: 0.5rem; }
.contact-card p  { color: var(--gray); margin-bottom: 1.5rem; }

.contact-meta {
  background: var(--bg-light);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-top: 2rem;
  text-align: left;
}
.contact-meta h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blue);
  margin-bottom: 0.75rem;
}
.contact-meta ul { display: flex; flex-direction: column; gap: 0.4rem; }
.contact-meta li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: var(--dark);
}
.contact-meta li::before {
  content: '✓';
  color: var(--blue);
  font-weight: 700;
}

.contact-note {
  margin-top: 1.25rem;
  font-size: 0.9rem;
  color: var(--gray);
  text-align: center;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  padding: 3rem 1.25rem 1.5rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2.5rem;
}
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } }

.footer-logo img { height: 40px; width: auto; margin-bottom: 0.75rem; filter: brightness(0) invert(1); }
.footer-brand p { font-size: 0.9rem; }

.footer-col h4 {
  color: var(--white);
  font-family: var(--font-display);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.footer-col ul { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col li a {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  transition: color var(--trans);
}
.footer-col li a:hover { color: var(--white); text-decoration: none; }

.footer-col address {
  font-style: normal;
  font-size: 0.9rem;
  line-height: 1.8;
}
.footer-col address a { color: var(--blue-light); }
.footer-col address a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.25rem;
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--blue);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 0 0 var(--radius) var(--radius);
  font-weight: 700;
  z-index: 9999;
}
.skip-link:focus { top: 0; }

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  padding: 0.6rem 1.25rem;
  background: var(--bg-light);
  font-size: 0.82rem;
  color: var(--gray);
}
.breadcrumb-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.breadcrumb a { color: var(--blue); }
.breadcrumb span { margin: 0 0.35rem; }

/* ---------- Responsive tweaks ---------- */
@media (min-width: 768px) {
  .section { padding: 5.5rem 0; }
  .cta-banner { padding: 5.5rem 1.25rem; }
}
