/* Swansea Bayways - Cycle Page Stylesheet */
/* Self-contained, no external dependencies */

/* Base Reset & Typography */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  margin: 0 0 1rem;
  font-weight: 600;
  line-height: 1.3;
  color: #1a1a1a;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }

p {
  margin: 0 0 1rem;
}

a {
  color: #0066cc;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #004499;
  text-decoration: underline;
}

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

/* Header Section */
.elementor-location-header {
  position: sticky;
  top: 0;
  z-index: 100;
}

.elementor-location-header .elementor-section-wrap > section {
  background: linear-gradient(135deg, #1e5799 0%, #2989d8 50%, #207cca 100%);
  padding: 0.75rem 0;
}

.elementor-location-header .elementor-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.elementor-location-header .elementor-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.elementor-location-header .elementor-col-50 {
  flex: 0 0 50%;
}

.elementor-location-header .elementor-image img {
  max-height: 60px;
  width: auto;
}

/* Navigation */
.elementor-nav-menu--main {
  display: flex;
  align-items: center;
}

.elementor-nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 1.5rem;
}

.elementor-nav-menu .menu-item {
  position: relative;
}

.elementor-nav-menu .elementor-item {
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 0.5rem 0;
  display: block;
  position: relative;
}

.elementor-nav-menu .elementor-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #fff;
  transition: width 0.3s ease;
}

.elementor-nav-menu .elementor-item:hover::after,
.elementor-nav-menu .current-menu-item .elementor-item::after {
  width: 100%;
}

.elementor-nav-menu .current-menu-item .elementor-item {
  font-weight: 600;
}

/* Mobile Menu Toggle */
.elementor-menu-toggle {
  display: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

.elementor-nav-menu--dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #1e5799;
  padding: 1rem;
}

.elementor-nav-menu--dropdown .elementor-nav-menu {
  flex-direction: column;
  gap: 0;
}

.elementor-nav-menu--dropdown .elementor-item {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* Language Switcher & CTA Button */
.elementor-location-header .elementor-widget__width-auto {
  display: inline-flex;
  align-items: center;
  margin-left: 1rem;
}

.elementor-location-header .elementor-button {
  background: #ff6b35;
  color: #fff;
  padding: 0.625rem 1.25rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  transition: background 0.2s ease, transform 0.1s ease;
}

.elementor-location-header .elementor-button:hover {
  background: #e55a2b;
  text-decoration: none;
  transform: translateY(-1px);
}

/* Main Content */
.site-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.page-header {
  padding: 2rem 0 1rem;
  border-bottom: 2px solid #e5e5e5;
  margin-bottom: 2rem;
}

.page-header .entry-title {
  font-size: 2rem;
  color: #1e5799;
  margin: 0;
}

/* Elementor Sections */
.elementor-section {
  padding: 3rem 0;
}

.elementor-section-boxed .elementor-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.elementor-row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -0.75rem;
}

.elementor-column {
  padding: 0 0.75rem;
  flex: 1;
}

.elementor-col-100 { flex: 0 0 100%; }
.elementor-col-50 { flex: 0 0 50%; }
.elementor-col-33 { flex: 0 0 33.333%; }
.elementor-col-25 { flex: 0 0 25%; }
.elementor-col-66 { flex: 0 0 66.667%; }

/* Hero Section */
.elementor-section-height-min-height {
  min-height: 400px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  position: relative;
}

.elementor-section-height-min-height .elementor-background-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
}

.elementor-section-height-min-height .elementor-container {
  position: relative;
  z-index: 1;
}

.elementor-section-height-min-height .elementor-heading-title {
  color: #fff;
  font-size: 3.5rem;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* Content Sections with Backgrounds */
.elementor-section[data-settings*='"background_background":"classic"'] {
  background-color: #f8f9fa;
}

/* Planner Section */
#planner {
  scroll-margin-top: 80px;
}

.routeform {
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

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

.elementor-form-fields-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.elementor-field-group {
  display: flex;
  flex-direction: column;
}

.elementor-field-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #555;
  margin-bottom: 0.375rem;
}

.elementor-field-textual,
.elementor-select-wrapper select {
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
  background: #fff;
  width: 100%;
}

.elementor-field-textual:focus,
.elementor-select-wrapper select:focus {
  outline: none;
  border-color: #2989d8;
  box-shadow: 0 0 0 3px rgba(41,137,216,0.1);
}

.elementor-button[type="submit"] {
  background: #28a745;
  color: #fff;
  padding: 0.875rem 1.5rem;
  border: none;
  border-radius: 4px;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
  width: 100%;
}

.elementor-button[type="submit"]:hover {
  background: #218838;
}

/* Call to Action Cards */
.elementor-cta {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  display: block;
  text-decoration: none;
}

.elementor-cta__bg-wrapper {
  position: relative;
  height: 200px;
}

.elementor-cta__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.3s ease;
}

.elementor-cta:hover .elementor-cta__bg {
  transform: scale(1.05);
}

.elementor-cta__bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.2) 100%);
}

.elementor-cta__content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 1.5rem;
  color: #fff;
}

.elementor-cta__title {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0;
  text-align: center;
}

.elementor-cta--skin-classic {
  background: #fff;
  padding: 1.5rem;
  margin-top: 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.elementor-cta--skin-classic .elementor-cta__content {
  position: static;
  color: #333;
  align-items: flex-start;
}

.elementor-cta__button {
  display: inline-block;
  background: #1e5799;
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 500;
  margin-top: 0.75rem;
  transition: background 0.2s ease;
}

.elementor-cta__button:hover {
  background: #154785;
  text-decoration: none;
}

/* Icon Lists */
.elementor-icon-list-items {
  list-style: none;
  margin: 0;
  padding: 0;
}

.elementor-icon-list-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid #e5e5e5;
}

.elementor-icon-list-item:last-child {
  border-bottom: none;
}

.elementor-icon-list-icon {
  color: #28a745;
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.elementor-icon-list-text {
  font-size: 0.9375rem;
  line-height: 1.5;
}

/* Video Section */
.elementor-video {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Signage Grid */
.elementor-col-25 .elementor-image img {
  border-radius: 8px;
  margin: 0 auto;
  max-width: 200px;
}

.elementor-col-25 h5 {
  text-align: center;
  font-size: 0.9375rem;
  color: #555;
  margin-top: 0.75rem;
}

/* Safety Cards */
.elementor-inner-section .elementor-col-33 {
  text-align: center;
}

.elementor-inner-section .elementor-col-33 .elementor-image img {
  max-width: 150px;
  margin: 0 auto 1rem;
  border-radius: 50%;
}

.elementor-inner-section .elementor-col-33 h2 {
  font-size: 1.25rem;
  color: #1e5799;
  margin-bottom: 1rem;
}

/* Bike Maintenance Section */
.elementor-cta--skin-classic .elementor-cta__bg-wrapper {
  height: 180px;
  border-radius: 8px 8px 0 0;
}

.elementor-cta--skin-classic + .elementor-widget-text-editor {
  padding: 1.5rem;
  background: #fff;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* Footer */
.elementor-location-footer {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color: #fff;
  padding: 3rem 0 1.5rem;
}

.elementor-location-footer .elementor-section {
  padding: 1.5rem 0;
}

.elementor-location-footer h2,
.elementor-location-footer h3,
.elementor-location-footer h4 {
  color: #fff;
}

.elementor-location-footer h2 {
  font-size: 1.75rem;
}

.elementor-location-footer h3 {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  opacity: 0.9;
}

.elementor-location-footer .elementor-button {
  background: #ff6b35;
  color: #fff;
  margin: 0.5rem 0.5rem 0.5rem 0;
}

.elementor-location-footer .elementor-button:hover {
  background: #e55a2b;
}

/* Social Icons */
.elementor-social-icons-wrapper {
  display: flex;
  gap: 0.75rem;
}

.elementor-grid-item {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.elementor-grid-item:hover {
  background: rgba(255,255,255,0.2);
}

/* Newsletter Form */
.elementor-location-footer .elementor-form .elementor-field-group-email {
  flex: 1;
}

.elementor-location-footer .elementor-form .elementor-field-type-submit {
  flex: 0 0 auto;
}

.elementor-location-footer .elementor-form input[type="email"] {
  padding: 0.875rem 1rem;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 4px;
  background: rgba(255,255,255,0.05);
  color: #fff;
  width: 100%;
}

.elementor-location-footer .elementor-form input[type="email"]::placeholder {
  color: rgba(255,255,255,0.5);
}

.elementor-location-footer .elementor-form button {
  background: #28a745;
  white-space: nowrap;
}

/* Footer Navigation */
.elementor-location-footer .elementor-nav-menu .elementor-item {
  color: rgba(255,255,255,0.8);
  font-size: 0.875rem;
}

.elementor-location-footer .elementor-nav-menu .elementor-item:hover {
  color: #fff;
}

/* Popup */
.elementor-location-popup {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.elementor-location-popup .elementor-section {
  background: #fff;
  border-radius: 12px;
  max-width: 500px;
  width: 100%;
  padding: 2rem;
  animation: fadeInUp 0.3s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 1024px) {
  .elementor-col-50,
  .elementor-col-33,
  .elementor-col-25 {
    flex: 0 0 50%;
  }
  
  .elementor-col-66 {
    flex: 0 0 100%;
  }
}

@media (max-width: 768px) {
  .elementor-menu-toggle {
    display: block;
  }
  
  .elementor-nav-menu--main {
    display: none;
  }
  
  .elementor-col-50,
  .elementor-col-33,
  .elementor-col-25,
  .elementor-col-66 {
    flex: 0 0 100%;
  }
  
  .elementor-section-height-min-height .elementor-heading-title {
    font-size: 2.5rem;
  }
  
  .elementor-location-header .elementor-row {
    flex-wrap: wrap;
  }
  
  .elementor-location-header .elementor-col-50 {
    flex: 0 0 100%;
  }
  
  .elementor-location-header .elementor-col-50:last-child {
    justify-content: flex-start;
    margin-top: 1rem;
  }
  
  h1 { font-size: 2rem; }
  h2 { font-size: 1.625rem; }
}

@media (max-width: 480px) {
  .elementor-section {
    padding: 2rem 0;
  }
  
  .elementor-section-height-min-height {
    min-height: 300px;
  }
  
  .elementor-section-height-min-height .elementor-heading-title {
    font-size: 2rem;
  }
}

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

.elementor-hidden-phone,
.elementor-hidden-desktop,
.elementor-hidden-tablet {
  display: none;
}

/* Instagram Feed Placeholder */
#sb_instagram {
  padding: 2rem 0;
}

#sbi_images {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.5rem;
}

.sbi_item {
  aspect-ratio: 1;
  background: #e5e5e5;
  border-radius: 4px;
}

@media (max-width: 768px) {
  #sbi_images {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Focus States */
a:focus,
button:focus,
.elementor-button:focus {
  outline: 2px solid #2989d8;
  outline-offset: 2px;
}

/* Print Styles */
@media print {
  .elementor-location-header,
  .elementor-location-footer,
  .elementor-location-popup {
    display: none;
  }
  
  .site-main {
    max-width: 100%;
  }
}