/* ==========================================================================
   Savvy Records — brand theme
   Colours from official logo: purple #432a73 · gold #fac031
   ========================================================================== */

:root {
  --purple: #432a73;
  --purple-dark: #2f1a52;
  --purple-mid: #55396d;
  --gold: #fac031;
  --gold-deep: #d19f41;
  --ink: #1a1228;
  --muted: #5c5470;
  --paper: #fffdf8;
  --cream: #fff8e8;
  --line: rgba(67, 42, 115, 0.12);
  --radius: 4px;
  --header-h: 88px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "DM Sans", "Segoe UI", sans-serif;
  --shadow-soft: 0 18px 50px rgba(47, 26, 82, 0.12);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 100% -10%, rgba(250, 192, 49, 0.18), transparent 55%),
    radial-gradient(900px 500px at -10% 20%, rgba(67, 42, 115, 0.08), transparent 50%),
    var(--paper);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--purple);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color 0.2s var(--ease);
}

a:hover {
  color: var(--gold-deep);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--purple-dark);
  letter-spacing: -0.02em;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--purple);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 1000;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.container {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.container.narrow {
  width: min(760px, calc(100% - 2.5rem));
}

/* --------------------------------------------------------------------------
   Header — logo sits cleanly, brand-led
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 253, 248, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s var(--ease);
}

.site-header.is-scrolled {
  box-shadow: 0 8px 28px rgba(47, 26, 82, 0.08);
}

.header-inner {
  width: min(1180px, calc(100% - 2rem));
  margin-inline: auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.brand .custom-logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand .custom-logo {
  height: 64px;
  width: auto;
  max-width: min(280px, 52vw);
  object-fit: contain;
  border-radius: 2px;
  box-shadow: 0 2px 0 rgba(67, 42, 115, 0.06);
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  display: block;
  padding: 0.55rem 0.75rem;
  color: var(--purple-dark);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: var(--radius);
}

.nav-menu a:hover,
.nav-menu .current-menu-item > a {
  color: var(--purple);
  background: rgba(250, 192, 49, 0.22);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--radius);
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--purple);
  transition: transform 0.25s var(--ease), opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.35rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s, color 0.2s, border-color 0.2s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--purple);
  color: #fff;
  border-color: var(--purple);
}

.btn--primary:hover {
  background: var(--purple-dark);
  color: var(--gold);
}

.btn--ghost {
  background: transparent;
  color: var(--purple-dark);
  border-color: rgba(67, 42, 115, 0.35);
}

.btn--ghost:hover {
  border-color: var(--purple);
  background: rgba(250, 192, 49, 0.2);
  color: var(--purple-dark);
}

.btn--header {
  background: var(--gold);
  color: var(--purple-dark);
  border-color: var(--gold);
  padding: 0.65rem 1.1rem;
  white-space: nowrap;
}

.btn--header:hover {
  background: #ffcf4d;
  color: var(--purple-dark);
}

/* --------------------------------------------------------------------------
   Hero — one composition, brand first
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
  display: grid;
  align-items: center;
  overflow: hidden;
  background:
    linear-gradient(135deg, var(--purple-dark) 0%, var(--purple) 48%, #5a3a8a 100%);
  color: #fff;
}

.hero__atmosphere {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 85% 20%, rgba(250, 192, 49, 0.35), transparent 60%),
    radial-gradient(ellipse 50% 40% at 10% 90%, rgba(250, 192, 49, 0.12), transparent 55%),
    repeating-linear-gradient(
      -18deg,
      transparent,
      transparent 22px,
      rgba(255, 255, 255, 0.03) 22px,
      rgba(255, 255, 255, 0.03) 23px
    );
  animation: atmosphere-drift 18s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes atmosphere-drift {
  from { transform: scale(1) translate(0, 0); }
  to   { transform: scale(1.05) translate(-1.5%, 1%); }
}

.hero__inner {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 4.5rem 0 5rem;
}

.hero__copy {
  max-width: 36rem;
  animation: rise-in 0.9s var(--ease) both;
}

@keyframes rise-in {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero__eyebrow {
  margin: 0 0 1.25rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.hero__wordmark {
  width: min(420px, 100%);
  height: auto;
  margin-bottom: 1.5rem;
  border-radius: 3px;
  box-shadow: var(--shadow-soft);
  animation: rise-in 1s 0.12s var(--ease) both;
}

.hero__lead {
  margin: 0 0 2rem;
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  line-height: 1.55;
  color: rgba(255, 253, 248, 0.9);
  max-width: 34ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.hero .btn--primary {
  background: var(--gold);
  color: var(--purple-dark);
  border-color: var(--gold);
}

.hero .btn--primary:hover {
  background: #ffcf4d;
  color: var(--purple-dark);
}

.hero .btn--ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}

.hero .btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--gold);
  color: var(--gold);
}

/* Sections */

.section {
  padding: 5rem 0;
}

.section__header {
  max-width: 40rem;
  margin-bottom: 2.75rem;
}

.section__title {
  margin: 0 0 0.85rem;
  font-size: clamp(1.75rem, 3.5vw, 2.45rem);
}

.section__text {
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.section__badge {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.55rem 0.9rem;
  background: rgba(250, 192, 49, 0.28);
  color: var(--purple-dark);
  font-weight: 600;
  font-size: 0.92rem;
  border-left: 3px solid var(--purple);
}

.section__cta {
  margin-top: 2.5rem;
}

.section--intro {
  background: linear-gradient(180deg, var(--cream), var(--paper));
}

.section--services {
  background:
    linear-gradient(180deg, transparent, rgba(250, 192, 49, 0.06)),
    var(--paper);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}

.service-item {
  padding: 1.75rem 1.4rem 1.75rem 0;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  opacity: 0;
  transform: translateY(12px);
  animation: rise-in 0.7s calc(var(--i) * 0.07s) var(--ease) both;
}

.service-item:nth-child(3n) {
  border-right: none;
  padding-right: 0;
}

.service-item:nth-child(n+4) {
  /* second row */
}

.service-item__index {
  display: block;
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--gold-deep);
  margin-bottom: 0.65rem;
  font-weight: 600;
}

.service-item h3 {
  margin: 0 0 0.55rem;
  font-size: 1.2rem;
}

.service-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.section--trust {
  background: var(--purple-dark);
  color: #fff;
}

.section--trust .section__title {
  color: #fff;
}

.section--trust .section__text {
  color: rgba(255, 253, 248, 0.78);
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(250, 192, 49, 0.35);
}

.trust-stat {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.trust-stat strong {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--gold);
  font-weight: 600;
  line-height: 1;
}

.trust-stat span {
  color: rgba(255, 253, 248, 0.75);
  font-size: 0.95rem;
}

.section--cta {
  padding-bottom: 6rem;
}

.cta-panel {
  text-align: center;
  padding: 3rem 2rem;
  background:
    linear-gradient(135deg, rgba(250, 192, 49, 0.25), rgba(67, 42, 115, 0.08)),
    #fff;
  border: 1px solid var(--line);
  border-top: 4px solid var(--gold);
}

.cta-panel h2 {
  margin: 0 0 0.75rem;
}

.cta-panel p {
  margin: 0 0 1.5rem;
  color: var(--muted);
}

/* Inner pages */

.page-hero {
  padding: 3.5rem 0 2.25rem;
  background:
    linear-gradient(135deg, var(--purple-dark), var(--purple));
  color: #fff;
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 100% 0%, rgba(250, 192, 49, 0.28), transparent 55%);
  pointer-events: none;
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero__eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}

.page-hero__title {
  margin: 0;
  color: #fff;
  font-size: clamp(2rem, 4vw, 2.75rem);
}

.page-content {
  padding: 3rem 0 5rem;
}

.prose h2,
.prose h3 {
  margin-top: 2rem;
}

.prose h3 {
  font-size: 1.25rem;
}

.prose p,
.prose li {
  color: var(--muted);
}

.prose ul {
  padding-left: 1.2rem;
}

.prose strong {
  color: var(--ink);
}

/* Footer */

.site-footer {
  background: var(--ink);
  color: rgba(255, 253, 248, 0.82);
}

.footer-band {
  height: 6px;
  background: linear-gradient(90deg, var(--purple) 0%, var(--gold) 55%, var(--purple) 100%);
}

.footer-inner {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
  padding: 3.5rem 0 1.75rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
}

.footer-logo {
  width: 200px;
  margin-bottom: 1rem;
  border-radius: 2px;
}

.footer-brand p {
  margin: 0 0 0.85rem;
  max-width: 34ch;
  font-size: 0.95rem;
}

.footer-meta {
  font-size: 0.88rem;
  color: var(--gold);
}

.footer-col h3 {
  margin: 0 0 1rem;
  color: var(--gold);
  font-size: 1rem;
  font-family: var(--font-body);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
}

.footer-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-menu a,
.footer-col a {
  color: rgba(255, 253, 248, 0.82);
  text-decoration: none;
}

.footer-menu a:hover,
.footer-col a:hover {
  color: var(--gold);
}

.footer-menu li {
  margin-bottom: 0.45rem;
}

.footer-col address {
  font-style: normal;
  margin-bottom: 1rem;
  line-height: 1.55;
}

.footer-bottom {
  margin-top: 2.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.88rem;
  color: rgba(255, 253, 248, 0.55);
}

.footer-bottom p {
  margin: 0;
}

/* Contact form */

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.contact-form-wrap {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 4px solid var(--gold);
  padding: 1.75rem;
}

.contact-form {
  display: grid;
  gap: 1rem;
}

.contact-form label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
  color: var(--purple-dark);
  font-size: 0.92rem;
}

.contact-form label em {
  color: var(--gold-deep);
  font-style: normal;
}

.contact-form input,
.contact-form textarea {
  font: inherit;
  font-weight: 400;
  padding: 0.75rem 0.85rem;
  border: 1px solid rgba(67, 42, 115, 0.2);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--gold);
  border-color: var(--purple);
}

.contact-form__honeypot {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

.contact-form__note {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--muted);
}

.form-success {
  margin: 0;
  padding: 1rem;
  background: rgba(250, 192, 49, 0.25);
  border-left: 3px solid var(--purple);
  color: var(--purple-dark);
}

.form-error {
  margin: 0 0 1rem;
  padding: 1rem;
  background: #fde8e8;
  border-left: 3px solid #a33;
  color: #5a1a1a;
}

/* WhatsApp */

.btn--whatsapp-header {
  background: #25d366;
  border-color: #25d366;
  color: #fff;
}

.btn--whatsapp-header:hover {
  background: #1ebe57;
  border-color: #1ebe57;
  color: #fff;
}

.btn--whatsapp {
  background: #25d366;
  border-color: #25d366;
  color: #fff;
  text-decoration: none;
}

.btn--whatsapp:hover {
  background: #1ebe57;
  border-color: #1ebe57;
  color: #fff;
}

.whatsapp-cta-block {
  margin-top: 1.75rem;
}

.footer-whatsapp {
  color: #25d366 !important;
  font-weight: 600;
}

.whatsapp-float {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 999;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.75rem 1.1rem 0.75rem 0.85rem;
  background: #25d366;
  color: #fff !important;
  text-decoration: none !important;
  border-radius: 999px;
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.4);
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
  animation: wa-pulse 2.4s ease-in-out infinite;
}

.whatsapp-float:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 16px 36px rgba(37, 211, 102, 0.5);
  color: #fff !important;
}

.whatsapp-float__icon {
  display: inline-flex;
  width: 28px;
  height: 28px;
}

@keyframes wa-pulse {
  0%, 100% { box-shadow: 0 12px 30px rgba(37, 211, 102, 0.4); }
  50% { box-shadow: 0 12px 30px rgba(37, 211, 102, 0.55), 0 0 0 10px rgba(37, 211, 102, 0.12); }
}

/* Responsive */

@media (max-width: 960px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .service-grid {
    grid-template-columns: 1fr 1fr;
  }

  .service-item:nth-child(3n) {
    border-right: 1px solid var(--line);
    padding-right: 1.4rem;
  }

  .service-item:nth-child(2n) {
    border-right: none;
    padding-right: 0;
  }

  .trust-strip {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 820px) {
  :root {
    --header-h: 76px;
  }

  .brand .custom-logo {
    height: 52px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .primary-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    padding: 1rem 1.25rem 1.5rem;
    background: rgba(255, 253, 248, 0.98);
    border-bottom: 1px solid var(--line);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s var(--ease), opacity 0.25s;
    box-shadow: var(--shadow-soft);
  }

  .primary-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-menu {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-menu a {
    padding: 0.85rem 0.5rem;
  }

  .btn--header {
    width: 100%;
  }

  .hero {
    min-height: auto;
  }

  .hero__inner {
    padding: 3.25rem 0 3.75rem;
  }
}

@media (max-width: 560px) {
  .whatsapp-float__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  .whatsapp-float {
    padding: 0.85rem;
    border-radius: 50%;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .service-item,
  .service-item:nth-child(3n),
  .service-item:nth-child(2n) {
    border-right: none;
    padding-right: 0;
  }

  .trust-strip,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 3.5rem 0;
  }
}
