/* Edinburgh Castle Tickets & Tours - Main Styles */

:root {
  --primary-color: #2c3e50;
  --secondary-color: #8b4513;
  --accent-color: #d4af37;
  --text-dark: #333;
  --text-light: #666;
  --bg-light: #f8f9fa;
  --white: #ffffff;
  --border-color: #e0e0e0;
  --shadow: 0 2px 10px rgba(0,0,0,0.1);
  --shadow-hover: 0 4px 20px rgba(0,0,0,0.15);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  font-size: 16px;
}

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

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

a:hover {
  color: var(--secondary-color);
}

/* Header */
.header {
  background: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-color);
}

.logo img {
  width: 50px;
  height: 50px;
}

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

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  font-weight: 500;
  white-space: nowrap;
}

.lang-switcher {
  position: relative;
}

.lang-current {
  cursor: pointer;
  padding: 0.5rem 1rem;
  background: var(--bg-light);
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}

.lang-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 0.5rem;
  background: var(--white);
  box-shadow: var(--shadow-hover);
  border-radius: 8px;
  padding: 0.5rem 0;
  min-width: 200px;
  display: none;
}

.lang-dropdown.active {
  display: block;
}

.lang-dropdown a {
  display: block;
  padding: 0.75rem 1.5rem;
  transition: background 0.2s ease;
}

.lang-dropdown a:hover {
  background: var(--bg-light);
}

.cta-btn {
  background: var(--accent-color);
  color: var(--primary-color);
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-block;
}

.cta-btn:hover {
  background: var(--secondary-color);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

/* Mobile Menu */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--primary-color);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #1a2735 0%, #2c3e50 50%, #243447 100%);
  color: var(--white);
  padding: 4rem 2rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('../images/edinburghcastle.jpg') center/cover;
  opacity: 0.2;
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 0;
  pointer-events: none;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  line-height: 1.2;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8), 0 4px 16px rgba(0, 0, 0, 0.6);
}

.hero-content p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 1;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9), 0 2px 8px rgba(0, 0, 0, 0.7);
}

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

.hero-widget {
  background: var(--white);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: var(--shadow-hover);
}

/* Main Content */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

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

.content-section:last-child {
  margin-bottom: 0;
}

h1 {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

h2 {
  font-size: 2rem;
  color: var(--primary-color);
  margin: 2.5rem 0 1.5rem;
  line-height: 1.3;
}

h3 {
  font-size: 1.5rem;
  color: var(--secondary-color);
  margin: 2rem 0 1rem;
  line-height: 1.4;
}

p {
  margin-bottom: 1rem;
  color: var(--text-light);
}

ul, ol {
  margin: 1rem 0 1rem 2rem;
  color: var(--text-light);
}

li {
  margin-bottom: 0.5rem;
}

strong {
  color: var(--text-dark);
  font-weight: 600;
}

/* Info Cards */
.info-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.info-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2rem;
  transition: all 0.3s ease;
}

.info-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.info-card h3 {
  margin-top: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.info-card-icon {
  font-size: 1.75rem;
}

/* Table */
.price-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.price-table th {
  background: var(--primary-color);
  color: var(--white);
  padding: 1rem;
  text-align: left;
  font-weight: 600;
}

.price-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.price-table tr:last-child td {
  border-bottom: none;
}

.price-table tr:hover {
  background: var(--bg-light);
}

/* Alert Box */
.alert-box {
  background: #fff3cd;
  border-left: 4px solid #ffc107;
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: 4px;
}

.alert-box strong {
  display: block;
  margin-bottom: 0.5rem;
  color: #856404;
}

/* Widget Container */
.widget-container {
  background: var(--bg-light);
  padding: 2rem;
  border-radius: 12px;
  margin: 3rem 0;
}

.widget-container h3 {
  margin-top: 0;
  text-align: center;
}

/* Navigation Links */
.nav-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 3rem 0;
}

.nav-card {
  background: var(--white);
  border: 2px solid var(--border-color);
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
  display: block;
}

.nav-card:hover {
  border-color: var(--accent-color);
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.nav-card h3 {
  margin: 0;
  font-size: 1.25rem;
  color: var(--primary-color);
}

/* Footer */
.footer {
  background: var(--primary-color);
  color: var(--white);
  padding: 3rem 2rem 2rem;
  margin-top: 4rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
}

.footer-section h4 {
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.footer-section ul {
  list-style: none;
  margin: 0;
}

.footer-section ul li {
  margin-bottom: 0.75rem;
}

.footer-section a {
  color: rgba(255,255,255,0.8);
}

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

.disclaimer {
  background: rgba(0,0,0,0.2);
  padding: 2rem;
  margin-top: 3rem;
  border-radius: 8px;
  font-size: 0.9rem;
  line-height: 1.8;
}

.footer-bottom {
  text-align: center;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  opacity: 0.8;
}

/* Responsive */
@media (max-width: 968px) {
  .hero-container {
    grid-template-columns: 1fr;
  }
  
  .hero-content h1 {
    font-size: 2.25rem;
  }
  
  .nav-links {
    display: none;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .header-container {
    padding: 1rem;
  }
  
  .container {
    padding: 2rem 1rem;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  h3 {
    font-size: 1.25rem;
  }
}

@media (max-width: 640px) {
  .hero-cta {
    flex-direction: column;
  }
  
  .hero-widget {
    padding: 1.5rem;
  }
  
  .info-cards,
  .nav-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-container {
    grid-template-columns: 1fr;
  }
}
