/* Main Stylesheet for Marine Thruster Specialists */

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

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f8f8f8;
}

a {
  color: #0066cc;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #004080;
}

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

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

/* Layout */
.site {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-content {
  flex: 1;
  padding: 2rem 0;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header Styles */
.site-header {
  background-color: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.logo-container {
  display: flex;
  align-items: center;
}

.site-title {
  font-size: 1.5rem;
  margin: 0;
}

.site-title a {
  color: #333;
  text-decoration: none;
}

.custom-logo {
  font-weight: bold;
  font-size: 1.5rem;
  color: #0066cc;
}

.contact-info {
  text-align: right;
}

.contact-text {
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.phone-number {
  font-size: 1.25rem;
  font-weight: bold;
  color: #0066cc;
}

.service-area {
  background-color: #0066cc;
  color: #fff;
  text-align: center;
  padding: 0.5rem;
  font-size: 0.9rem;
}

/* Navigation */
.main-navigation {
  background-color: #004080;
}

.menu-primary-container {
  max-width: 1200px;
  margin: 0 auto;
}

.nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu li {
  position: relative;
}

.nav-menu a {
  display: block;
  padding: 1rem;
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.nav-menu a:hover,
.nav-menu .current-menu-item > a,
.nav-menu .current_page_item > a {
  background-color: #0066cc;
}

.menu-toggle {
  display: none;
  background-color: #004080;
  color: #fff;
  border: none;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  cursor: pointer;
}

/* Hero Section */
.hero-section {
  display: flex;
  background-color: #f0f5ff;
  padding: 3rem 1rem;
  margin-bottom: 2rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.hero-content {
  flex: 1;
  padding-right: 2rem;
}

.hero-content h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #004080;
}

.hero-content p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
}

.hero-button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: bold;
  text-align: center;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.hero-button.primary {
  background-color: #0066cc;
  color: #fff;
}

.hero-button.primary:hover {
  background-color: #004080;
}

.hero-button.secondary {
  background-color: #fff;
  color: #0066cc;
  border: 2px solid #0066cc;
}

.hero-button.secondary:hover {
  background-color: #f0f5ff;
}

.hero-image {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Services Overview */
.services-overview {
  max-width: 1200px;
  margin: 0 auto 3rem;
  padding: 0 1rem;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #004080;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2rem;
}

.service-card {
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.service-card .image-placeholder {
  height: 180px;
  background-color: #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  font-size: 0.9rem;
}

.service-card h3 {
  padding: 1rem 1rem 0.5rem;
  font-size: 1.25rem;
  color: #004080;
}

.service-card p {
  padding: 0 1rem 1rem;
  font-size: 0.9rem;
}

.read-more {
  display: block;
  padding: 0.5rem 1rem 1rem;
  color: #0066cc;
  font-weight: 500;
  text-align: right;
}

/* Content Sections */
.content-section {
  display: flex;
  max-width: 1200px;
  margin: 0 auto 3rem;
  padding: 2rem 1rem;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.content-section.alt-bg {
  background-color: #f0f5ff;
}

.text-content {
  flex: 1;
  padding-right: 2rem;
}

.text-content h2 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  color: #004080;
}

.text-content p {
  margin-bottom: 1rem;
}

.benefits-list {
  margin: 1rem 0 1.5rem 1.5rem;
}

.benefits-list li {
  margin-bottom: 0.5rem;
}

.image-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-placeholder {
  width: 100%;
  height: 300px;
  background-color: #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  font-size: 0.9rem;
}

.cta-button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: #0066cc;
  color: #fff;
  border-radius: 4px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.cta-button:hover {
  background-color: #004080;
  color: #fff;
}

/* Testimonials */
.testimonials {
  max-width: 1200px;
  margin: 0 auto 3rem;
  padding: 2rem 1rem;
  background-color: #f0f5ff;
  border-radius: 8px;
}

.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.testimonial {
  flex: 1;
  min-width: 300px;
  background-color: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  position: relative;
}

.testimonial:before {
  content: '"';
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 3rem;
  color: #e0e0e0;
  font-family: Georgia, serif;
  line-height: 1;
}

.testimonial p {
  position: relative;
  z-index: 1;
}

.testimonial-author {
  margin-top: 1rem;
  font-style: italic;
  color: #666;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

/* Brands Section */
.brands-section {
  max-width: 1200px;
  margin: 0 auto 3rem;
  padding: 2rem 1rem;
  text-align: center;
}

.brands-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}

.brand {
  width: 150px;
}

.brand .image-placeholder {
  height: 100px;
  margin-bottom: 0.5rem;
}

.brand p {
  font-size: 0.9rem;
  color: #666;
}

/* CTA Section */
.cta-section {
  max-width: 1200px;
  margin: 0 auto 3rem;
  padding: 3rem 1rem;
  text-align: center;
  background-color: #004080;
  color: #fff;
  border-radius: 8px;
}

.cta-section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.cta-section p {
  margin-bottom: 1.5rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.cta-section .cta-button {
  background-color: #fff;
  color: #004080;
}

.cta-section .cta-button:hover {
  background-color: #f0f5ff;
}

/* Page Header */
.page-header {
  max-width: 1200px;
  margin: 0 auto 2rem;
  padding: 2rem 1rem;
  text-align: center;
}

.entry-title {
  font-size: 2.5rem;
  color: #004080;
}

/* Footer */
.site-footer {
  background-color: #004080;
  color: #fff;
  padding: 3rem 0 0;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.footer-section {
  flex: 1;
  min-width: 250px;
  margin-bottom: 2rem;
}

.widget-title {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: #fff;
}

.footer-section p {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.footer-section a {
  color: #fff;
  text-decoration: underline;
}

.footer-section a:hover {
  color: #ccc;
}

.copyright {
  background-color: #003366;
  padding: 1rem;
  text-align: center;
  font-size: 0.8rem;
}

.copyright a {
  color: #fff;
}

/* Services Page */
.service-button {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: #0066cc;
  color: #fff;
  border-radius: 4px;
  font-size: 0.9rem;
  margin: 0 1rem 1rem;
  text-align: center;
  transition: background-color 0.3s ease;
}

.service-button:hover {
  background-color: #004080;
  color: #fff;
}

/* Comparison Table */
.comparison-table {
  max-width: 1200px;
  margin: 0 auto 3rem;
  padding: 0 1rem;
}

.comparison-table h2 {
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  color: #004080;
  text-align: center;
}

.table-container {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
}

th,
td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

th {
  background-color: #004080;
  color: #fff;
}

tr:nth-child(even) {
  background-color: #f2f2f2;
}

/* FAQ Section */
.faq-section {
  max-width: 1200px;
  margin: 0 auto 3rem;
  padding: 0 1rem;
}

.faq-section h2 {
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  color: #004080;
  text-align: center;
}

.faq-item {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #ddd;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-item h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: #004080;
}

/* Contact Page */
.contact-container {
  display: flex;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto 3rem;
  gap: 2rem;
  padding: 0 1rem;
}

.contact-info-section,
.contact-form-section {
  flex: 1;
  min-width: 300px;
}

.contact-details {
  margin-top: 2rem;
}

.contact-item {
  margin-bottom: 1.5rem;
}

.contact-item h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: #004080;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
}

.submit-button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: #0066cc;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.submit-button:hover {
  background-color: #004080;
}

.map-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.map-section h2 {
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  color: #004080;
  text-align: center;
}

.map-container {
  margin-bottom: 1rem;
}

.map-container p {
  text-align: center;
  margin-top: 0.5rem;
  font-style: italic;
}

/* Gallery Page */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto 3rem;
  padding: 0 1rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.gallery-item .image-placeholder {
  height: 250px;
  transition: transform 0.3s ease;
}

.gallery-item:hover .image-placeholder {
  transform: scale(1.05);
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 0.75rem;
  font-size: 0.9rem;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-caption {
  transform: translateY(0);
}

/* Privacy Policy Page */
.privacy-policy-content {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1rem;
}

.privacy-policy-content h2 {
  font-size: 1.75rem;
  margin: 2rem 0 1rem;
  color: #004080;
}

.privacy-policy-content h3 {
  font-size: 1.25rem;
  margin: 1.5rem 0 0.75rem;
  color: #004080;
}

.privacy-policy-content p {
  margin-bottom: 1rem;
}

.privacy-policy-content ul {
  margin: 1rem 0 1.5rem 1.5rem;
}

.privacy-policy-content li {
  margin-bottom: 0.5rem;
}

/* Cookie Preferences Page */
.cookie-preferences-content {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1rem;
}

.cookie-preferences-content h2 {
  font-size: 1.75rem;
  margin: 2rem 0 1rem;
  color: #004080;
}

.cookie-preferences-content p {
  margin-bottom: 1rem;
}

.cookie-options {
  margin: 2rem 0;
}

.cookie-option {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #ddd;
}

.cookie-option:last-child {
  border-bottom: none;
}

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

.cookie-option h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: #004080;
}

.cookie-toggle {
  margin-left: 1rem;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 34px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .toggle-slider {
  background-color: #0066cc;
}

input:focus + .toggle-slider {
  box-shadow: 0 0 1px #0066cc;
}

input:checked + .toggle-slider:before {
  transform: translateX(26px);
}

.save-preferences {
  text-align: center;
  margin-top: 2rem;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #fff;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  padding: 1rem;
  z-index: 1000;
  display: none;
}

.cookie-banner.show {
  display: block;
}

.cookie-banner-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

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

.cookie-banner-text h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: #004080;
}

.cookie-banner-buttons {
  display: flex;
  gap: 1rem;
}

.cookie-banner-button {
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.cookie-banner-button.accept {
  background-color: #0066cc;
  color: #fff;
  border: none;
}

.cookie-banner-button.accept:hover {
  background-color: #004080;
}

.cookie-banner-button.preferences {
  background-color: #fff;
  color: #0066cc;
  border: 1px solid #0066cc;
}

.cookie-banner-button.preferences:hover {
  background-color: #f0f5ff;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    text-align: center;
  }

  .contact-info {
    text-align: center;
    margin-top: 1rem;
  }

  .menu-toggle {
    display: block;
    width: 100%;
  }

  .nav-menu {
    display: none;
    flex-direction: column;
  }

  .nav-menu.show {
    display: flex;
  }

  .hero-section {
    flex-direction: column;
  }

  .hero-content {
    padding-right: 0;
    margin-bottom: 2rem;
  }

  .content-section {
    flex-direction: column;
  }

  .text-content {
    padding-right: 0;
    margin-bottom: 2rem;
  }

  .content-section.alt-bg {
    flex-direction: column-reverse;
  }

  .footer-section {
    flex: 100%;
  }
}

@media (max-width: 480px) {
  .hero-buttons {
    flex-direction: column;
  }

  .hero-button {
    width: 100%;
  }

  .cta-button {
    display: block;
    width: 100%;
  }
}
