:root {
  --primary: #c8191e;
  --primary-deep: #981018;
  --ink: #231f20;
  --muted: #6a6163;
  --paper: #f5f6f7;
  --card: #ffffff;
  --line: #f0dfe0;
  --shadow: 0 18px 40px rgba(152, 16, 24, 0.12);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Barlow", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 10%, rgba(120, 130, 140, 0.08), transparent 45%),
    radial-gradient(circle at 90% 30%, rgba(165, 172, 180, 0.06), transparent 50%),
    var(--paper);
}

.wrapper {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.hero {
  position: relative;
  min-height: 90vh;
  color: #ffffff;
  background: url("images/avaluo-inmueble.jpeg") center/cover no-repeat;
  overflow: hidden;
}

.overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.58);
}

.nav {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(1120px, 92%);
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.1rem;
  min-height: 72px;
  padding: 0;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(200, 25, 30, 0.16);
  border-radius: 14px;
  margin-top: 0.45rem;
  padding-inline: 0.7rem;
  backdrop-filter: blur(6px);
}

.brand {
  display: block;
  position: relative;
  width: 200px;
  height: 72px;
  flex: 0 0 200px;
  color: inherit;
  text-decoration: none;
}

.brand img {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 200px;
  height: 200px;
  object-fit: contain;
  border-radius: 0;
  background: transparent;
  padding: 0;
}

.brand span {
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: #2a1a1c;
  text-shadow: none;
}

.menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.menu a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.46rem 0.82rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.78);
  color: #4a1e22;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.91rem;
  letter-spacing: 0.01em;
  line-height: 1;
  opacity: 1;
  text-shadow: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.menu a:hover {
  color: var(--primary-deep);
  background: #ffffff;
  border-color: rgba(200, 25, 30, 0.35);
  transform: translateY(-1px);
}

.menu a:focus-visible {
  outline: none;
  border-color: rgba(200, 25, 30, 0.45);
  box-shadow: 0 0 0 3px rgba(200, 25, 30, 0.14);
}

.nav-toggle,
.nav-toggle-label {
  display: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 11rem 0 6rem;
  max-width: 780px;
  animation: lift 0.8s ease-out both;
}

.eyebrow {
  display: inline-block;
  margin: 0;
  margin-bottom: 0.8rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-weight: 600;
  font-size: 0.9rem;
}

h1,
h2,
h3 {
  font-family: "Montserrat", sans-serif;
  line-height: 1.2;
  margin-top: 0;
}

h1 {
  font-size: clamp(2rem, 4.4vw, 3.6rem);
  margin-bottom: 1rem;
}

.hero-content p {
  max-width: 58ch;
  color: #24191b;
  font-size: 1.05rem;
  font-weight: 600;
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.35);
}

.hero-content h1 {
  color: #1b1012;
  text-shadow: 0 2px 6px rgba(255, 255, 255, 0.45);
}

.hero-content .eyebrow {
  color: #210f13;
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(33, 15, 19, 0.2);
  font-weight: 700;
}

.hero-actions {
  margin-top: 1.8rem;
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.75rem 1.25rem;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-main {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 10px 24px rgba(200, 25, 30, 0.35);
}

.btn-main:hover {
  background: #d82f34;
}

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
}

.hero-actions a[href="#inmuebles"],
.hero-actions a[href="#contacto"] {
  font-weight: 400;
}

.hero-actions a[href="#contacto"] {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 10px 24px rgba(200, 25, 30, 0.35);
}

.hero-actions a[href="#contacto"]:hover {
  background: #d82f34;
}

.section {
  padding: 5rem 0;
  content-visibility: auto;
  contain-intrinsic-size: 1px 900px;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.tone {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 232, 232, 0.65));
}

.section-tag {
  display: inline-block;
  margin: 0;
  margin-bottom: 0.55rem;
  padding: 0.42rem 0.9rem;
  color: var(--primary-deep);
  background: rgba(200, 25, 30, 0.13);
  border: 1px solid rgba(200, 25, 30, 0.25);
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 800;
  font-size: 1rem;
}

.section h2 {
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  margin: 0.4rem 0 0.8rem;
}

.section-intro {
  max-width: 70ch;
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.cards-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cards-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.cards-5 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.cards-7 {
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem;
  box-shadow: var(--shadow);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.card:hover {
  transform: translateY(-5px);
  border-color: rgba(200, 25, 30, 0.35);
  box-shadow: 0 22px 40px rgba(152, 16, 24, 0.16);
}

.icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 0.8rem;
  color: #fff;
  background: linear-gradient(145deg, var(--primary), var(--primary-deep));
}

.card h3 {
  margin-bottom: 0.6rem;
  font-size: 1.1rem;
}

.card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.value-media {
  margin: 0.85rem 0 0.9rem;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(200, 25, 30, 0.16);
  background: #fff;
}

.value-media img {
  display: block;
  width: 100%;
  height: 140px;
  object-fit: cover;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.card:hover .value-media img {
  transform: scale(1.03);
  filter: saturate(1.05);
}

#sobre-nosotros .card {
  position: relative;
  overflow: hidden;
  padding: 1.25rem 1.15rem 1.2rem;
  border: 1px solid rgba(200, 25, 30, 0.22);
  background: linear-gradient(165deg, #ffffff, #fff4f4 78%);
}

#sobre-nosotros .card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #c8191e, #ff7a7e);
}

#sobre-nosotros .card .icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  box-shadow: 0 8px 16px rgba(152, 16, 24, 0.24);
}

#sobre-nosotros .card h3 {
  font-size: 1.2rem;
  color: #531419;
}

#sobre-nosotros .card p {
  color: #574c4f;
}

.pill {
  display: inline-block;
  margin-top: 0.9rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: rgba(200, 25, 30, 0.12);
  color: var(--primary-deep);
  font-size: 0.76rem;
  font-weight: 700;
}

#inmuebles .property-card {
  position: relative;
  overflow: hidden;
  padding: 1.2rem 1.1rem 1.15rem;
  border: 1px solid rgba(200, 25, 30, 0.24);
  background: linear-gradient(168deg, #ffffff, #fff2f3 86%);
}

#inmuebles .property-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #c8191e, #ff8d92);
}

#inmuebles .property-card .icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  box-shadow: 0 8px 16px rgba(152, 16, 24, 0.22);
}

#inmuebles .property-card h3 {
  color: #55161b;
}

#inmuebles .property-card p {
  color: #5f5255;
}

#inmuebles .property-card .pill {
  margin-top: 0.85rem;
  background: rgba(200, 25, 30, 0.14);
  color: #6a1218;
}

.gallery-block {
  margin-top: 2.4rem;
}

.gallery-head h3 {
  margin: 0;
  font-size: 1.45rem;
}

.gallery-head p {
  margin: 0.45rem 0 0;
  color: var(--muted);
}

.gallery-filters {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.filter-btn {
  border: 1px solid rgba(200, 25, 30, 0.3);
  background: #fff;
  color: var(--primary-deep);
  font-weight: 700;
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.filter-btn:hover {
  transform: translateY(-2px);
}

.filter-btn:focus-visible {
  outline: none;
  border-color: rgba(200, 25, 30, 0.65);
  box-shadow: 0 0 0 3px rgba(200, 25, 30, 0.16);
}

.filter-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.gallery-grid {
  margin-top: 1rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.gallery-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 42px rgba(152, 16, 24, 0.16);
}

.gallery-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  cursor: zoom-in;
}

.gallery-body {
  padding: 0.9rem;
}

.gallery-body h4 {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  font-size: 1rem;
}

.gallery-body p {
  margin: 0.5rem 0;
  color: var(--muted);
  font-size: 0.93rem;
}

.gallery-body span {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary-deep);
  background: rgba(200, 25, 30, 0.1);
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
}

.gallery-more-info {
  margin-top: 0.7rem;
  width: 100%;
  justify-content: center;
  border: 1px solid rgba(152, 16, 24, 0.24);
}

.gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 2500;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: rgba(13, 11, 12, 0.82);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.gallery-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.gallery-modal-close,
.gallery-modal-nav {
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  border-radius: 999px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.gallery-modal-close {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
}

.gallery-modal-figure {
  margin: 0;
  width: min(980px, 100%);
  justify-self: center;
}

.gallery-modal-figure img {
  width: 100%;
  max-height: min(78vh, 760px);
  object-fit: contain;
  border-radius: 14px;
  background: #111;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.gallery-modal-figure figcaption {
  margin-top: 0.55rem;
  color: #f2f2f2;
  text-align: center;
  font-weight: 600;
}

.gallery-modal-thumbs {
  margin-top: 0.7rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.gallery-thumb-btn {
  border: 2px solid transparent;
  border-radius: 10px;
  padding: 0;
  background: transparent;
  cursor: pointer;
  overflow: hidden;
  width: 72px;
  height: 52px;
  opacity: 0.78;
  transition: opacity 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.gallery-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-thumb-btn:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.gallery-thumb-btn.is-active {
  opacity: 1;
  border-color: rgba(255, 255, 255, 0.92);
}

.gallery-thumb-btn:focus-visible {
  outline: none;
  border-color: rgba(255, 255, 255, 1);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.24);
}

.service-card {
  background:
    linear-gradient(180deg, #ffffff, #fff5f5);
}

#servicios .service-card {
  position: relative;
  overflow: hidden;
  padding: 1.15rem 1rem 1.1rem;
  border: 1px solid rgba(200, 25, 30, 0.23);
  background: linear-gradient(170deg, #ffffff, #fff3f4 88%);
}

#servicios .service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #bb1a20, #ff7f84);
}

#servicios .service-card .icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  box-shadow: 0 8px 16px rgba(152, 16, 24, 0.22);
}

#servicios .service-card h3 {
  color: #54151a;
}

#servicios .service-card p {
  color: #615457;
}

.advisor-profile {
  margin-top: 1.9rem;
  display: grid;
  grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
  align-items: center;
  gap: 1.4rem;
  padding: 1.2rem;
  border: 1px solid rgba(200, 25, 30, 0.22);
  border-radius: calc(var(--radius) + 2px);
  background: linear-gradient(165deg, #ffffff, #fff2f3 86%);
  box-shadow: var(--shadow);
}

.advisor-photo {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(200, 25, 30, 0.2);
  background: #fff;
}

.advisor-photo img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 290px;
  object-fit: cover;
}

.advisor-body {
  display: grid;
  gap: 0.75rem;
}

.advisor-role {
  margin: 0;
  display: inline-block;
  justify-self: start;
  padding: 0.3rem 0.72rem;
  border-radius: 999px;
  background: rgba(200, 25, 30, 0.12);
  border: 1px solid rgba(200, 25, 30, 0.24);
  color: var(--primary-deep);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.advisor-body h3 {
  margin: 0;
  font-size: clamp(1.3rem, 2.2vw, 1.8rem);
  color: #4f1519;
}

.advisor-body p {
  margin: 0;
  color: #5c5254;
  line-height: 1.55;
  max-width: 62ch;
}

.advisor-body .btn {
  justify-self: start;
}

.schedule-grid .card {
  position: relative;
  overflow: hidden;
  padding: 1.05rem 0.85rem;
  text-align: center;
  border: 1px solid rgba(200, 25, 30, 0.28);
  background: linear-gradient(175deg, #fffefe, #ffeff0 90%);
}

.schedule-grid .card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(200, 25, 30, 0.16), transparent 52%);
  pointer-events: none;
}

.day-card h3 {
  margin-bottom: 0.45rem;
  font-size: 1rem;
  color: #4f1519;
}

.day-card p {
  font-size: 0.88rem;
  color: #66595c;
  line-height: 1.35;
}

.weekend {
  border: 1px solid rgba(200, 25, 30, 0.5);
  background: linear-gradient(180deg, #fff1f1, #ffffff);
}

.contact-card {
  margin-top: 2rem;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  padding: 1.5rem;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.contact-card h3 {
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin-bottom: 1.2rem;
}

.contact-grid p {
  margin: 0;
  color: #3f3739;
}

.contact-grid i {
  color: var(--primary-deep);
}

.contact-grid a {
  color: var(--primary-deep);
  font-weight: 700;
}

.social-links {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin-bottom: 1.2rem;
}

.btn-social {
  border: 1px solid rgba(200, 25, 30, 0.2);
  background: #fff7f7;
  color: var(--primary-deep);
}

.btn-social i {
  margin-right: 0.35rem;
}

.contact-form {
  border-top: 1px solid var(--line);
  padding-top: 1.1rem;
}

.contact-form h4 {
  margin: 0 0 0.8rem;
  font-family: "Montserrat", sans-serif;
  font-size: 1.1rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.contact-form label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
  color: #3d3638;
  font-size: 0.95rem;
  margin-bottom: 0.7rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid #e8d5d7;
  border-radius: 12px;
  padding: 0.65rem 0.75rem;
  font: inherit;
  color: var(--ink);
  background: #fff;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: rgba(200, 25, 30, 0.7);
  box-shadow: 0 0 0 3px rgba(200, 25, 30, 0.12);
}

.form-actions {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin-top: 0.4rem;
}

.contact-form .btn-main {
  background: #c8191e;
  box-shadow: 0 4px 10px rgba(200, 25, 30, 0.18);
  border: 1px solid rgba(152, 16, 24, 0.24);
}

.contact-form .btn-main:hover {
  background: #cf2a2f;
  box-shadow: 0 6px 12px rgba(200, 25, 30, 0.2);
}

.form-mail {
  border-color: rgba(152, 16, 24, 0.45);
  color: var(--primary-deep);
}

.form-feedback {
  min-height: 1.2rem;
  margin: 0.2rem 0 0;
  font-size: 0.9rem;
}

.form-feedback.ok {
  color: #19773a;
}

.form-feedback.error {
  color: #ac1b1b;
}

.footer {
  padding: 1.1rem 0;
  text-align: center;
  color: #f9e6e7;
  background: linear-gradient(90deg, var(--primary-deep), #7e0e14);
}

.footer p {
  margin: 0;
  font-size: 0.9rem;
}

.footer a {
  color: inherit;
  text-decoration: none;
  font-weight: 600;
}

.footer a:hover {
  text-decoration: none;
}

.soft-rise {
  animation: rise 0.6s ease both;
}

.mobile-fast .hero {
  background: url("images/avaluo-inmueble.jpeg") center/cover no-repeat;
}

.mobile-fast .overlay {
  background: rgba(255, 255, 255, 0.58);
}

.mobile-fast .hero-content,
.mobile-fast .soft-rise {
  animation: none;
}

.mobile-fast .card,
.mobile-fast .gallery-card,
.mobile-fast .contact-card {
  box-shadow: 0 8px 18px rgba(152, 16, 24, 0.1);
}

.mobile-fast .gallery-card img {
  height: 150px;
}

@keyframes lift {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1100px) {
  .cards-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cards-5 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .cards-7 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .nav {
    flex-wrap: nowrap;
    position: fixed;
    min-height: 62px;
    padding: 0;
    margin-top: 0.3rem;
  }

  .brand {
    width: 148px;
    height: 62px;
    flex-basis: 148px;
  }

  .brand img {
    width: 148px;
    height: 148px;
  }

  .nav-toggle-label {
    display: inline-flex;
    color: #1f1315;
    font-size: 1.7rem;
    cursor: pointer;
    margin-left: auto;
    z-index: 1100;
  }

  .nav-toggle-label i {
    transition: transform 0.28s ease, opacity 0.28s ease;
    transform-origin: center;
  }

  .menu {
    width: min(340px, 92vw);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background: #ffffff;
    border: 1px solid #f0dfe0;
    box-shadow: 0 12px 28px rgba(35, 31, 32, 0.1);
    padding: 0.8rem;
    border-radius: 14px;
    position: absolute;
    top: calc(100% + 0.2rem);
    right: 0;
    left: auto;
    z-index: 1050;
    opacity: 0;
    transform: translateY(-10px) scale(0.98);
    transform-origin: top right;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.24s ease, transform 0.24s ease, visibility 0.24s ease;
  }

  .menu li {
    width: 100%;
  }

  .menu a {
    width: 100%;
    justify-content: flex-start;
    padding: 0.62rem 0.82rem;
    border-radius: 10px;
    background: #fff;
  }

  .nav-toggle:checked + .nav-toggle-label + .menu {
    opacity: 1;
    transform: translateY(0) scale(1);
    visibility: visible;
    pointer-events: auto;
  }

  .nav-toggle:checked + .nav-toggle-label i {
    transform: rotate(90deg) scale(1.08);
  }

  .hero-content {
    padding-top: 8rem;
    padding-bottom: 5rem;
  }

  .cards-3,
  .cards-5,
  .cards-7 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-grid,
  .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-modal {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .gallery-modal-nav {
    width: 40px;
    height: 40px;
  }

  .gallery-modal-nav.prev {
    position: absolute;
    left: 0.7rem;
  }

  .gallery-modal-nav.next {
    position: absolute;
    right: 0.7rem;
  }

  .gallery-thumb-btn {
    width: 60px;
    height: 46px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .advisor-profile {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .advisor-photo img {
    min-height: 220px;
    max-height: 360px;
  }
}

@media (max-width: 560px) {
  .nav {
    min-height: 56px;
    padding-inline: 0.45rem;
  }

  .brand {
    width: 122px;
    height: 56px;
    flex-basis: 122px;
  }

  .brand img {
    width: 122px;
    height: 122px;
  }

  .brand span {
    font-size: 0.9rem;
  }

  .cards-3,
  .cards-4,
  .cards-5,
  .cards-7,
  .gallery-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 4rem 0;
  }

  .advisor-profile {
    padding: 1rem;
  }

  .advisor-body {
    gap: 0.6rem;
  }

  .advisor-body .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal.is-visible,
  .soft-rise,
  .hero-content {
    opacity: 1;
    transform: none;
    transition: none;
    animation: none;
  }

  * {
    scroll-behavior: auto;
  }
}
