/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Arimo', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #272727;
  background-color: #f8f8f8;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.hidden {
  display: none;
}

/* Button Styles */
.btn-primary {
  display: inline-block;
  padding: 10px 25px;
  background-color: #4775a3;
  color: white;
  border: none;
  border-radius: 4px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn-primary:hover {
  background-color: #39454d;
}

.btn-secondary {
  display: inline-block;
  padding: 10px 25px;
  background-color: transparent;
  color: #272727;
  border: 1px solid #272727;
  border-radius: 4px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background-color: #272727;
  color: white;
}

/* Cookie Consent Styles */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: white;
  padding: 20px;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.cookie-consent p {
  margin-bottom: 10px;
}

.cookie-buttons {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.cookie-settings {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 800px;
  background-color: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
  z-index: 1100;
}

.cookie-settings h2 {
  margin-bottom: 20px;
  font-size: 24px;
}

.cookie-option {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 25px;
  padding-bottom: 25px;
  border-bottom: 1px solid #eee;
}

.cookie-option-text {
  flex: 1;
}

.cookie-option-text h3 {
  margin-bottom: 10px;
  font-size: 18px;
}

.cookie-option-toggle {
  width: 50px;
  height: 26px;
  background-color: #ccc;
  border-radius: 13px;
  position: relative;
  cursor: pointer;
  margin-left: 20px;
  flex-shrink: 0;
}

.cookie-option-toggle.enabled {
  background-color: #4775a3;
}

.cookie-option-toggle::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  background-color: white;
  border-radius: 50%;
  top: 3px;
  left: 3px;
  transition: left 0.3s ease;
}

.cookie-option-toggle.enabled::after {
  left: 27px;
}

.cookie-policy-link {
  color: #4775a3;
  text-decoration: underline;
  display: inline-block;
  margin-top: 15px;
}

/* Header Styles */
.main-header {
  background-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  padding: 15px 0;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
}

.main-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo a {
  font-size: 24px;
  font-weight: 700;
  color: #272727;
}

.contact-number a {
  display: inline-block;
  padding: 8px 20px;
  background-color: #4775a3;
  color: white;
  border-radius: 4px;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.contact-number a:hover {
  background-color: #39454d;
}

/* Hero Section */
.hero-section {
  height: 500px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  margin-top: 60px;
}

.hero-section .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.hero-section .container {
  position: relative;
  z-index: 1;
}

.hero-section h1 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 20px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

/* Section Styles */
.service-section {
  padding: 70px 0;
}

.bg-white {
  background-color: white;
}

.bg-light {
  background-color: #f8f8f8;
}

.bg-blue {
  background-color: #6993bc;
  color: white;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title .sub-title {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #4775a3;
  margin-bottom: 10px;
  letter-spacing: 2px;
}

.section-title.light .sub-title {
  color: #fff;
}

.section-title h2 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 20px;
}

.title-decoration {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.title-decoration span {
  display: block;
  width: 30px;
  height: 2px;
  background-color: #4775a3;
}

.bg-blue .title-decoration span {
  background-color: white;
}

.title-decoration .middle-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #4775a3;
}

.bg-blue .title-decoration .middle-dot {
  background-color: white;
}

.service-content {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

.text-content {
  flex: 1;
  min-width: 300px;
}

.service-images {
  flex: 1;
  min-width: 300px;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 15px;
}

/* Cards Styles */
.cards-container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}

.card {
  background-color: white;
  padding: 30px;
  border-radius: 8px;
  flex: 1;
  min-width: 250px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.bg-blue .card {
  color: #272727;
}

.card-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 15px;
  position: relative;
  padding-top: 15px;
}

.card-title::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 30px;
  height: 3px;
  background-color: #4775a3;
}

/* Emergency Content */
.emergency-content {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
}

.image-side, .text-side {
  flex: 1;
  min-width: 300px;
}

.text-side .section-title {
  text-align: left;
}

.text-side .title-decoration {
  justify-content: flex-start;
}

/* Roofing Options */
.roofing-options {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}

.option-card {
  flex: 1;
  min-width: 250px;
  padding: 30px;
  background-color: #f8f8f8;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.option-card h3 {
  margin-bottom: 15px;
  font-size: 20px;
  font-weight: 600;
}

/* Flat Roofing Content */
.flat-roofing-content {
  margin-top: 40px;
}

.roofing-gallery {
  display: flex;
  overflow-x: auto;
  gap: 15px;
  margin: 30px 0;
  padding: 10px 0;
  scrollbar-width: none;
}

.roofing-gallery::-webkit-scrollbar {
  display: none;
}

.gallery-img {
  min-width: 250px;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
}

.gallery-nav {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
}

.gallery-nav button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: white;
  border: 1px solid #ddd;
  cursor: pointer;
  transition: all 0.3s ease;
}

.gallery-nav button:hover {
  background-color: #4775a3;
  color: white;
  border-color: #4775a3;
}

/* Service Cards */
.service-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}

.service-card {
  flex: 1;
  min-width: 250px;
  background-color: #f8f8f8;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.service-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.service-card h3 {
  padding: 20px;
  font-size: 20px;
  font-weight: 600;
}

.service-card .btn-primary {
  margin: 0 20px 20px;
}

/* Blog Cards */
.blog-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}

.blog-card {
  flex: 1;
  min-width: 300px;
  background-color: #f8f8f8;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.blog-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.blog-card h3 {
  padding: 20px 20px 0;
  font-size: 20px;
  font-weight: 600;
}

.blog-card p {
  padding: 15px 20px 20px;
}

/* Contact Section */
.contact-section {
  background-color: white;
  padding: 70px 0;
}

.contact-section .section-title {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 40px;
}

.contact-form {
  max-width: 700px;
  margin: 0 auto;
}

.form-row {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.form-row input {
  flex: 1;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
}

textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
  margin-bottom: 20px;
  resize: vertical;
}

/* Footer */
.main-footer {
  background-color: #272727;
  color: white;
  padding: 70px 0 30px;
}

.footer-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-column {
  flex: 1;
  min-width: 250px;
}

.footer-column h3 {
  margin-bottom: 20px;
  font-size: 20px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a:hover {
  color: #4775a3;
}

.copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

.copyright p {
  margin-bottom: 5px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .hero-section h1 {
    font-size: 36px;
  }

  .section-title h2 {
    font-size: 28px;
  }

  .form-row {
    flex-direction: column;
    gap: 15px;
  }

  .service-content,
  .emergency-content,
  .cards-container,
  .roofing-options,
  .service-cards,
  .blog-cards {
    flex-direction: column;
  }

  .text-side .section-title {
    text-align: center;
  }

  .text-side .title-decoration {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .main-header .container {
    flex-direction: column;
    gap: 15px;
  }

  .hero-section {
    height: 400px;
  }

  .hero-section h1 {
    font-size: 28px;
  }

  .option-card,
  .card {
    padding: 20px;
  }

  .contact-section,
  .service-section {
    padding: 50px 0;
  }
}
