/* Stylesheet for Alamar Centro Náutico website */

/* Define a simple colour palette based on the company logo.  
   The primary colour is a deep nautical blue and the secondary
   colour is a warm orange taken from the sail in the logo. */
:root {
  --primary-color: #00539B;    /* deep blue from the logo */
  --secondary-color: #F28B20;  /* warm orange from the logo */
  --light-color: #F5F9FC;      /* very light blue for backgrounds */
  --dark-color: #003E7E;       /* darker shade of blue for footers */
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: var(--light-color);
}

/* Navigation bar */
header {
  background-color: var(--primary-color);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 20px;
}
.navbar .logo {
  display: flex;
  align-items: center;
}
/* Increase the size of the logo to make it more prominent */
/* Increase the size of the logo to make it more prominent */
.navbar .logo img {
  /* Set a larger height so the logo stands out on the navigation bar.  */
  height: 160px;
  width: auto;
  margin-right: 10px;
}
.navbar nav a {
  color: #fff;
  margin-left: 20px;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}
.navbar nav a:hover {
  color: var(--secondary-color);
}

/* Hero section */
.hero {
  height: 70vh;
  background: url('../images/hero.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  color: #fff;
}
.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.45);
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 0 20px;
}
.hero-content h1 {
  font-size: 2.8rem;
  margin-bottom: 15px;
  line-height: 1.2;
}
.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 25px;
}
.btn {
  display: inline-block;
  background-color: var(--secondary-color);
  color: #fff;
  padding: 12px 24px;
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
  transition: background-color 0.2s ease;
}
.btn:hover {
  background-color: #cf7018; /* darker orange on hover */
}

/* General section styles */
section {
  padding: 60px 20px;
}
.section-dark {
  background-color: #fff;
}
.section-light {
  background-color: var(--light-color);
}
.container {
  max-width: 1200px;
  margin: 0 auto;
}
.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 40px;
  color: var(--primary-color);
}

/* Features / services grid */
.features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}
.feature {
  flex: 1 1 250px;
  background-color: #fff;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: transform 0.2s ease;
}
.feature:hover {
  transform: translateY(-5px);
}
.feature h3 {
  color: var(--primary-color);
  margin-top: 0;
}

/* Gallery page */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.gallery img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Footer */
footer {
  background-color: var(--dark-color);
  color: #fff;
  padding: 30px 20px;
}
.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 1000px;
  margin: 0 auto;
}
.footer-content p {
  margin: 5px 0;
}
.footer-content a {
  color: var(--secondary-color);
  text-decoration: none;
}
.footer-content a:hover {
  text-decoration: underline;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .navbar nav a {
    margin-left: 10px;
  }
  .hero-content h1 {
    font-size: 2.2rem;
  }
  .hero-content p {
    font-size: 1rem;
  }
}

/* Mobile navigation toggle icon */
.menu-toggle {
  display: none;
  font-size: 2rem;
  cursor: pointer;
  color: #fff;
}

/* Reviews section styling */
.reviews {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  margin-top: 40px;
}
.review {
  background-color: #fff;
  border-radius: 8px;
  padding: 20px;
  max-width: 600px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  color: #333;
}
.review .stars {
  color: #FFC107;
  font-size: 1.2rem;
  margin-bottom: 10px;
}
.review p {
  margin: 0;
  font-style: italic;
}
.review .author {
  margin-top: 10px;
  font-weight: bold;
  color: var(--primary-color);
}

/* Responsive navigation for small screens */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  .navbar {
    flex-wrap: wrap;
  }
  .navbar nav {
    display: none;
    flex-direction: column;
    background-color: var(--primary-color);
    width: 100%;
    padding: 10px 0;
  }
  .navbar nav a {
    margin: 10px 20px;
  }
  .navbar nav.active {
    display: flex;
  }
}

/* Brands section styling */
.brands-section {
  padding-top: 40px;
  padding-bottom: 60px;
}

/* Container that holds all brand items */
/* Container for the brand logos/names */
/* Brands container: align logos and names on a single horizontal line */
.brands {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 40px;
}

/* Each brand displayed in a row with centred alignment */
.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
}

/* Text-only brand names */
.brand-text {
  font-weight: bold;
  font-size: 1.4rem;
  color: var(--primary-color);
}

/* SVG icons for brands: uniform size and colour */
.brand-icon {
  width: 60px;
  height: 60px;
  fill: var(--primary-color);
}

/* Image logos (e.g. Raymarine, B&G): uniform height */
.brand-img {
  height: 60px;
  width: auto;
}