/* --------------------------------------------------------------------------
   Saint & Co. Dog Care - premium homepage concept
   The palette avoids decorative gold: warmth comes from photography, bone
   typography and quiet bronze accents. Structure maps cleanly to Elementor
   containers, image widgets, headings, buttons and divider widgets.
   -------------------------------------------------------------------------- */

:root {
  --ink: #11110f;
  --ink-soft: #171612;
  --bone: #f3eee7;
  --bone-muted: rgba(243, 238, 231, 0.68);
  --stone: #d9cfc3;
  --taupe: #aa9b89;
  --bronze: #b39d7d;
  --line-light: rgba(243, 238, 231, 0.22);
  --line-dark: rgba(27, 25, 22, 0.14);
  --sans: "Inter", "Helvetica Neue", Arial, sans-serif;
  --serif: "Instrument Serif", "Iowan Old Style", "Times New Roman", serif;
  --ease: cubic-bezier(0.2, 0.65, 0.2, 1);
}

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

html {
  background: var(--ink);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

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

p,
h1,
h2,
h3,
figure {
  margin: 0;
}

.site-shell {
  padding-inline: clamp(2rem, 4.1vw, 4.75rem);
}

.brand {
  display: inline-flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: max-content;
}

.brand-name {
  font-family: var(--serif);
  font-size: clamp(1.55rem, 2vw, 1.85rem);
  line-height: 0.92;
  letter-spacing: 0.045em;
}

.brand-name i,
.footer-wordmark i {
  color: var(--bronze);
  font-style: italic;
}

.brand-detail {
  color: var(--bone-muted);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.27em;
  text-transform: uppercase;
}

.eyebrow,
.section-index {
  color: var(--stone);
  font-size: 0.67rem;
  font-weight: 500;
  letter-spacing: 0.29em;
  text-transform: uppercase;
}

.button-primary {
  align-items: center;
  background: var(--bone);
  color: var(--ink);
  display: inline-flex;
  font-size: 0.7rem;
  font-weight: 500;
  justify-content: center;
  letter-spacing: 0.18em;
  min-height: 3.5rem;
  padding-inline: 2rem;
  text-transform: uppercase;
  transition: background 280ms var(--ease), transform 280ms var(--ease);
}

.button-primary:hover {
  background: #fffdf8;
  transform: translateY(-1px);
}

/* Desktop is intentionally a single, cinematic brand moment. */
.desktop-home {
  isolation: isolate;
  min-height: 100svh;
  overflow: hidden;
  position: relative;
}

.desktop-hero,
.cinematic-grade {
  inset: 0;
  position: absolute;
  z-index: -2;
}

.desktop-hero img {
  animation: still-frame 20s var(--ease) both;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  transform: scale(1.02);
  width: 100%;
}

.cinematic-grade {
  background:
    linear-gradient(90deg, rgba(10, 10, 9, 0.88) 0%, rgba(10, 10, 9, 0.65) 36%, rgba(10, 10, 9, 0.16) 68%),
    linear-gradient(0deg, rgba(10, 10, 9, 0.63), transparent 26%);
  z-index: -1;
}

.desktop-header {
  align-items: center;
  animation: settle 900ms var(--ease) 60ms both;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  height: clamp(5.75rem, 8.5vw, 7rem);
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
}

.desktop-nav {
  align-items: center;
  display: flex;
  gap: clamp(2rem, 3.5vw, 3.75rem);
}

.desktop-nav a,
.header-action,
.desktop-footer {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.23em;
  text-transform: uppercase;
}

.desktop-nav a {
  color: var(--bone-muted);
  transition: color 220ms var(--ease);
}

.desktop-nav a:first-child,
.desktop-nav a:hover {
  color: var(--bone);
}

.header-action {
  border: 1px solid var(--line-light);
  justify-self: end;
  padding: 1.1rem 1.45rem;
  transition: border-color 220ms var(--ease), background 220ms var(--ease);
}

.header-action:hover {
  background: rgba(243, 238, 231, 0.06);
  border-color: rgba(243, 238, 231, 0.48);
}

.desktop-content {
  align-items: end;
  display: flex;
  height: 100svh;
  justify-content: space-between;
  padding-bottom: clamp(7.5rem, 12vh, 9.25rem);
  padding-top: 9rem;
}

.hero-copy {
  max-width: clamp(33rem, 48vw, 47rem);
}

.hero-copy h1 {
  font-family: var(--serif);
  font-size: clamp(5rem, 7.4vw, 8.25rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.91;
  margin: clamp(1.35rem, 2.3vh, 2.1rem) 0 clamp(1.65rem, 3vh, 2.5rem);
}

.hero-copy h1 span {
  color: var(--stone);
  display: block;
  font-style: italic;
  padding-left: clamp(2rem, 4.5vw, 4.5rem);
}

.hero-summary {
  color: var(--bone-muted);
  font-size: clamp(0.94rem, 1.05vw, 1.05rem);
  line-height: 1.75;
  max-width: 25.5rem;
}

.hero-actions {
  align-items: center;
  display: flex;
  gap: 2.25rem;
  margin-top: clamp(2.2rem, 4.5vh, 3.25rem);
}

.text-action {
  border-bottom: 1px solid rgba(243, 238, 231, 0.42);
  font-size: 0.7rem;
  letter-spacing: 0.17em;
  padding-bottom: 0.45rem;
  text-transform: uppercase;
}

.desktop-footer {
  align-items: center;
  border-top: 1px solid var(--line-light);
  bottom: 0;
  color: var(--bone-muted);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  height: 4.5rem;
  left: 0;
  position: absolute;
  right: 0;
}

.desktop-footer div {
  display: flex;
  gap: 2.1rem;
}

.desktop-footer p:last-child {
  justify-self: end;
}

/* Mobile composition: warm paper panels and photography create a slower narrative. */
.mobile-home {
  display: none;
}

@media (max-width: 899px) {
  body {
    background: #f1ece5;
    color: var(--ink);
  }

  .desktop-home {
    display: none;
  }

  .mobile-home {
    background: #f1ece5;
    display: block;
    overflow: hidden;
  }

  .mobile-header {
    align-items: center;
    color: var(--bone);
    display: flex;
    justify-content: space-between;
    left: 0;
    padding: 1.4rem 1.3rem;
    position: absolute;
    right: 0;
    top: 0;
    z-index: 2;
  }

  .mobile-header .brand-name {
    font-size: 1.42rem;
  }

  .mobile-header .brand-detail {
    color: rgba(243, 238, 231, 0.72);
    font-size: 0.54rem;
  }

  .menu-button {
    align-content: center;
    background: rgba(17, 17, 15, 0.13);
    border: 1px solid rgba(243, 238, 231, 0.35);
    border-radius: 50%;
    display: grid;
    gap: 0.34rem;
    height: 2.8rem;
    justify-content: center;
    padding: 0;
    width: 2.8rem;
  }

  .menu-button span {
    background: var(--bone);
    display: block;
    height: 1px;
    width: 0.95rem;
  }

  .mobile-hero-media {
    background: var(--ink);
    height: min(67svh, 34rem);
    overflow: hidden;
    position: relative;
  }

  .mobile-hero-media::after {
    background: linear-gradient(180deg, rgba(16, 16, 14, 0.42), transparent 33%, rgba(16, 16, 14, 0.18));
    content: "";
    inset: 0;
    position: absolute;
  }

  .mobile-hero-media img {
    height: 100%;
    object-fit: cover;
    object-position: 74% center;
    width: 100%;
  }

  .mobile-hero-copy {
    padding: 2.65rem 1.35rem 3.6rem;
  }

  .mobile-hero-copy .eyebrow,
  .section-index {
    color: #776c60;
  }

  .mobile-hero-copy h1 {
    font-family: var(--serif);
    font-size: clamp(3.45rem, 15.5vw, 4.4rem);
    font-weight: 400;
    letter-spacing: -0.052em;
    line-height: 0.94;
    margin: 1.1rem 0 1.35rem;
    max-width: 21rem;
  }

  .mobile-hero-copy > p:not(.eyebrow) {
    color: #544d44;
    font-size: 0.96rem;
    line-height: 1.7;
    margin-bottom: 2.25rem;
    max-width: 22rem;
  }

  .mobile-hero-copy .button-primary,
  .mobile-membership .button-primary {
    background: var(--ink);
    color: var(--bone);
    width: 100%;
  }

  .mobile-principle,
  .mobile-services,
  .mobile-membership {
    border-top: 1px solid var(--line-dark);
    margin-inline: 1.35rem;
    padding: 3.35rem 0;
  }

  .mobile-principle h2,
  .mobile-membership h2 {
    font-family: var(--serif);
    font-size: clamp(2.45rem, 10.5vw, 3.1rem);
    font-weight: 400;
    letter-spacing: -0.045em;
    line-height: 1;
    margin: 1.15rem 0 1.5rem;
  }

  .mobile-principle > p:last-child {
    color: #5c554c;
    font-size: 0.94rem;
    line-height: 1.72;
  }

  .mobile-services .section-index {
    margin-bottom: 2.1rem;
  }

  .mobile-services article {
    border-top: 1px solid var(--line-dark);
    display: grid;
    gap: 1.3rem;
    grid-template-columns: 2.25rem 1fr;
    padding: 1.65rem 0;
  }

  .mobile-services article:last-child {
    padding-bottom: 0;
  }

  .mobile-services article span {
    color: #827668;
    font-size: 0.68rem;
    letter-spacing: 0.22em;
    padding-top: 0.42rem;
  }

  .mobile-services h3 {
    font-family: var(--serif);
    font-size: 2rem;
    font-weight: 400;
    letter-spacing: -0.03em;
    margin-bottom: 0.5rem;
  }

  .mobile-services article p {
    color: #5c554c;
    font-size: 0.87rem;
    line-height: 1.6;
  }

  .mobile-story {
    background: var(--ink);
    color: var(--bone);
    padding-bottom: 2.65rem;
  }

  .mobile-story img {
    aspect-ratio: 0.77;
    display: block;
    object-fit: cover;
    object-position: center top;
    width: 100%;
  }

  .story-caption {
    padding: 2.3rem 1.35rem 0;
  }

  .story-caption .section-index {
    color: var(--taupe);
    margin-bottom: 1.2rem;
  }

  .story-caption > p:last-child {
    font-family: var(--serif);
    font-size: 2rem;
    letter-spacing: -0.032em;
    line-height: 1.14;
  }

  .mobile-membership {
    padding-bottom: 3.65rem;
  }

  .mobile-membership h2 {
    margin-bottom: 2.2rem;
  }

  .mobile-footer {
    background: var(--ink);
    color: var(--bone-muted);
    padding: 3rem 1.35rem 2.25rem;
  }

  .footer-wordmark {
    color: var(--bone);
    font-family: var(--serif);
    font-size: 2rem;
    letter-spacing: 0.04em;
    margin-bottom: 2.1rem;
  }

  .mobile-footer p {
    font-size: 0.72rem;
    letter-spacing: 0.17em;
    line-height: 1.8;
    text-transform: uppercase;
  }

  .mobile-footer nav {
    border-bottom: 1px solid var(--line-light);
    border-top: 1px solid var(--line-light);
    display: flex;
    gap: 1.35rem;
    margin: 2.2rem 0 1.8rem;
    padding-block: 1.2rem;
  }

  .mobile-footer a,
  .mobile-footer small {
    font-size: 0.62rem;
    letter-spacing: 0.17em;
    text-transform: uppercase;
  }
}

.reveal {
  animation: settle 900ms var(--ease) 180ms both;
}

.reveal-delay {
  animation-delay: 360ms;
}

@keyframes settle {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes still-frame {
  from {
    transform: scale(1.045);
  }
  to {
    transform: scale(1.01);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
