/* ============================================================
   Shop Komoda -- static rebuild stylesheet
   Brand palette/typography ported from the retired WordPress
   theme's Kadence global-palette + typography config:
     accent gold    #DDAB5D
     accent alt     #B12C4A
     text black     #000000
     medium text    #4A5568
     subtle text    #718096
     subtle bg      #EEEFF2
     lighter bg     #F7FAFC
   Headings: Montserrat 700. Body: Source Sans Pro 400.
   Accent/script: Yesteryear (kickers, hero accent word).
   ============================================================ */

:root {
  --color-accent: #DDAB5D;
  --color-accent-alt: #B12C4A;
  --color-text: #000000;
  --color-text-medium: #4A5568;
  --color-text-subtle: #718096;
  --color-bg-subtle: #EEEFF2;
  --color-bg-lighter: #F7FAFC;
  --color-bg: #FFFFFF;

  --font-heading: "Montserrat", sans-serif;
  --font-body: "Source Sans Pro", sans-serif;
  --font-accent: "Yesteryear", cursive;

  --content-max-width: 1200px;
  --header-height: 101px;
}

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

html {
  scroll-behavior: smooth;
}

html.has-menu-open {
  overflow: hidden;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(2.5rem, 2rem + 2vw, 4.125rem);
}

h2 {
  font-size: clamp(1.75rem, 1.5rem + 1.25vw, 2.5rem);
}

p {
  font-size: 1.125rem;
  color: var(--color-text-medium);
}

.kicker {
  display: block;
  font-family: var(--font-accent);
  font-size: clamp(1.5rem, 1.25rem + 1vw, 2.25rem);
  color: var(--color-accent);
  font-weight: 400;
  letter-spacing: 0;
  margin-bottom: 0.15em;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Header ---------- */

.site-header {
  position: relative;
  z-index: 100;
  background: rgba(0, 0, 0, 0.96);
  transition: background-color 0.2s ease-out;
}

.site-header__inner {
  /* max-width: var(--content-max-width); */
  margin: 0 auto;
  padding: 1.75rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo img {
  height: 40px;
  width: auto;
  filter: invert(1) brightness(2);
}

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 2.125rem;
  margin: 0;
  padding: 0;
}

.site-nav a {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1.75rem;
  text-decoration: none;
  color: #ffffff;
  letter-spacing: 0.01em;
}

.site-nav a:hover {
  color: var(--color-accent);
}

/* Transparent header over the home page hero. The header no longer sticks,
   so it scrolls away together with the hero it overlaps -- it stays
   transparent for the entire time it's in view. */
body.home .site-header:not(.is-menu-open) {
  background: transparent;
}

/* The header still reserves its own flow height above the hero; pull the
   hero up underneath it so it stays full-bleed to the true top of the
   page while the transparent header floats over it. */
body.home .hero {
  margin-top: calc(-1 * var(--header-height));
}

/* ---------- Mobile menu toggle ---------- */

.menu-toggle {
  display: none;
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: none;
  padding: 0.5rem;
  margin: -0.5rem -0.5rem -0.5rem auto;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}

.menu-toggle__bar {
  display: block;
  width: 24px;
  height: 2px;
  background: #000;
  transition: transform 0.2s ease-out, opacity 0.2s ease-out,
    background-color 0.2s ease-out;
}

/* Without a permanent bar, the icon needs to switch color depending on
   whether it's currently floating over a dark photo section or a plain
   light-background page (tracked in JS -- see base layout script). */
.site-header.is-on-dark .menu-toggle__bar {
  background: #fff;
}

/* Always white once open, since the dropdown behind it is solid dark. */
.site-header.is-menu-open .menu-toggle__bar {
  background: #fff;
}

.site-header.is-menu-open .menu-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-header.is-menu-open .menu-toggle__bar:nth-child(2) {
  opacity: 0;
}

.site-header.is-menu-open .menu-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media only screen and (max-width: 700px) {
  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 0;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.96);
    transition: max-height 0.25s ease-out;
  }

  .site-header.is-menu-open .site-nav {
    max-height: 300px;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 1.5rem 1.5rem;
  }

  .site-nav a {
    display: block;
    padding: 0.75rem 0;
    font-size: 1.375rem;
  }

  /* No permanent bar behind the hamburger on mobile -- only the icon
     floats over the page. A solid background appears just for the
     open dropdown, so the menu links stay readable. */
  .site-header {
    background: transparent;
  }

  .site-header.is-menu-open {
    background: rgba(0, 0, 0, 0.96);
  }

  /* The mobile header stays fixed (the hamburger dropdown depends on
     it), which never reserves flow space -- so unlike the sticky
     desktop header, the hero doesn't need pulling up underneath it. */
  .site-header {
    position: fixed;
    inset-inline: 0;
  }

  body.home .hero {
    margin-top: 0;
  }

  body:not(.home) main {
    padding-top: var(--header-height);
  }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
  background: #000 url("/images/site/shop-dark.jpg") center / cover no-repeat;
  color: #fff;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.1);
}

.hero__inner {
  position: relative;
  z-index: 1;
}

.hero__badge {
  width: min(640px, 70vw);
  height: auto;
  margin: 0 auto;
}

.hero__scroll-indicator {
  appearance: none;
  -webkit-appearance: none;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  position: absolute;
  z-index: 1;
  bottom: -1px;
  left: 50%;
  width: 120px;
  height: 38px;
  transform: translateX(-50%);
  color: #fff;
  cursor: pointer;
}

.hero__scroll-indicator svg {
  display: block;
  width: 100%;
  height: 100%;
}

.hero__scroll-indicator::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 9px;
  height: 9px;
  border: 2px solid var(--color-text);
  border-left: 0;
  border-top: 0;
  transform: translate(-50%, -70%) rotate(45deg);
}

/* ---------- Scroll-position dots ---------- */

.scroll-dots {
  position: fixed;
  z-index: 60;
  top: 50%;
  right: 30px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: #000;
  transition: color 0.2s ease-out;
}

.scroll-dots.is-on-dark {
  color: #fff;
}

.scroll-dots__dot {
  appearance: none;
  -webkit-appearance: none;
  padding: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid currentColor;
  background: transparent;
  color: inherit;
  cursor: pointer;
  transition: transform 0.2s ease-out, background-color 0.2s ease-out, border-color 0.2s ease-out;
}

.scroll-dots__dot.is-active {
  background: currentColor;
  border-color: transparent;
  transform: scale(1.2);
}

@media only screen and (max-width: 700px) {
  .scroll-dots {
    display: none;
  }
}

/* ---------- Welcome / intro ---------- */

.welcome {
  max-width: 640px;
  margin: 0 auto;
  padding: 5rem 1.5rem 1rem;
  text-align: center;
}

.welcome__inner p {
  margin: 0.4em 0;
}

.welcome__inner p a {
  color: var(--color-accent-alt);
  text-decoration: none;
}

.welcome__inner p a:hover {
  text-decoration: underline;
}

.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  color: var(--color-accent);
  margin: 3rem auto 0;
  max-width: 420px;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--color-bg-subtle);
}

/* ---------- Section breaks (full-bleed photo dividers) ---------- */

.section-break {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #000;
}

.section-break__media {
  position: absolute;
  inset: 0;
}

.section-break__media picture,
.section-break__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.section-break__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
}

.section-break__heading {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1em;
  text-align: center;
  margin: 0;
  color: #fff;
  padding: 0 1.5rem;
}

.section-break__accent {
  font-family: var(--font-accent);
  font-weight: 400;
  letter-spacing: 0;
  font-size: clamp(2.25rem, 1.5rem + 5vw, 5.625rem);
  color: var(--color-accent);
}

.section-break__primary {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: clamp(2rem, 1.5rem + 3.5vw, 4.125rem);
}

/* ---------- Media rows (copy + single feature photo) ---------- */

.media-row {
  display: flex;
  align-items: center;
  gap: 3rem;
  max-width: 1400px;
  margin: 0 auto;
  padding: 4.5rem 4.5rem;
}

.media-row--reverse {
  flex-direction: row-reverse;
}

.media-row__media {
  flex: 1 1 55%;
  min-width: 0;
}

.media-row__media picture,
.media-row__media img {
  display: block;
  width: 100%;
  height: auto;
}

.media-row__content {
  flex: 1 1 45%;
  text-align: center;
}

.media-row__content h3 {
  margin: 0 0 0.5em;
}

.media-row__content p {
  font-size: 1rem;
}

.media-row__accent {
  display: block;
  font-family: var(--font-accent);
  font-weight: 400;
  color: var(--color-accent);
  font-size: clamp(2.25rem, 1.5rem + 5vw, 5.625rem);
}

.media-row__primary {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: clamp(2rem, 1.5rem + 3.5vw, 4.125rem);
}

.btn-text {
  display: inline-block;
  margin-top: 1rem;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1.0625rem;
  letter-spacing: 0.03em;
  text-decoration: none;
  color: var(--color-accent);
  border-bottom: 1px solid var(--color-accent);
  padding-bottom: 0.2em;
}

.btn-text:hover {
  color: var(--color-text);
  border-color: var(--color-text);
}

@media only screen and (max-width: 700px) {
  .media-row,
  .media-row--reverse {
    flex-direction: column;
    padding: 3rem 1.25rem;
    gap: 2rem;
  }

  .media-row__media {
    width: 100%;
  }
}

/* ---------- Photo grids ---------- */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  margin-bottom: 6px;
}

.gallery-grid__item {
  margin: 0;
  overflow: hidden;
  background: var(--color-bg-subtle);
}

.gallery-grid__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 3 / 2;
  transition: transform 0.3s ease;
}

.gallery-grid__item:hover img {
  transform: scale(1.03);
}

@media only screen and (max-width: 560px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .section-break {
    min-height: 90vh;
  }
}

/* ---------- Contact page ---------- */

.contact-page {
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.contact-intro {
  display: flex;
  align-items: center;
  gap: 3rem;
  max-width: 1000px;
  margin: 0 auto 2.5rem;
}

.contact-page__header {
  flex: 1 1 50%;
  text-align: center;
}

.contact-photo {
  flex: 1 1 50%;
  min-width: 0;
}

.contact-photo picture,
.contact-photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.contact-info {
  display: flex;
  gap: 3rem;
  max-width: 720px;
  margin: 3rem auto 0;
  padding: 2.5rem;
  background: var(--color-bg-lighter);
  border-radius: 8px;
}

.contact-info__group {
  flex: 1 1 50%;
  min-width: 0;
}

.contact-info__heading {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-accent-alt);
  margin: 0 0 1.25rem;
}

.contact-info__list {
  margin: 0;
}

.contact-info__row {
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--color-bg-subtle);
}

.contact-info__row:last-child {
  border-bottom: 0;
}

.contact-info__row dt {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text-subtle);
  margin: 0 0 0.2rem;
}

.contact-info__row dd {
  margin: 0;
  font-size: 1.05rem;
}

.contact-info__row a {
  color: var(--color-text);
  text-decoration: underline;
}

.contact-info__row a:hover {
  color: var(--color-accent-alt);
}

.contact-map {
  max-width: 720px;
  margin: 2rem auto 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.contact-map iframe {
  width: 100%;
  height: 350px;
  border: 0;
  display: block;
}

@media only screen and (max-width: 700px) {
  .contact-intro {
    flex-direction: column;
    gap: 2rem;
  }

  .contact-info {
    flex-direction: column;
    gap: 2rem;
    padding: 2rem 1.5rem;
  }
}

/* ---------- Footer ---------- */

.site-footer {
  background: #000000;
  color: #f2f2f2;
  padding: 3rem 1.5rem;
}

.site-footer a {
  color: #f2f2f2;
}

.site-footer__inner {
  max-width: var(--content-max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer-block {
  padding: 0 15px 15px 0;
  font-size: 0.95rem;
  line-height: 1.7;
}

.footer-business-name {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 0.4rem;
  color: #ffffff;
}

.footer-block--social {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

@media only screen and (max-width: 560px) {
  .site-header__inner {
    padding: 1.25rem 1.5rem;
  }

  .site-nav ul {
    gap: 1.25rem;
  }

  .site-nav a {
    font-size: 1.125rem;
  }
}
