/*

Theme Name: The Lost Sock 2

Theme URI: https://example.com/themes/the-lost-sock

Author: Andrew Reis 

Author URI: https://example.com

Description: WordPress theme for The Lost Sock laundromat.

Version: 1.0.3

License: MIT

Text Domain: lostsock

*/



/* ===== Design tokens ===== */

:root {

  --cream: #FAF2D1;

  --green: #197A4A;
  /*--green: #56944F;*/

  --text: #0f3a25;

  --maxw: 1200px;

  --gap: 28px;

}



html {
  box-sizing: border-box;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

html,
body {
  height: 100%;
}

body {

  margin: 0;

  font-family: 'Space Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;

  background: var(--cream);

  color: var(--text);

  line-height: 1.5;

  font-size: 16px;

}



a {
  color: var(--green);
}

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

a:focus,
button:focus {
  outline: 3px dashed var(--green);
  outline-offset: 2px;
}



.container {

  max-width: var(--maxw);

  margin: 0 auto;

  padding: 12px 20px 24px;

}



/* Grid wrapper */

.home-grid {

  display: block;
  /* mobile default */

}



/* Sections (mobile order: hero (1), pricing (2), findus (3)) */

.section {
  margin-bottom: 20px;
  min-width: 0;
}



/* Desktop layout */

@media (min-width: 980px) {

  .home-grid {

    display: grid;

    grid-template-columns: 1fr 2fr 1fr;
    /* 1:2:1 ratio */

    gap: var(--gap);

    align-items: stretch;
    /* make all three sections equal height */

  }

  /* Place columns as Pricing | Hero | Find Us */

  .section--pricing {
    order: 1;
    grid-column: 1;
  }

  .section--hero {
    order: 2;
    grid-column: 2;
    align-self: start;
  }

  .section--find {
    order: 3;
    grid-column: 3;
  }

}



/* Typography */

h1,
h2,
h3 {
  margin: 0 0 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

h1 {
  font-size: 1.4rem;
  color: var(--green);
}

h2 {
  font-size: 1.2rem;
  color: var(--green);
  text-transform: uppercase;
}

.subline {
  color: var(--green);
  font-weight: 700;
  margin-top: 8px;
  margin-bottom: 14px;
}



/* Pricing list */

.pricing-list {

  list-style: none;

  padding: 0;

  margin: 16px 0 18px;

  border-top: 2px solid var(--green);

}

.pricing-item {

  display: flex;

  justify-content: space-between;

  padding: 10px 0;

  border-bottom: 1px dashed var(--green);

  font-size: 1.05rem;

}

.price {
  margin-left: 20px;
  white-space: nowrap;
}



.perks {

  margin-top: 18px;

  font-weight: 700;

}



/* Logo */

.brand {

  display: flex;

  align-items: center;

  gap: 12px;

  margin-bottom: 16px;

}

.brand img {
  height: 48px;
  width: auto;
}



/* Hero */

.hero-wrap {

  display: flex;

  flex-direction: column;

  align-items: center;

  text-align: center;

}

.hero-wordmark {
  max-width: 840px;
  width: 100%;
  height: auto;
  display: block;
  margin-top: 12px;
}

/* Find Us */
.findus {

  text-align: left;

}

.opening-hours {

  text-align: right;

  color: var(--green);

  font-weight: 700;

  margin-bottom: 16px;

  text-transform: uppercase;

}

.map-img {

  width: 100%;

  height: auto;

  display: block;

  border: none;

  max-width: 150%;

  margin: 0 auto;

  cursor: pointer;

  transition: transform 0.2s ease;

}

.map-img:hover {
  transform: scale(1.02);
}

/* Map Modal Styles */
.map-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.map-modal.active {
  display: flex;
  opacity: 1;
}

.map-modal-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  background: var(--cream);
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transform: scale(0.8);
  transition: transform 0.3s ease;
}

.map-modal.active .map-modal-content {
  transform: scale(1);
}

.map-modal img {
  width: 100%;
  height: auto;
  max-width: 800px;
  display: block;
  border-radius: 4px;
}

.map-modal-close {
  position: absolute;
  top: 10px;
  right: 15px;
  background: var(--green);
  color: var(--cream);
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}

.map-modal-close:hover {
  background: var(--text);
}

.map-modal-close:focus {
  outline: 3px dashed var(--green);
  outline-offset: 2px;
}



.address {

  margin: 16px 0 12px;

  color: var(--green);

  font-weight: 700;

  text-transform: uppercase;

  text-align: right;

}



.btn-findus {

  display: inline-block;

  border: 2px solid var(--green);

  background: var(--green);

  color: var(--cream);
  /* match site background */

  padding: 14px 22px;

  text-decoration: none;

  font-weight: 700;

  border-radius: 6px;

  margin-left: auto;

}

.btn-findus:hover,

.btn-findus:focus {

  background: var(--cream);
  /* invert to site background */

  color: var(--green);

  border-color: var(--green);

}



/* Utilities */

.mono {
  font-family: inherit;
}

.small {
  font-size: 0.95rem;
}

.visually-hidden {
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}



/* Footer (preview) */

.site-footer {
  margin-top: 16px;
  font-size: 0.85rem;
  color: #2c5b42;
}





/* Header */

.site-header {

  background: transparent;

  padding: 0 20px 0;

}

.site-header .bar {

  max-width: var(--maxw);

  margin: 0 auto;

  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 16px;

}

.site-header .brand img {
  height: 72px;
  width: auto;
  display: block;
}





.site-header .contacts {
  text-align: right;
  font-weight: 400;
  color: var(--text);
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  font-family: 'Courier Prime', monospace;
  line-height: 1.5;
}

.site-header .contacts a {

  color: var(--text);

  text-decoration: none;

  display: block;

  margin-bottom: 4px;

}

.site-header .contacts a:hover,

.site-header .contacts a:focus {

  text-decoration: none;
  color: var(--green);

}

/* Header layout tweaks: inline contacts and nav without bullets */
.site-header .contacts {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-header .contacts a {
  display: inline;
  margin: 0;
}

.site-header .nav ul {
  list-style: none;
  display: flex;
  gap: 12px;
  padding: 0;
  margin: 0;
}

.site-header .nav ul li {
  margin: 0;
  padding: 0;
}

.site-header .nav a {
  text-decoration: none;
  color: var(--text);
}

/* Separator between nav items */
.site-header .nav ul { gap: 0; }
.site-header .nav ul li { display: flex; align-items: center; }
.site-header .nav ul li + li::before {
  content: "|";
  display: inline-block;
  margin: 0 10px;
  color: var(--text);
  opacity: 0.8;
}



/* Hero row on desktop */

@media (min-width:980px) {

  .hero-wrap {
    flex-direction: row;
    gap: 20px;
    justify-content: center;
  }

  .hero-wordmark {
    max-width: 840px;
  }

}



/* Perks list */

.perks-list {

  list-style: none;

  padding: 0;

  margin: 8px 0 0;

}

.perks-list li {
  margin: 6px 0;
  font-weight: 700;
}



/* Footer ticker */

.ticker {
  background: var(--green);
  color: var(--cream);
  overflow: hidden;
  font-weight: 700;
  position: relative;
}

.ticker__link {
  color: inherit;
  text-decoration: none;
  display: block;
  transition: opacity 0.2s ease;
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 10;
}

.ticker__link:hover,
.ticker__link:focus {
  opacity: 0.8;
}

.ticker__track {
  display: flex;
  gap: 48px;
  width: max-content;
  padding: 6px 0;
  will-change: transform;
  animation: ticker-move 22s linear infinite;
}

.ticker__chunk {
  display: flex;
  gap: 48px;
  align-items: center;
}

@keyframes ticker-move {

  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }

  /* move by one chunk width (we duplicate content) */

}

@media (prefers-reduced-motion: reduce) {

  .ticker__track {
    animation: none;
  }

}





/* Compact pricing footprint */

.section--pricing h1 {
  font-size: 1.6rem;
  line-height: 1.2;
}

.section--pricing .subline {
  margin-bottom: 10px;
  font-size: 0.95rem;
}

.section--pricing .pricing-list {
  margin-top: 10px;
}

.section--pricing .pricing-item {
  padding: 7px 0;
  font-size: 0.9rem;
}

.section--pricing .perks {
  font-size: 0.9rem;
}





/* Equal-height hero image in middle column */

.section--hero {
  display: flex;
}

.hero-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 100%;
  min-height: 400px;
  /* Give it a minimum height to work with */
}

@media (min-width:980px) {

  .hero-wordmark {
    max-width: 840px;
    width: 100%;
    height: auto;
  }

}

/* Ensure top marquee sits flush with viewport */
html { margin-top: 0 !important; }
body { margin-top: 0 !important; }

/* Keep WP admin bar usable when present */
body.admin-bar #wpadminbar { position: fixed; }

/* Accessibility: robust visually-hidden that does not create a top seam */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.visually-hidden:focus {
  position: fixed !important;
  top: 8px;
  left: 8px;
  width: auto;
  height: auto;
  margin: 0;
  clip: auto;
  overflow: visible;
  background: var(--cream);
  color: var(--text);
  padding: 6px 10px;
  z-index: 10000;
}

/* Ensure ticker paints above any absolutely positioned elements */
.ticker { z-index: 2; }

/* Compact layout to help fit within one viewport */
.site-header .brand img { height: 64px; }
.hero-wrap { min-height: 320px; }

@media (min-width:980px) {
  html, body { overflow-y: hidden; }
}