:root {
  --primary: #d62839;
  --secondary: #175676;
  --accent: #4ba3c3;
  --light: #f0f4f8;
  --dark: #1e1e24;
  --font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  --transition-speed: 0.3s;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  --border-radius: 5px;
  --section-padding: 5rem 2rem;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font-family);
}

body {
  background-color: var(--light);
  color: var(--dark);
  line-height: 1.6;
}
.construction-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--primary);
  color: white;
  text-align: center;
  padding: 0.5rem;
  z-index: 1000; /* Ensure it stays above other content */
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.construction-banner p {
  margin: 0;
  font-size: 1rem;
}

header {
  background-color: var(--secondary);
  color: white;
  padding: 1rem;
  position: sticky; /* Make the header sticky */
  top: 0; /* Stick to the top of the viewport */
  width: 100%;
  z-index: 1000; /* Ensure it stays above other content */
  box-shadow: var(--shadow);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  text-decoration: none;
  color: white;
}

.logo span {
  color: var(--primary);
}

nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 2rem;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition-speed);
}

nav ul li a:hover {
  color: var(--primary);
}

.hero {
  height: 90vh;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 2rem;
}

.hero-container {
  display: flex;
  max-width: 1200px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 2rem;
  padding: 0 2rem;
}

.hero-content {
  max-width: 600px;
  text-align: left;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  margin-top: 2rem;
}

.cymru {
  color: var(--primary);
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.btn {
  display: inline-block;
  background-color: var(--primary);
  color: white;
  padding: 0.8rem 2rem;
  border-radius: var(--border-radius);
  text-decoration: none;
  font-weight: 600;
  transition: background-color var(--transition-speed);
}

.btn:hover {
  background-color: #b51f2d;
}

.services {
  padding: var(--section-padding);
  text-align: center;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 3rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: "";
  position: absolute;
  width: 50%;
  height: 4px;
  background-color: var(--primary);
  bottom: -10px;
  left: 25%;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.service-card {
  background-color: white;
  border-radius: 10px;
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: transform var(--transition-speed);
}

.service-card:hover {
  transform: translateY(-10px);
}

.service-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  color: var(--accent);
}

.service-card h3 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.about {
  background-color: var(--secondary);
  color: white;
  padding: var(--section-padding);
  text-align: center;
}

.about .section-title {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  position: relative;
  display: inline-block;
}

.about .section-title::after {
  content: "";
  position: absolute;
  width: 50%;
  height: 4px;
  background-color: var(--primary);
  bottom: -10px;
  left: 25%;
}

.about-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  gap: 2rem;
}

.about-image {
  flex: 1;
  max-width: 400px;
}

.about-image img {
  width: 100%;
  height: auto;
}

.about-content {
  flex: 2;
  text-align: left;
  line-height: 1.8;
}

.about-content p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.about-content p:last-child {
  margin-bottom: 0;
}

.contact {
  padding: var(--section-padding);
  text-align: center;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  background-color: white;
  border-radius: 10px;
  padding: 2rem;
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 1.5rem;
  text-align: left;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
  font-size: 1rem;
}

.form-group textarea {
  height: 150px;
}

footer {
  background-color: var(--dark);
  color: white;
  padding: 2rem;
  text-align: center;
  padding-bottom: 3rem;
}

footer p {
  margin-top: 1rem;
}

/* Hero image styles */
.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 500px;
}

.hero-image img {
  width: 100%;
  height: auto;
  max-height: 80vh;
  object-fit: contain;
}

.menu-toggle {
  display: none; /* Hide by default */
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  position: absolute;
  right: 1rem;
  top: 1rem;
  z-index: 1001; /* Ensure it's above other elements */
}

@media (max-width: 1024px) {
  :root {
    --font-size-large: 2.2rem; /* Slightly smaller for tablets */
    --font-size-medium: 1rem;
  }

  /* Header adjustments */
  header {
    padding: 1rem; /* Reduce padding */
  }

  .logo {
    font-size: 1.6rem; /* Slightly smaller logo */
  }

  /* Hero section adjustments */
  .hero {
    height: auto; /* Allow height to adjust based on content */
    padding: 2rem 1rem; /* Reduce padding */
  }

  .hero-container {
    flex-direction: column; /* Stack content vertically */
    gap: 1.5rem; /* Reduce gap between image and text */
  }

  .hero-content {
    text-align: center; /* Center-align text */
    margin-bottom: 1.5rem; /* Reduce margin */
  }

  .hero h1 {
    font-size: var(--font-size-large);
    margin-top: 1rem; /* Reduce top margin */
  }

  .hero p {
    font-size: var(--font-size-medium);
    margin-bottom: 1.5rem; /* Reduce bottom margin */
  }

  .hero-image {
    max-width: 400px; /* Slightly smaller image */
    margin-top: 1rem; /* Adjust spacing */
    margin-bottom: 1rem; /* Adjust spacing */
  }

  /* Services section adjustments */
  .services {
    padding: 4rem 1rem; /* Reduce padding */
  }

  .section-title {
    font-size: 2.2rem; /* Smaller title for tablets */
    margin-bottom: 2rem; /* Reduce margin */
  }

  .services-grid {
    grid-template-columns: repeat(
      auto-fit,
      minmax(250px, 1fr)
    ); /* Adjust grid columns */
    gap: 1.5rem; /* Reduce gap between cards */
  }

  .service-card {
    padding: 1.5rem; /* Reduce padding */
  }

  /* About section adjustments */
  .about {
    padding: 4rem 1rem; /* Reduce padding */
  }

  /* Contact section adjustments */
  .contact {
    padding: 4rem 1rem; /* Reduce padding */
  }

  .contact-form {
    padding: 1.5rem; /* Reduce padding */
  }

  /* Footer adjustments */
  footer {
    padding: 1.5rem; /* Reduce padding */
  }
}

@media (max-width: 768px) {
  :root {
    --font-size-large: 2rem; /* Smaller for mobile */
    --font-size-medium: 0.9rem;
  }

  /* Header adjustments */
  header {
    flex-direction: row; /* Keep logo and menu toggle in a row */
    padding: 0.5rem 1rem; /* Reduce padding */
    align-items: center;
  }

  .logo {
    font-size: 1.5rem; /* Smaller logo for mobile */
  }

  /* Menu toggle button */
  .menu-toggle {
    display: block; /* Show the menu toggle */
    position: static; /* Reset position */
    margin-left: auto; /* Push to the right */
  }

  /* Navigation menu */
  nav ul {
    display: none; /* Hide by default */
    flex-direction: column;
    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--secondary);
    padding: 1rem;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
  }

  nav.nav-visible ul {
    display: flex; /* Show when toggled */
  }

  nav ul li {
    margin: 0.5rem 0;
    width: 100%;
    text-align: center;
  }

  /* Hero section adjustments */
  .hero {
    height: auto; /* Allow height to adjust based on content */
    padding: 2rem 1rem; /* Reduce padding */
  }

  .hero-container {
    flex-direction: column;
    gap: 1rem; /* Reduce gap between image and text */
  }

  .hero-content {
    order: 2; /* Move text below the image */
    text-align: center; /* Center-align text */
    margin-bottom: 1rem; /* Reduce margin */
  }

  .hero h1 {
    font-size: var(--font-size-large);
    margin-top: 1rem; /* Reduce top margin */
  }

  .hero p {
    font-size: var(--font-size-medium);
    margin-bottom: 1.5rem; /* Reduce bottom margin */
  }

  .hero-image {
    order: 1; /* Move image to the top */
    max-width: 250px; /* Reduce image size */
    margin-top: 1rem; /* Adjust spacing */
    margin-bottom: 1rem; /* Adjust spacing */
  }

  /* Services section adjustments */
  .services {
    padding: 3rem 1rem; /* Reduce padding */
  }

  .section-title {
    font-size: 2rem; /* Smaller title for mobile */
    margin-bottom: 2rem; /* Reduce margin */
  }

  .services-grid {
    grid-template-columns: 1fr; /* Single column for mobile */
    gap: 1.5rem; /* Reduce gap between cards */
  }

  .service-card {
    padding: 1.5rem; /* Reduce padding */
  }

  /* About section adjustments */
  .about-container {
    flex-direction: column;
    gap: 1rem;
  }

  .about-image {
    max-width: 300px;
    margin-bottom: 1.5rem;
  }

  .about-content {
    text-align: center;
  }

  /* Contact section adjustments */
  .contact {
    padding: 3rem 1rem; /* Reduce padding */
  }

  .contact-form {
    padding: 1.5rem; /* Reduce padding */
  }

  /* Footer adjustments */
  footer {
    padding: 1.5rem; /* Reduce padding */
  }
}
