/* ==========================================================================
   JYSA MEDIA — Inner Pages Stylesheet (pages.css)
   Applies to service overview and inner topic pages.
   ========================================================================== */

/* ==========================================================================
   1. CSS VARIABLES & BASE RESET
   ========================================================================== */
:root {
  --red: #e31324;
  --red-dark: #b80e1e;
  --red-soft: #fff5f6;
  --red-line: #f2c5ca;
  --white: #fff;
  --text: #171717;
  --muted: #74343b;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: "DM Sans", sans-serif;
}

a { text-decoration: none; }

/* ==========================================================================
   2. INNER PAGE LAYOUT & HERO COMPONENTS
   ========================================================================== */
.page {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.page-header {
  position: sticky;
  top: 14px;
  z-index: 10;
  margin-top: 14px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--red-line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
}

.page-brand,
.back-link {
  color: var(--red);
  font-weight: 800;
}

.page-brand {
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: -1px;
}

.back-link { font-size: 12px; }

.page-hero {
  padding: 70px 0 45px;
}

.eyebrow {
  color: var(--red);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .15em;
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--red);
}

h1 {
  margin: 14px 0 20px;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(52px, 7vw, 90px);
  letter-spacing: -.055em;
  line-height: .95;
}

.lead {
  max-width: 720px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.65;
}

.page-button {
  display: inline-flex;
  margin-top: 20px;
  padding: 13px 18px;
  border-radius: 999px;
  background: var(--red);
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
}

.page-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding-bottom: 70px;
}

.card {
  padding: 24px;
  border: 1px solid var(--red-line);
  border-radius: 20px;
  background: var(--white);
  transition: transform .25s ease, box-shadow .25s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 35px rgba(227, 19, 36, .10);
}

.card strong {
  display: block;
  margin-bottom: 9px;
  color: var(--red);
}

.card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.page-footer {
  padding: 30px 0 45px;
  border-top: 1px solid var(--red-line);
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 800px) {
  .page-hero { padding: 55px 0 35px; }
  .page-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   3. SHARED HOMEPAGE-STYLE HEADER & FOOTER (INNER PAGES)
   ========================================================================== */
.inner-site-header {
  position: sticky;
  top: 14px;
  left: auto;
  right: auto;
  z-index: 100;
  width: 100%;
  min-height: 70px;
  margin: 14px 0 0;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border: 1px solid rgba(227, 19, 36, 0.18);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
}

.inner-site-header .brand {
  display: inline-flex;
  align-items: flex-end;
  gap: 8px;
  flex-shrink: 0;
  color: var(--red);
}

.inner-site-header .brand-name {
  font-family: "Space Grotesk", sans-serif;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -1.5px;
  line-height: 1;
}

.inner-site-header .brand-subtitle {
  margin-bottom: 2px;
  color: var(--red-dark);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.8px;
}

.inner-site-header .site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-left: auto;
}

.inner-site-header .site-nav a {
  position: relative;
  color: var(--red-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.inner-site-header .site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--red);
  transition: width 0.2s ease;
}

.inner-site-header .site-nav a:hover::after {
  width: 100%;
}

.inner-header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  padding: 12px 17px;
  border-radius: 999px;
  background: var(--red);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
}

.inner-site-header .menu-toggle {
  display: none;
  width: 38px;
  height: 38px;
  padding: 7px;
  border: 0;
  background: transparent;
}

.inner-site-header .menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--red);
}

.inner-site-footer {
  width: 100%;
  margin-top: 0;
  padding: 35px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  border-top: 1px solid var(--red-line);
  background: var(--white);
  color: #7e3942;
  font-size: 11px;
}

.inner-site-footer .logo {
  display: inline-flex;
  align-items: flex-end;
  gap: 8px;
  color: var(--red);
  font-family: "Space Grotesk", sans-serif;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -1.5px;
}

.inner-site-footer .logo small {
  margin-bottom: 2px;
  color: var(--red-dark);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.8px;
}

.inner-site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 17px;
}

.inner-site-footer nav a {
  position: relative;
  color: #7e3942;
  font-size: 11px;
}

.inner-site-footer nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0;
  height: 2px;
  background: var(--red);
  transition: width 0.2s ease;
}

.inner-site-footer nav a:hover::after {
  width: 100%;
}

@media (max-width: 1100px) {
  .inner-site-header .site-nav {
    gap: 15px;
  }
}

@media (max-width: 760px) {
  .inner-site-header {
    top: 12px;
    min-height: 62px;
  }

  .inner-site-header .site-nav,
  .inner-site-header .inner-header-cta {
    display: none;
  }

  .inner-site-header .site-nav.is-open {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 18px;
    border: 1px solid var(--red-line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.98);
  }

  .inner-site-header .menu-toggle {
    display: block;
  }

  .inner-site-footer {
    display: block;
    padding: 28px 0;
  }

  .inner-site-footer nav {
    margin: 18px 0;
  }
}

/* ==========================================================================
   4. LET'S TALK MODAL DIALOG (SHARED)
   ========================================================================== */

.talk-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 24px;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.talk-modal.is-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.talk-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(227, 19, 36, 0.28);
  backdrop-filter: blur(5px);
}

.talk-modal-dialog {
  position: relative;
  width: min(620px, 100%);
  max-height: min(88vh, 760px);
  overflow: auto;
  padding: 34px;
  border: 1px solid var(--red-line, #f2c5ca);
  border-radius: 28px;
  background: var(--white, #fff);
  box-shadow: 0 30px 80px rgba(126, 0, 12, 0.2);
  box-sizing: border-box;
}

.talk-modal-dialog .eyebrow {
  margin: 0;
  color: var(--red, #e31324);
  font-family: "Space Grotesk", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.talk-modal-dialog .dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--red, #e31324);
  vertical-align: middle;
}

.talk-modal-dialog .section-title {
  margin: 12px 0 24px;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(34px, 4.4vw, 58px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.98;
  color: var(--text, #171717);
}

.talk-modal-dialog .text-red {
  color: var(--red, #e31324);
}

.talk-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--red-line, #f2c5ca);
  border-radius: 50%;
  background: var(--white, #fff);
  color: var(--red, #e31324);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.talk-modal-email {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0 22px;
  color: var(--red, #e31324);
  font-weight: 700;
  text-decoration: none;
}

.talk-modal-email svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

.talk-modal-form {
  display: grid;
  gap: 12px;
}

.talk-modal-form input,
.talk-modal-form textarea {
  width: 100%;
  padding: 14px 15px;
  border: 1px solid #efb5bb;
  border-radius: 12px;
  outline: none;
  background: var(--white, #fff);
  color: #751d27;
  font-family: inherit;
  font-size: 14px;
  box-sizing: border-box;
}

.talk-modal-form textarea {
  min-height: 105px;
  resize: vertical;
}

.talk-modal-form .button-red {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border: 0;
  border-radius: 999px;
  background: var(--red, #e31324);
  color: var(--white, #fff);
  font-family: "Space Grotesk", sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.talk-modal-form .button-red:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(227, 19, 36, 0.35);
}

.talk-modal-form .button-red:disabled {
  cursor: default;
  transform: none !important;
  box-shadow: none;
}

/* ==========================================================================
   5. BUTTON-LEVEL MICRO-ANIMATION STATES & REDUCED MOTION
   ========================================================================== */
.button-state-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  line-height: 1;
  transition: opacity 0.18s cubic-bezier(0.16, 1, 0.3, 1), transform 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.button-state-wrap.is-leaving {
  opacity: 0;
  transform: translateY(-6px);
}

.button-state-wrap.is-entering {
  animation: btnStateEnter 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.button-state-text {
  display: inline-block;
  line-height: 1;
}

.button-success-icon {
  display: inline-block;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  vertical-align: middle;
  animation: btnCheckPop 0.36s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.button-success-icon path {
  stroke-dasharray: 22;
  stroke-dashoffset: 22;
  animation: btnCheckDraw 0.32s cubic-bezier(0.16, 1, 0.3, 1) 0.06s forwards;
}

@keyframes btnStateEnter {
  0% {
    opacity: 0;
    transform: translateY(6px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes btnCheckPop {
  0% {
    transform: scale(0.5);
    opacity: 0;
  }
  65% {
    transform: scale(1.18);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes btnCheckDraw {
  0% {
    stroke-dashoffset: 22;
  }
  100% {
    stroke-dashoffset: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .button-state-wrap,
  .button-state-wrap.is-entering,
  .button-success-icon,
  .button-success-icon path {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    stroke-dashoffset: 0 !important;
    opacity: 1 !important;
  }
}

.talk-modal-note {
  margin: 0;
  color: #7e3942;
  font-size: 11px;
}

body.talk-modal-open {
  overflow: hidden;
}

