:root {
  --coral: #F67280;
  --teal: #355C7D;
  --lavender: #B388EB;
  --white: #F7F7F7;
  --charcoal: #2A2A2A;
  --font-primary: 'Montserrat', sans-serif;
  --font-secondary: 'Merriweather', serif;
}

/* Base styles with mobile-first approach */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-padding-top: 80px; /* This creates space for fixed header when using anchor links */
  scroll-behavior: smooth;
  overflow-x: hidden; /* Prevent horizontal scroll */
  width: 100%;
}

body {
  font-family: var(--font-primary);
  color: var(--charcoal);
  background-color: var(--white);
  line-height: 1.6;
  max-width: 100%;
  overflow-x: hidden; /* Prevent horizontal scroll */
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  overflow-x: hidden;
}

/* Make sure all images are responsive */
img {
  max-width: 100%;
  height: auto;
}

/* Responsive grid layout */
.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-secondary);
  color: var(--teal);
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  text-align: center;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--teal);
  text-decoration: none;
  transition: color 0.3s;
}

a:hover {
  color: var(--coral);
}

/* Section styling */
section {
  padding: 4rem 0;
}

section:nth-child(even) {
  background-color: rgba(53, 92, 125, 0.05);
}

/* Anchor positioning */
section[id]:before { 
  content: "";
  display: block;
  height: 100px; /* Fixed height of header + extra space */
  margin-top: -100px; /* Negative margin of the same value */
  visibility: hidden;
}

/* Header */
.site-header {
  padding: 1rem 0;
  background-color: var(--white);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--teal);
}

.logo h1 {
  font-size: 1.8rem;
  margin: 0;
}

.main-nav ul {
  display: flex;
  list-style: none;
}

.main-nav li {
  margin-left: 2rem;
}

.main-nav a {
  color: var(--charcoal);
  font-weight: 600;
}

.main-nav a:hover {
  color: var(--coral);
}

@media (max-width: 768px) {
  .header-wrapper {
    flex-direction: row;
    justify-content: center;
  }
  
  .main-nav {
    display: none; /* Hide the navigation menu on mobile */
  }
}

/* Hero section */
.hero {
  padding: 6rem 0;
  text-align: center;
  background: linear-gradient(135deg, var(--teal) 0%, var(--lavender) 100%);
  color: var(--white);
}

.hero h1, .hero p {
  color: var(--white);
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.2rem;
  }
}

.hero-tagline {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Button styles */
.btn {
  display: inline-block;
  background-color: var(--coral);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s;
}

.btn:hover {
  background-color: #e05d6a;
  color: white;
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

/* Services section */
.service-card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.service-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.service-card h3, .service-card p {
  padding: 0 1.5rem;
}

.service-card h3 {
  margin-top: 1.5rem;
}

.service-card p {
  padding-bottom: 1.5rem;
}

/* Benefits section */
.benefit-item {
  text-align: center;
  padding: 1.5rem;
}

/* Case studies */
.case-study {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.case-study img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.case-content {
  padding: 1.5rem;
}

/* Testimonials */
.testimonials-section {
  background-color: var(--teal);
  color: var(--white);
}

.testimonials-section h2 {
  color: var(--white);
}

.testimonial-container {
  position: relative;
  height: 200px;
  overflow: hidden;
}

@media (max-width: 768px) {
  .testimonial-container {
    height: 250px;
  }
}

.testimonial {
  position: absolute;
  width: 100%;
  top: 0;
  left: 0;
  padding: 1.5rem;
  text-align: center;
  opacity: 0;
}

.testimonial blockquote {
  font-size: 1.2rem;
  font-style: italic;
  margin-bottom: 1rem;
}

.testimonial cite {
  font-weight: 600;
}

/* CTA section */
.cta-section {
  text-align: center;
  background: linear-gradient(135deg, var(--lavender) 0%, var(--coral) 100%);
  color: var(--white);
}

.cta-section h2, .cta-section p {
  color: var(--white);
}

.cta-section p {
  margin-bottom: 2rem;
  font-size: 1.2rem;
}

/* Form styles */
.form-container {
  background-color: var(--white);
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  padding: 2rem;
  max-width: 600px;
  margin: 0 auto;
}

.form-field {
  margin-bottom: 1.5rem;
}

.form-field label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--teal);
}

.form-field input, 
.form-field select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: var(--font-primary);
}

.form-field input:focus, 
.form-field select:focus {
  outline: none;
  border-color: var(--lavender);
  box-shadow: 0 0 0 2px rgba(179, 136, 235, 0.2);
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.checkbox-group input {
  margin-right: 0.5rem;
  margin-top: 0.25rem;
}

/* Cookie popup */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--white);
  padding: 1rem;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
}

.cookie-banner.hidden {
  display: none;
}

/* Footer */
.site-footer {
  background-color: var(--charcoal);
  color: var(--white);
  padding: 3rem 0 1rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.site-footer h3, .site-footer h4 {
  color: var(--white);
  margin-bottom: 1rem;
}

.site-footer p {
  margin-bottom: 0.5rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: var(--white);
  opacity: 0.8;
}

.footer-links a:hover {
  opacity: 1;
  color: var(--lavender);
}

.footer-contact a {
  color: #ffffff;
}

.copyright {
  margin-top: 2rem;
  text-align: center;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

/* Policy pages */
.policy-section h1 {
  text-align: center;
  margin-bottom: 2rem;
}

.thank-you-section {
  text-align: center;
  padding: 6rem 0;
}

.thank-you-container {
  background-color: var(--white);
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  padding: 3rem;
  max-width: 700px;
  margin: 0 auto;
}

.thank-you-links {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
}