:root {
  color-scheme: light;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.6;
  /* Brand palette */
  --text: #0b1224;
  --muted: #d9e2ec;
  --muted-dark: #6b7280;
  --accent: #e24b4b;
  --accent-strong: #c9303e;
  --accent-light: #f6a24d;
  --primary: linear-gradient(135deg, #f6d365 0%, #fda085 40%, #f36f6f 100%);
  --primary-foreground: #0f1117;
  --primary-shadow: 0 14px 40px rgba(243, 111, 111, 0.4);
  /* Surfaces */
  --nav-bg: rgba(8, 8, 8, 0.9);
  --nav-border: rgba(255, 255, 255, 0.12);
  --panel: rgba(255, 255, 255, 0.2);
  --panel-strong: rgba(255, 255, 255, 0.35);
  --panel-soft: rgba(255, 255, 255, 0.08);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  --surface: #f7f7f8;
  --surface-strong: #0f1117;
  --surface-contrast: #0f172a;
  --surface-contrast-strong: #131a26;
  --surface-contrast-soft: #1f2735;
  --surface-contrast-fg: #e8ebf0;
  --surface-contrast-muted: rgba(232, 235, 240, 0.82);
  --surface-contrast-strong-fg: #111827;
  --surface-border: #e5e7eb;
  --surface-subtle: #4b5563;
  --link: #0f172a;
  --link-hover: #111827;
  --outline: rgba(226, 75, 75, 0.7);
  --white: #ffffff;
  --nav-height: clamp(76px, 12vw, 96px);
}

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

body {
  color: var(--text);
  min-height: 100vh;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

.page-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.is-hidden {
  display: none !important;
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 12px clamp(12px, 3vw, 42px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--nav-bg);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  z-index: 10;
  color: var(--white);
  min-height: var(--nav-height);
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.brand:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 6px;
  border-radius: 12px;
}

.brand img {
  display: block;
  height: auto;
  width: auto;
  max-height: clamp(41px, 7.2vw, 65px);
  max-width: clamp(162px, 34.2vw, 324px);
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.25));
  border-radius: 10px;
}

.nav-links {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
}

.nav-links a {
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.82);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-links .nav-logout {
  margin-left: 10px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: var(--primary);
  color: var(--primary-foreground);
  box-shadow: var(--primary-shadow);
  font-size: clamp(15px, 1.2vw, 16px);
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--white);
  background: var(--panel-soft);
  transform: translateY(-1px);
}

.nav-links .nav-logout:hover {
  color: var(--primary-foreground);
  background: var(--primary);
  box-shadow: 0 18px 42px rgba(243, 111, 111, 0.45);
  transform: translateY(-2px);
  filter: brightness(1.04);
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px;
  background: var(--panel-soft);
  border: 1px solid var(--nav-border);
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.nav-toggle__bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--white);
  border-radius: 999px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.is-open .nav-toggle__bar:nth-child(2) {
  transform: translateY(6px) rotate(45deg);
}

.is-open .nav-toggle__bar:nth-child(3) {
  opacity: 0;
}

.is-open .nav-toggle__bar:nth-child(4) {
  transform: translateY(-6px) rotate(-45deg);
}

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(24px, 4vw, 36px);
  padding: clamp(180px, 32vh, 320px) clamp(24px, 6vw, 96px)
    clamp(140px, 18vh, 220px);
  position: relative;
  color: var(--white);
  background: linear-gradient(
        140deg,
        rgba(0, 0, 0, 0.82),
        rgba(0, 0, 0, 0.58)
      ),
    url("/static/images/hero.png")
      center / cover no-repeat fixed;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 20% 20%,
    rgba(118, 163, 255, 0.16),
    transparent 35%
  );
  pointer-events: none;
}

.hero-content {
  max-width: 640px;
  display: grid;
  gap: 18px;
  justify-items: center;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: clamp(42px, 6.8vw, 70px);
  line-height: 1.04;
  text-shadow: 0 14px 32px rgba(0, 0, 0, 0.45);
}

.headline-line {
  display: block;
}

.hero .lede {
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(19px, 2.25vw, 22px);
  max-width: 560px;
  text-align: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: clamp(12px, 1.4vw, 13.5px);
  font-weight: 800;
  color: var(--muted-dark);
}

.hero .eyebrow {
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
  justify-content: center;
}

.primary,
.ghost,
.secondary,
.tertiary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 20px;
  border-radius: 14px;
  font-weight: 700;
  font-size: clamp(15px, 1.2vw, 16px);
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease,
    background 0.2s ease, border-color 0.2s ease;
}

.primary {
  background: var(--primary);
  color: var(--primary-foreground);
  box-shadow: var(--primary-shadow);
}

.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 46px rgba(243, 111, 111, 0.55);
}

.ghost {
  color: var(--white);
  border-color: var(--panel-strong);
  background: var(--panel-soft);
}

.ghost:hover {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

.secondary {
  background: #f4f6f8;
  border-color: var(--surface-border);
  color: var(--surface-contrast);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.05);
}

.secondary:hover {
  background: #e9edf2;
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.08);
}

.tertiary {
  padding: 10px 16px;
  background: #f8fafc;
  border-color: rgba(15, 23, 42, 0.12);
  color: var(--surface-subtle);
  font-size: clamp(14px, 1.05vw, 15px);
  font-weight: 500;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.tertiary:hover {
  background: #eef2f7;
  color: #374151;
  border-color: rgba(15, 23, 42, 0.16);
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.07);
}

.section-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding-inline: clamp(20px, 6vw, 72px);
}

.section-title {
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: inherit;
}

.trust-band {
  padding: clamp(20px, 4vw, 32px) 0;
  background: var(--surface-contrast);
}

.trust-band__background {
  padding: clamp(18px, 4vw, 28px) 0;
  background: var(--surface-contrast);
}

.trust-band__inner {
  display: grid;
  gap: 12px;
}

.trust-band__eyebrow {
  color: var(--surface-border);
  text-transform: none;
  letter-spacing: 0.09em;
  font-weight: 700;
}

.trust-card {
  background: var(--white);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.trust-card__badge {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-shrink: 0;
  width: clamp(140px, 26vw, 190px);
  max-width: 100%;
}

.trust-card__badge img {
  display: block;
  height: clamp(70px, 16vw, 94px);
  width: auto;
  border-radius: 12px;
  border: 1px solid var(--surface-border);
  background: var(--white);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.08);
}

.trust-card__badge--google img {
  border: none;
  background: transparent;
  box-shadow: none;
  height: clamp(64px, 14vw, 88px);
}

.trust-card__copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.trust-card__title {
  font-weight: 800;
  font-size: clamp(17px, 2.4vw, 20px);
  color: var(--surface-contrast);
  line-height: 1.2;
}

.trust-card__subtitle {
  color: var(--surface-subtle);
  font-weight: 600;
  font-size: 15px;
  line-height: 1.3;
}

.testimonials {
  padding: clamp(64px, 9vw, 110px) 0 clamp(86px, 11vw, 128px);
  background: var(--surface-strong);
  color: var(--surface-contrast-fg);
}

.testimonials__inner {
  display: grid;
  gap: clamp(26px, 4vw, 36px);
}

.testimonials__header {
  display: grid;
  gap: 10px;
  max-width: 720px;
}

.section-subtitle {
  color: var(--surface-subtle);
  font-size: 16px;
}

.testimonials .section-subtitle,
.process .section-subtitle {
  color: var(--surface-contrast-muted);
}

.testimonial-grid {
  display: grid;
  gap: clamp(18px, 3vw, 24px);
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.testimonial-card {
  position: relative;
  background: var(--surface-contrast-strong);
  border: 1px solid var(--surface-contrast-soft);
  border-radius: 20px;
  padding: clamp(20px, 3vw, 26px);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.35);
  display: grid;
  gap: 10px;
  min-height: 180px;
  overflow: hidden;
}

.testimonial-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(226, 75, 75, 0.16), transparent 40%);
  opacity: 0.9;
  pointer-events: none;
}

.quote-mark {
  font-size: 34px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  position: relative;
  z-index: 1;
  margin-bottom: -4px;
}

.quote {
  font-size: 17px;
  color: rgba(232, 235, 240, 0.94);
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

.quote-author {
  font-weight: 700;
  color: rgba(232, 235, 240, 0.86);
  letter-spacing: 0.02em;
  position: relative;
  z-index: 1;
}

@media (max-width: 960px) {
  .hero {
    padding-top: clamp(120px, 18vh, 160px);
    padding-bottom: clamp(80px, 12vh, 160px);
    background-attachment: scroll, scroll;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 12px);
    right: clamp(12px, 3vw, 42px);
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(10, 10, 12, 0.94);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
    min-width: min(280px, calc(100% - 24px));
    opacity: 0;
    transform: translateY(-6px) scale(0.98);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .is-open .nav-links {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
  }

  .nav-links a {
    width: 100%;
    text-align: left;
    padding: 12px 14px;
    border-radius: 10px;
  }

  .nav-links .nav-logout {
    margin-left: 0;
    text-align: center;
  }
}

@media (max-width: 640px) {
  .nav {
    padding-inline: clamp(12px, 4vw, 22px);
  }

  .nav-links {
    gap: 12px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero {
    gap: 28px;
  }

  .trust-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 18px;
  }
}

.page-hero {
  position: relative;
  padding: clamp(90px, 12vw, 140px) clamp(16px, 5vw, 64px)
    clamp(80px, 10vw, 120px);
  padding-top: calc(var(--nav-height) + clamp(54px, 10vw, 90px));
  background: radial-gradient(
      circle at 12% 18%,
      rgba(226, 75, 75, 0.14),
      transparent 32%
    ),
    radial-gradient(circle at 88% 12%, rgba(246, 211, 101, 0.18), transparent 32%),
    linear-gradient(145deg, #0f1117, #131a26 48%, #0b1224);
  color: var(--white);
  overflow: hidden;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/static/images/hero.png") center / cover no-repeat;
  opacity: 0.18;
  mix-blend-mode: screen;
  pointer-events: none;
}

.page-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 16px;
  max-width: 820px;
}

.page-hero h1 {
  font-size: clamp(34px, 6vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.01em;
}

.page-hero__lede {
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(17px, 2vw, 19px);
  max-width: 740px;
}

.page-hero__actions {
  justify-content: flex-start;
}

.contact-section {
  background: var(--surface);
  color: var(--text);
  padding: clamp(60px, 9vw, 110px) 0;
}

.contact-section__inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(24px, 4vw, 40px);
  align-items: start;
}

.contact-copy {
  display: grid;
  gap: 14px;
}

.contact-copy h2 {
  font-size: clamp(26px, 3vw, 32px);
  line-height: 1.2;
}

.contact-highlights {
  list-style: none;
  display: grid;
  gap: 8px;
  margin-top: 6px;
  color: var(--surface-contrast);
}

.contact-highlights li {
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--white);
  border: 1px solid var(--surface-border);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.05);
  font-weight: 600;
}

.admin-page {
  min-height: calc(100vh - var(--nav-height));
  padding: calc(var(--nav-height) + 36px) clamp(16px, 6vw, 32px) clamp(80px, 10vw, 140px);
  display: flex;
  align-items: center;
  background:
    radial-gradient(120% 120% at 20% 10%, rgba(243, 111, 111, 0.08), transparent),
    radial-gradient(140% 120% at 80% 10%, rgba(246, 162, 77, 0.07), transparent),
    var(--surface);
}

.admin-page .section-shell {
  width: 100%;
}

.admin-card {
  max-width: 520px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--surface-border);
  border-radius: 18px;
  padding: clamp(20px, 4vw, 32px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

.admin-card__header {
  display: grid;
  gap: 14px;
  justify-items: center;
  text-align: center;
  margin-bottom: 12px;
}

.admin-logo {
  max-width: clamp(220px, 45vw, 300px);
  height: auto;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.18));
}

.admin-card__copy h1 {
  font-size: clamp(24px, 3vw, 28px);
  letter-spacing: -0.01em;
}

.admin-lede {
  color: var(--surface-contrast);
  font-weight: 600;
}

.admin-alert {
  background: rgba(226, 75, 75, 0.1);
  border: 1px solid rgba(226, 75, 75, 0.32);
  color: var(--surface-contrast-strong);
  border-radius: 12px;
  padding: 12px 14px;
  font-weight: 700;
  margin-bottom: 10px;
  text-align: center;
}

.admin-form {
  display: grid;
  gap: 14px;
}

.admin-form label {
  display: grid;
  gap: 8px;
  color: var(--surface-contrast);
  font-weight: 700;
  font-size: 15px;
}

.admin-form input {
  width: 100%;
  padding: 12px 13px;
  border-radius: 12px;
  border: 1px solid var(--surface-border);
  background: var(--surface);
  color: var(--surface-contrast-strong);
  font: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.admin-form input:focus {
  border-color: rgba(226, 75, 75, 0.6);
  box-shadow: 0 0 0 4px rgba(226, 75, 75, 0.16);
  outline: none;
}

.admin-submit {
  width: 100%;
}

.admin-dashboard {
  align-items: flex-start;
}

.admin-dashboard__header {
  max-width: 880px;
  margin: 0 auto clamp(20px, 4vw, 32px);
  text-align: center;
  display: grid;
  gap: 12px;
}

.admin-dashboard__lede {
  color: var(--surface-contrast);
  font-weight: 600;
  line-height: 1.6;
}

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--surface-border);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08);
  width: fit-content;
  margin: 0 auto clamp(20px, 4vw, 32px);
}

.admin-tab {
  border: none;
  background: transparent;
  padding: 10px 22px;
  border-radius: 999px;
  font-weight: 700;
  color: var(--surface-contrast);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.admin-tab.is-active {
  background: var(--primary);
  color: var(--primary-foreground);
  box-shadow: 0 12px 26px rgba(243, 111, 111, 0.4);
}

.admin-panel {
  display: none;
}

.admin-panel.is-active {
  display: block;
}

.admin-panel__intro {
  max-width: 760px;
  margin: 0 auto clamp(20px, 4vw, 30px);
  text-align: center;
  display: grid;
  gap: 10px;
  color: var(--surface-contrast);
  font-weight: 600;
  line-height: 1.6;
}

.admin-category-grid {
  display: grid;
  gap: clamp(18px, 3vw, 28px);
}

.admin-category {
  background: var(--white);
  border: 1px solid var(--surface-border);
  border-radius: 20px;
  padding: clamp(18px, 3vw, 26px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08);
  display: grid;
  gap: 16px;
}

.admin-category__header {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
}

.admin-category__header h3 {
  font-size: clamp(20px, 2vw, 24px);
  margin-bottom: 4px;
}

.admin-category__header p {
  color: var(--surface-contrast);
  font-weight: 600;
}

.admin-category__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-upload-button {
  position: relative;
  gap: 8px;
}

.admin-upload-button input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.admin-category__status {
  font-size: 14px;
  font-weight: 600;
  color: var(--surface-contrast);
}

.admin-category__status[data-state="error"] {
  color: #b42318;
}

.admin-category__status[data-state="loading"] {
  color: var(--muted-dark);
}

.admin-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.admin-photo-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--surface-border);
  background: #f8fafc;
  aspect-ratio: 4 / 3;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.admin-photo-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.2);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.admin-photo-card:hover,
.admin-photo-card:focus-within {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.12);
}

.admin-photo-card:hover::after,
.admin-photo-card:focus-within::after {
  opacity: 1;
}

.admin-photo-card.is-deleting {
  opacity: 0.6;
  pointer-events: none;
}

.admin-photo-card.is-updating {
  pointer-events: none;
}

.admin-photo-cover-toggle,
.admin-photo-delete {
  position: absolute;
  top: 10px;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: none;
  display: grid;
  place-items: center;
  background: rgba(17, 24, 39, 0.7);
  color: #fff;
  cursor: pointer;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease;
  z-index: 2;
}

.admin-photo-cover-toggle {
  left: 10px;
  background: rgba(17, 24, 39, 0.72);
}

.admin-photo-delete {
  right: 10px;
}

.admin-photo-card.is-cover-image .admin-photo-cover-toggle {
  opacity: 1;
  transform: translateY(0);
  background: rgba(245, 158, 11, 0.95);
  color: #1f2937;
}

.admin-photo-card.is-cover-image .admin-photo-cover-toggle:hover {
  background: rgba(217, 119, 6, 0.95);
  color: #111827;
}

.admin-photo-card:hover .admin-photo-cover-toggle,
.admin-photo-card:focus-within .admin-photo-cover-toggle,
.admin-photo-card:hover .admin-photo-delete,
.admin-photo-card:focus-within .admin-photo-delete {
  opacity: 1;
  transform: translateY(0);
}

.admin-photo-cover-toggle:hover {
  background: rgba(245, 158, 11, 0.92);
  color: #111827;
}

.admin-photo-delete:hover {
  background: rgba(185, 28, 28, 0.85);
}

.admin-photo-cover-toggle span,
.admin-photo-delete span {
  font-size: 20px;
}

.admin-delete {
  background: #b42318;
  color: #fff;
  border-color: rgba(185, 28, 28, 0.6);
  box-shadow: 0 14px 30px rgba(185, 28, 28, 0.25);
}

.admin-delete:hover {
  background: #9c1c14;
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(185, 28, 28, 0.3);
}

.admin-modal {
  border: none;
  padding: 0;
  background: transparent;
  margin: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  display: none;
  place-items: center;
}

.admin-modal[open] {
  display: grid;
}

.admin-modal::backdrop {
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(2px);
}

.admin-modal__card {
  background: var(--white);
  border-radius: 18px;
  padding: 24px;
  border: 1px solid var(--surface-border);
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.18);
  width: min(420px, calc(100% - 32px));
}

.admin-modal__card h3 {
  margin-bottom: 8px;
  font-size: 20px;
}

.admin-modal__card p {
  margin: 0 0 20px;
  color: var(--surface-contrast);
  font-weight: 500;
}

.admin-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 720px) {
  .admin-tabs {
    width: 100%;
    border-radius: 18px;
  }

  .admin-tab {
    flex: 1 1 120px;
  }
}

.contact-action-card {
  background: var(--white);
  border: 1px solid var(--surface-border);
  border-radius: 16px;
  padding: clamp(18px, 3vw, 24px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08);
  display: grid;
  gap: 14px;
  align-content: start;
}

.contact-action-card h3 {
  font-size: clamp(22px, 3vw, 28px);
  line-height: 1.2;
  color: var(--surface-contrast);
}

.contact-action-card p {
  color: var(--surface-subtle);
}

.contact-action-card__buttons {
  display: grid;
  gap: 10px;
}

.portfolio-section {
  background: var(--surface);
  padding: clamp(52px, 8vw, 96px) 0;
}

.portfolio-section__inner {
  display: grid;
  gap: clamp(24px, 4vw, 32px);
}

.portfolio-intro {
  display: grid;
  gap: 10px;
  max-width: 820px;
}

.portfolio-heading {
  display: grid;
  gap: 8px;
  align-items: start;
  justify-items: start;
}

.portfolio-layout {
  display: grid;
  gap: clamp(18px, 3vw, 28px);
}

.portfolio-grid {
  display: grid;
  gap: clamp(18px, 2.8vw, 22px);
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.portfolio-card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--surface-border);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.12);
  display: grid;
  grid-template-rows: auto 1fr;
  color: var(--surface-contrast);
  min-height: 314px;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.portfolio-card:hover,
.portfolio-card:focus-within {
  transform: translateY(-4px);
  border-color: rgba(226, 75, 75, 0.22);
  box-shadow: 0 20px 52px rgba(0, 0, 0, 0.16);
}

.portfolio-card__media {
  position: relative;
  height: 180px;
  background-image: var(--card-image);
  background-size: cover;
  background-position: center;
  isolation: isolate;
}

.portfolio-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(9, 12, 20, 0) 0%, rgba(9, 12, 20, 0.45) 80%);
  z-index: 0;
}

.portfolio-card__media.is-empty {
  background: transparent;
}

.portfolio-card__media.is-empty::after {
  display: none;
}

.portfolio-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--surface-subtle);
  font-weight: 600;
  font-size: 12px;
  width: fit-content;
  letter-spacing: 0.01em;
  border: 1px solid rgba(15, 23, 42, 0.08);
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 1;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(6px);
}

.portfolio-card__badge-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  color: var(--surface-subtle);
}

.portfolio-card__badge-icon svg {
  width: 18px;
  height: 18px;
}

.portfolio-card__badge-text {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--surface-subtle);
  font-weight: 600;
}

.portfolio-card__badge-count {
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  color: var(--surface-subtle);
}

.portfolio-card__badge-spinner {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid currentColor;
  border-top-color: transparent;
  display: inline-block;
  animation: portfolio-spin 0.7s linear infinite;
}

@keyframes portfolio-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .portfolio-card__badge-spinner {
    animation: none;
  }
}

.portfolio-card h3 {
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--surface-contrast);
  margin: 0;
}

.portfolio-card__body {
  display: grid;
  gap: 4px;
  padding: clamp(14px, 2.6vw, 18px);
}

.portfolio-card__summary {
  color: var(--surface-subtle);
  font-size: 15px;
  margin: 0;
}

.portfolio-detail {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

.portfolio-detail.is-hidden {
  display: none;
}

.portfolio-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-transform: none;
  font-weight: 800;
  line-height: 1.1;
  transition: color 0.2s ease;
}

.portfolio-back-link:hover,
.portfolio-back-link:focus-visible {
  color: var(--surface-contrast);
}

.portfolio-back-link__icon {
  display: inline-flex;
  width: 16px;
  height: 16px;
}

.portfolio-back-link__icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  stroke-width: 2.6;
}

.portfolio-detail__panel {
  display: block;
}

.portfolio-detail__panel:not(.is-active) {
  display: none;
}

.portfolio-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 3vw, 24px);
}

.portfolio-photo-grid__status {
  grid-column: 1 / -1;
  margin: 0;
  padding: 32px;
  border-radius: 16px;
  text-align: center;
  background: var(--surface);
  color: var(--muted-dark);
  font-weight: 600;
}

.portfolio-photo {
  border: 1px solid var(--surface-border);
  padding: 0;
  border-radius: 16px;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  aspect-ratio: 4 / 5;
  display: block;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.portfolio-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}

.portfolio-photo:hover,
.portfolio-photo:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.14);
  border-color: rgba(226, 75, 75, 0.22);
}

.portfolio-photo:hover img,
.portfolio-photo:focus-visible img {
  transform: scale(1.03);
  transition: transform 0.25s ease;
}

@media (min-width: 720px) {
  .portfolio-photo {
    aspect-ratio: 3 / 4;
  }
}

.photo-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 5vw, 40px);
  background: rgba(8, 12, 24, 0.8);
  backdrop-filter: blur(4px);
  z-index: 30;
}

.photo-modal.is-active {
  display: flex;
}

.photo-modal__backdrop {
  position: absolute;
  inset: 0;
}

.photo-modal__dialog {
  position: relative;
  z-index: 1;
  background: #0d111c;
  border-radius: 16px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
  max-width: min(960px, 96vw);
  overflow: hidden;
}

.photo-modal__dialog img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 80vh;
  object-fit: contain;
  background: #0d111c;
}

.photo-modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  font-size: 20px;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.2);
  transition: background 0.2s ease, transform 0.2s ease;
}

.photo-modal__close:hover,
.photo-modal__close:focus-visible {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

body.has-modal {
  overflow: hidden;
}

.services-grid {
  background: var(--surface);
  color: var(--text);
  padding: clamp(60px, 9vw, 110px) 0;
}

.services-grid__inner {
  display: grid;
  gap: clamp(28px, 4vw, 40px);
}

.services-grid__header {
  display: grid;
  gap: 8px;
  max-width: 720px;
}

.service-card-grid {
  display: grid;
  gap: clamp(16px, 3vw, 24px);
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  grid-auto-rows: 1fr;
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(18px, 3vw, 22px);
  background: var(--white);
  border: 1px solid var(--surface-border);
  border-radius: 16px;
  color: var(--surface-contrast);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease,
    background 0.2s ease;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.07);
  overflow: hidden;
  height: 100%;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
        circle at 18% 20%,
        rgba(226, 75, 75, 0.08),
        transparent 40%
      ),
    radial-gradient(circle at 82% 12%, rgba(246, 211, 101, 0.08), transparent 38%);
  opacity: 0.95;
  pointer-events: none;
}

.service-card:hover,
.service-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
  border-color: rgba(226, 75, 75, 0.2);
}

.service-card__body {
  display: grid;
  gap: 14px;
  grid-template-rows: auto 1fr auto;
  height: 100%;
  flex: 1;
  position: relative;
  z-index: 1;
}

.service-card__header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.service-card__icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(226, 75, 75, 0.12);
  display: grid;
  place-items: center;
  position: relative;
  color: var(--accent);
  z-index: 1;
}

.service-card__icon .material-symbols-rounded {
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
  font-size: 22px;
  line-height: 1;
}

.service-card__body h3 {
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--surface-contrast);
}

.service-card__list {
  list-style: none;
  display: grid;
  gap: 7px;
  align-content: start;
  color: var(--surface-subtle);
  font-size: 15px;
  padding: 0;
  padding-left: 4px;
}

.service-card__list li {
  display: grid;
  grid-template-columns: 10px 1fr;
  align-items: start;
  column-gap: 10px;
  line-height: 1.45;
}

.service-card__list li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 6px;
}

.service-card__cta {
  width: 100%;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  margin-top: 6px;
}

.process {
  background: var(--surface-strong);
  color: var(--surface-contrast-fg);
  padding: clamp(60px, 9vw, 110px) 0;
}

.process__inner {
  display: grid;
  gap: clamp(26px, 4vw, 36px);
}

.process__header {
  display: grid;
  gap: 8px;
  max-width: 660px;
}

.process-steps {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.process-step {
  background: var(--surface-contrast-strong);
  border: 1px solid var(--surface-contrast-soft);
  border-radius: 16px;
  padding: 16px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.35);
}

.process-step__badge {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--surface-contrast-strong-fg);
  font-weight: 800;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 26px rgba(226, 75, 75, 0.35);
}

.process-step__body {
  display: grid;
  gap: 6px;
}

.process-step__body h3 {
  font-size: 17px;
}

.process-step__body p {
  color: var(--surface-contrast-muted);
}

.site-footer {
  background: var(--nav-bg);
  color: rgba(255, 255, 255, 0.86);
  padding: 18px clamp(16px, 4vw, 32px);
  border-top: 1px solid var(--nav-border);
}

.site-footer__inner {
  max-width: 1180px;
  margin: 0 auto;
  text-align: center;
  font-weight: 600;
  font-size: 15px;
}

.site-footer a {
  color: var(--accent-light);
  font-weight: 700;
}

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

@media (max-width: 640px) {
  .page-hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .page-hero {
    padding-bottom: clamp(72px, 11vw, 98px);
  }
}

.admin-testimonials {
  background: var(--white);
  border: 1px solid var(--surface-border);
  border-radius: 20px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.admin-testimonials__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px;
  border-bottom: 1px solid var(--surface-border);
}

.admin-testimonials__add {
  padding: 10px 16px;
  font-size: 14px;
  border-radius: 12px;
}

.admin-testimonials__table-wrap {
  overflow-x: auto;
}

.admin-testimonials__table {
  width: 100%;
  border-collapse: collapse;
}

.admin-testimonials__table th,
.admin-testimonials__table td {
  text-align: left;
  padding: 14px 18px;
  vertical-align: top;
  border-bottom: 1px solid var(--surface-border);
}

.admin-testimonials__table th {
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted-dark);
}

.admin-testimonial-row {
  position: relative;
}

.admin-testimonial-row:hover {
  background: #f8fafc;
}

.admin-testimonial-actions {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.admin-testimonial-row:hover .admin-testimonial-actions,
.admin-testimonial-row:focus-within .admin-testimonial-actions {
  opacity: 1;
  pointer-events: auto;
}

.admin-testimonial-action {
  border: 1px solid var(--surface-border);
  background: #fff;
  color: var(--surface-contrast);
  border-radius: 10px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.admin-testimonial-action:hover {
  background: #f8fafc;
}

.admin-testimonial-action--delete {
  color: #b42318;
}

.admin-modal__form {
  display: grid;
  gap: 12px;
}

.admin-modal__form label {
  display: grid;
  gap: 8px;
  font-weight: 600;
}

.admin-modal__form input,
.admin-modal__form textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--surface-border);
  padding: 10px 12px;
  font: inherit;
}

.admin-other {
  background: var(--white);
  border: 1px solid var(--surface-border);
  border-radius: 20px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.admin-other__header {
  padding: 18px;
  border-bottom: 1px solid var(--surface-border);
}

.admin-other__grid {
  padding: 18px;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.admin-other-field {
  border: 1px solid var(--surface-border);
  border-radius: 16px;
  padding: 14px;
  background: #fbfcfe;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.04);
  display: grid;
  gap: 8px;
}

.admin-other-field h3 {
  font-size: 17px;
  color: var(--surface-contrast);
}

.admin-other-field__key {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted-dark);
}

.admin-other-field__form {
  display: grid;
  gap: 10px;
}

.admin-other-field__form textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--surface-border);
  padding: 10px 12px;
  min-height: 96px;
  resize: vertical;
  font: inherit;
  color: var(--surface-contrast);
  background: var(--white);
}

.admin-other-field__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.admin-other-field__status {
  font-size: 13px;
  font-weight: 700;
  min-height: 20px;
  color: var(--muted-dark);
}

.admin-other-field__status[data-state="success"] {
  color: #157347;
}

.admin-other-field__status[data-state="error"] {
  color: #b42318;
}

.admin-other-field__save {
  padding: 10px 14px;
  font-size: 14px;
  border-radius: 12px;
}

.admin-other__empty {
  color: var(--muted-dark);
  font-weight: 600;
}

@media (max-width: 980px) {
  .admin-photo-grid,
  .portfolio-photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .admin-testimonials__header {
    flex-wrap: wrap;
  }

  .admin-testimonial-actions {
    opacity: 1;
    pointer-events: auto;
  }
}

@media (max-width: 540px) {
  .admin-photo-grid,
  .portfolio-photo-grid,
  .admin-other__grid {
    grid-template-columns: 1fr;
  }
}

@media (hover: none) {
  .admin-photo-delete {
    opacity: 1;
    transform: translateY(0);
  }
}
