/* Import fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700&family=Inter:wght@400;500;600&display=swap');

/* CoLead.uk Professional Site - Mobile-First CSS */
:root {
  --color-primary: #1e3a8a;
  --color-primary-dark: #1e40af;
  --color-secondary: #dc2626;
  --color-text: #1f2937;
  --color-text-light: #6b7280;
  --color-bg: #ffffff;
  --color-bg-light: #f9fafb;
  --color-bg-grey: #f3f4f6;
  --color-border: #e5e7eb;
  --font-serif: 'Merriweather', Georgia, serif;
  --font-sans: 'Inter', system-ui, sans-serif;
  --font-logo: 'Montserrat', sans-serif;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;
  --container-max: 1100px;
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  line-height: 1.2;
  margin-bottom: var(--space-sm);
  color: var(--color-text);
}

h1 { font-size: 2rem; font-weight: 700; }
h2 { font-size: 1.75rem; font-weight: 700; }
h3 { font-size: 1.5rem; font-weight: 600; }
h4 { font-size: 1.25rem; font-weight: 600; }

p {
  margin-bottom: var(--space-sm);
}

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

a:hover {
  color: var(--color-primary-dark);
}

ul {
  list-style: none;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-sm);
}

.header {
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header__content {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.header__logo {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: #003366;          /* CO-LEAD blue */
  text-transform: uppercase;
}

.header__logo:hover {
  color: var(--color-primary-dark);
}

.logo {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;        /* SemiBold */
  letter-spacing: 0.06em;  /* Brand tracking */
  text-transform: uppercase;  
}

.logo--inline {
  display: inline-block;
}

/* Mobile menu toggle button */
.header__menu-toggle {
  display: block;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--color-primary);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
}

.header__menu-toggle:hover {
  color: var(--color-primary-dark);
}

/* Navigation - hidden on mobile by default */
.header__nav {
  display: none;
  flex-direction: column;
  gap: 0;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 0;
  margin: 0;
}

/* Show navigation when active */
.header__nav.active {
  display: flex;
}

.header__link {
  padding: 1rem var(--space-md);
  color: var(--color-text);
  font-weight: 500;
  text-align: center;
  border-bottom: 1px solid var(--color-border);
  display: block;
}

.header__link:last-child {
  border-bottom: none;
}

.header__link:hover {
  color: var(--color-primary);
  background: var(--color-bg-light);
}

.main {
  min-height: 60vh;
}

.hero {
  background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
  color: white;
  padding: var(--space-xl) 0;
  text-align: center;
}

.hero__title {
  color: white;
  font-size: 2rem;
  margin-bottom: var(--space-sm);
}

.hero__subtitle {
  font-size: 1.125rem;
  margin-bottom: var(--space-lg);
  opacity: 0.95;
  line-height: 1.7;
}

.hero__cta {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  align-items: center;
}

.button {
  display: inline-block;
  padding: 0.875rem 2rem;
  border-radius: 0.5rem;
  font-weight: 600;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}

.button--primary {
  background: var(--color-secondary);
  color: white;
}

.button--primary:hover {
  background: #b91c1c;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.button--secondary {
  background: white;
  color: var(--color-primary);
  border-color: white;
}

.button--secondary:hover {
  background: transparent;
  color: white;
  border-color: white;
}

.metrics {
  background: var(--color-bg-light);
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--color-border);
}

.metrics__grid {
  display: grid;
  gap: var(--space-sm);
  text-align: center;
}

.metric {
  font-weight: 600;
  color: var(--color-text);
  font-size: 0.875rem;
}

.section {
  padding: var(--space-xl) 0;
}

.section--grey {
  background: var(--color-bg-grey);
}

.section__title {
  font-size: 1.75rem;
  margin-bottom: var(--space-md); /* was space-lg */
  text-align: center;
}

.benefits-grid {
  display: grid;
  gap: var(--space-md);
}

.benefit-card {
  background: white;
  padding: var(--space-md);
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  min-height: 280px;
}

.benefit-card h3 {
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
  font-size: 1.25rem;
}

.services-grid {
  display: grid;
  gap: var(--space-md);
}

.service-card {
  background: white;
  padding: var(--space-md);
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  min-height: 320px;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.service-card h3 {
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
}

.clients-grid {
  display: grid;
  gap: var(--space-md);
}

.client-card {
  background: white;
  padding: var(--space-md);
  border-radius: 0.5rem;
  border-left: 4px solid var(--color-primary);
  display: flex;
  flex-direction: column;
  min-height: 200px;
}

.client-card h4 {
  color: var(--color-primary);
  margin-bottom: var(--space-xs);
}

.client-card p {
  margin-bottom: 0;
  font-size: 0.95rem;
  color: var(--color-text-light);
}

.process-grid {
  display: grid;
  gap: var(--space-lg);
}

.process-step {
  text-align: center;
}

.process-number {
  width: 60px;
  height: 60px;
  background: var(--color-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  margin: 0 auto var(--space-sm);
}

.process-step h3 {
  margin-bottom: var(--space-sm);
}

.case-grid {
  display: grid;
  gap: var(--space-md);
}

.case-card {
  background: white;
  padding: var(--space-md);
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  min-height: 240px;
}

.case-card h3 {
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
  font-size: 1.25rem;
}

.case-card p {
  margin-bottom: 0;
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
}

.about-content p {
  margin-bottom: var(--space-md);
  font-size: 1.125rem;
  line-height: 1.8;
}

.about-note {
  font-size: 0.9rem;
  font-style: italic;
  color: #555;
  margin-top: 0.75rem;
}

.contact-content {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.contact-intro {
  font-size: 1.25rem;
  margin-bottom: var(--space-lg);
}

.contact-methods {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.contact-method {
  background: white;
  padding: var(--space-md);
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.contact-method h4 {
  color: var(--color-primary);
  margin-bottom: var(--space-xs);
}

.contact-method p {
  margin-bottom: 0;
}

.cta-section {
  text-align: center;
  margin-top: var(--space-lg);
}

.footer {
  background: var(--color-bg-grey);
  border-top: 1px solid var(--color-border);
  padding: var(--space-lg) 0 var(--space-md);
  margin-top: var(--space-xl);
}

.footer__content {
  display: grid;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.footer__section h3,
.footer__section h4 {
  margin-bottom: var(--space-xs);
}

.footer__title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--color-primary);
  font-size: 1.25rem;
  text-transform: uppercase;
}

.footer__subtitle {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.footer__text {
  color: var(--color-text-light);
  margin-bottom: var(--space-xs);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.footer__links a {
  color: var(--color-text-light);
}

.footer__links a:hover {
  color: var(--color-primary);
}

.footer__bottom {
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-sm);
  text-align: center;
  color: var(--color-text-light);
  font-size: 0.875rem;
}

@media (min-width: 640px) {
  .container {
    padding: 0 var(--space-md);
  }
  
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.75rem; }
  
  /* Hide mobile menu toggle on tablet/desktop */
  .header__menu-toggle {
    display: none;
  }
  
  /* Show navigation inline on tablet/desktop */
  .header__nav {
    display: flex;
    position: static;
    flex-direction: row;
    gap: var(--space-md);
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
  }
  
  .header__link {
    padding: var(--space-xs);
    border: none;
    text-align: left;
  }
  
  .hero__title {
    font-size: 2.5rem;
  }
  
  .hero__subtitle {
    font-size: 1.25rem;
  }
  
  .hero__cta {
    flex-direction: row;
    justify-content: center;
  }
  
  .metrics__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .clients-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .case-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer__content {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

@media (min-width: 1024px) {
  .container {
    padding: 0 var(--space-lg);
  }
  
  h1 { font-size: 3rem; }
  h2 { font-size: 2.5rem; }
  h3 { font-size: 2rem; }
  
  .header {
    padding: 1rem 0;
  }
  
  .header__content {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  
  .hero {
    padding: 6rem 0;
  }
  
  .hero__title {
    font-size: 3rem;
  }
  
  .hero__subtitle {
    font-size: 1.5rem;
  }
  
  .metrics__grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .clients-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .process-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .case-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .contact-methods {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer__content {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Floating CTA – mobile only */
.floating-cta {
  position: fixed;
  right: 1rem;
  bottom: 1.25rem;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  background-color: var(--color-secondary);
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-decoration: none;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
  z-index: 999;
  display: none; /* hidden by default, shown only on mobile below */
}

/* Tap feedback */
.floating-cta:active {
  transform: scale(0.96);
}

/* Show floating CTA on mobile screens only */
@media (max-width: 768px) {
  .floating-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* Hide inline CTA buttons on mobile so only floating CTA is visible */
  .hero__cta,
  .cta-section {
    display: none;
  }
}

