/* ---------- Reset & base ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --black: #111111;
  --off-black: #1a1a1a;
  --white: #ffffff;
  --off-white: #f5f5f3;
  --gray: #6b6b6b;
  --light-gray: #e4e4e2;
  --border: #dcdcda;
  --font-head: 'Jost', sans-serif;
  --font-body: 'Inter', sans-serif;
  --max-width: 1140px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--black);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Logo ---------- */
.hero-heading {
  margin: 0;
  line-height: 0;
}

/* ---------- Hero ---------- */
.hero {
  background: var(--black);
  color: var(--white);
  padding: 5rem 0;
  text-align: center;
}

.hero-logo {
  display: block;
  height: 140px;
  width: auto;
  margin: 0 auto;
}

/* ---------- Intro ---------- */
.intro {
  padding: 3.5rem 0;
  text-align: center;
}

.intro-text {
  max-width: 640px;
  margin: 0 auto;
  color: var(--gray);
  font-size: 1rem;
  line-height: 1.8;
}

/* ---------- Section shared ---------- */
.section-title {
  font-family: var(--font-head);
  font-size: 1.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-align: center;
}

.section-sub {
  text-align: center;
  color: var(--gray);
  margin-top: 0.5rem;
  margin-bottom: 2.5rem;
  font-size: 0.95rem;
}

.section-sub.light {
  color: var(--light-gray);
}

.section-title.light {
  color: var(--white);
}

/* ---------- Services ---------- */
.services {
  padding: 3.5rem 0 4.5rem;
}

.services .section-title {
  font-size: 2.5rem;
  margin-bottom: 3.5rem;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.service-card {
  border: 1px solid var(--border);
  background: var(--white);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.service-card:hover {
  border-color: var(--black);
}

.service-media {
  aspect-ratio: 4 / 5;
  overflow: hidden;
}

.service-info {
  padding: 1.5rem 1.5rem 1.75rem;
  text-align: center;
}

.service-card h3 {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
  letter-spacing: 0.01em;
}

.service-card p {
  color: var(--gray);
  font-size: 0.92rem;
}

.placeholder-img {
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    45deg,
    var(--light-gray),
    var(--light-gray) 10px,
    #ececea 10px,
    #ececea 20px
  );
  display: flex;
  align-items: center;
  justify-content: center;
}

.placeholder-img span {
  font-family: var(--font-head);
  color: var(--gray);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  background: var(--white);
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--border);
}

.service-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.service-media {
  position: relative;
}

.service-card.has-gallery {
  cursor: pointer;
}

.service-card.has-gallery:focus-visible {
  outline: 2px solid var(--black);
  outline-offset: 3px;
}

.gallery-badge {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  background: rgba(17, 17, 17, 0.85);
  color: var(--white);
  font-family: var(--font-head);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  padding: 0.4rem 0.8rem;
}

/* ---------- Photo viewer ---------- */
body.no-scroll {
  overflow: hidden;
}

.gallery-dialog {
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.94);
  color: var(--white);
}

.gallery-dialog[open] {
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-dialog::backdrop {
  background: rgba(0, 0, 0, 0.94);
}

.gallery-figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 100%;
}

.gallery-image {
  display: block;
  max-width: 92vw;
  max-height: 80vh;
  object-fit: contain;
}

.gallery-caption {
  margin-top: 0.9rem;
  font-family: var(--font-head);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  color: var(--light-gray);
  text-align: center;
}

.gallery-close,
.gallery-nav {
  position: absolute;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  border: 0;
  cursor: pointer;
  line-height: 1;
  transition: background 0.2s ease;
}

.gallery-close:hover,
.gallery-nav:hover {
  background: rgba(255, 255, 255, 0.28);
}

.gallery-close {
  top: 1rem;
  right: 1rem;
  width: 2.75rem;
  height: 2.75rem;
  font-size: 1.9rem;
}

.gallery-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 2.75rem;
  height: 3.5rem;
  font-size: 2.4rem;
}

.gallery-prev {
  left: 0.5rem;
}

.gallery-next {
  right: 0.5rem;
}

.gallery-nav[hidden] {
  display: none;
}

/* ---------- Contact ---------- */
.contact {
  background: var(--black);
  color: var(--white);
  padding: 4.5rem 0 5rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
  max-width: 640px;
  margin: 0 auto;
}

.contact-card {
  border: 1px solid #333333;
  padding: 1.8rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: border-color 0.2s ease, background 0.2s ease;
}

a.contact-card:hover {
  border-color: var(--white);
  background: var(--off-black);
}

.contact-icon {
  width: 30px;
  height: 30px;
  margin-bottom: 1rem;
  color: var(--white);
}

.contact-icon svg {
  width: 100%;
  height: 100%;
}

.contact-label {
  font-family: var(--font-head);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 0.4rem;
}

.contact-value {
  font-size: 1.05rem;
  font-weight: 500;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--off-black);
  color: var(--gray);
  font-size: 0.8rem;
  padding: 1.5rem 0;
}

.footer-inner {
  text-align: center;
}

/* ---------- Tablet / Desktop ---------- */
@media (min-width: 640px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-grid {
    grid-template-columns: repeat(3, 1fr);
    max-width: none;
  }

  .hero-logo {
    height: 165px;
  }

  .intro-text {
    font-size: 1.05rem;
  }
}

@media (min-width: 900px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero {
    padding: 7rem 0;
  }

  .hero-logo {
    height: 200px;
  }

  .section-title {
    font-size: 2.1rem;
  }

  .services .section-title {
    font-size: 3rem;
  }

  .services {
    padding-top: 4.5rem;
  }
}
