:root {
  --navy: #072535;
  --navy-soft: rgba(7, 37, 53, 0.08);
  --text: #1b2a33;
  --muted: #5b6b75;
  --bg: #ffffff;
  --card: #f4f7f9;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

a { color: var(--navy); }

header.site {
  background: var(--navy);
  color: #fff;
}

header.site .bar {
  max-width: 960px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

header.site a.brand {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  color: #fff;
  text-decoration: none;
}

header.site .brand-name {
  font-weight: 700;
  font-size: 1.35rem;
  white-space: nowrap;
}

header.site .brand-region {
  font-size: 0.72rem;
  font-weight: 400;
  opacity: 0.75;
  white-space: nowrap;
  /* Tracked out slightly so "Southern Africa" spans the same width as
     "Birdfolio" above it - normal single word space, no stretched gap. */
  letter-spacing: 0.68px;
}

nav a {
  color: #fff;
  text-decoration: none;
  margin-left: 18px;
  opacity: 0.85;
}

nav a:hover { opacity: 1; text-decoration: underline; }

.hero {
  background: var(--navy);
  color: #fff;
  text-align: center;
  padding: 56px 20px 72px;
}

.hero img { height: 96px; width: auto; margin-bottom: 18px; }

.hero h1 { margin: 0 0 12px; font-size: clamp(1.8rem, 5vw, 2.6rem); }

.hero p {
  max-width: 620px;
  margin: 0 auto 26px;
  font-size: 1.1rem;
  opacity: 0.9;
}

/* Trimmed-down hero for sub-pages (Support, and any future page that
   wants the same navy banner) - no logo or buttons, just a heading and
   a short line. */
.hero--sub { padding: 40px 20px 48px; }
.hero--sub h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); }
.hero--sub p { margin-bottom: 0; }

.btn {
  display: inline-block;
  background: #fff;
  color: var(--navy);
  border-radius: 8px;
  padding: 12px 22px;
  font-weight: 700;
  text-decoration: none;
  margin: 4px;
}

.btn.outline {
  background: transparent;
  color: #fff;
  border: 1px solid #fff;
}

.phone-showcase {
  max-width: 960px;
  margin: 0 auto;
  padding: 48px 20px 8px;
  text-align: center;
}

.phone-mockup {
  position: relative;
  width: min(280px, 70vw);
  margin: 0 auto;
}

.phone-frame-img {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
  user-select: none;
}

/* Positioned to match phone-frame.png's screen cutout (measured from the
   image: left 4.8%, top 2.1%, right 4.6%, bottom 2.0% of the frame's own
   size), so screenshots line up under the bezel regardless of how big the
   mockup is rendered. */
.phone-screen {
  position: absolute;
  left: 4.8%;
  right: 4.6%;
  top: 2.1%;
  bottom: 2%;
  overflow: hidden;
  /* Elliptical radius (9% of width, ~4.1% of height) renders as the same
     circular corner as the width scales, matching the screen's own curve. */
  border-radius: 9% / 4.1%;
}

.phone-carousel {
  display: flex;
  width: 100%;
  height: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.phone-carousel::-webkit-scrollbar { display: none; }

.phone-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  scroll-snap-align: start;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  font-weight: 700;
  font-size: 0.85rem;
}

.phone-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.phone-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: #fff;
  color: var(--navy);
  box-shadow: 0 2px 8px rgba(7, 37, 53, 0.25);
  cursor: pointer;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-nav.prev { left: -12px; }
.phone-nav.next { right: -12px; }
.phone-nav:hover { background: var(--card); }

.phone-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}

.phone-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: var(--navy-soft);
  padding: 0;
  cursor: pointer;
}

.phone-dots button.active { background: var(--navy); }

.store-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.store-badge-link {
  background: none;
  border: none;
  padding: 0;
  line-height: 0;
  cursor: pointer;
}

.store-badge-link img {
  width: auto;
  display: block;
}

/* Apple's SVG has no built-in margin - its badge fills the whole image.
   Google's PNG bakes in its own required clear-space (~16% of the image's
   height on every edge), so at the same declared height its actual badge
   pill renders visibly smaller. Google's img is given a taller height so
   the two VISIBLE badges end up the same size - neither image is cropped
   or stretched, since both platforms' guidelines forbid altering the
   artwork itself. */
.store-badge-apple img { height: 54px; }
.store-badge-google img { height: 80px; }

.store-badge-link:hover { opacity: 0.85; }

.gallery-showcase {
  max-width: 960px;
  margin: 0 auto;
  /* No bottom padding - the divider that always follows this section
     supplies its own consistent margin instead, so the gap above the
     divider is the same everywhere it's used (see .divider). */
  padding: 8px 20px 0;
  text-align: center;
}

/* Coverflow carousel: every card is stacked absolutely in the same spot,
   given depth via `perspective` on the container, and JS just toggles
   which of six slot classes each one wears (center/left-1/left-2/right-1/
   right-2/hidden) - so the spacing, scale and depth between slots are
   fixed, authored values below, not something computed at runtime. */
.bird-carousel {
  width: 100%;
  max-width: 1040px;
  height: 384px;
  position: relative;
  perspective: 1000px;
  margin: 26px auto 0;
  outline: none;
  /* The far-left/right cards sit well outside this box (that's the point
     of the coverflow effect) - without clipping them here, they spill
     into the page's actual layout and force horizontal scroll on narrow
     viewports. */
  overflow: hidden;
}

.bird-carousel-track {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  transform-style: preserve-3d;
}

.bird-card {
  position: absolute;
  width: 264px;
  height: 264px;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.bird-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border: 1.5px solid var(--navy);
  border-radius: 10px;
}

/* Flat brand-navy wash over every side card - removed only from the
   centred one - rather than a filter applied to the photo itself. */
.bird-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(7, 37, 53, 0.3);
  border-radius: 8.5px;
  transition: opacity 0.6s ease;
  pointer-events: none;
}

.bird-card.center {
  z-index: 10;
  transform: scale(1.15) translateZ(0);
  box-shadow: 0 16px 34px rgba(7, 37, 53, 0.3);
}

.bird-card.center::after { opacity: 0; }

.bird-card.left-2 {
  z-index: 1;
  transform: translateX(-360px) scale(0.8) translateZ(-260px);
}

.bird-card.left-1 {
  z-index: 5;
  transform: translateX(-180px) scale(0.92) translateZ(-90px);
}

.bird-card.right-1 {
  z-index: 5;
  transform: translateX(180px) scale(0.92) translateZ(-90px);
}

.bird-card.right-2 {
  z-index: 1;
  transform: translateX(360px) scale(0.8) translateZ(-260px);
}

.bird-card.hidden {
  opacity: 0;
  pointer-events: none;
}

.bird-caption {
  margin-top: 18px;
  transition: opacity 0.25s ease-out;
}

.bird-caption-name {
  color: var(--navy);
  font-size: 1.3rem;
  font-weight: 700;
  transition: opacity 0.25s ease-out;
}

.bird-dots {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.bird-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--navy-soft);
  cursor: pointer;
  transition: all 0.3s ease;
}

.bird-dot.active {
  background: var(--navy);
  transform: scale(1.2);
}

.bird-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: #fff;
  color: var(--navy);
  box-shadow: 0 2px 8px rgba(7, 37, 53, 0.25);
  cursor: pointer;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
}

.bird-nav.left { left: 4px; }
.bird-nav.right { right: 4px; }
.bird-nav:hover { background: var(--card); }

@media (max-width: 640px) {
  .bird-card { width: 192px; height: 192px; }
  .bird-card.left-2 { transform: translateX(-228px) scale(0.8) translateZ(-260px); }
  .bird-card.left-1 { transform: translateX(-120px) scale(0.92) translateZ(-90px); }
  .bird-card.right-1 { transform: translateX(120px) scale(0.92) translateZ(-90px); }
  .bird-card.right-2 { transform: translateX(228px) scale(0.8) translateZ(-260px); }
}

/* Fading line divider - recolored to the brand navy instead of the
   original red, to match everything else on the page. */
.divider {
  width: 80%;
  max-width: 500px;
  height: 2px;
  margin: 48px auto 0;
  border: 0;
}

.divider-one {
  background: linear-gradient(
    to right,
    rgba(7, 37, 53, 0) 0%,
    rgba(7, 37, 53, 0.7) 50%,
    rgba(7, 37, 53, 0) 100%
  );
}

.coming-soon-dialog {
  border: none;
  border-radius: 12px;
  padding: 28px;
  max-width: 320px;
  width: calc(100% - 40px);
  text-align: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
}

.coming-soon-dialog::backdrop {
  background: rgba(7, 37, 53, 0.5);
}

.coming-soon-dialog p {
  margin: 0 0 18px;
  color: var(--text);
  font-size: 1rem;
}

main {
  max-width: 960px;
  margin: 0 auto;
  /* No top padding - <main> is always preceded by a divider (see
     .gallery-showcase's comment above), and the heading just inside it
     already carries its own consistent top margin via the shared `h2`
     rule, so this stays in step with the divider used further down the
     page inside <main> itself. */
  padding: 0 20px 60px;
}

main.narrow { max-width: 760px; }

/* FAQ accordion (Support page) */
.faq-group-heading {
  color: var(--navy);
  font-size: 1.1rem;
  margin: 28px 0 4px;
}

.faq {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 18px;
}

.faq-item {
  background: var(--card);
  border: 1px solid var(--navy-soft);
  border-radius: 10px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: none;
  border: none;
  padding: 16px;
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  color: var(--navy);
  text-align: left;
  cursor: pointer;
}

.faq-question:hover { background: var(--navy-soft); }

.faq-icon {
  width: 22px;
  height: 22px;
  color: var(--navy);
  flex-shrink: 0;
}

.faq-content { padding: 0 16px 16px; }
.faq-content p { margin: 0; color: var(--muted); }

.hidden { display: none; }

h2 { color: var(--navy); margin-top: 2.2rem; }
.text-center { text-align: center; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.card {
  background: var(--card);
  border: 1px solid var(--navy-soft);
  border-radius: 10px;
  padding: 18px 20px;
}

.card h3 { margin: 0 0 6px; color: var(--navy); font-size: 1.05rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.97rem; }

/* Icon-topped variant, used only by the feature grid - keeps the plain
   .card (e.g. "How it works") exactly as it was. */
.card--icon { text-align: center; }

.card-icon {
  display: flex;
  justify-content: center;
  color: var(--navy);
  margin-bottom: 10px;
}

.card-icon svg { width: 32px; height: 32px; display: block; }

.note {
  background: var(--navy-soft);
  border-left: 4px solid var(--navy);
  padding: 12px 16px;
  border-radius: 6px;
  margin: 18px 0;
}

/* Blue callout panel. margin-top matches the shared `h2` rule (2.2rem)
   and margin-bottom is 0, so the gap on either side of this block lines
   up with the same consistent rhythm the dividers use elsewhere. */
.lightroom-banner {
  background: var(--navy);
  color: #fff;
  border-radius: 12px;
  padding: 32px 24px;
  margin: 2.2rem 0 0;
  text-align: center;
}

.lightroom-banner h2 { color: #fff; margin-top: 0; }

.lightroom-banner p {
  margin: 0 auto;
  max-width: 640px;
}

.lightroom-banner .note {
  background: rgba(255, 255, 255, 0.12);
  border-left: none;
  color: #fff;
  margin: 20px auto 0;
  max-width: 640px;
  border-radius: 8px;
}

footer {
  background: var(--card);
  border-top: 1px solid var(--navy-soft);
  text-align: center;
  color: var(--muted);
  padding: 24px 20px;
  font-size: 0.92rem;
}

footer a { margin: 0 8px; }

.footer-logo {
  display: inline-block;
  height: 36px;
  width: auto;
  margin-top: 16px;
}

@media (max-width: 520px) {
  nav a { margin-left: 12px; }
}
