/* ================================================
   ProxiShop — Shared Stylesheet
   Brand: Violet #4E1BB6 · Lavender #EEE9F8
   Iris #7C5CBF · Orchid #B56CCF · Amber #F2A63A
   ================================================ */

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

:root {
  --violet:   #4E1BB6;
  --violet-d: #380d8a;
  --violet-l: #6b35d4;
  --lavender: #EEE9F8;
  --lavender2:#DDD3F4;
  --iris:     #7C5CBF;
  --orchid:   #B56CCF;
  --amber:    #F2A63A;
  --ember:    #E85C35;
  --white:    #FDFCFF;
  --ink:      #14082E;
  --muted:    #6B5F80;
  --success:  #2d9e68;
  --nav-h:    70px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Outfit', sans-serif;
  background: var(--white);
  color: var(--ink);
  overflow-x: hidden;
  padding-top: var(--nav-h);
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* ─── TYPOGRAPHY ─── */
h1, h2, h3 { font-family: 'Fraunces', serif; letter-spacing: -0.02em; }

/* ─── NAV ─── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  /* space-between alone lets the three groups touch as soon as the links
     grow — the wordmark ran into "Home" and "Contact" into the buttons.
     A gap is the floor; space-between still spreads them when there is room. */
  gap: clamp(1rem, 3vw, 2.5rem);
  padding: 0 5%;
  background: rgba(253,252,255,0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(78,27,182,0.08);
  transition: box-shadow 0.3s;
}
nav.scrolled { box-shadow: 0 2px 20px rgba(78,27,182,0.08); }

.nav-logo { display: flex; align-items: center; gap: 0.55rem; }
.logo-mark {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--violet);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.logo-mark svg { width: 20px; height: 20px; }
/* The mark is wider than it is tall (1.27:1), so constrain width and let
   height follow — forcing it into a 20x20 box squashed it. */
.logo-mark .logo-img { width: 24px; height: auto; display: block; }
.logo-text {
  font-family: 'Fraunces', serif;
  font-size: 1.35rem; font-weight: 700;
  color: var(--violet); letter-spacing: -0.02em;
}

.nav-links {
  display: flex; gap: 2rem; list-style: none; align-items: center;
}
.nav-links a {
  font-size: 0.9rem; font-weight: 500;
  color: var(--muted); transition: color 0.2s; white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active { color: var(--violet); }

.nav-cta { display: flex; gap: 0.7rem; align-items: center; }

/* Between full width and the hamburger breakpoint the links have to give
   ground, or they collide with the logo and the buttons. */
@media (max-width: 1180px) {
  .nav-links { gap: 1.15rem; }
  .nav-links a { font-size: 0.85rem; }
  .nav-cta { gap: 0.5rem; }
  .logo-text { font-size: 1.15rem; }
}
@media (max-width: 1000px) {
  .nav-links { gap: 0.85rem; }
  .nav-links a { font-size: 0.8rem; }
  .nav-cta .btn { padding: 0.5rem 0.9rem; font-size: 0.8rem; }
}

/* Hamburger */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 6px; z-index: 210;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--violet); border-radius: 2px;
  transition: all 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav drawer */
.mobile-nav {
  display: none; position: fixed; inset: 0; z-index: 190;
  background: rgba(20,8,46,0.96); backdrop-filter: blur(12px);
  flex-direction: column; align-items: center; justify-content: center; gap: 2rem;
  opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.mobile-nav.open { opacity: 1; pointer-events: all; }
.mobile-nav a {
  font-family: 'Fraunces', serif; font-size: 2rem; font-weight: 600;
  color: rgba(255,255,255,0.8); transition: color 0.2s;
}
.mobile-nav a:hover { color: var(--orchid); }
.mobile-nav .btn { font-size: 1rem; }

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.62rem 1.4rem; border-radius: 100px;
  font-family: 'Outfit', sans-serif; font-size: 0.9rem; font-weight: 600;
  cursor: pointer; border: none; text-decoration: none;
  transition: all 0.22s; white-space: nowrap;
}
.btn-outline {
  background: transparent; border: 1.5px solid var(--violet); color: var(--violet);
}
.btn-outline:hover { background: var(--lavender); }

.btn-solid {
  background: var(--violet); color: #fff;
  box-shadow: 0 4px 18px rgba(78,27,182,0.28);
}
.btn-solid:hover { background: var(--violet-d); transform: translateY(-1px); box-shadow: 0 6px 24px rgba(78,27,182,0.38); }

.btn-amber { background: var(--amber); color: var(--ink); box-shadow: 0 4px 18px rgba(242,166,58,0.32); }
.btn-amber:hover { filter: brightness(1.06); transform: translateY(-1px); }

.btn-ghost { background: rgba(255,255,255,0.12); color: #fff; border: 1px solid rgba(255,255,255,0.2); }
.btn-ghost:hover { background: rgba(255,255,255,0.2); }

.btn-lg { padding: 0.85rem 2rem; font-size: 1rem; }
.btn-xl { padding: 1rem 2.4rem; font-size: 1.05rem; border-radius: 14px; }

/* ─── SECTION BASICS ─── */
section { padding: 6rem 5%; }
.container { max-width: 1100px; margin: 0 auto; }

.section-label {
  font-size: 0.76rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--orchid); margin-bottom: 0.8rem;
}
.section-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 700; line-height: 1.12; letter-spacing: -0.025em;
  color: var(--ink); max-width: 640px;
}
.section-desc {
  color: var(--muted); font-size: 1rem; line-height: 1.7;
  max-width: 520px; margin-top: 1rem;
}
.centered { text-align: center; margin-left: auto; margin-right: auto; }

/* ─── PAGE HERO (inner pages) ─── */
.page-hero {
  background: linear-gradient(150deg, var(--lavender) 0%, #f2ecff 50%, var(--white) 100%);
  padding: 5rem 5% 4rem; text-align: center;
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(78,27,182,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(78,27,182,0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 80% at 50% 50%, black, transparent);
}
.page-hero .section-label { position: relative; z-index: 1; }
.page-hero .section-title {
  margin: 0 auto; position: relative; z-index: 1;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
}
.page-hero .section-desc { margin: 1.2rem auto 0; position: relative; z-index: 1; }
.page-hero .hero-actions {
  display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap;
  margin-top: 2rem; position: relative; z-index: 1;
}

/* ─── CARDS ─── */
.card {
  border: 1.5px solid var(--lavender2); border-radius: 20px; padding: 1.8rem;
  background: var(--white);
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}
.card:hover {
  border-color: rgba(78,27,182,0.25);
  box-shadow: 0 10px 36px rgba(78,27,182,0.07);
  transform: translateY(-3px);
}
.card-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--lavender); display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.1rem;
}
.card-icon svg { width: 22px; height: 22px; color: var(--violet); }
.card h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 0.5rem; }
.card p { font-size: 0.88rem; color: var(--muted); line-height: 1.6; }
.card-tag {
  display: inline-block; margin-top: 1rem;
  background: var(--lavender); border-radius: 100px;
  padding: 0.2rem 0.7rem; font-size: 0.72rem;
  font-weight: 700; color: var(--violet); letter-spacing: 0.04em; text-transform: uppercase;
}

/* ─── DARK SECTION ─── */
.dark-section {
  background: var(--ink); color: var(--white);
}
.dark-section .section-label { color: var(--orchid); }
.dark-section .section-title { color: var(--white); }
.dark-section .section-desc { color: rgba(255,255,255,0.78); }
.dark-section .card {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.08);
}
.dark-section .card:hover { border-color: rgba(181,108,207,0.4); }
.dark-section .card h3 { color: var(--white); }
.dark-section .card p { color: rgba(255,255,255,0.74); }
.dark-section .card-icon { background: rgba(124,92,191,0.28); }
.dark-section .card-icon svg { color: #cbb8f0; }

/* ─── VIOLET SECTION ─── */
.violet-section {
  background: linear-gradient(135deg, var(--violet) 0%, var(--violet-l) 100%);
  color: var(--white);
}
.violet-section .section-label { color: var(--lavender2); }
.violet-section .section-title { color: var(--white); }
.violet-section .section-desc { color: rgba(255,255,255,0.7); }

/* ─── LAVENDER SECTION ─── */
.lav-section { background: var(--lavender); }

/* ─── GRID LAYOUTS ─── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }

/* ─── FOOTER ─── */
footer {
  background: var(--ink); color: rgba(255,255,255,0.5);
  padding: 4rem 5% 2rem;
}
.footer-top {
  display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 3rem; margin-bottom: 3rem;
}
.footer-brand .logo-text { color: var(--lavender); font-size: 1.3rem; }
.footer-brand p { font-size: 0.85rem; line-height: 1.65; margin-top: 0.8rem; max-width: 240px; }
.footer-col h4 {
  font-size: 0.76rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: rgba(255,255,255,0.35); margin-bottom: 1rem;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col ul li a { font-size: 0.88rem; color: rgba(255,255,255,0.5); transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08); padding-top: 1.5rem;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem;
}
.footer-bottom p { font-size: 0.82rem; }
.footer-badges { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.fbadge {
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px; padding: 0.28rem 0.65rem;
  font-size: 0.72rem; font-weight: 600; color: rgba(255,255,255,0.4);
}
.footer-social { display: flex; gap: 0.8rem; margin-top: 1rem; }
.footer-social a {
  width: 34px; height: 34px; border-radius: 8px;
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.5); transition: all 0.2s;
}
.footer-social a:hover { background: var(--violet); border-color: var(--violet); color: white; }

/* ─── FORMS ─── */
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label { font-size: 0.85rem; font-weight: 600; color: var(--ink); }
.form-group input,
.form-group textarea,
.form-group select {
  padding: 0.8rem 1.1rem; border-radius: 12px;
  border: 1.5px solid var(--lavender2);
  font-family: 'Outfit', sans-serif; font-size: 0.95rem; color: var(--ink);
  background: var(--white); outline: none; transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--violet);
  box-shadow: 0 0 0 3px rgba(78,27,182,0.08);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--muted); }
.form-group textarea { resize: vertical; min-height: 130px; }

/* ─── BREADCRUMB ─── */
.breadcrumb {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.82rem; color: var(--muted); margin-bottom: 1rem;
}
.breadcrumb a { color: var(--violet); }
.breadcrumb span { color: var(--muted); }

/* ─── PILLS / BADGES ─── */
.pill {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: rgba(78,27,182,0.08); border: 1px solid rgba(78,27,182,0.15);
  border-radius: 100px; padding: 0.35rem 0.9rem;
  font-size: 0.8rem; font-weight: 600; color: var(--violet);
}
.pill-white {
  background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.9);
}

/* ─── ACCORDION ─── */
.accordion { display: flex; flex-direction: column; gap: 0.75rem; }
.accordion-item {
  border: 1.5px solid var(--lavender2); border-radius: 14px; overflow: hidden;
}
.accordion-header {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  padding: 1.1rem 1.3rem; background: none; border: none; cursor: pointer;
  font-family: 'Outfit', sans-serif; font-size: 0.95rem; font-weight: 600;
  color: var(--ink); text-align: left; transition: background 0.2s;
}
.accordion-header:hover { background: var(--lavender); }
.accordion-header svg { flex-shrink: 0; color: var(--violet); transition: transform 0.3s; }
.accordion-header.open svg { transform: rotate(180deg); }
.accordion-body {
  padding: 0 1.3rem; max-height: 0; overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  font-size: 0.9rem; color: var(--muted); line-height: 1.65;
}
.accordion-body.open { max-height: 300px; padding: 0.75rem 1.3rem 1.2rem; }

/* ─── TOAST / ALERT ─── */
.toast {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 999;
  background: var(--success); color: white; border-radius: 14px;
  padding: 1rem 1.5rem; font-weight: 600; font-size: 0.9rem;
  box-shadow: 0 8px 30px rgba(45,158,104,0.35);
  transform: translateY(100px); opacity: 0; transition: all 0.4s;
  display: flex; align-items: center; gap: 0.6rem;
}
.toast.show { transform: translateY(0); opacity: 1; }

/* ─── SCROLL REVEAL ─── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .mobile-nav { display: flex; }
}
@media (max-width: 560px) {
  .grid-3 { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  section { padding: 4rem 5%; }
}
.reveal-delay-3 { transition-delay: 0.3s; }


/* ─── ACCESSIBILITY ENHANCEMENTS ─── */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 9999;
  background: var(--violet);
  color: #fff;
  padding: 0.8rem 1.4rem;
  border-radius: 0 0 12px 0;
  font-weight: 600;
  font-size: 0.9rem;
}
.skip-link:focus {
  left: 0;
}
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 2px;
  border-radius: 4px;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ──────────────────────────────────────────────────────────────
   Overlap guards
   ──────────────────────────────────────────────────────────────
   Most text-on-text on this site comes from three causes, all of
   which are cheaper to prevent than to chase page by page:
   a flex or grid child refusing to shrink below its content
   (min-width defaults to auto, so it overflows its track instead
   of wrapping), a long unbroken string with nowhere to break, and
   a fixed height on a box whose text grew. These are defensive —
   they change nothing that already fits. */

/* Grid and flex children default to min-width:auto, which is what
   pushes a long word out of its column and over its neighbour. */
.grid-2 > *, .grid-3 > *, .grid-4 > *,
.footer-top > *, .era-item, .layer-item,
nav > *, .nav-logo, .nav-cta {
  min-width: 0;
}

/* Long words, URLs and email addresses break rather than run on. */
p, li, h1, h2, h3, h4, figcaption, blockquote,
.era-name, .era-desc, .era-year, .card, .card * {
  overflow-wrap: break-word;
  word-break: break-word;
}

/* The wordmark must never be the thing that breaks the nav. */
.logo-text { white-space: nowrap; }

/* Headings set in a display face at large sizes clip their own
   descenders when line-height is tight; give them room. */
h1, h2, .section-title { line-height: 1.15; padding-bottom: 0.08em; }

/* A card with a set height turns into an overlap the moment its
   copy runs one line longer than the design assumed. */
.card, .era-item, .layer-item { height: auto; }
