/* =================================================================
   Modern Responsive CSS for Atlantic-Road.com
   Norway-inspired design with mobile-first approach
   ================================================================= */

/* ===== CSS VARIABLES - Norway Flag Colors & Tourism Inspired ===== */
:root {
  /* Norway Flag Colors - Softened for Tourism */
  --norway-red: #C8384F;
  --norway-blue: #1B4F8C;
  --norway-dark-blue: #003087;
  --norway-white: #FFFFFF;
  
  /* Extended Palette for Tourism Website */
  --primary-blue: var(--norway-blue);
  --accent-red: var(--norway-red);
  --text-dark: #2C3E50;
  --text-light: #6C757D;
  --white: var(--norway-white);
  --background-light: #F8F9FA;
  --border-light: #E9ECEF;
  --ocean-blue: #4A90C2;
  --mountain-gray: #95A5A6;
  
  /* Typography */
  --font-primary: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --font-secondary: Georgia, 'Times New Roman', serif;
  
  /* Spacing */
  --container-max-width: 1200px;
  --mobile-padding: 1.5rem;
  --section-padding: 2rem 0;
  --border-radius: 8px;
  
  /* Shadows */
  --shadow-light: 0 2px 4px rgba(0,0,0,0.1);
  --shadow-medium: 0 4px 8px rgba(0,0,0,0.15);
  --shadow-strong: 0 8px 16px rgba(0,0,0,0.2);
}

/* ===== RESET & BASE STYLES ===== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-primary);
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== LAYOUT STRUCTURE ===== */
.site-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.content-wrapper {
  flex: 1;
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--mobile-padding);
}

/* ===== HEADER ===== */
.site-header {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--norway-dark-blue) 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.hero-section {
  background-image: url('images/3730254708_14e26bd368_o.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  min-height: 60vh;
  display: flex;
  align-items: center;
  position: relative;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    45deg, 
    rgba(27, 79, 140, 0.1) 0%, 
    rgba(0, 48, 135, 0.15) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  padding: var(--section-padding);
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.9), 1px 1px 2px rgba(0,0,0,0.6);
  background: rgba(0, 0, 0, 0.6);
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  backdrop-filter: blur(3px);
  display: inline-block;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  font-weight: 400;
  opacity: 1;
  background: rgba(0, 0, 0, 0.5);
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  backdrop-filter: blur(3px);
  text-shadow: 2px 2px 4px rgba(0,0,0,0.8), 1px 1px 2px rgba(0,0,0,0.5);
  color: #ffffff;
  display: inline-block;
  margin-top: 1rem;
}

/* ===== NAVIGATION ===== */
.main-navigation {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-light);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem var(--mobile-padding);
  max-width: var(--container-max-width);
  margin: 0 auto;
}

.site-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-blue);
  text-decoration: none;
  display: flex;
  align-items: center;
}

.site-logo:hover {
  color: var(--norway-dark-blue);
}

/* Desktop Navigation */
.nav-menu {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu li {
  display: inline-block;
  margin-left: 2rem;
}

.nav-menu a {
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 0;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a:focus {
  color: var(--primary-blue);
  border-bottom-color: var(--accent-red);
}

/* Mobile Menu Button */
.mobile-menu-toggle {
  display: block;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-dark);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--border-radius);
  transition: all 0.3s ease;
  position: relative;
  z-index: 10001;
  /* Ensure it's above AdSense ads */
  margin-top: 1rem;
  margin-right: 1rem;
}

.mobile-menu-toggle:hover {
  background-color: var(--background-light);
  color: var(--primary-blue);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: -100%;
  width: 280px;
  height: 100vh;
  background: var(--white);
  box-shadow: var(--shadow-strong);
  z-index: 9999;
  transition: left 0.3s ease;
  overflow-y: auto;
}

.mobile-menu-overlay.active {
  left: 0;
}

.mobile-menu-header {
  padding: 1.5rem;
  background: var(--primary-blue);
  color: var(--white);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mobile-menu-close {
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-nav-menu {
  list-style: none;
  padding: 1rem 0;
}

.mobile-nav-menu li {
  border-bottom: 1px solid var(--border-light);
}

.mobile-nav-menu a {
  display: block;
  padding: 1rem 1.5rem;
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.mobile-nav-menu a:hover {
  background-color: var(--background-light);
  color: var(--primary-blue);
  padding-left: 2rem;
}

/* Mobile Menu Backdrop */
.mobile-menu-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-menu-backdrop.active {
  opacity: 1;
  visibility: visible;
}

/* ===== MAIN CONTENT ===== */
.main-content {
  padding: var(--section-padding);
  flex: 1;
}

.content-section {
  margin-bottom: 3rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-secondary);
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

h1 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--primary-blue);
  margin-bottom: 1.5rem;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  border-bottom: 3px solid var(--accent-red);
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
}

h3 {
  font-size: clamp(1.3rem, 2.5vw, 1.7rem);
  font-weight: 600;
  color: var(--norway-dark-blue);
}

h4 {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 600;
}

p {
  margin-bottom: 1.5rem;
  line-height: 1.7;
  color: var(--text-dark);
}

/* Links */
a {
  color: var(--primary-blue);
  text-decoration: underline;
  transition: color 0.3s ease;
}

a:hover,
a:focus {
  color: var(--norway-dark-blue);
  text-decoration: none;
}

/* ===== CALLOUT STYLES ===== */
.callout-info {
  background: linear-gradient(135deg, #e8f4f8 0%, #d1ecf1 100%);
  border-left: 4px solid var(--ocean-blue);
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
}

.callout-warning {
  background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
  border-left: 4px solid #f39c12;
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
}

.callout-tip {
  background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
  border-left: 4px solid #27ae60;
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
}

.callout-cultural {
  background: linear-gradient(135deg, #f8d7da 0%, #f1aeb5 100%);
  border-left: 4px solid var(--accent-red);
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
}

.callout-practical {
  background: linear-gradient(135deg, #e2e3e5 0%, #d6d8db 100%);
  border-left: 4px solid var(--mountain-gray);
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
}

.callout-box h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

/* ===== IMAGES ===== */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

.content-image {
  margin: 2rem 0;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-medium);
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--text-dark);
  color: var(--white);
  padding: 2rem 0 1rem;
  margin-top: auto;
}

.footer-content {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--mobile-padding);
  text-align: center;
}

.footer-links {
  margin-bottom: 1rem;
}

.footer-links a {
  color: var(--white);
  text-decoration: none;
  margin: 0 1rem;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.footer-links a:hover {
  opacity: 1;
  text-decoration: underline;
}

.footer-copyright {
  font-size: 0.9rem;
  opacity: 0.7;
  margin-top: 1rem;
}

/* ===== RESPONSIVE BREAKPOINTS ===== */

/* Tablet */
@media (min-width: 768px) {
  :root {
    --mobile-padding: 2rem;
  }
  
  .hero-section {
    min-height: 70vh;
  }
  
  .mobile-menu-toggle {
    display: none;
  }
  
  .nav-menu {
    display: flex;
  }
  
  .content-wrapper {
    padding: 0 2rem;
  }
  
  .callout-box {
    padding: 2rem;
  }
  
  /* Allow images to go to screen edge on mobile only */
  .content-image {
    margin-left: 0;
    margin-right: 0;
    border-radius: 0;
  }
}

/* Desktop */
@media (min-width: 1024px) {
  :root {
    --mobile-padding: 3rem;
  }
  
  .hero-section {
    min-height: 80vh;
  }
  
  .content-wrapper {
    padding: 0 3rem;
  }
  
  .content-image {
    border-radius: var(--border-radius);
  }
}

/* Large Desktop */
@media (min-width: 1200px) {
  .content-wrapper {
    padding: 0;
  }
}

/* Mobile-only styles */
@media (max-width: 767px) {
  .main-content {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
  
  .content-image {
    margin-left: -1.5rem;
    margin-right: -1.5rem;
    border-radius: 0;
  }
  
  .callout-info,
  .callout-warning,
  .callout-tip,
  .callout-cultural,
  .callout-practical {
    margin-left: -0.5rem;
    margin-right: -0.5rem;
  }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus states */
:focus {
  outline: 2px solid var(--accent-red);
  outline-offset: 2px;
}

/* Screen reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ===== PRINT STYLES ===== */
@media print {
  .mobile-menu-toggle,
  .mobile-menu-overlay,
  .mobile-menu-backdrop {
    display: none !important;
  }
  
  .hero-section {
    background: none !important;
    color: black !important;
  }
  
  a {
    color: black !important;
    text-decoration: underline !important;
  }
}