/* css/main.css */

/* Reset for consistency */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Base styles */
body {
  font-family: 'Michroma', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #e9f8f8;
}

h1 {
  font-family: 'Michroma', sans-serif; /* Test Michroma for h1 */
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 1.5rem;
}

h2 {
  font-family: 'Michroma', sans-serif; /* Test Righteous for h2 */
  font-size: 2rem;
  text-align: center;
  margin-bottom: 1.5rem;
}

h3 {
  font-family: 'Michroma', sans-serif; /* Match h2 for consistency */
  font-size: 1.5rem;
  text-align: center;
  margin-bottom: 1rem;
}

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

/* Header */
header {
  background: #2c3e50;
  color: white;
  padding: 1rem 0;
}

nav ul {
  display: flex;
  list-style: none;
  justify-content: center;
}

nav ul li {
  margin: 0 1rem;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

nav ul li a:hover {
  text-decoration: underline;
}

/* Main content */
main {
  padding: 2rem 0;
}

/* Shop-specific styles */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.product-card {
  border: 1px solid #ddd;
  padding: 1rem;
  text-align: center;
}

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

.product-card a {
  display: inline-block;
  background: #3498db;
  color: white;
  padding: 0.5rem 1rem;
  text-decoration: none;
  margin-top: 1rem;
}

.product-card a:hover {
  background: #2980b9;
}

/* Footer */
footer {
  background: #2c3e50;
  color: white;
  text-align: center;
  padding: 1rem 0;
  margin-top: 2rem;
}

/* Responsive design */
@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    text-align: center;
  }
  nav ul li {
    margin: 0.5rem 0;
  }
}
 
/* Hero section with gallery */
.hero {
  position: relative;
  height: 500px;
  color: white;
  text-align: center;
  padding: 4rem 0;
  border-radius: 8px;
  margin-bottom: 2rem;
  overflow: hidden;
}

.hero-gallery {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
}

.hero-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  animation: slideShow 15s infinite;
}

.hero-gallery img:nth-child(1) { animation-delay: 0s; }
.hero-gallery img:nth-child(2) { animation-delay: 5s; }
.hero-gallery img:nth-child(3) { animation-delay: 10s; }

@keyframes slideShow {
  0% { opacity: 0; }
  6.67% { opacity: 1; }
  33.33% { opacity: 1; }
  40% { opacity: 0; }
  100% { opacity: 0; }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin: 0 auto;
}

.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* Improve readability */
}

.hero p {
  max-width: 600px;
  margin: 0 auto;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .hero {
    height: 400px;
  }
  .hero h2 {
    font-size: 1.8rem;
  }
}

/* Surf spots section */
.surf-spots {
  margin-bottom: 2rem;
}

.surf-spots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.surf-spot {
  border: 1px solid #ddd;
  padding: 1rem;
  text-align: center;
}

.surf-spot img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.surf-spot a {
  color: #3498db;
  text-decoration: none;
  font-weight: bold;
}

.surf-spot a:hover {
  text-decoration: underline;
}

/* Dropdown FAQ boxes */
.faq {
  margin-bottom: 2rem;
}

.faq summary {
  cursor: pointer;
  background: #f4f4f4;
  padding: 1rem;
  border-radius: 8px;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.faq details[open] summary {
  background: #3498db;
  color: white;
}

.faq details p {
  padding: 1rem;
  border: 1px solid #ddd;
  border-radius: 0 0 8px 8px;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .hero h2 {
    font-size: 1.8rem;
  }
}

/* Product grid styles */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-top: 1rem;
}

.product-card {
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
  background-color: #fff;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

.product-card img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 0.5rem;
}

.product-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.product-card p {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 0.5rem;
}

.product-card a {
  background: #008080;
  color: white;
  padding: 0.5rem 1rem;
  text-decoration: none;
  border-radius: 6px;
  display: inline-block;
  font-weight: bold;
}

/* contact form */

form {
  max-width: 600px;
  margin: 0 auto;
}
form p {
  margin-bottom: 1rem;
}
form label {
  display: block;
  font-weight: bold;
}
form input, form textarea {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}
form .hidden {
  display: none;
}
.hero-cta {
  background: #166891;
  color: white;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}