/* 
   Main stylesheet for VisitWestonSuperMare.com
   Author: Cascade
   Date: 2025-06-16
*/

:root {
  --primary-color: #0275d8;
  --secondary-color: #29b6f6;
  --accent-color: #f9e4b7;
  --text-color: #333333;
  --light-color: #ffffff;
  --dark-color: #212529;
  --section-padding: 4rem 0;
  --transition-speed: 0.3s;
  --border-radius: 8px;
  --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: 'Montserrat', 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  overflow-x: hidden;
  background-color: #fafafa;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

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

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

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

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
header {
  background-color: var(--light-color);
  box-shadow: var(--box-shadow);
  position: fixed;
  width: 100%;
  z-index: 1000;
  top: 0;
  left: 0;
  transition: background-color var(--transition-speed) ease;
}

.header-scrolled {
  background-color: rgba(255, 255, 255, 0.95);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 40px;
  margin-right: 10px;
}

.logo h1 {
  font-size: 1.5rem;
  color: var(--primary-color);
  font-weight: 700;
}

/* Navigation */
.nav-menu {
  display: flex;
  list-style: none;
}

.nav-item {
  margin-left: 2rem;
}

.nav-link {
  color: var(--dark-color);
  font-weight: 500;
  position: relative;
}

.nav-link:after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width var(--transition-speed) ease;
}

.nav-link:hover:after {
  width: 100%;
}

.hamburger {
  display: none;
  cursor: pointer;
}

.bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  transition: transform var(--transition-speed) ease;
  background-color: var(--dark-color);
}

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  background: linear-gradient(to right, rgba(2, 117, 216, 0.8), rgba(41, 182, 246, 0.8)), url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="50" fill="%2329b6f6"/><path d="M0,50 L100,50 L100,100 L0,100 Z" fill="%23f9e4b7"/></svg>');
  background-size: cover;
  background-position: center;
  color: var(--light-color);
  display: flex;
  align-items: center;
  text-align: center;
  margin-top: 0;
  padding-top: 80px;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.hero h2 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  opacity: 0.9;
}

.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all var(--transition-speed) ease;
  cursor: pointer;
}

.btn-primary {
  background-color: var(--light-color);
  color: var(--primary-color);
  border: 2px solid var(--light-color);
}

.btn-primary:hover {
  background-color: transparent;
  color: var(--light-color);
}

.btn-outline {
  background-color: transparent;
  color: var(--light-color);
  border: 2px solid var(--light-color);
  margin-left: 1rem;
}

.btn-outline:hover {
  background-color: var(--light-color);
  color: var(--primary-color);
}

/* About Section */
.about {
  padding: var(--section-padding);
  background-color: var(--light-color);
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  font-size: 2.5rem;
  color: var(--primary-color);
  position: relative;
  display: inline-block;
  margin-bottom: 1rem;
}

.section-title h2:after {
  content: "";
  position: absolute;
  width: 50%;
  height: 3px;
  background-color: var(--secondary-color);
  bottom: -10px;
  left: 25%;
}

.about-content {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
  align-items: center;
}

.about-info h3 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: var(--dark-color);
}

.about-info p {
  margin-bottom: 1.5rem;
  color: #555;
}

/* Attractions Section */
.attractions {
  padding: var(--section-padding);
  background-color: #f8f9fa;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.card {
  background-color: var(--light-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: transform var(--transition-speed) ease;
}

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

.card-image {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--secondary-color);
  color: var(--light-color);
  font-size: 1.5rem;
  font-weight: bold;
  text-align: center;
}

.card-content {
  padding: 1.5rem;
}

.card h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: var(--dark-color);
}

.card p {
  color: #555;
  margin-bottom: 1rem;
}

.card .btn {
  padding: 0.6rem 1.5rem;
  font-size: 0.9rem;
}

/* Entertainment Section */
.entertainment {
  padding: var(--section-padding);
  background-color: var(--light-color);
}

.entertainment-links {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.resource-card {
  padding: 1.5rem;
  border-radius: var(--border-radius);
  background-color: #f8f9fa;
  border-left: 4px solid var(--primary-color);
  transition: transform var(--transition-speed) ease;
}

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

.resource-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
}

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

/* Contact Section */
.contact {
  padding: var(--section-padding);
  background-color: #f8f9fa;
}

.contact-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
}

.contact-form {
  background-color: var(--light-color);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-control {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color var(--transition-speed) ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
}

.contact-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-info h3 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
}

.contact-info p {
  margin-bottom: 1.2rem;
  color: #555;
}

.contact-info ul {
  list-style: none;
  margin-bottom: 2rem;
}

.contact-info li {
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
}

.contact-info .icon {
  margin-right: 0.8rem;
  color: var(--primary-color);
  font-weight: bold;
}

/* Footer */
footer {
  background-color: var(--dark-color);
  color: #adb5bd;
  padding: 4rem 0 2rem;
  margin-top: auto;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-col h3 {
  color: var(--light-color);
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
}

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

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

.footer-col ul a {
  color: #adb5bd;
  transition: color var(--transition-speed) ease;
}

.footer-col ul a:hover {
  color: var(--light-color);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #343a40;
}

.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.footer-logo img {
  height: 40px;
  margin-right: 10px;
}

/* Media Queries */
@media screen and (max-width: 991px) {
  .about-content {
    grid-template-columns: 1fr;
  }
  
  .contact-container {
    grid-template-columns: 1fr;
  }
  
  .hero h2 {
    font-size: 2.5rem;
  }
}

@media screen and (max-width: 768px) {
  .nav-menu {
    position: fixed;
    right: -100%;
    top: 70px;
    flex-direction: column;
    background-color: var(--light-color);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-item {
    margin: 1.5rem 0;
  }

  .hamburger {
    display: block;
  }

  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
  
  .hero h2 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .btn {
    padding: 0.7rem 1.5rem;
    font-size: 0.9rem;
  }
  
  .card-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
}

@media screen and (max-width: 576px) {
  html {
    font-size: 14px;
  }
  
  .section-title h2 {
    font-size: 2rem;
  }
  
  .hero {
    min-height: 500px;
  }
  
  .btn {
    margin: 0.5rem;
  }
}
