/* ================================
   GreekSimmers - Main Styles
   ================================ */

/* Global Styles */
a {
  color: var(--main);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--dark-blue);
  text-decoration: underline;
}

a:focus {
  outline: 3px solid var(--accent-1);
  outline-offset: 2px;
}

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

/* Skip to main content (accessibility) */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--dark-blue);
  color: var(--white);
  padding: var(--sp-sm) var(--sp-m);
  z-index: 100;
  text-decoration: none;
  border-radius: 0 0 var(--radius) 0;
  font-weight: var(--font-weight-bold);
}

.skip-link:focus {
  top: 0;
}

/* Preloader */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--dark-blue);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 1;
  transition: opacity 600ms ease-out;
}

.preloader-content {
  font-family: var(--font-family-base);
  user-select: none;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.preloader-logo {
  font-size: 48px;
  line-height: 1;
  white-space: nowrap;
}

.preloader .greek {
  color: var(--main);
  font-weight: 300; /* Light */
}

.preloader .simmers {
  color: var(--white);
  font-weight: var(--font-weight-bold);
}

.preloader-progress {
  width: 100%;
  height: 2px;
  background-color: rgba(255, 255, 255, 0.15);
  margin-top: var(--sp-ml);
  border-radius: 1px;
  overflow: hidden;
}

.preloader-progress__bar {
  height: 100%;
  width: 0%;
  background-color: var(--accent-1);
  border-radius: 1px;
  transition: width 50ms linear;
}

.preloader-counter {
  margin-top: var(--sp-sm);
  font-size: 12px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.5px;
}

.preloader.hidden {
  opacity: 0;
  pointer-events: none;
}

/* Header */
.site-header {
  background-color: var(--white);
  border-bottom: 1px solid var(--light-grey);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--sp-m) var(--sp-l);
  max-width: 1440px;
  margin: 0 auto;
}

.site-logo img {
  height: 50px;
  width: auto;
}

/* Navigation */
.main-nav ul {
  display: flex;
  gap: var(--sp-l);
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav a {
  font-weight: var(--font-weight-bold);
  color: var(--dark-blue);
  text-decoration: none;
  padding: var(--sp-xs) 0;
  border-bottom: 3px solid transparent;
  transition: all 0.3s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--main);
  border-bottom-color: var(--main);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 28px;
  color: var(--dark-blue);
  cursor: pointer;
}

@media (max-width: 1199px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--white);
    border-top: 1px solid var(--light-grey);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }

  .main-nav.active {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: var(--sp-m);
  }

  .main-nav a {
    display: block;
    padding: var(--sp-m);
    border-bottom: 1px solid var(--light-grey);
  }

  .mobile-menu-toggle {
    display: block;
  }
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-color: var(--dark-blue);
  color: var(--white);
  overflow: hidden;
  padding: 0;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  padding: 0;
}

.hero h1 {
  color: var(--white);
  font-size: var(--h1-size);
  margin-bottom: var(--sp-ml);
}

.hero p {
  color: var(--white);
  font-size: var(--h6-size);
  margin-bottom: var(--sp-xl);
}

/* Section Spacing */
section {
  padding: var(--sp-xxl) 0;
}

.section-header {
  text-align: center;
  margin-bottom: var(--sp-xl);
}

.section-title {
  font-size: var(--h2-size);
  color: var(--dark-blue);
  margin-bottom: var(--sp-ml);
}

.section-subtitle {
  font-size: var(--h6-size);
  color: var(--gray);
  max-width: 700px;
  margin: 0 auto;
}

/* Footer */
.site-footer {
  background-color: var(--dark-blue);
  color: var(--white);
  padding: var(--sp-xxl) 0 var(--sp-l);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-xl);
  margin-bottom: var(--sp-xl);
}

.newsletter-form {
  display: flex;
  gap: var(--sp-sm);
  align-items: stretch;
}

.newsletter-form input {
  flex: 1;
  padding: var(--sp-m);
  border-radius: var(--radius);
  border: 2px solid rgba(255, 255, 255, 0.6);
  background-color: var(--white);
  color: var(--black);
  font-size: 16px;
}

.newsletter-form input::placeholder {
  color: var(--gray);
}

.newsletter-form input:focus {
  border-color: var(--accent-1);
  outline: 3px solid var(--accent-1);
  outline-offset: 2px;
}

@media (max-width: 799px) {
  .newsletter-form {
    flex-direction: column;
  }
  
  .newsletter-form .btn {
    width: 100%;
  }
}

.footer-column h3 {
  color: var(--white);
  font-size: var(--h6-size);
  margin-bottom: var(--sp-ml);
}

.footer-column p {
  color: var(--white);
  font-size: var(--p-size);
}

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

.footer-column li {
  margin-bottom: var(--sp-sm);
}

.footer-column a {
  color: var(--light-blue);
  text-decoration: none;
}

.footer-column a:hover {
  color: var(--white);
  text-decoration: underline;
}

/* Footer Working Hours */
.footer-hours {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-hours li {
  display: flex;
  justify-content: space-between;
  gap: var(--sp-sm);
  margin-bottom: var(--sp-xs);
  font-size: 14px;
}

.footer-hours__day {
  color: rgba(255, 255, 255, 0.7);
}

.footer-hours__time {
  color: var(--white);
  font-weight: 500;
}

.footer-hours--closed .footer-hours__time {
  color: #f87171;
}

/* Footer Closures */
.footer-closures {
  margin-top: var(--sp-m);
  padding-top: var(--sp-m);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-closures__title {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: var(--sp-xs);
}

.footer-closures__item {
  font-size: 13px;
  color: #fbbf24;
  margin-bottom: var(--sp-xs);
}

.footer-closures__desc {
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--sp-l);
  text-align: center;
  color: var(--white);
  font-size: var(--p-sm-size);
}

.footer-bottom-text {
  margin: 0;
  color: var(--white);
}

.footer-credit {
  margin: var(--sp-sm) 0 0;
  color: var(--white);
}

.footer-credit-link {
  color: var(--accent-1);
  text-decoration: none;
}

.footer-credit-link:hover,
.footer-credit-link:focus-visible {
  color: var(--main);
  text-decoration: none;
}

@media (max-width: 1199px) {
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 799px) {
  .footer-content {
    grid-template-columns: 1fr;
  }
  
  section {
    padding: var(--sp-xl) 0;
  }

  .preloader-logo {
    font-size: 32px;
  }
}

/* Language Switcher */
.language-switcher {
  display: flex;
  gap: var(--sp-sm);
}

.language-switcher button {
  background: none;
  border: 1px solid var(--gray);
  color: var(--dark-blue);
  padding: 6px 12px;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: var(--font-weight-bold);
  transition: all 0.3s ease;
}

.language-switcher button.active {
  background-color: var(--main);
  color: var(--white);
  border-color: var(--main);
}

.language-switcher button:hover {
  background-color: var(--light-blue);
}

/* Accessibility - Focus Indicators */
*:focus-visible {
  outline: 3px solid var(--accent-1);
  outline-offset: 2px;
}

/* ================================
   Under Construction Modal
   ================================ */
.construction-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: var(--sp-m);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 300ms ease, visibility 300ms ease;
}

.construction-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.construction-modal__backdrop {
  position: absolute;
  inset: 0;
  background-color: rgba(7, 22, 43, 0.85);
}

.construction-modal__dialog {
  position: relative;
  background-color: var(--white);
  border-radius: var(--radius);
  padding: var(--sp-l);
  max-width: 520px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transform: translateY(20px) scale(0.98);
  transition: transform 300ms ease;
}

.construction-modal.is-open .construction-modal__dialog {
  transform: translateY(0) scale(1);
}

.construction-modal__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--sp-ml);
}

.construction-modal__icon {
  width: 48px;
  height: 48px;
  color: var(--accent-1);
}

.construction-modal__lang-switcher {
  display: flex;
  gap: var(--sp-xs);
}

.construction-lang-btn {
  background: var(--light-grey);
  border: 2px solid transparent;
  color: var(--dark-blue);
  padding: 6px 12px;
  border-radius: var(--radius);
  cursor: pointer;
  font-family: var(--font-family-base);
  font-size: var(--p-sm-size);
  font-weight: var(--font-weight-bold);
  transition: all 200ms ease;
}

.construction-lang-btn:hover {
  background-color: var(--light-blue);
}

.construction-lang-btn.is-active {
  background-color: var(--main);
  color: var(--white);
  border-color: var(--main);
}

.construction-lang-btn:focus-visible {
  outline: 3px solid var(--accent-1);
  outline-offset: 2px;
}

.construction-modal__title {
  font-size: var(--h5-size);
  color: var(--dark-blue);
  margin: 0 0 var(--sp-m);
  line-height: var(--lh-snug);
}

.construction-modal__content {
  margin-bottom: var(--sp-ml);
}

.construction-modal__content p {
  font-size: var(--p-size);
  color: var(--black);
  line-height: var(--lh-normal);
  margin: 0;
}

.construction-modal__content strong {
  color: var(--dark-blue);
}

.construction-modal__btn {
  display: block;
  width: 100%;
  padding: var(--sp-m) var(--sp-ml);
  background-color: var(--main);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-family-base);
  font-size: var(--p-size);
  font-weight: var(--font-weight-bold);
  cursor: pointer;
  transition: background-color 200ms ease, transform 100ms ease;
}

.construction-modal__btn:hover {
  background-color: var(--dark-blue);
}

.construction-modal__btn:active {
  transform: scale(0.98);
}

.construction-modal__btn:focus-visible {
  outline: 3px solid var(--accent-1);
  outline-offset: 2px;
}

/* Under Construction Fixed Trigger Button */
.construction-trigger {
  position: fixed;
  bottom: var(--sp-ml);
  left: var(--sp-ml);
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: var(--sp-xs);
  padding: var(--sp-sm) var(--sp-m);
  background-color: var(--accent-1);
  color: var(--dark-blue);
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-family-base);
  font-size: var(--p-sm-size);
  font-weight: var(--font-weight-bold);
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(242, 175, 17, 0.4);
  transition: background-color 200ms ease, transform 200ms ease, box-shadow 200ms ease;
}

.construction-trigger:hover {
  background-color: #d99e0f;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(242, 175, 17, 0.5);
}

.construction-trigger:active {
  transform: translateY(0);
}

.construction-trigger:focus-visible {
  outline: 3px solid var(--dark-blue);
  outline-offset: 2px;
}

.construction-trigger svg {
  flex-shrink: 0;
}

/* Responsive */
@media (max-width: 799px) {
  .construction-modal__dialog {
    padding: var(--sp-ml);
  }

  .construction-modal__title {
    font-size: var(--h6-size);
  }

  .construction-modal__content p {
    font-size: 14px;
  }

  .construction-trigger {
    bottom: var(--sp-m);
    left: var(--sp-m);
    padding: var(--sp-xs) var(--sp-sm);
  }

  .construction-trigger__text {
    display: none;
  }
}

/* Move construction trigger above bottom nav for signed-in users on tablet/mobile */
@media (max-width: 1024px) {
  body.signed-in .construction-trigger {
    bottom: calc(72px + var(--sp-m)); /* 72px bottom nav + spacing */
  }
}

/* Print Styles */
@media print {
  .site-header,
  .site-footer,
  .btn,
  .modal,
  .preloader,
  .construction-modal,
  .construction-trigger {
    display: none !important;
  }
}
