@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;1,9..144,300&family=Sora:wght@400;600;700&display=swap');

:root {
  /* ── shadcn base tokens ───────────────────────────────────────── */
  --background: oklch(1 0 0);
  --foreground: oklch(0.145 0 0);
  --card: oklch(1 0 0);
  --card-foreground: oklch(0.145 0 0);
  --popover: oklch(1 0 0);
  --popover-foreground: oklch(0.145 0 0);
  --primary: oklch(0.205 0 0);
  --primary-foreground: oklch(0.985 0 0);
  --secondary: oklch(0.97 0 0);
  --secondary-foreground: oklch(0.205 0 0);
  --muted: oklch(0.97 0 0);
  --muted-foreground: oklch(0.556 0 0);
  --accent: oklch(0.97 0 0);
  --accent-foreground: oklch(0.205 0 0);
  --destructive: oklch(0.577 0.245 27.325);
  --destructive-foreground: oklch(0.985 0 0);
  --border: oklch(0.922 0 0);
  --input: oklch(0.922 0 0);
  --ring: oklch(0.708 0 0);
  --success: oklch(0.596 0.145 145.59);
  --warning: oklch(0.769 0.154 71.29);
  --chart-1: oklch(0.809 0.105 251.813);
  --chart-2: oklch(0.623 0.214 259.815);
  --chart-3: oklch(0.546 0.245 262.881);
  --chart-4: oklch(0.488 0.243 264.376);
  --chart-5: oklch(0.424 0.199 265.638);
  --sidebar: oklch(0.985 0 0);
  --sidebar-foreground: oklch(0.145 0 0);
  --sidebar-primary: oklch(0.205 0 0);
  --sidebar-primary-foreground: oklch(0.985 0 0);
  --sidebar-accent: oklch(0.97 0 0);
  --sidebar-accent-foreground: oklch(0.205 0 0);
  --sidebar-border: oklch(0.922 0 0);
  --sidebar-ring: oklch(0.708 0 0);

  /* ── surface hierarchy ────────────────────────────────────────── */
  --background-secondary: oklch(0.97 0 0);
  --surface-hover:   color-mix(in srgb, var(--foreground) 6%,  var(--background));
  --surface-active:  color-mix(in srgb, var(--foreground) 10%, var(--background));
  --surface-elevated: oklch(1 0 0);

  /* ── border hierarchy ─────────────────────────────────────────── */
  --border-subtle: oklch(0.96 0 0);
  --border-muted: oklch(0.94 0 0);
  --border-strong: oklch(0.82 0 0);

  /* ── text hierarchy ───────────────────────────────────────────── */
  --foreground-secondary: oklch(0.4 0 0);

  /* ── primary depth (hover/tint states for brand colour) ─────── */
  --primary-hover: color-mix(in srgb, var(--primary) 90%, var(--foreground));
  --primary-muted: color-mix(in srgb, var(--primary) 15%, var(--background));
  --primary-soft:  color-mix(in srgb, var(--primary) 8%,  var(--background));
  --primary-tint:  color-mix(in srgb, var(--primary) 6%,  var(--background));

  /* ── focus ring (alpha-blended, for soft ring style) ────────── */
  --focus-ring: oklch(0.708 0 0 / 0.4);

  /* ── error (form validation — distinct from destructive) ─────── */
  --error: oklch(0.577 0.245 27.325);
  --error-foreground: oklch(0.985 0 0);

  /* ── radius ───────────────────────────────────────────────────── */
  --radius: 0.25rem;
  --radius-none: 0rem;
  --radius-sm: 0.125rem;
  --radius-lg: 0.375rem;
  --radius-xl: 0.5rem;
  --radius-full: 9999px;

  /* ── typography ───────────────────────────────────────────────── */
  --font-display: Inter Display, Inter, ui-sans-serif, system-ui, sans-serif;
  --font-sans: Inter, ui-sans-serif, system-ui, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, monospace;
  --font-weight-display: 600;
  --line-height-display: 1.1;
  --tracking-display: -0.02em;
  --font-weight-body: 400;
  --line-height-body: 1.5;
  --tracking-body: 0em;
  --font-weight-mono: 400;

  /* ── shadows ──────────────────────────────────────────────────── */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.12);

  /* ── motion ───────────────────────────────────────────────────── */
  --duration-fast: 100ms;
  --duration-normal: 200ms;
  --duration-slow: 300ms;
  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-accelerate: cubic-bezier(0.4, 0, 1, 1);
  --ease-decelerate: cubic-bezier(0, 0, 0.2, 1);

  /* ── spacing ──────────────────────────────────────────────────── */
  --spacing-base: 0.25rem;
}

.dark {
  /* ── shadcn base tokens ───────────────────────────────────────── */
  --background: oklch(0.145 0 0);
  --foreground: oklch(0.985 0 0);
  --card: oklch(0.205 0 0);
  --card-foreground: oklch(0.985 0 0);
  --popover: oklch(0.205 0 0);
  --popover-foreground: oklch(0.985 0 0);
  --primary: oklch(0.922 0 0);
  --primary-foreground: oklch(0.205 0 0);
  --secondary: oklch(0.269 0 0);
  --secondary-foreground: oklch(0.985 0 0);
  --muted: oklch(0.269 0 0);
  --muted-foreground: oklch(0.708 0 0);
  --accent: oklch(0.269 0 0);
  --accent-foreground: oklch(0.985 0 0);
  --destructive: oklch(0.704 0.191 22.216);
  --destructive-foreground: oklch(0.985 0 0);
  --border: oklch(1 0 0 / 10%);
  --input: oklch(1 0 0 / 15%);
  --ring: oklch(0.556 0 0);
  --success: oklch(0.696 0.145 145.59);
  --warning: oklch(0.849 0.154 71.29);
  --chart-1: oklch(0.809 0.105 251.813);
  --chart-2: oklch(0.623 0.214 259.815);
  --chart-3: oklch(0.546 0.245 262.881);
  --chart-4: oklch(0.488 0.243 264.376);
  --chart-5: oklch(0.424 0.199 265.638);
  --sidebar: oklch(0.205 0 0);
  --sidebar-foreground: oklch(0.985 0 0);
  --sidebar-primary: oklch(0.488 0.243 264.376);
  --sidebar-primary-foreground: oklch(0.985 0 0);
  --sidebar-accent: oklch(0.269 0 0);
  --sidebar-accent-foreground: oklch(0.985 0 0);
  --sidebar-border: oklch(1 0 0 / 10%);
  --sidebar-ring: oklch(0.556 0 0);

  /* ── surface hierarchy ────────────────────────────────────────── */
  --background-secondary: oklch(0.18 0 0);
  --surface-elevated: oklch(0.26 0 0);

  /* ── border hierarchy ─────────────────────────────────────────── */
  --border-subtle: oklch(1 0 0 / 6%);
  --border-muted: oklch(1 0 0 / 8%);
  --border-strong: oklch(1 0 0 / 20%);

  /* ── text hierarchy ───────────────────────────────────────────── */
  --foreground-secondary: oklch(0.72 0 0);

  /* ── primary depth ────────────────────────────────────────────── */
  --primary-tint: color-mix(in srgb, var(--primary) 8%, var(--background));

  /* ── focus ring ───────────────────────────────────────────────── */
  --focus-ring: oklch(0.556 0 0 / 0.5);

  /* ── error ────────────────────────────────────────────────────── */
  --error: oklch(0.704 0.191 22.216);
  --error-foreground: oklch(0.985 0 0);
}

/* ─────────────────────────────────────────────────────────────────
   Senior Portraits for Guys — page styles (ported from the mockup)
   ───────────────────────────────────────────────────────────────── */

/* Small headings use Sora, not the display serif (override the base layer). */
.sg h3 { font-family: 'Sora', 'Poppins', sans-serif; }

/* Package lists keep their bullets (Tailwind preflight strips them). */
.sg .pkg-list { list-style-type: disc; list-style-position: outside; padding-left: 18px; }
.sg .pkg-list li { margin-bottom: 6px; }
.sg .pkg-list li:last-child { margin-bottom: 0; }

/* Links on light surfaces follow the brand (navy on hover). */
.sg a.brand-link { color: #26547D; }
.sg a.brand-link:hover { color: #15283C; }

/* Italic note under the package cards — centered, to match the sister page. */
.packages-starting-note {
  margin: 32px auto;
  max-width: 680px;
  text-align: center;
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-weight: 300;
  font-size: 20px;
  line-height: 1.4;
  color: #26547D;
  text-transform: none;
}

@media (max-width: 767px) {
  .packages-starting-note { font-size: 18px; }
}

/* Photo strips: desktop = four side-by-side; mobile = one crossfading slot. */
.photo-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0;
}
.strip-photo {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  display: block;
}

/* Footer */
.site-footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0 8px;
}

@media (max-width: 767px) {
  /* Darker overlay on the opening photo so the text stays readable. */
  .hero-overlay { background: rgba(21, 40, 60, 0.68) !important; }

  /* One full-width 2:3 photo per strip, crossfading between the four. */
  .photo-strip {
    display: block;
    position: relative;
    aspect-ratio: 2 / 3;
  }
  .strip-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    animation-duration: 12s;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
  }
  .strip-1 .strip-photo { animation-delay: -0.8s; }
  .strip-2 .strip-photo { animation-delay: -2.3s; }
  .strip-photo-1 { animation-name: sg-fade-1; }
  .strip-photo-2 { animation-name: sg-fade-2; }
  .strip-photo-3 { animation-name: sg-fade-3; }
  .strip-photo-4 { animation-name: sg-fade-4; }

  /* Footer stacks one item per line, no dot separators, 44px tap targets. */
  .site-footer-inner { flex-direction: column; gap: 0; }
  .site-footer-inner .sep { display: none; }
  .site-footer-inner > * {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
  }
}

@keyframes sg-fade-1 {
  0% { opacity: 0; } 6.667% { opacity: 1; } 25% { opacity: 1; }
  31.667% { opacity: 0; } 100% { opacity: 0; }
}
@keyframes sg-fade-2 {
  0% { opacity: 0; } 25% { opacity: 0; } 31.667% { opacity: 1; }
  50% { opacity: 1; } 56.667% { opacity: 0; } 100% { opacity: 0; }
}
@keyframes sg-fade-3 {
  0% { opacity: 0; } 50% { opacity: 0; } 56.667% { opacity: 1; }
  75% { opacity: 1; } 81.667% { opacity: 0; } 100% { opacity: 0; }
}
@keyframes sg-fade-4 {
  0% { opacity: 1; } 6.667% { opacity: 0; } 75% { opacity: 0; }
  81.667% { opacity: 1; } 100% { opacity: 1; }
}

/* Reduce motion: strips don't rotate — show the first photo of each. */
@media (max-width: 767px) and (prefers-reduced-motion: reduce) {
  .strip-photo { animation: none; opacity: 0; }
  .strip-photo-1 { opacity: 1; }
}
