/* Looking.la — styles */

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

:root {
  --color-orange: #f68a1e;
  --color-orange-light: #f9a345;
  --color-text: #221f1f;
  --color-bg: #ffffff;
  --color-overlay: rgba(0, 0, 0, 0.85);
  --font-body: sentinel, sans-serif;
  --font-ui: "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  --max-width: 1200px;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-style: normal;
  font-size: 16px;
  line-height: 1.5;
  color: var(--color-text);
  background: var(--color-bg);
}

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

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--color-orange);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 10000;
  padding: 0.5rem 1rem;
  background: var(--color-text);
  color: var(--color-bg);
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

/* Hero */
.hero {
  position: relative;
  padding: 2rem 3rem 3rem;
  max-width:1400px;
  margin:0 auto;
}

.logo_container {
  margin-top: 5%;
  text-align: right;
}

.hero__logo-link {
  display: inline-block;
  text-decoration: none;
}

.hero__logo {
  height: auto;
}

.hero__logo--mobile {
  display: none;
}

.hero__logo--desktop {
  height: 50vw;
  max-height: 320px;
  width: auto;
}

.hero__tagline-wrap {
  width: 100%;
  margin: 30px 0;
}

.hero__tagline {
  width: 100%;
  max-width: 900px;
}

.hero__tagline--mobile {
  display: none;
}

/* Keypad — PDF: 108px circles, ~12px gap, 15pt label text */
.keypad {
  grid-area: keypad;
  display: grid;
  grid-template-columns: repeat(3, 108px);
  gap: 12px;
  justify-self: end;
  align-self: end;
}

.keypad__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 108px;
  height: 108px;
  padding: 0.5rem;
  border: none;
  border-radius: 50%;
  background: var(--color-orange);
  color: #fff;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s;
}

.keypad__btn:hover,
.keypad__btn:focus-visible {
  background: var(--color-orange-light);
}

.keypad__btn--about {
  grid-column: 2;
  color:black;
}

/* Portfolio sections */
.portfolio {
  padding: 2rem 1.5rem;
  border-top: 1px solid #eee;
  scroll-margin-top: 1rem;
}

.portfolio__layout {
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Text sits above collage on all viewports — 2× PDF width, no image overlap */
.portfolio .portfolio__layout .portfolio__text {
  position: static;
  left: auto;
  top: auto;
  width: 40%;
  max-width: 840px;
  z-index: auto;
  margin: 0 0 2rem;
}

.portfolio__title {
  margin: 0 0 0.25rem;
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.portfolio__subtitle {
  margin: 0 0 0.75rem;
  font-size: 16px;
  font-weight: 400;
}

.portfolio__description {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
}

.portfolio__gallery {
  position: relative;
  width: 100%;
  margin-top: -100px;
}

.portfolio__img-btn {
  padding: 0;
  margin: 0;
  border: none;
  background: none;
  cursor: pointer;
  overflow: hidden;
  line-height: 0;
}

.portfolio__img-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.2s;
}

.portfolio__img-btn:hover img,
.portfolio__img-btn:focus-visible img {
  opacity: 0.85;
}

.desktop-only {
  display: block;
}

/* Lightbox */
.lightbox[hidden] {
  display: none;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: var(--color-overlay);
  cursor: pointer;
}

.lightbox__content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 95vw;
  max-height: 95vh;
  padding: 3rem 4rem 1rem;
  pointer-events: none;
}

.lightbox__figure {
  margin: 0;
  text-align: center;
  max-width: 80vw;
  pointer-events: auto;
}

.lightbox__close {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 9002;
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  background: transparent;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox__image {
  max-width: 80vw;
  max-height: 70vh;
  width: auto;
  height: auto;
  margin: 0 auto;
}

.lightbox__caption {
  margin-top: 1rem;
  color: #fff;
  font-size: 14px;
}

.lightbox__nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 9002;
  width: 3rem;
  height: 3rem;
  border: 2px solid #fff;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox__nav--prev {
  left: 1rem;
}

.lightbox__nav--next {
  right: 1rem;
}

.lightbox__nav:hover,
.lightbox__nav:focus-visible {
  background: rgba(255, 255, 255, 0.15);
}

/* Footer */
.site-footer {
  padding: 2rem 3rem;
  border-top: 1px solid #eee;
  text-align: center;
  font-size: 14px;
}

.site-footer a {
  color: var(--color-text);
}

.site-footer a:hover {
  color: var(--color-orange);
}

/* About page — typography and page shell; layout in about-layout.css */
.page-header {
  padding: 2rem 3rem 0;
}

.page-header__logo {
  display: inline-block;
  max-height: 80px;
  width: auto;
}

.about-page {
  padding: 1rem 3rem 4rem;
}

/* Legal pages */
.legal-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 3rem 4rem;
}

.legal-page h1 {
  font-size: 24px;
  font-weight: 400;
  margin: 2rem 0 1.5rem;
}

.legal-page p {
  font-size: 14px;
  line-height: 1.7;
  margin: 0 0 1rem;
}

/* Responsive — tablet */
@media (max-width: 1024px) {
  .hero {
    padding: 2rem;
  }

  .keypad {
    grid-template-columns: repeat(3, 96px);
    gap: 10px;
  }

  .keypad__btn {
    width: 96px;
    height: 96px;
  }

  .portfolio {
    padding: 2rem 1rem;
  }
}

/* Responsive — mobile */
@media (max-width: 768px) {
  /*
  .hero {
    min-height: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem;
    gap: 2rem;
  }

  .hero__logo-link {
    align-self: flex-end;
    order: 1;
  }
*/
  

  /*
  .hero__tagline-wrap {
    order: 2;
    align-self: flex-start;
    max-width: 280px;
  }
 
  .keypad {
    order: 3;
    align-self: flex-start;
    grid-template-columns: repeat(3, 90px);
    gap: 8px;
  }

  .keypad__btn {
    width: 90px;
    height: 90px;
    font-size: 8px;
    padding: 0.4rem;
  }
  */

  .keypad__btn {
    width: 70px;
    height: 70px;
    font-size: 10px;
  }
  .keypad {
    grid-template-columns: repeat(3, 80px);
    gap: 6px;
    justify-self: end;
    align-self: end;
  }

  .portfolio {
    padding: 2rem 1rem;
  }

  .portfolio .portfolio__layout .portfolio__text {
    width: 100%;
    max-width: 840px;
    margin-bottom: 1.5rem;
  }

  .portfolio__gallery {
    aspect-ratio: auto !important;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 0;
  }

  .portfolio__gallery .portfolio__img-btn {
    position: static !important;
    width: 100% !important;
    height: auto !important;
  }

  .portfolio__gallery .portfolio__img-btn img {
    width: 100%;
    height: auto;
    object-fit: contain;
  }

  .desktop-only {
    display: none !important;
  }

  .lightbox__content {
    padding: 3rem 3.5rem 1rem;
  }

  .about-page {
    padding: 1.5rem;
  }

  .page-header {
    padding: 1.5rem 1.5rem 0;
  }

  .legal-page {
    padding: 1.5rem;
  }

  .site-footer {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 1rem;
  }

  .hero__logo--desktop {
    display: none;
  }

  .hero__logo--mobile {
    display: block;
    max-height: 48px;
  }

  .hero__tagline-wrap {
    margin: 30px 0 50px;
  }
  .hero__tagline--desktop {
    display: none;
  }

  .hero__tagline--mobile {
    display: block;
    max-width: 280px;
  }

  .keypad {
    justify-self: center;
    align-self: center;
  }

}
