/* =============================================
   MERIDIAN NOTARY — style.css
   ============================================= */

/* ---------- RESET & BASE ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --navy: #1b2a3b;
  --navy-light: #243447;
  --ivory: #f8f6f1;
  --stone: #e4e0d8;
  --stone-dark: #c8c2b6;
  --bronze: #a0876a;
  --bronze-dk: #876f53;
  --text: #2d2d2d;
  --text-muted: #6b6560;
  --white: #ffffff;

  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Source Sans 3", "Helvetica Neue", sans-serif;

  --radius: 2px;
  --transition: 0.3s ease;
  --max-width: 1180px;
  --section-gap: 100px;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--ivory);
  line-height: 1.7;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

address {
  font-style: normal;
}

a {
  color: inherit;
  text-decoration: none;
  transition:
    color var(--transition),
    opacity var(--transition);
}

ul {
  list-style: none;
}

/* ---------- CONTAINER ---------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- SECTION SHARED ---------- */
.section {
  padding: var(--section-gap) 0;
}

.section-header {
  max-width: 560px;
  margin-bottom: 60px;
}

.section-header.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bronze);
  margin-bottom: 12px;
}

.section-label--light {
  color: var(--stone);
  opacity: 0.8;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-title--light {
  color: var(--white);
}

.section-sub {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-block;
  padding: 14px 34px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition:
    background var(--transition),
    color var(--transition),
    border-color var(--transition),
    transform var(--transition);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--light {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
}
.btn--light:hover {
  background: transparent;
  color: var(--white);
}

.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.55);
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
}

.btn--dark {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn--dark:hover {
  background: var(--navy-light);
  border-color: var(--navy-light);
}

/* =============================================
   HEADER
   ============================================= */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 22px 0;
  transition:
    background var(--transition),
    padding var(--transition),
    box-shadow var(--transition);
}

.header.scrolled {
  background: var(--navy);
  padding: 14px 0;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.18);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* LOGO */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo__mark {
  width: 38px;
  height: 38px;
  background: var(--bronze);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: var(--radius);
}

.logo__text {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1.2;
}

.logo__text em {
  font-style: italic;
  font-weight: 400;
  display: block;
  font-size: 0.8rem;
  color: var(--stone);
}

.logo--sm .logo__mark {
  width: 32px;
  height: 32px;
  font-size: 1rem;
}
.logo--sm .logo__text {
  font-size: 0.95rem;
}

/* NAV */
.nav__list {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav__link {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
  transition: color var(--transition);
  position: relative;
}

.nav__link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--bronze);
  transition: width var(--transition);
}

.nav__link:hover,
.nav__link:hover::after {
  color: var(--white);
  width: 100%;
}

.nav__link--cta {
  color: #b7a896;
  border: 1px solid #b7a896;
  padding: 7px 18px;
  border-radius: var(--radius);
}
.nav__link--cta:hover {
  background: var(--bronze);
  color: var(--white);
}
.nav__link--cta::after {
  display: none;
}

/* BURGER */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 110;
}

.burger__line {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition:
    transform var(--transition),
    opacity var(--transition);
}

.burger.active .burger__line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.burger.active .burger__line:nth-child(2) {
  opacity: 0;
}
.burger.active .burger__line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* =============================================
   HERO
   ============================================= */
.hero {
  position: relative;
  height: 100vh;
  min-height: 620px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(27, 42, 59, 0.88) 0%,
    rgba(27, 42, 59, 0.6) 60%,
    rgba(27, 42, 59, 0.3) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.hero__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bronze);
  margin-bottom: 20px;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5.5vw, 5rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero__title em {
  font-style: italic;
  font-weight: 400;
}

.hero__sub {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.75);
  max-width: 460px;
  margin-bottom: 40px;
  line-height: 1.75;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

@keyframes scrollPulse {
  0%,
  100% {
    opacity: 0.3;
    transform: scaleY(0.6);
    transform-origin: top;
  }
  50% {
    opacity: 1;
    transform: scaleY(1);
  }
}

/* =============================================
   STATS RIBBON
   ============================================= */
.stats-ribbon {
  background: var(--navy);
  padding: 50px 0;
}

.stats-ribbon__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.stat-item {
  flex: 1;
  min-width: 180px;
  text-align: center;
  padding: 16px 24px;
}

.stat-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
}

.stat-item span {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--stone-dark);
}

.stat-divider {
  width: 1px;
  height: 48px;
  background: rgba(255, 255, 255, 0.12);
  flex-shrink: 0;
}

/* =============================================
   SERVICES
   ============================================= */
.services {
  background: var(--ivory);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--stone);
  border-left: 1px solid var(--stone);
}

.service-card {
  padding: 40px 36px;
  border-right: 1px solid var(--stone);
  border-bottom: 1px solid var(--stone);
  transition: background var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--bronze);
  transition: width 0.4s ease;
}

.service-card:hover {
  background: var(--white);
}
.service-card:hover::before {
  width: 100%;
}

.service-card__icon {
  width: 44px;
  height: 44px;
  color: var(--bronze);
  margin-bottom: 20px;
}

.service-card__icon svg {
  width: 100%;
  height: 100%;
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 10px;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* =============================================
   ABOUT
   ============================================= */
.about {
  background: var(--white);
}

.about__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about__image-col {
  position: relative;
}

.about__img-frame {
  position: relative;
  overflow: hidden;
}

.about__img-frame::before {
  content: "";
  position: absolute;
  top: -16px;
  left: -16px;
  width: 60%;
  height: 60%;
  border-top: 3px solid var(--bronze);
  border-left: 3px solid var(--bronze);
  z-index: 0;
}

.about__img {
  width: 100%;
  height: 540px;
  object-fit: cover;
  position: relative;
  z-index: 1;
  transition: transform 0.6s ease;
}

.about__img:hover {
  transform: scale(1.02);
}

.about__badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--navy);
  color: var(--white);
  width: 96px;
  height: 96px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 2;
  border-radius: var(--radius);
  text-align: center;
}

.about__badge strong {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--stone-dark);
}

.about__badge span {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1;
}

.about__content p {
  font-size: 0.97rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 16px;
}

.about__credentials {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.about__credentials li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
}

.about__credentials li svg {
  width: 18px;
  height: 18px;
  color: var(--bronze);
  flex-shrink: 0;
}

/* =============================================
   WHY US
   ============================================= */
.why-us {
  position: relative;
  overflow: hidden;
  padding: var(--section-gap) 0;
  isolation: isolate;
}

.why-us__image-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.why-us__image-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.why-us__overlay {
  position: absolute;
  inset: 0;
  background: rgba(27, 42, 59, 0.88);
}

.why-us__inner {
}

.why-us__header {
  margin-bottom: 52px;
}

.why-us__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
}

.why-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 40px;
  transition: background var(--transition);
  position: relative;
}

.why-card:hover {
  background: rgba(255, 255, 255, 0.08);
}

.why-card__num {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.07);
  position: absolute;
  top: 20px;
  right: 28px;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.why-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 12px;
}

.why-card p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.75;
}

/* =============================================
   PROCESS
   ============================================= */
.process {
  background: var(--ivory);
}

.process__steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-bottom: 70px;
  flex-wrap: wrap;
}

.process-step {
  flex: 1;
  min-width: 160px;
  padding: 0 24px;
}

.process-step:first-child {
  padding-left: 0;
}

.process-step__num {
  width: 44px;
  height: 44px;
  border: 2px solid var(--bronze);
  color: var(--bronze);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  border-radius: var(--radius);
  transition:
    background var(--transition),
    color var(--transition);
}

.process-step:hover .process-step__num {
  background: var(--bronze);
  color: var(--white);
}

.process-step__body h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
}

.process-step__body p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.process-step__arrow {
  flex-shrink: 0;
  margin-top: 11px;
  color: var(--stone-dark);
}

.process-step__arrow svg {
  width: 40px;
  height: 16px;
}

.process__image-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 16px;
}

.process__img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius);
  transition: transform 0.5s ease;
}

.process__img:hover {
  transform: scale(1.02);
}

/* =============================================
   CONTACT
   ============================================= */
.contact {
  background: var(--white);
}

.contact__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-bottom: 60px;
  border: 1px solid var(--stone);
}

.contact-block {
  padding: 44px 36px;
  border-right: 1px solid var(--stone);
  transition: background var(--transition);
}

.contact-block:last-child {
  border-right: none;
}
.contact-block:hover {
  background: var(--ivory);
}

.contact-block__icon {
  width: 40px;
  height: 40px;
  color: var(--bronze);
  margin-bottom: 18px;
}

.contact-block__icon svg {
  width: 100%;
  height: 100%;
}

.contact-block h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.contact-block a {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: var(--bronze);
  margin-bottom: 8px;
  transition: color var(--transition);
}

.contact-block a:hover {
  color: var(--bronze-dk);
}

.contact-block p,
.contact-block address {
  font-size: 0.87rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.contact__cta {
  text-align: center;
  padding: 52px;
  background: var(--navy);
  color: var(--white);
}

.contact__cta p {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-style: italic;
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.8);
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: var(--navy);
  padding: 70px 0 0;
  color: rgba(255, 255, 255, 0.65);
}

.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1.2fr;
  gap: 60px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__brand .logo {
  margin-bottom: 18px;
}

.footer__brand p {
  font-size: 0.87rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.7;
  max-width: 300px;
}

.footer__links h4,
.footer__hours h4 {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--stone-dark);
  margin-bottom: 18px;
}

.footer__links ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__links ul li a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.55);
  transition: color var(--transition);
}

.footer__links ul li a:hover {
  color: var(--white);
}

.footer__hours ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__hours ul li {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.55);
  gap: 20px;
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 22px 0;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.3);
}

/* =============================================
   REVEAL ANIMATION
   ============================================= */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.65s ease,
    transform 0.65s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .about__inner {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  .about__img {
    height: 380px;
  }
  .about__badge {
    right: 0;
    bottom: -16px;
  }
  .footer__inner {
    grid-template-columns: 1fr 1fr;
  }
  .footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  :root {
    --section-gap: 70px;
  }

  /* Header */
  .burger {
    display: flex;
  }

  .nav {
    position: fixed;
    inset: 0;
    background: var(--navy);
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateX(100%);
    transition: transform 0.4s ease;
    z-index: 99;
  }

  .nav.open {
    transform: translateX(0);
  }

  .nav__list {
    flex-direction: column;
    gap: 28px;
    text-align: center;
  }

  .nav__link {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
  }

  /* Services */
  .services__grid {
    grid-template-columns: 1fr;
  }

  /* Stats */
  .stat-divider {
    display: none;
  }
  .stats-ribbon__inner {
    gap: 16px;
  }
  .stat-item {
    min-width: 130px;
  }

  /* Why */
  .why-us__grid {
    grid-template-columns: 1fr;
    gap: 1px;
  }

  /* Process */
  .process__steps {
    flex-direction: column;
    gap: 28px;
  }
  .process-step {
    padding: 0;
  }
  .process-step__arrow {
    transform: rotate(90deg);
    margin: 0 0 0 11px;
  }
  .process__image-row {
    grid-template-columns: 1fr;
  }
  .process__img {
    height: 240px;
  }

  /* Contact */
  .contact__grid {
    grid-template-columns: 1fr;
  }
  .contact-block {
    border-right: none;
    border-bottom: 1px solid var(--stone);
  }
  .contact-block:last-child {
    border-bottom: none;
  }

  /* Footer */
  .footer__inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero__actions {
    flex-direction: column;
  }
  .btn {
    text-align: center;
  }
  .about__img {
    height: 280px;
  }
  .section-header {
    margin-bottom: 36px;
  }
  .contact__cta {
    padding: 36px 24px;
  }
}
