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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: #000;
  background-color: #fff;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  background-color: #fff;
  color: #000;
  padding: 20px 0;
  position: relative;
  z-index: 1000;
  /*border-bottom: 1px solid #000;*/
}

/* Home page header overlays the banner */
.home-page .site-header {
  background-color: transparent;
  color: #fff;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  border-bottom: none;
}

/* Tea Round page header overlays the video */
.tearound-page .site-header {
  background-color: transparent;
  color: #fff;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  border-bottom: none;
  z-index: 1001;
}

/* Contact page header overlays the banner */
.contact-page .site-header {
  background-color: transparent;
  color: #fff;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  border-bottom: none;
  z-index: 1001;
}

/* Webcam page header overlays the banner */
.webcam-page .site-header {
  background-color: transparent;
  color: #fff;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  border-bottom: none;
  z-index: 1001;
}

/* Heritage page header overlays the banner */
.heritage-page .site-header {
  background-color: transparent;
  color: #fff;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  border-bottom: none;
  z-index: 1001;
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

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

.logo a {
  display: block;
  line-height: 0;
}

.logo-svg {
  height: 40px;
  width: auto;
  display: block;
  filter: none;
}

/* Black logo for regular pages */
.logo-svg path {
  fill: #000 !important;
  stroke: #000 !important;
}

/* White logo for home page - use filter for better compatibility */
.home-page .logo-svg {
  filter: brightness(0) invert(1);
}

.home-page .logo-svg path {
  fill: #fff !important;
  stroke: #fff !important;
}

/* White logo for tea round page */
.tearound-page .logo-svg {
  filter: brightness(0) invert(1);
}

.tearound-page .logo-svg path {
  fill: #fff !important;
  stroke: #fff !important;
}

/* White logo for contact page */
.contact-page .logo-svg {
  filter: brightness(0) invert(1);
}

.contact-page .logo-svg path {
  fill: #fff !important;
  stroke: #fff !important;
}

/* White logo for webcam page */
.webcam-page .logo-svg {
  filter: brightness(0) invert(1);
}

.webcam-page .logo-svg path {
  fill: #fff !important;
  stroke: #fff !important;
}

/* White logo for heritage page */
.heritage-page .logo-svg {
  filter: brightness(0) invert(1);
}

.heritage-page .logo-svg path {
  fill: #fff !important;
  stroke: #fff !important;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 25px;
  flex-wrap: wrap;
}

.main-nav a {
  color: #000;
  text-decoration: none;
  transition: color 0.2s;
  padding: 5px 10px;
}

.main-nav a:hover,
.main-nav a.active {
  color: #666;
}

.main-nav .shop-link {
  border: 1px solid #000;
  padding: 8px 15px;
}

.main-nav .shop-link:hover {
  background-color: #000;
  color: #fff;
}

/* Home page navigation - desktop only */
@media (min-width: 769px) {
  .home-page .main-nav a {
    color: #fff;
  }

  .home-page .main-nav a:hover,
  .home-page .main-nav a.active {
    color: #ccc;
  }

  .home-page .main-nav .shop-link {
    border: 1px solid #fff;
  }

  .home-page .main-nav .shop-link:hover {
    background-color: #fff;
    color: #000;
  }

  /* Tea Round page navigation - desktop only */
  .tearound-page .main-nav a {
    color: #fff;
  }

  .tearound-page .main-nav a:hover,
  .tearound-page .main-nav a.active {
    color: #ccc;
  }

  .tearound-page .main-nav .shop-link {
    border: 1px solid #fff;
  }

  .tearound-page .main-nav .shop-link:hover {
    background-color: #fff;
    color: #000;
  }

  /* Contact page navigation - desktop only */
  .contact-page .main-nav a {
    color: #fff;
  }

  .contact-page .main-nav a:hover,
  .contact-page .main-nav a.active {
    color: #ccc;
  }

  .contact-page .main-nav .shop-link {
    border: 1px solid #fff;
  }

  .contact-page .main-nav .shop-link:hover {
    background-color: #fff;
    color: #000;
  }

  /* Webcam page navigation - desktop only */
  .webcam-page .main-nav a {
    color: #fff;
  }

  .webcam-page .main-nav a:hover,
  .webcam-page .main-nav a.active {
    color: #ccc;
  }

  .webcam-page .main-nav .shop-link {
    border: 1px solid #fff;
  }

  .webcam-page .main-nav .shop-link:hover {
    background-color: #fff;
    color: #000;
  }

  /* Heritage page navigation - desktop only */
  .heritage-page .main-nav a {
    color: #fff;
  }

  .heritage-page .main-nav a:hover,
  .heritage-page .main-nav a.active {
    color: #ccc;
  }

  .heritage-page .main-nav .shop-link {
    border: 1px solid #fff;
  }

  .heritage-page .main-nav .shop-link:hover {
    background-color: #fff;
    color: #000;
  }
}

/* Shop Banner */
.shop-banner {
  width: 100%;
  margin: 0;
  padding: 0;
  /*border-bottom: 2px solid #000;*/
  position: relative;
}

.shop-banner img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 650px;
  object-fit: cover;
}

/* Home page specific banner styling */
.home-banner {
  margin-top: 0;
}

.home-banner img {
  min-height: 500px;
}

/* Video Banner */
.video-banner {
  width: 100%;
  margin: 0;
  padding: 0;
  /*border-bottom: 2px solid #000;*/
  position: relative;
  overflow: hidden;
}

.video-container {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  background: #000;
}

.video-container video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.tea-round-logo {
  max-width: 300px;
  width: 80%;
  height: auto;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.5));
}

/*  strava button */
.strava-btn {
    background-color: #fc4c02; /* Strava orange */
    color: white;
    padding: 10px 18px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    text-decoration: none;
    font-family: Arial, sans-serif;
    transition: background-color 0.2s ease, transform 0.15s ease;
}

/* Hover effect */
.strava-btn:hover {
    background-color: #d84302; /* darker Strava orange */
    transform: translateY(-2px); /* subtle lift */
}

/* Optional: icon size tweak */
.strava-btn i {
    font-size: 1.1em;
}

/* Tea Round specific banner styling */
.tea-round-banner {
  margin-top: 0;
}

.tea-round-banner .video-container {
  min-height: 400px;
  max-height: 800px;
  padding-bottom: 0;
  height: 800px;
}

/* Main Content */
.main-content {
  min-height: calc(100vh - 200px);
  padding: 40px 0;
}

/* Main content spacing for home page */
.home-page .main-content {
  padding-top: 0;
}

/* Main content spacing for tea round page */
.tearound-page .main-content {
  padding-top: 0;
}

/* Main content spacing for contact page */
.contact-page .main-content {
  padding-top: 0;
}

/* Main content spacing for webcam page */
.webcam-page .main-content {
  padding-top: 0;
}

/* Main content spacing for heritage page */
.heritage-page .main-content {
  padding-top: 0;
}

.hero {
  text-align: center;
  padding: 80px 20px;
  /*border: 2px solid #000;*/
  margin-bottom: 60px;
}

.hero h1 {
  font-size: 48px;
  margin-bottom: 20px;
  font-weight: 600;
  color: #000;
}

.hero .lead {
  font-size: 20px;
  max-width: 800px;
  margin: 0 auto;
  color: #000;
  font-weight: 500;
}

.content-section {
  margin-bottom: 60px;
}

.content-section h2 {
  font-size: 36px;
  margin-bottom: 20px;
  color: #000;
  font-weight: 600;
}

.content-section p {
  margin-bottom: 1em;
}

.page-header {
  margin-bottom: 40px;
}

.page-header h1 {
  font-size: 42px;
  color: #000;
  border-bottom: 2px solid #000;
  padding-bottom: 15px;
  font-weight: 600;
  margin-top: 1em;
}

.lead {
  font-size: 22px;
  color: #000;
  margin-bottom: 30px;
  font-weight: 500;
}

.content-body {
  font-size: 18px;
  line-height: 1.8;
  color: #000;
}

.content-body p {
  margin-bottom: 1em;
}

/* Info Grid */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.info-card {
  border: 1px solid #000;
  padding: 30px;
  transition: background-color 0.2s;
}

.info-card:hover {
  background-color: #f5f5f5;
}

.info-card h3 {
  color: #000;
  margin-bottom: 15px;
  font-weight: 600;
}

.info-card p {
  color: #333;
  font-weight: 300;
}

/* Shop Section */
.shop-section {
  text-align: center;
  border: 2px solid #000;
  padding: 40px;
}

.shop-section h2 {
  margin-bottom: 20px;
}

.shop-section p {
  color: #333;
  font-weight: 300;
  margin-bottom: 20px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 24px;
  background-color: #000;
  color: #fff;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
  border: 1px solid #000;
  cursor: pointer;
  font-size: 16px;
  font-weight: 400;
  margin-top: 20px;
}

.btn:hover {
  background-color: #fff;
  color: #000;
}

.btn-primary {
  background-color: #000;
  border: 1px solid #000;
}

.btn-primary:hover {
  background-color: #fff;
  color: #000;
}

.btn-danger {
  background-color: #fff;
  color: #000;
  border: 1px solid #000;
}

.btn-danger:hover {
  background-color: #000;
  color: #fff;
}

.btn-small {
  padding: 8px 16px;
  font-size: 14px;
}

/* Footer */
.site-footer {
  background-color: #000;
  color: #fff;
  padding: 40px 0 20px;
  margin-top: 60px;
  border-top: 1px solid #000;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}

.footer-section h3 {
  margin-bottom: 15px;
  color: #fff;
  font-weight: 600;
}

.footer-section p {
  color: #ccc;
  font-weight: 300;
}

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

.footer-section ul li {
  margin-bottom: 10px;
}

.footer-section a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.2s;
  font-weight: 300;
}

.footer-section a:hover {
  color: #fff;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #333;
  color: #999;
  font-weight: 300;
}

/* Contact Page */
.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.contact-card {
  border: 1px solid #000;
  padding: 25px;
}

.contact-card h3 {
  color: #000;
  margin-bottom: 15px;
  font-weight: 600;
}

.contact-card p {
  color: #333;
  font-weight: 300;
}

/* Admin Panel */
.admin-section {
  max-width: 1000px;
  margin: 0 auto;
}

.admin-panel {
  border: 1px solid #000;
  padding: 30px;
  margin-bottom: 30px;
}

.admin-panel h2 {
  margin-bottom: 20px;
}

.redirect-form {
  max-width: 600px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #000;
}

.form-group input {
  width: 100%;
  padding: 10px;
  border: 1px solid #000;
  font-size: 16px;
  background-color: #fff;
}

.form-group input:focus {
  outline: none;
  border: 2px solid #000;
}

.redirect-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  background: #fff;
  border: 1px solid #000;
}

.redirect-table th,
.redirect-table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #000;
}

.redirect-table th {
  background-color: #000;
  color: #fff;
  font-weight: 600;
}

.redirect-table tr:hover {
  background-color: #f5f5f5;
}

.message {
  padding: 15px;
  margin-bottom: 20px;
  border: 1px solid #000;
}

.message.success {
  background-color: #fff;
  color: #000;
}

.message.error {
  background-color: #000;
  color: #fff;
}

/* Placeholder Content */
.placeholder-content {
  background: #fff;
  padding: 60px 30px;
  border: 2px dashed #ccc;
  text-align: center;
  margin: 30px 0;
  color: #999;
}

.webcam-container,
.map-container {
  margin: 30px 0;
  border: 1px solid #000;
  padding: 20px;
}

.map-container h3 {
  margin-bottom: 20px;
  font-weight: 600;
}

.map-container iframe {
  width: 100%;
  display: block;
}

/* Store Info */
.store-info {
  border: 1px solid #000;
  padding: 30px;
  margin-bottom: 40px;
}

.store-details {
  max-width: 600px;
}

.store-details p {
  margin-bottom: 20px;
  line-height: 1.8;
}

.store-details a {
  color: #000;
  text-decoration: underline;
}

.store-details a:hover {
  text-decoration: none;
}

.store-description {
  /*border: 1px solid #000;*/
  padding: 30px;
  margin: 40px 0;
}

.store-description h2 {
  margin-bottom: 20px;
}

/* Hours Table */
.hours-table {
  width: 100%;
  border-collapse: collapse;
}

.hours-table tr {
  border-bottom: 1px solid #ddd;
}

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

.hours-table td {
  padding: 8px 0;
  font-weight: 300;
}

.hours-table td:first-child {
  width: 40%;
}

.hours-table strong {
  font-weight: 600;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
}

.hamburger-line {
  width: 25px;
  height: 2px;
  background-color: #000;
  margin: 3px 0;
  transition: all 0.3s ease;
}

.home-page .hamburger-line {
  background-color: #fff;
}

.tearound-page .hamburger-line {
  background-color: #fff;
}

.contact-page .hamburger-line {
  background-color: #fff;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

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

  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    max-width: 300px;
    height: 100vh;
    background-color: #fff;
    transition: right 0.3s ease;
    z-index: 1000;
    overflow-y: auto;
  }

  .main-nav.active {
    right: 0;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.3);
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 80px 20px 20px;
  }

  .main-nav li {
    border-bottom: 1px solid #ddd;
  }

  .main-nav a {
    display: block;
    padding: 15px 10px;
    color: #000;
  }

  .main-nav .shop-link {
    border: 1px solid #000;
    margin: 10px;
    text-align: center;
  }

  .hero h1 {
    font-size: 32px;
  }

  .page-header h1 {
    font-size: 32px;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

  .logo-svg {
    height: 32px;
  }

  .tea-round-banner .video-container {
    height: 300px;
    min-height: 300px;
  }

  .tea-round-logo {
    max-width: 200px;
  }
}
