﻿:root {
  --brand-blue: #1D4F91;
  --brand-green: #A1D884;
  --brand-purple: #6D2077;
  --brand-light-blue: #A4C8E1;
  --brand-yellow: #FFC600;
  --brand-black: #101820;
  --neutral-background: #F4F4F0;
}

/* ========= Base Reset and Global Styles ========= */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(0);
  white-space: nowrap;
  border: 0;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: 'Cabin', sans-serif;
  background: black;
  overflow-x: hidden;
  color: white;
}

p:last-child,
p:first-child {
  margin-bottom: 0;
  margin-top: 0;
}

a {
  text-decoration: none;
  color: white;
  text-underline-offset: 2px;
}

  a:hover {
    text-decoration: underline !important;
    color: var(--brand-yellow) !important;
    text-decoration-thickness: 0.05em;
    text-underline-offset: 4px !important;
  }

.bg-textured {
  background-image: url('https://i.sailawaywine.com/Static/NoiseMedium_300x300_20250411.png');
  background-repeat: repeat;
  background-size: cover;
}



.announcement {
  background-color: var(--brand-green);
  color: var(--brand-blue);
  text-align: center;
  font-size: clamp(0.9rem, 1.5vw, 1.1em);
  font-weight: bold;
  height: 42px;
  line-height: 42px;
  padding: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.announcement-link {
  color: inherit;
  text-decoration: none;
  display: inline-block;
  width: 100%;
  height: 100%;
}

  .announcement-link:hover {
    color: var(--brand-purple) !important;
  }

.hero-spacer {
  height: 100px;
}

.storefront {
  background-image: url('https://i.sailawaywine.com/Static/Storefront_2249x1126_20250421.webp');
}

.redbrick {
  background-image: url('https://i.sailawaywine.com/Static/RedBrick_1905x995_20250413.webp');
}

.hero {
  padding-top: 15px;
  position: relative;
  min-height: 100vh;
  height: auto;
  background-color: black;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 1;
}

.top-nav {
  position: relative;
  margin: 20px 40px 0 40px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  gap: 10px;
  z-index: 10;
}

.nav-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
}

.nav-links {
  display: flex;
  flex-direction: row;
}

  .nav-links a {
    margin-left: 20px;
    font-size: 1.2rem;
    font-weight: bold;
  }

.logo img {
  height: 150px;
  width: auto;
  display: block;
}

  .logo img:hover {
    filter: brightness(0) saturate(100%) invert(72%) sepia(82%) saturate(608%) hue-rotate(359deg) brightness(102%) contrast(101%);
  }

.social-links {
  gap: 15px;
}

.social-desktop {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
}

.social-mobile {
  display: none;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
  padding-bottom: 20px;
  margin-top: 10px;
}

.nav-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 10px;
  margin-bottom: 10px;
}

.social-links a img {
  height: 28px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
  transition: filter 0.3s;
}

.social-links a:hover img {
  filter: brightness(0) saturate(100%) invert(72%) sepia(82%) saturate(608%) hue-rotate(359deg) brightness(102%) contrast(101%);
}

/* ========= CTA Links in Hero ========= */
.cta-links {
  position: relative;
  top: 50%;
  left: 50%;
  transform: translateX(-50%);
  width: 75%;
  text-align: center;
  font-size: clamp(2rem, 5vw, 5em);
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  z-index: 10;
}

  .cta-links a {
    text-decoration: underline;
    text-underline-offset: 5px !important;
    text-decoration-thickness: 0.05em;
    transition: all 0.3s !important;
  }

    .cta-links a:hover {
      text-decoration-thickness: 0.09em;
    }

.cta-wrapper {
  position: relative;
  top: 50%;
  left: 50%;
  transform: translateX(-50%);
  width: 75%;
  text-align: center;
  z-index: 10;
}

.cta-subtext {
  font-size: clamp(1.3rem, 3vw, 2em);
  margin-top: 20px;
  z-index: 10;
}

.hero-review {
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  font-style: italic;
  position: relative;
  top: 185px;
  margin-top: auto;
  padding-bottom: 20px;
  text-align: center;
  z-index: 10;
  max-width: 80%;
  line-height: 1.4;
  margin-left: auto;
  margin-right: auto;
}

  .hero-review .stars {
    color: var(--brand-yellow);
  }

.mid-page-cta {
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  position: relative;
  top: 275px;
  margin-top: auto;
  padding-bottom: 20px;
  text-align: center;
  z-index: 10;
  max-width: 80%;
  line-height: 1.4;
  margin-left: auto;
  margin-right: auto;
}

  .mid-page-cta a {
    font-weight: bold;
    text-decoration: underline;
  }

    .mid-page-cta a:hover {
      color: var(--brand-purple);
    }

.mid-page-schedule-table {
  width: auto;
  margin: 0.4rem auto;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  border-collapse: collapse; /* <-- fixes horizontal gap */
  border-spacing: 12px 0px; /* tighter column + row spacing */
}

  .mid-page-schedule-table td {
    padding: 0 0.75rem;
    border: 2px solid var(--brand-black);
    text-align: center;
    white-space: nowrap;
  }

.mid-page-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

  .mid-page-popup[hidden] {
    display: none;
  }

.mid-page-popup-inner {
  background-color: var(--brand-light-blue);
  color: var(--brand-black);
  box-sizing: border-box;
  min-width: 320px;
  width: 100%;
  max-width: 480px; /* 280px is too small */
  padding: 30px 20px;
  border-radius: 8px;
  position: relative;
  overflow-y: auto;
  max-height: 90vh;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.6);
}

  .mid-page-popup-inner h2 {
    margin: 0 0 0.5rem 0;
    line-height: 1.2;
    color: var(--brand-blue);
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    text-align: center;
  }

  .mid-page-popup-inner p {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    margin: 0.4rem 0;
    line-height: 1.4;
    text-align: center;
  }

  .mid-page-popup-inner td strong {
    color: var(--brand-black) !important; /* Force override of Safari’s auto-detected styles */
    -webkit-text-fill-color: var(--brand-black) !important; /* Specific to Safari’s styling engine */
  }

  .mid-page-popup-inner ul.mid-page-schedule {
    list-style: none;
    padding: 0;
    margin: 20px 0;
  }

    .mid-page-popup-inner ul.mid-page-schedule li {
      margin-bottom: 8px;
    }

.mid-page-note {
  font-style: italic;
  font-weight: bold;
  margin: 0.6rem 0;
  color: var(--brand-purple);
}

/* Override: equal specificity, so place after the base rule */
p.mid-page-extra {
  font-size: 1rem;
}

.mid-page-close {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 2rem;
  font-weight: bold;
  background: none;
  border: none;
  color: var(--brand-black);
  cursor: pointer;
}

  .mid-page-close:hover {
    color: var(--brand-purple);
  }


.main-info {
  background-color: var(--brand-light-blue);
  color: var(--brand-black);
  text-align: center;
  font-size: 1.05em;
}

  .main-info h4,
  .main-info strong {
    color: var(--brand-blue);
  }

  .main-info strong {
    font-size: clamp(1.2rem, 2.5vw, 2em);
  }

.main-info-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  text-align: center;
}

.main-info-col {
  flex: 1 1 280px;
  max-width: 400px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.main-info-col1 {
  flex: 1 1 280px;
  max-width: 800px;
  padding-top: 10px;
  padding-bottom: 10px;
}


.footer-bottom {
  padding-top: 20px;
  padding-bottom: 20px;
  background: var(--brand-black);
  text-align: center;
}

  .footer-bottom a {
    color: var(--brand-green);
    text-decoration: none;
  }

.split-hero {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 80px;
  width: 85%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 5vh 0;
  z-index: 10;
}

  .split-hero .split-text {
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 40px;
    border-radius: 8px;
    flex: 1 1 0;
    max-width: 650px;
    min-width: 0;
  }

    .split-hero .split-text h2 {
      font-size: clamp(2rem, 4vw, 4em);
      margin-top: 0;
      margin-bottom: 0;
    }

    .split-hero .split-text h3 {
      font-size: clamp(1.6rem, 3vw, 3em);
      margin-top: 10px;
      margin-bottom: 0;
    }

    .split-hero .split-text p {
      margin-top: 20px;
      margin-bottom: 0;
      font-size: clamp(1.2rem, 2vw, 2em);
      font-weight: bold;
    }

  .split-hero .split-image {
    flex: 1 1 0;
    max-width: 700px;
    min-width: 0;
    width: 100%;
    box-shadow: 10px 10px 40px rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    overflow: hidden;
  }

    .split-hero .split-image img {
      display: block;
      width: 100%;
      height: auto;
    }

.content-block {
  padding: 60px 30px;
  color: var(--brand-black);
  font-size: 1.2em;
  line-height: 1.6;
}

.bg-panel {
  background-color: var(--neutral-background);
  background-image: url('https://i.sailawaywine.com/Static/NoiseMedium_300x300_20250411.png');
  background-repeat: repeat;
  background-size: cover;
}

.content-columns {
  display: flex;
  gap: 60px;
  align-items: flex-start;
  justify-content: space-between;
  max-width: 1600px;
  margin: 0 auto;
}

.content-text {
  flex: 1;
  min-width: 0;
}

.content-image {
  flex: 0 0 480px;
  max-width: 480px;
}

  .content-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 10px 10px 30px rgba(0, 0, 0, 0.3);
  }

/* --- Fade effect for tab images --- */
.fade-image {
  opacity: 1;
  transition: opacity 0.5s ease-in-out;
}

  .fade-image.fade-out {
    opacity: 0;
  }

/* --- ADA tab system --- */
.tab-interface {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}

.tab-button {
  background-color: var(--brand-blue);
  border: none;
  padding: 12px 24px;
  font-size: 1em;
  font-weight: bold;
  cursor: pointer;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

  .tab-button:focus {
    outline: 3px solid var(--brand-yellow);
    outline-offset: 3px;
  }

  .tab-button[aria-selected="true"] {
    background-color: var(--brand-green);
    color: var(--brand-black);
    outline: 3px solid var(--brand-yellow);
    outline-offset: 3px;
  }

  .tab-button[aria-selected="false"] {
    background-color: var(--brand-blue);
    color: white;
  }

    .tab-button[aria-selected="false"]:hover {
      color: var(--brand-yellow);
      text-decoration: underline;
      text-decoration-thickness: 0.05em;
      text-underline-offset: 4px !important;
    }



.tab-panel {
  margin-top: 20px;
}

  .tab-panel.hidden {
    display: none;
  }

  .tab-panel h3 {
    color: var(--brand-blue);
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 1.4em;
  }

  .tab-panel ul {
    list-style: none;
    padding-left: 0;
    margin: 0 0 30px 0;
  }

  .tab-panel li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  }

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--brand-yellow);
  color: black;
  padding: 8px 16px;
  z-index: 1000;
  text-decoration: none;
  font-weight: bold;
}

  .skip-link:focus {
    top: 10px;
  }

.nav-cue {
  display: inline-block;
  font-size: 1em; /* ~10% smaller than 1.2em */
  margin-right: 0.3em; /* nudge icon right */
  transform: translateY(1px); /* tiny nudge down */
  vertical-align: baseline;
}

.footer-bottom a[href^="tel"],
.footer-bottom a[href^="mailto"] {
  display: inline-block;
  margin-bottom: 12px;
  padding: 8px 0;
}

@media (max-width: 1180px) {
  /* Styles for iPad A16 in landscape */

  .hero-review {
    top: 85px;
  }

  .mid-page-cta {
    top: 85px;
  }
}

@media (max-width: 1050px) {
  .split-hero .split-image {
    display: none;
  }

  .split-hero {
    text-align: center;
  }

  .hero-spacer {
    height: 30px;
  }

  .hero {
    min-height: 55vh;
  }
}

@media (max-width: 925px) {
  .content-image {
    display: none;
  }

}

@media (max-width: 781px) {
  .hero-review {
    display: none;
  }

  .mid-page-cta {
    top: 385px;
  }

  .hero {
    min-height: 90vh;
  }

  .hero-spacer {
    height: 70px;
  }

  .mobile-hide {
    display: none;
  }

  .cta-subtext {
    margin-bottom: 60px;
  }

  .announcement {
    height: auto;
    line-height: 1.4em;
    padding: 10px 15px;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
  }

  .logo img {
    height: 100px;
  }

  .top-nav {
    margin: 20px 20px 0 20px;
  }

  .nav-links {
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
  }

  .social-links {
    top: 200px;
    right: 20px;
  }
}

@media (max-width: 655px) {
  .hero-spacer {
    height: 20px;
  }

  .hero {
    min-height: 50vh;
  }

  .social-desktop {
    display: none;
  }

  .social-mobile {
    display: flex;
  }

  .mid-page-cta {
    top: 10px;
  }

}

@media screen and (max-height: 820px) {
  .mid-page-extra {
    display: none;
  }
}
