/* Global Styles */
/* Updated Color Palette inspired by coastal hues. */
/*
  - Primary: deep coastal blue evokes professionalism and maritime heritage
  - Accent: muted evergreen provides a refined contrast without feeling too bright
  - Accent Hover: slightly darker green for subtle micro‑interaction feedback
  - Text: matches the primary for continuity
  - Background: light misty sand for generous white space
*/
:root {
  --primary-color: #013A63; /* deep coastal blue */
  /* Accent colours updated to a sand beige palette for a calm, lifestyle feel */
  --accent-color: #D8C3A5; /* sand beige */
  --accent-hover: #C2A98D; /* darker beige for hover effects */
  --text-color: #013A63; /* dark blue for readability */
  --bg-color: #F7F7F5; /* soft mist/sand background */
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-color);
  background-color: var(--bg-color);
  line-height: 1.6;
}

/* Headings use Playfair Display for a European feel */
h1, h2, h3 {
  font-family: 'Playfair Display', serif;
  letter-spacing: 0.5px;
}

/* Logo image styling */
.logo-img {
  height: 42px;
  width: auto;
  margin-right: 8px;
  vertical-align: middle;
}

/* Icon styling for value boxes and lists */
.icon {
  width: 28px;
  height: 28px;
  stroke: var(--primary-color);
  fill: none;
  stroke-width: 2;
  margin-bottom: 0.75rem;
  display: inline-block;
}

/* Process flow diagram */
.process-flow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  margin: 3rem 0;
  position: relative;
}
.process-step {
  flex: 1;
  text-align: center;
  position: relative;
  padding: 0 10px;
}
.process-step .circle {
  width: 64px;
  height: 64px;
  border: 2px solid var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.5rem;
  color: var(--primary-color);
  font-weight: 600;
  font-family: 'Playfair Display', serif;
}
.process-step .step-title {
  font-size: 0.95rem;
  color: var(--text-color);
}
.process-step::after {
  content: '';
  position: absolute;
  top: 32px;
  right: -50%;
  width: 100%;
  height: 2px;
  background: var(--primary-color);
}
.process-step:last-child::after {
  display: none;
}

/* Timeline component */
.timeline {
  margin: 3rem 0;
  position: relative;
  padding-left: 1rem;
  border-left: 2px solid var(--primary-color);
}
.timeline-item {
  position: relative;
  padding: 1rem 0 1rem 1.5rem;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -7px;
  top: 1.2rem;
  width: 14px;
  height: 14px;
  background: var(--accent-color);
  border-radius: 50%;
  border: 2px solid var(--primary-color);
}
.timeline-item h4 {
  margin-bottom: 0.25rem;
  font-size: 1.1rem;
  color: var(--primary-color);
}
.timeline-item p {
  font-size: 0.95rem;
  color: var(--text-color);
  line-height: 1.6;
}

/* Checklist styling */
.checklist {
  list-style: none;
  padding-left: 0;
  margin: 2rem 0;
}
.checklist li {
  margin-bottom: 0.75rem;
  padding-left: 2rem;
  position: relative;
  font-size: 1rem;
  color: var(--text-color);
}
.checklist li::before {
  content: '\2714'; /* Unicode checkmark */
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent-color);
  font-size: 1.2rem;
  line-height: 1;
}

/* Utility */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Header */
header {
  background-color: #ffffff;
  padding: 20px 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* Align logo and navigation horizontally */
header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo a {
  font-weight: 700;
  font-size: 1.6rem;
  text-decoration: none;
  color: var(--primary-color);
}

nav {
  /* Navigation is handled via flexbox on the container */
}

/* Navigation links */
.nav-links {
  list-style: none;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
}

/* Navigation link styling */
.nav-links li a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.3s;
}

.nav-links li a:hover {
  color: var(--accent-color);
}

/* Mobile navigation toggle button */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--primary-color);
  cursor: pointer;
}

/* Hero Section */
.hero {
  background: url('images/hero.jpg') no-repeat center center/cover;
  height: 70vh;
  position: relative;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.35);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  padding: 0 1rem;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s, color 0.3s;
  cursor: pointer;
}

.btn-primary {
  /* Primary buttons use the accent colour as background with dark text for better contrast */
  background-color: var(--accent-color);
  color: var(--primary-color);
  border: 2px solid var(--accent-color);
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  border-color: var(--accent-hover);
}

.btn-secondary {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

.btn-secondary:hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: #ffffff;
}

/* Products Preview */
.products-preview {
  padding: 4rem 0;
  background: #ffffff;
}

.products-preview h2 {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--primary-color);
  font-size: 2rem;
}

.product-grid {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.product-card {
  background: var(--bg-color);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  max-width: 300px;
  text-align: center;
  transition: transform 0.3s;
}

.product-card:hover {
  transform: translateY(-5px);
}

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

.product-card h3 {
  margin: 1rem 0 0.5rem;
  color: var(--primary-color);
  font-size: 1.3rem;
}

.product-card p {
  padding: 0 1rem 1rem;
  font-size: 0.95rem;
  color: var(--text-color);
}

/* Commitment Section */
.commitment {
  background: #e6f6fa;
  padding: 4rem 0;
}

.commitment h2 {
  text-align: center;
  margin-bottom: 1rem;
  color: var(--primary-color);
  font-size: 2rem;
}

.commitment p {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  font-size: 1rem;
  color: var(--text-color);
  line-height: 1.8;
}

/* Newsletter Section */
.newsletter {
  padding: 4rem 0;
  background: var(--bg-color);
}

.newsletter h2 {
  text-align: center;
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 2rem;
}

.newsletter p {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 1rem;
}

.newsletter form {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.newsletter input[type="email"] {
  padding: 0.75rem 1rem;
  border: 2px solid var(--primary-color);
  border-radius: 30px;
  width: 300px;
  outline: none;
  font-size: 1rem;
}

.newsletter button {
  padding: 0.75rem 1.5rem;
  border: none;
  background: var(--accent-color);
  color: #ffffff;
  border-radius: 30px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s;
}

.newsletter button:hover {
  background: var(--accent-hover);
}

/* Footer */
footer {
  background: var(--text-color);
  color: #ffffff;
  padding: 1rem 0;
  text-align: center;
}

/* Warning banner to display mandatory health warnings */
.warning-banner {
  background-color: #fff3cd;
  color: #000;
  padding: 1rem 0.5rem;
  text-align: center;
  font-weight: 600;
  line-height: 1.4;
  font-size: 0.85rem;
}
.warning-banner p {
  margin: 0.25rem 0;
}

/* Age verification overlay */
#age-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 5000;
}
#age-overlay .age-modal {
  background: #ffffff;
  color: var(--text-color);
  padding: 2rem 1.5rem;
  border-radius: 12px;
  max-width: 420px;
  text-align: center;
}
#age-overlay .age-modal p {
  margin-bottom: 1.5rem;
  line-height: 1.5;
}
#age-overlay .age-modal button {
  margin: 0 0.5rem;
  padding: 0.5rem 1.25rem;
  border: none;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
}
#age-overlay .age-modal button.yes {
  background: var(--accent-color);
  color: var(--primary-color);
}
#age-overlay .age-modal button.no {
  background: var(--primary-color);
  color: #ffffff;
}
#age-overlay .age-modal button:hover {
  filter: brightness(0.95);
}

footer p {
  font-size: 0.9rem;
}

/* Page Header (for About, Products, Contact) */
.page-header {
  background: url('images/hero.jpg') no-repeat center center/cover;
  height: 40vh;
  position: relative;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.page-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1;
}

.page-header h1 {
  position: relative;
  z-index: 2;
  font-size: 2.5rem;
  font-weight: 600;
}

/* About Page */
.about-intro {
  padding: 4rem 0;
  background: #ffffff;
}

.about-intro h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
  font-size: 2rem;
}

.about-intro p {
  max-width: 800px;
  margin: 0.5rem auto;
  font-size: 1rem;
  color: var(--text-color);
  line-height: 1.8;
  text-align: center;
}

.mission-values {
  padding: 4rem 0;
  background: var(--bg-color);
}

.values-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.value {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  padding: 2rem;
  max-width: 300px;
  text-align: center;
}

.value h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.value p {
  font-size: 1rem;
  color: var(--text-color);
  line-height: 1.6;
}

/* Products Page */
.products-list {
  padding: 4rem 0;
  background: #ffffff;
}

.products-list h1 {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--primary-color);
  font-size: 2.2rem;
}

.product-grid.large {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.product-item {
  display: flex;
  flex-wrap: wrap;
  background: var(--bg-color);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.product-item img {
  width: 100%;
  max-width: 350px;
  height: auto;
  object-fit: cover;
  flex-shrink: 0;
}

.product-info {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.product-info h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.6rem;
}

.product-info p {
  font-size: 1rem;
  color: var(--text-color);
  line-height: 1.6;
}

/* Contact Page */
.contact-section {
  padding: 4rem 0;
  background: #ffffff;
}

.contact-section h1 {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--primary-color);
  font-size: 2.2rem;
}

.contact-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.contact-info, .contact-form {
  background: var(--bg-color);
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  max-width: 500px;
  flex: 1;
}

.contact-info h3, .contact-form h3 {
  margin-bottom: 1rem;
  color: var(--primary-color);
  font-size: 1.6rem;
}

.contact-info p, .contact-info ul li {
  font-size: 1rem;
  color: var(--text-color);
  line-height: 1.6;
}

.contact-info ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-info ul li {
  margin-bottom: 0.5rem;
}

.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  padding: 0.75rem 1rem;
  border: 2px solid var(--primary-color);
  border-radius: 8px;
  font-size: 1rem;
  resize: vertical;
  outline: none;
}

.contact-form textarea {
  min-height: 120px;
}

.contact-form button {
  align-self: flex-start;
  padding: 0.75rem 1.5rem;
  border: none;
  background: var(--accent-color);
  color: #ffffff;
  border-radius: 30px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s;
}

/* Contact logo styling */
.contact-logo {
  height: 60px;
  width: auto;
  margin-bottom: 1rem;
}

/* Language switch styling */
.language-switch {
  font-size: 0.85rem;
  margin-left: auto;
}

.language-switch a {
  color: var(--text-color);
  text-decoration: none;
  margin-left: 0.5rem;
}

.language-switch a:hover {
  text-decoration: underline;
}

.contact-form button:hover {
  background: var(--accent-hover);
}

/* Responsive Styles */
@media (min-width: 769px) {
  nav {
    display: block;
  }
}

@media (max-width: 768px) {
  .nav-links {
    flex-direction: column;
    gap: 1rem;
    position: absolute;
    top: 70px;
    right: 20px;
    background: #ffffff;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: none;
  }
  /* We'll rely on default nav static display for simplicity in this version.
     A fully functional mobile menu could be implemented with JavaScript. */
  .hero {
    height: 60vh;
  }
  .hero-content h1 {
    font-size: 2.2rem;
  }
  .product-grid.large .product-item {
    flex-direction: column;
  }
  .product-item img {
    width: 100%;
    max-width: 100%;
    height: auto;
  }

  /* Show the mobile nav toggle button */
  .nav-toggle {
    display: block;
  }
}