/* ==========================================================================
   Kingdom Photo Ltd. — modern stylesheet
   Light theme, mobile-first, with the original #be1212 red as the accent.
   ========================================================================== */

:root {
  /* Brand */
  --red: #be1212;
  --red-dark: #9a0f0f;
  --red-tint: #fbe9e9;

  /* Neutrals */
  --ink: #1c1a19;
  --ink-soft: #565049;
  --surface: #ffffff;
  --surface-alt: #f6f3f0;
  --surface-dark: #1c1a19;
  --line: #e4ddd5;

  /* Type */
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;

  /* Scale */
  --space: 1rem;
  --radius: 10px;
  --shadow: 0 6px 24px rgba(28, 26, 25, 0.10);
  --shadow-sm: 0 2px 8px rgba(28, 26, 25, 0.08);
  --maxw: 1080px;
  --header-h: 4.25rem;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  -webkit-text-size-adjust: 100%;
}

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

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--surface);
  line-height: 1.65;
  border-top: 5px solid var(--red);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); }
a:hover { color: var(--red-dark); }

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 2px;
  border-radius: 3px;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0.5rem;
  z-index: 200;
  background: var(--red);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: var(--radius);
  font-weight: 700;
}
.skip-link:focus { left: 1rem; color: #fff; }

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

/* --------------------------------------------------------------------------
   Header & navigation
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.brand {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--red);
  text-decoration: none;
  line-height: 1;
  letter-spacing: 0.01em;
}
.brand__suffix { margin-left: 0.3em; }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--red);
  color: #fff;
  border: 0;
  padding: 0.55rem 0.9rem;
  border-radius: var(--radius);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.nav-toggle__box {
  width: 18px; height: 2px;
  background: #fff;
  position: relative;
}
.nav-toggle__box::before,
.nav-toggle__box::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px; height: 2px;
  background: #fff;
}
.nav-toggle__box::before { top: -6px; }
.nav-toggle__box::after { top: 6px; }

.primary-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}
.primary-nav a {
  display: block;
  padding: 0.5rem 0.8rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 8px;
}
.primary-nav a:hover { background: var(--red-tint); color: var(--red-dark); }
.primary-nav a.is-active { color: var(--red); }
.primary-nav a.is-active::after {
  content: "";
  display: block;
  height: 2px;
  background: var(--red);
  border-radius: 2px;
  margin-top: 2px;
}
.primary-nav__cta {
  background: var(--red);
  color: #fff !important;
}
.primary-nav__cta:hover { background: var(--red-dark); }
.primary-nav__cta.is-active::after { background: #fff; }

/* Mobile: collapse the nav behind the toggle (only when JS is available). */
.js .nav-toggle { display: inline-flex; }
.no-js .nav-toggle { display: none; }

@media (max-width: 819px) {
  .js .primary-nav {
    display: none;
    position: absolute;
    left: 0; right: 0;
    top: 100%;
    flex-direction: column;
    gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 0.5rem 1.25rem 1rem;
  }
  .js .primary-nav.is-open { display: flex; }
  .primary-nav a { padding: 0.7rem 0.5rem; font-size: 1rem; }
  .primary-nav a.is-active::after { display: none; }
  .primary-nav__cta { margin-top: 0.4rem; text-align: center; }
  .site-header__inner { position: relative; }
}

@media (min-width: 820px) {
  .nav-toggle { display: none !important; }
  .primary-nav { display: flex !important; }
}

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

.hero {
  background:
    radial-gradient(60% 80% at 50% 0%, var(--red-tint) 0%, transparent 70%),
    var(--surface-alt);
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.hero__inner {
  padding-block: clamp(3rem, 8vw, 6rem);
}

.eyebrow,
.kicker {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--red);
}

.hero__title {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 700;
  color: var(--red);
  font-size: clamp(2.6rem, 8vw, 4.5rem);
  line-height: 1.05;
  margin: 0.5rem 0 0;
  text-shadow: 1px 1px 0 rgba(28, 26, 25, 0.10);
}
.hero__title span { margin-left: 0.25em; }

.hero__tagline {
  max-width: 46ch;
  margin: 1.1rem auto 0;
  font-size: 1.1rem;
  color: var(--ink-soft);
}

.hero__note {
  margin-top: 1.25rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: center;
  margin-top: 1.6rem;
}
.section .btn-group { justify-content: flex-start; }

.btn {
  display: inline-block;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius);
  font-weight: 700;
  text-decoration: none;
  border: 2px solid var(--red);
  transition: background-color 0.15s, color 0.15s, transform 0.05s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: var(--red-dark); border-color: var(--red-dark); color: #fff; }
.btn--ghost { background: transparent; color: var(--red); }
.btn--ghost:hover { background: var(--red); color: #fff; }

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.section {
  padding-block: clamp(2.75rem, 6vw, 4.5rem);
}
.section--alt {
  background: var(--surface-alt);
  border-block: 1px solid var(--line);
}

.section__head { margin-bottom: 1.75rem; }

h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  line-height: 1.2;
  margin-top: 0.35rem;
}
h3 {
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
}

.section__body > * + * { margin-top: 0.9rem; }
.section__body p { max-width: 62ch; }

.section__grid {
  display: grid;
  gap: 2rem;
  align-items: start;
}
@media (min-width: 760px) {
  .section__grid {
    grid-template-columns: 1fr auto;
  }
  .section__grid .equipment { width: 250px; }
}

.callout {
  display: inline-block;
  background: var(--red-tint);
  color: var(--red-dark);
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  border-left: 4px solid var(--red);
}

.muted { color: var(--ink-soft); }

/* Photo-print style image frame */
.photo-print {
  background: #fff;
  padding: 0.7rem 0.7rem 0.5rem;
  box-shadow: var(--shadow);
  border-radius: 4px;
  width: max-content;
  max-width: 100%;
  margin-inline: auto;
}
.photo-print img { border-radius: 2px; }
.photo-print figcaption {
  margin-top: 0.5rem;
  font-size: 0.82rem;
  color: var(--ink-soft);
  text-align: center;
}

/* Equipment photos (photofinishing) */
.equipment { display: grid; gap: 1rem; }
.equipment figure {
  background: #fff;
  padding: 0.6rem;
  border-radius: 6px;
  box-shadow: var(--shadow-sm);
}
.equipment figcaption {
  margin-top: 0.4rem;
  font-size: 0.82rem;
  color: var(--ink-soft);
  text-align: center;
}

/* --------------------------------------------------------------------------
   Pricing tables
   -------------------------------------------------------------------------- */

.price-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 2rem;
}
@media (min-width: 640px) {
  .price-grid { grid-template-columns: 1fr 1fr; }
}

.price-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}
.section--alt .price-card { background: #fff; }
.price-card h3 { color: var(--red); }

.price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.96rem;
}
.price-table caption {
  text-align: left;
  font-weight: 700;
  color: var(--red);
  margin-bottom: 0.5rem;
}
.price-table th[scope="col"] {
  text-align: right;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  padding: 0.4rem 0.5rem;
  border-bottom: 2px solid var(--line);
}
.price-table th[scope="col"]:first-child { text-align: left; }
.price-table th[scope="row"] {
  text-align: left;
  font-weight: 600;
}
.price-table td,
.price-table th[scope="row"] {
  padding: 0.5rem 0.5rem;
  border-bottom: 1px solid var(--line);
}
.price-table td { text-align: right; }
.price-table tr:last-child td,
.price-table tr:last-child th { border-bottom: 0; }
.price-table--wide { margin-top: 1.25rem; max-width: 24rem; }

.price-note {
  font-size: 0.86rem;
  color: var(--ink-soft);
  margin-top: 0.9rem;
}

/* --------------------------------------------------------------------------
   Services list
   -------------------------------------------------------------------------- */

.services-list {
  list-style: none;
  display: grid;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
}
@media (min-width: 640px) {
  .services-list { grid-template-columns: 1fr 1fr; }
}
.services-list li {
  padding-left: 1.6rem;
  position: relative;
}
.services-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.62em;
  width: 8px; height: 8px;
  background: var(--red);
  border-radius: 2px;
}

/* --------------------------------------------------------------------------
   Reviews
   -------------------------------------------------------------------------- */

.reviews { text-align: center; }
.reviews__logo {
  display: inline-flex;
  background: #fff;
  padding: 0.7rem;
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
  margin-bottom: 0.9rem;
}
.reviews .kicker { display: block; }
.reviews h2 { margin-top: 0.35rem; }

.reviews__rating {
  margin-top: 0.85rem;
  color: var(--ink-soft);
  font-size: 1rem;
}
.reviews__rating strong {
  color: var(--ink);
  font-size: 1.45rem;
  margin: 0 0.25rem 0 0.5rem;
}
.stars {
  color: #f4b400;
  letter-spacing: 0.08em;
  font-size: 1.2rem;
  vertical-align: -0.05em;
}

.testimonials {
  list-style: none;
  display: grid;
  gap: 1.25rem;
  margin: 2.2rem 0 0;
  text-align: left;
}
@media (min-width: 900px) {
  .testimonials { grid-template-columns: repeat(3, 1fr); }
}

.testimonial {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.3rem 1.1rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  position: relative;
}
.testimonial::before {
  content: "\201C";
  position: absolute;
  top: -0.4rem;
  left: 0.6rem;
  font-family: var(--font-serif);
  font-size: 3.75rem;
  line-height: 1;
  color: var(--red-tint);
  pointer-events: none;
}
.testimonial blockquote { margin: 0; flex: 1; }
.testimonial blockquote p {
  font-size: 0.95rem;
  line-height: 1.62;
  color: var(--ink);
}
.testimonial footer {
  margin-top: 1rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.testimonial cite {
  font-style: normal;
  font-weight: 700;
  color: var(--ink);
}
.testimonial__source {
  color: var(--ink-soft);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.reviews .btn-group {
  justify-content: center;
  margin-top: 2rem;
}

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

.contact {
  display: grid;
  gap: 2rem;
}
@media (min-width: 760px) {
  .contact { grid-template-columns: 1fr 1fr; align-items: start; }
}
.contact__details h3 {
  color: var(--red);
  margin-top: 1.4rem;
}
.contact__details h3:first-child { margin-top: 0; }
.contact address {
  font-style: normal;
  line-height: 1.7;
}
.contact .callout { margin-top: 1rem; }
.contact .btn-group { margin-top: 1.4rem; }

.contact__map iframe {
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

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

.site-footer {
  background: var(--surface-dark);
  color: #d9d4cf;
  padding-block: 2.25rem;
}
.site-footer__inner { text-align: center; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--red-tint); }

.site-footer__brand {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 700;
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 0.4rem;
}
.site-footer__brand span { margin-left: 0.25em; color: var(--red); }
.site-footer__legal {
  margin-top: 0.8rem;
  font-size: 0.82rem;
  color: #97918b;
}
