/*
 * Stylesheet for the LoopLogic website redesign.
 *
 * This file defines a clean, modern aesthetic using CSS variables for
 * colours and responsive layouts. The design emphasises readability,
 * generous spacing and intuitive navigation. It leverages Flexbox and
 * CSS Grid to lay out content without relying on external frameworks.
 */

/* Colour palette and typography variables */
:root {
  --primary: #005f73;         /* dark teal, primary brand colour */
  --secondary: #0891b2;       /* bright teal, call‑to‑action colour */
  --accent: #f0f9ff;          /* very light blue for subtle backgrounds */
  --text-dark: #1f2937;       /* dark grey for body copy */
  --text-light: #ffffff;      /* white for text on dark backgrounds */
}

/* Base styles */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: #ffffff;
}

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

a:hover {
  text-decoration: underline;
}

/* Container to centre content and limit width */
.container {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.logo {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav a {
  font-weight: 500;
  padding: 0.25rem 0.5rem;
  transition: color 0.2s ease;
}

.nav a:hover {
  color: var(--secondary);
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.25rem;
  border-radius: 0.375rem;
  font-weight: 600;
  text-align: center;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-primary {
  background-color: var(--secondary);
  color: var(--text-light);
}

.btn-primary:hover {
  background-color: #0e7490;
}

.btn-secondary {
  background-color: var(--primary);
  color: var(--text-light);
}

.btn-secondary:hover {
  background-color: #054b55;
}

/* Hero section */
.hero {
  background: linear-gradient(145deg, var(--accent) 0%, #ffffff 100%);
  padding-top: 5rem;
  padding-bottom: 5rem;
  text-align: center;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--primary);
}

.hero .lead {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  color: #374151;
}

/* Services section */
.services {
  padding-top: 4rem;
  padding-bottom: 4rem;
  background-color: #f9fafb;
}

.services h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: var(--primary);
  font-weight: 700;
}

.services .section-intro {
  text-align: center;
  margin-bottom: 2rem;
  color: #4b5563;
  font-size: 1rem;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background-color: #ffffff;
  padding: 1.5rem;
  border-radius: 0.75rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.service-card h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
  color: var(--primary);
  font-weight: 600;
}

.service-card p {
  flex-grow: 1;
  margin-bottom: 1rem;
  color: #374151;
}

.service-card .price {
  font-weight: 600;
  color: var(--secondary);
}

/* About section */
.about {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.about h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--primary);
  font-weight: 700;
}

.about p {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2rem;
  text-align: center;
  color: #4b5563;
  font-size: 1rem;
}

/* Testimonials section */
.testimonials {
  padding-top: 4rem;
  padding-bottom: 4rem;
  background-color: #f9fafb;
}

.testimonials h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--primary);
  font-weight: 700;
}

.testimonial {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  font-style: italic;
  border-left: 4px solid var(--secondary);
  padding-left: 1rem;
  color: #374151;
}

.testimonial cite {
  display: block;
  margin-top: 1rem;
  font-weight: 600;
  color: var(--primary);
}

/* Contact call‑to‑action */
.contact-cta {
  padding-top: 4rem;
  padding-bottom: 4rem;
  background-color: #e0f2fe;
  text-align: center;
}

.contact-cta h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--primary);
  font-weight: 700;
}

.contact-cta p {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2rem;
  color: #374151;
  font-size: 1rem;
}

.contact-cta .small-text {
  font-size: 0.875rem;
  color: #4b5563;
}

/* Footer */
.footer {
  background-color: var(--primary);
  color: var(--text-light);
  padding-top: 2rem;
  padding-bottom: 2rem;
  text-align: center;
}

.footer .footer-links {
  margin-bottom: 1rem;
}

.footer .footer-links a {
  margin: 0 0.75rem;
  color: var(--text-light);
  font-weight: 500;
}

.footer .footer-links a:hover {
  text-decoration: underline;
}

.footer p {
  margin: 0.25rem 0;
}

/* Service details page */
.service-detail {
  padding-top: 4rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid #e5e7eb;
}

.service-detail h2 {
  font-size: 1.75rem;
  color: var(--primary);
  margin-bottom: 1rem;
  text-align: center;
  font-weight: 700;
}

.service-detail .service-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.service-detail .service-columns > div {
  flex: 1 1 300px;
  min-width: 0;
}

.service-detail h3 {
  font-size: 1.25rem;
  color: var(--secondary);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.service-detail ul {
  padding-left: 1.25rem;
  margin-top: 0;
  margin-bottom: 1rem;
}

.service-detail ul li {
  margin-bottom: 0.5rem;
  list-style: disc;
  color: #374151;
  line-height: 1.4;
}

.service-detail .pricing-list li {
  list-style: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .nav {
    width: 100%;
    margin-top: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
  }
  .nav a {
    margin: 0.25rem 0.75rem;
  }
  .btn-primary {
    margin-top: 0.5rem;
  }
  .service-detail .service-columns {
    flex-direction: column;
  }
  .hero h1 {
    font-size: 2rem;
  }
  .hero .lead {
    font-size: 1rem;
  }
}