/* =========================================
   Muffet Property Management — Stylesheet
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,300&display=swap');

/* ── Variables ─────────────────────────────── */
:root {
  --navy:        #0D2140;
  --navy-mid:    #1A3A5C;
  --navy-light:  #2A5285;
  --gold:        #B8924A;
  --gold-light:  #D4A96A;
  --cream:       #FAFAF7;
  --warm-gray:   #F2EFE9;
  --border:      #DDD9D0;
  --text:        #1A1A1A;
  --text-mid:    #4A4A4A;
  --text-muted:  #7A7772;
  --white:       #FFFFFF;

  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  --radius:      6px;
  --max-width:   1140px;
  --nav-h:       72px;

  --shadow-sm:   0 1px 3px rgba(13,33,64,.06), 0 1px 2px rgba(13,33,64,.04);
  --shadow-md:   0 4px 16px rgba(13,33,64,.08), 0 2px 6px rgba(13,33,64,.05);
  --shadow-lg:   0 12px 40px rgba(13,33,64,.12), 0 4px 12px rgba(13,33,64,.06);
}

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

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

body {
  font-family: var(--font-body);
  background-color: var(--cream);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

/* ── Utility ───────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 60px);
}

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

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.15;
  color: var(--navy);
}

.section-subheading {
  font-size: 17px;
  color: var(--text-mid);
  line-height: 1.7;
  max-width: 560px;
  margin-top: 14px;
}

/* ── Navigation ────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  height: var(--nav-h);
  background: rgba(250,250,247,.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .3s ease;
}

.nav.scrolled {
  box-shadow: 0 2px 20px rgba(13,33,64,.08);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav__logo-mark {
  width: 36px;
  height: 36px;
  background: var(--navy);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nav__logo-mark svg {
  width: 20px;
  height: 20px;
  fill: var(--gold);
}

.nav__brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.nav__name {
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--navy);
  letter-spacing: .01em;
}

.nav__tagline {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav__link {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-mid);
  padding: 6px 14px;
  border-radius: var(--radius);
  transition: color .2s, background .2s;
}

.nav__link:hover {
  color: var(--navy);
  background: var(--warm-gray);
}

.nav__cta {
  font-size: 13px;
  font-weight: 600;
  color: var(--white);
  background: var(--navy);
  padding: 9px 22px;
  border-radius: var(--radius);
  letter-spacing: .02em;
  transition: background .2s, transform .15s;
  margin-left: 8px;
}

.nav__cta:hover {
  background: var(--navy-mid);
  transform: translateY(-1px);
}

/* Hamburger */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  border: none;
  background: transparent;
}

.nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all .3s ease;
}

.nav__toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav__toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.nav__mobile {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  background: var(--cream);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px 24px;
  z-index: 850;
  flex-direction: column;
  gap: 4px;
  box-shadow: var(--shadow-lg);
}

.nav__mobile.open { display: flex; }

.nav__mobile .nav__link {
  display: block;
  padding: 12px 14px;
  font-size: 16px;
}

.nav__mobile .nav__cta {
  margin: 12px 0 0;
  display: block;
  text-align: center;
  padding: 12px;
}

/* ── Hero ──────────────────────────────────── */
.hero {
  padding-top: calc(var(--nav-h) + 80px);
  padding-bottom: 100px;
  background: var(--cream);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: -10%;
  width: 55%;
  height: 100%;
  background: var(--warm-gray);
  clip-path: polygon(12% 0, 100% 0, 100% 100%, 0% 100%);
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 40%;
  height: 3px;
  background: linear-gradient(to right, transparent, var(--gold));
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}

.hero__eyebrow-line {
  width: 32px;
  height: 2px;
  background: var(--gold);
}

.hero__eyebrow-text {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
}

.hero__heading {
  font-family: var(--font-display);
  font-size: clamp(40px, 5.5vw, 72px);
  line-height: 1.08;
  color: var(--navy);
  margin-bottom: 24px;
}

.hero__heading em {
  font-style: italic;
  color: var(--navy-light);
}

.hero__body {
  font-size: 17px;
  color: var(--text-mid);
  line-height: 1.75;
  max-width: 480px;
  margin-bottom: 38px;
}

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

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  background: var(--navy);
  padding: 13px 28px;
  border-radius: var(--radius);
  letter-spacing: .02em;
  transition: background .2s, transform .15s, box-shadow .2s;
  box-shadow: 0 2px 8px rgba(13,33,64,.25);
}

.btn-primary:hover {
  background: var(--navy-mid);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(13,33,64,.28);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--navy);
  padding: 13px 24px;
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  background: transparent;
  transition: border-color .2s, background .2s;
}

.btn-secondary:hover {
  border-color: var(--navy);
  background: var(--warm-gray);
}

.hero__visual {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero__stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.hero__stat {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 22px 20px;
  box-shadow: var(--shadow-sm);
}

.hero__stat-number {
  font-family: var(--font-display);
  font-size: 36px;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 4px;
}

.hero__stat-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: .04em;
  text-transform: uppercase;
}

.hero__badge {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--navy);
  border-radius: 10px;
  padding: 18px 20px;
  color: var(--white);
}

.hero__badge-icon {
  width: 40px;
  height: 40px;
  background: rgba(184,146,74,.2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hero__badge-icon svg {
  width: 20px;
  height: 20px;
  fill: var(--gold-light);
}

.hero__badge-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 2px;
}

.hero__badge-sub {
  font-size: 12px;
  color: rgba(255,255,255,.6);
}

/* ── Services ──────────────────────────────── */
.services {
  padding: 96px 0;
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.services__header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: end;
  margin-bottom: 56px;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.service-card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 32px 26px;
  transition: box-shadow .25s, transform .25s, border-color .25s;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(to right, var(--navy), var(--navy-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}

.service-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: rgba(13,33,64,.15);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card__icon {
  width: 48px;
  height: 48px;
  background: var(--navy);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}

.service-card__icon svg {
  width: 22px;
  height: 22px;
  fill: var(--gold-light);
}

.service-card__title {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--navy);
  margin-bottom: 10px;
  line-height: 1.25;
}

.service-card__body {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.7;
}

/* ── About ─────────────────────────────────── */
.about {
  padding: 96px 0;
  background: var(--cream);
}

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

.about__visual {
  position: relative;
  padding-bottom: 48px;
  padding-right: 32px;
}

.about__image-frame {
  background: var(--navy);
  border-radius: 12px;
  padding: 36px;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.about__image-frame::after {
  content: '';
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 140px;
  height: 140px;
  background: rgba(255,255,255,.04);
  border-radius: 50%;
}

.about__image-frame::before {
  content: '';
  position: absolute;
  top: -30px;
  left: -30px;
  width: 180px;
  height: 180px;
  background: rgba(184,146,74,.08);
  border-radius: 50%;
}

.about__frame-heading {
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1.3;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.about__frame-heading em {
  font-style: italic;
  color: var(--gold-light);
}

.about__values {
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  z-index: 1;
}

.about__value {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: rgba(255,255,255,.85);
}

.about__value-dot {
  width: 6px;
  height: 6px;
  background: var(--gold-light);
  border-radius: 50%;
  flex-shrink: 0;
}

.about__accent-card {
  position: absolute;
  bottom: -20px;
  right: -24px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 20px;
  box-shadow: var(--shadow-md);
  min-width: 170px;
}

.about__accent-number {
  font-family: var(--font-display);
  font-size: 32px;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 4px;
}

.about__accent-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.about__body {
  font-size: 16px;
  color: var(--text-mid);
  line-height: 1.8;
  margin-bottom: 20px;
}

.about__list {
  margin: 28px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.about__list-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: var(--text-mid);
}

.about__list-check {
  width: 20px;
  height: 20px;
  background: rgba(13,33,64,.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.about__list-check svg {
  width: 11px;
  height: 11px;
  stroke: var(--navy);
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ── Testimonials ──────────────────────────── */
.testimonials {
  padding: 96px 0;
  background: var(--navy);
  position: relative;
  overflow: hidden;
}

.testimonials::before {
  content: '"';
  position: absolute;
  top: -40px;
  left: 5%;
  font-family: var(--font-display);
  font-size: 320px;
  color: rgba(255,255,255,.03);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.testimonials__header {
  text-align: center;
  margin-bottom: 56px;
}

.testimonials__header .section-label { color: var(--gold-light); }
.testimonials__header .section-heading { color: var(--white); }
.testimonials__header .section-subheading {
  color: rgba(255,255,255,.6);
  margin-inline: auto;
}

.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  position: relative;
  z-index: 1;
}

.testimonial-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  padding: 32px 28px;
  transition: background .25s, transform .25s;
}

.testimonial-card:hover {
  background: rgba(255,255,255,.09);
  transform: translateY(-3px);
}

.testimonial-card__stars {
  display: flex;
  gap: 3px;
  margin-bottom: 18px;
}

.testimonial-card__stars svg {
  width: 15px;
  height: 15px;
  fill: var(--gold-light);
}

.testimonial-card__quote {
  font-size: 15px;
  color: rgba(255,255,255,.85);
  line-height: 1.75;
  margin-bottom: 24px;
  font-style: italic;
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-card__avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--navy-light);
  border: 2px solid rgba(255,255,255,.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--gold-light);
}

.testimonial-card__name {
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 2px;
}

.testimonial-card__role {
  font-size: 12px;
  color: rgba(255,255,255,.5);
}

/* ── Contact ───────────────────────────────── */
.contact {
  padding: 96px 0;
  background: var(--white);
  border-top: 1px solid var(--border);
}

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

.contact__intro {
  padding-top: 8px;
}

.contact__body {
  font-size: 16px;
  color: var(--text-mid);
  line-height: 1.8;
  margin-top: 14px;
  margin-bottom: 36px;
}

.contact__info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact__item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact__item-icon {
  width: 44px;
  height: 44px;
  background: var(--warm-gray);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact__item-icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--navy);
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact__item-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 3px;
}

.contact__item-value {
  font-size: 15px;
  color: var(--text);
  font-weight: 400;
}

.contact__item-value a {
  color: var(--navy-mid);
  transition: color .2s;
}

.contact__item-value a:hover {
  color: var(--gold);
}

/* Hours panel */
.contact__hours-panel {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 36px;
}

.contact__hours-title {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--navy);
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.contact__hours-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact__hours-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: var(--text-mid);
}

.contact__hours-day { font-weight: 500; color: var(--text); }

.contact__hours-note {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── Footer ────────────────────────────────── */
.footer {
  background: var(--navy);
  padding: 48px 0 32px;
  border-top: 1px solid rgba(255,255,255,.06);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer__logo-mark {
  width: 32px;
  height: 32px;
  background: rgba(255,255,255,.08);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer__logo-mark svg {
  width: 16px;
  height: 16px;
  fill: var(--gold-light);
}

.footer__brand-name {
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--white);
}

.footer__links {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.footer__link {
  font-size: 13px;
  color: rgba(255,255,255,.5);
  transition: color .2s;
}

.footer__link:hover { color: rgba(255,255,255,.9); }

.footer__bottom {
  padding-top: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.footer__copy {
  font-size: 12px;
  color: rgba(255,255,255,.35);
}

.footer__legal {
  font-size: 12px;
  color: rgba(255,255,255,.3);
}

.footer__legal a {
  color: rgba(255,255,255,.45);
  transition: color .2s;
}

.footer__legal a:hover { color: rgba(255,255,255,.8); }

/* ── Animations ────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-up {
  animation: fadeUp .7s ease both;
}

.fade-up-1 { animation-delay: .05s; }
.fade-up-2 { animation-delay: .15s; }
.fade-up-3 { animation-delay: .25s; }
.fade-up-4 { animation-delay: .35s; }

/* ── Responsive ────────────────────────────── */
@media (max-width: 1024px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero::before { display: none; }
  .hero__stat-grid { grid-template-columns: repeat(2, 1fr); }

  .services__header { grid-template-columns: 1fr; }
  .about__inner { grid-template-columns: 1fr; gap: 48px; }
  .about__accent-card { display: none; }

  .testimonials__grid { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }

  .contact__inner { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 640px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: flex; }

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

  .hero__heading { font-size: clamp(34px, 9vw, 48px); }

  .footer__inner { flex-direction: column; align-items: flex-start; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}
