/* ==========================================================================
   Club 41 Suisse - Global Styles
   ========================================================================== */

:root {
  /* Brand Colors */
  --primary-blue: #003366;
  --accent-gold: #C5A059;
  --bg-white: #FFFFFF;
  --soft-grey: #F8F9FA;
  --text-dark: #333333;

  /* Typography */
  --font-main: 'Inter', 'Roboto', sans-serif;
  
  /* Layout constraints */
  --container-max-width: 1100px;
  --header-height: 80px;
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-white);
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-top: var(--header-height); /* Offset for sticky header */
}

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

a {
  color: var(--primary-blue);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--accent-gold);
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600; /* Semi-bold */
  color: var(--primary-blue);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.text-center { text-align: center; }

/* ==========================================================================
   Utility Classes
   ========================================================================== */
.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

.bg-grey {
  background-color: var(--soft-grey);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: 600;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background-color: var(--primary-blue);
  color: var(--bg-white);
  border-color: var(--primary-blue);
}

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

.btn-outline {
  background-color: transparent;
  color: var(--bg-white);
  border: 2px solid var(--bg-white);
}

.btn-outline:hover {
  background-color: var(--bg-white);
  color: var(--primary-blue);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: var(--bg-white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  z-index: 1000;
  display: flex;
  align-items: center;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo img {
  height: 50px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  color: var(--text-dark);
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent-gold);
}

.lang-switch {
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  gap: 0.5rem;
  color: var(--text-dark);
}

.lang-switch a {
  color: var(--text-dark);
}

.lang-switch a.active {
  color: var(--accent-gold);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.mobile-menu-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--primary-blue);
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  background-color: var(--primary-blue);
  /* Placeholder image, can be replaced via JS or specific CSS later */
  background-image: url('../assets/img/hero-bg.webp'); 
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 51, 102, 0.7); /* Navy Blue overlay */
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--bg-white);
  max-width: 800px;
}

.hero-content h1 {
  color: var(--bg-white);
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
}

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

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

/* ==========================================================================
   Map Section
   ========================================================================== */
.map-container {
  height: 500px;
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  margin-top: 2rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background-color: var(--primary-blue);
  color: var(--bg-white);
  padding: 4rem 0 2rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-col h4 {
  color: var(--accent-gold);
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.5rem;
}

.footer-col a {
  color: var(--bg-white);
}

.footer-col a:hover {
  color: var(--accent-gold);
}

.footer-logo {
  height: 60px;
  margin-bottom: 1rem;
}

/* ==========================================================================
   Page Header (Subpages)
   ========================================================================== */
.page-header {
  position: relative;
  padding: 6rem 0 4rem;
  text-align: center;
  background-color: var(--primary-blue);
  background-image: url('../assets/img/hero-bg.webp');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--bg-white);
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 51, 102, 0.75);
  z-index: 1;
}

.page-header .container {
  position: relative;
  z-index: 2;
}

.page-header h1 {
  color: var(--bg-white);
  margin-bottom: 0.5rem;
}

.page-header p {
  font-size: 1.1rem;
  opacity: 0.9;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 992px) {
  .hero-content h1 { font-size: 2.8rem; }
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    top: var(--header-height);
    left: -100%;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background-color: var(--bg-white);
    flex-direction: column;
    justify-content: center;
    transition: left 0.3s ease;
  }

  .nav.active {
    left: 0;
  }

  .nav-links {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }

  .nav-links a {
    font-size: 1.5rem;
  }

  .lang-switch {
    margin-top: 2rem;
    font-size: 1.2rem;
  }

  .hero { min-height: 60vh; }
  .hero-content h1 { font-size: 2.2rem; }
  
  .hero-buttons {
    flex-direction: column;
  }
}
