/* ===========================================================================
   Yen Property — Personal Brand Site
   Warm, elegant design system. No build step; pure CSS.
   =========================================================================== */

:root {
  /* Palette */
  --ink:          #1F2937;
  --ink-soft:     #374151;
  --muted:        #6B7280;
  --line:         #E7E1D6;
  --cream:        #FAF7F2;
  --cream-deep:   #F3EDE1;
  --white:        #FFFFFF;
  --gold:         #B8956A;
  --gold-deep:    #9A7C56;
  --gold-soft:    #D4B896;
  --gold-bg:      #F6EFE2;
  --success:      #4F7B5C;
  --danger:       #B14C4C;

  /* Type */
  --font-serif:   'Playfair Display', 'Cormorant Garamond', Georgia, serif;
  --font-sans:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Shadows */
  --shadow-sm:    0 1px 2px rgba(20, 18, 14, 0.04), 0 1px 3px rgba(20, 18, 14, 0.06);
  --shadow-md:    0 4px 12px rgba(20, 18, 14, 0.06), 0 2px 4px rgba(20, 18, 14, 0.04);
  --shadow-lg:    0 12px 32px rgba(20, 18, 14, 0.10), 0 4px 12px rgba(20, 18, 14, 0.06);

  /* Layout */
  --radius:       12px;
  --radius-lg:    20px;
  --container:    1180px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px; /* offset for sticky nav when jumping to sections */
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden; /* guard against accidental horizontal scroll on mobile */
}

img { max-width: 100%; display: block; }
a { color: var(--gold-deep); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--gold); }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 0.5em 0;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }

p { margin: 0 0 1em 0; color: var(--ink-soft); }

/* ---------- Layout helpers ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: clamp(3rem, 8vw, 6rem) 0;
}

.section--cream { background: var(--cream); }
.section--white { background: var(--white); }
.section--deep  { background: var(--cream-deep); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 0.75rem;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
}
.section-header p {
  color: var(--muted);
  font-size: 1.05rem;
}

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 247, 242, 0.85);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.nav--scrolled {
  background: rgba(250, 247, 242, 0.97);
  border-bottom-color: var(--line);
  box-shadow: 0 2px 16px rgba(20, 18, 14, 0.05);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  max-width: var(--container);
  margin: 0 auto;
}
.nav__brand {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.02em;
  z-index: 2;
}
.nav__brand span { color: var(--gold-deep); }
.nav__links {
  display: flex;
  gap: 2rem;
  align-items: center;
  list-style: none;
  margin: 0; padding: 0;
}
.nav__links a {
  color: var(--ink-soft);
  font-size: 0.93rem;
  font-weight: 500;
  position: relative;
  transition: color 0.2s ease;
}
.nav__links a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: -6px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}
.nav__links a:not(.btn):hover { color: var(--gold-deep); }
.nav__links a:not(.btn):hover::after,
.nav__links a.active:not(.btn)::after { transform: scaleX(1); }
.nav__links a.active:not(.btn) { color: var(--gold-deep); }
.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--ink);
  font-size: 1.3rem;
  line-height: 1;
  z-index: 2;
  width: 44px;
  height: 44px;
}
@media (max-width: 760px) {
  .nav__links {
    display: flex;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(78vw, 320px);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 1.75rem;
    background: var(--white);
    padding: 2rem 2.25rem;
    box-shadow: -8px 0 32px rgba(20, 18, 14, 0.12);
    transform: translateX(105%);
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .nav__links.open { transform: translateX(0); }
  .nav__links a { font-size: 1.1rem; }
  .nav__links a.btn { width: 100%; justify-content: center; margin-top: 0.5rem; }
  .nav__toggle { display: flex; align-items: center; justify-content: center; }
  /* dim backdrop when menu open */
  .nav__backdrop {
    position: fixed;
    inset: 0;
    background: rgba(31, 41, 55, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 49;
  }
  .nav__backdrop.show { opacity: 1; visibility: visible; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn--primary {
  background: var(--ink);
  color: var(--white);
}
.btn--primary:hover {
  background: var(--gold-deep);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn--gold {
  background: var(--gold);
  color: var(--white);
}
.btn--gold:hover {
  background: var(--gold-deep);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn--outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn--outline:hover {
  background: var(--ink);
  color: var(--white);
}
.btn--ghost {
  background: transparent;
  color: var(--ink-soft);
  border-color: var(--line);
}
.btn--ghost:hover {
  background: var(--white);
  border-color: var(--ink);
  color: var(--ink);
}
.btn--danger {
  background: transparent;
  color: var(--danger);
  border-color: var(--danger);
}
.btn--danger:hover {
  background: var(--danger);
  color: var(--white);
}
.btn--sm { padding: 0.5rem 1rem; font-size: 0.85rem; }
.btn--block { width: 100%; justify-content: center; }

/* ---------- Hero ---------- */
.hero {
  padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 6vw, 5rem);
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream-deep) 100%);
  position: relative;
  overflow: hidden;
}
/* soft decorative glow behind the hero */
.hero::before {
  content: "";
  position: absolute;
  top: -20%;
  right: -10%;
  width: 50vw;
  height: 50vw;
  max-width: 620px;
  max-height: 620px;
  background: radial-gradient(circle, rgba(184, 149, 106, 0.18) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
}
@media (max-width: 880px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  /* photo first on mobile so the face leads */
  .hero__photo { order: -1; }
}

/* hero entrance animation (staggered fade-up) */
.hero__content > * {
  opacity: 0;
  transform: translateY(16px);
  animation: hero-in 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.hero__content > *:nth-child(1) { animation-delay: 0.05s; }
.hero__content > *:nth-child(2) { animation-delay: 0.12s; }
.hero__content > *:nth-child(3) { animation-delay: 0.19s; }
.hero__content > *:nth-child(4) { animation-delay: 0.26s; }
.hero__content > *:nth-child(5) { animation-delay: 0.33s; }
.hero__content > *:nth-child(6) { animation-delay: 0.40s; }
.hero__content > *:nth-child(7) { animation-delay: 0.47s; }
.hero__photo {
  opacity: 0;
  transform: translateY(16px) scale(0.98);
  animation: hero-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.15s forwards;
}
@keyframes hero-in {
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.hero__content h1 {
  font-weight: 600;
  letter-spacing: -0.01em;
}
.hero__content h1 em {
  font-style: italic;
  color: var(--gold-deep);
}
.hero__name {
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  margin: 0.4rem 0 0.25rem;
  letter-spacing: -0.015em;
  color: var(--ink);
  line-height: 1.05;
}
.hero__title {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--gold-deep);
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.hero__rating {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1rem;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--line);
  font-size: 0.9rem;
}
.hero__rating-stars {
  color: var(--gold);
  letter-spacing: 0.05em;
  font-size: 0.95rem;
}
.hero__rating-text {
  color: var(--ink-soft);
  font-weight: 500;
}
@media (max-width: 880px) {
  .hero__rating { margin-top: 0.5rem; }
}
.hero__lead {
  font-size: 1.15rem;
  color: var(--ink-soft);
  margin: 1.5rem 0 2rem;
  max-width: 30rem;
}
@media (max-width: 880px) {
  .hero__lead { margin-left: auto; margin-right: auto; }
}
.hero__ctas {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
@media (max-width: 880px) {
  .hero__ctas { justify-content: center; }
}
.hero__photo {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
  box-shadow: var(--shadow-lg);
  background: var(--cream-deep);
}
.hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
@media (max-width: 880px) {
  .hero__photo {
    max-width: 300px;
    margin: 0 auto;
    aspect-ratio: 1 / 1;
  }
}
.hero__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 70%, rgba(31, 41, 55, 0.15));
}
.hero__credentials {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
  letter-spacing: 0.01em;
}
.hero__credentials strong { color: var(--ink); font-weight: 600; }

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.hero__stat {
  padding: 0.25rem;
}
.hero__stat .num {
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 5vw, 2.1rem);
  color: var(--ink);
  display: block;
  line-height: 1;
}
.hero__stat .lbl {
  font-size: clamp(0.66rem, 2.2vw, 0.78rem);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-top: 0.5rem;
  display: block;
}
@media (max-width: 880px) {
  .hero__stats { max-width: 420px; margin-left: auto; margin-right: auto; }
}

/* ---------- About ---------- */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
@media (max-width: 880px) {
  .about__grid { grid-template-columns: 1fr; }
}
.about__list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem 1rem;
}
@media (max-width: 560px) {
  .about__list { grid-template-columns: 1fr; }
}
.about__list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.about__list li::before {
  content: "✓";
  display: inline-flex;
  width: 1.4rem; height: 1.4rem;
  align-items: center; justify-content: center;
  background: var(--gold-bg);
  color: var(--gold-deep);
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* ---------- Awards ---------- */
.awards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}
.award-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem 1.4rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  overflow: hidden;
}
.award-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gold);
  opacity: 0.6;
}
.award-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold-soft);
}
.award-card__badge {
  width: 56px;
  height: 56px;
  filter: drop-shadow(0 2px 4px rgba(20, 18, 14, 0.12));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.1rem;
}
.award-card__badge svg {
  display: block;
}
.award-card__body { display: flex; flex-direction: column; gap: 0.3rem; }
.award-card__tier {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-deep);
  background: var(--gold-bg);
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
}
.award-card__title {
  font-family: var(--font-serif);
  font-size: 1.18rem;
  color: var(--ink);
  margin: 0;
  line-height: 1.3;
}
.award-card__date {
  font-size: 0.85rem;
  color: var(--muted);
}
.award-card__note {
  font-size: 0.85rem;
  color: var(--gold-deep);
  font-weight: 500;
  margin-top: 0.2rem;
}
.award-card__agency {
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px dashed var(--line);
  letter-spacing: 0.02em;
}
.award-card__agency::before {
  content: "Recognised by ";
  color: var(--muted);
}

/* Tier-specific accents */
.award-card[data-tier="gold"]         { --tier-color: #9A7C56; --tier-bg: #F6EFE2; }
.award-card[data-tier="super-gold"]   { --tier-color: #7C5E3A; --tier-bg: #F4E8C8; }
.award-card[data-tier="platinum"]     { --tier-color: #6D4B85; --tier-bg: #EFE6F4; }
.award-card[data-tier="crystal"]      { --tier-color: #2E6479; --tier-bg: #E5F0F4; }
.award-card[data-tier="millionaire"]  { --tier-color: #7A5A2E; --tier-bg: #FBF1D5; }
.award-card[data-tier="top-producer"] { --tier-color: #8B2125; --tier-bg: #FBE5E3; }
.award-card[data-tier="top-landed"]   { --tier-color: #8B2125; --tier-bg: #FBE5E3; }

.award-card[data-tier] .award-card__tier  { color: var(--tier-color); background: var(--tier-bg); }
.award-card[data-tier] .award-card__note  { color: var(--tier-color); }
.award-card[data-tier]::before            { background: var(--tier-color); opacity: 0.7; }
.award-card[data-tier="top-producer"]::before,
.award-card[data-tier="top-landed"]::before { opacity: 0.9; }
.award-card[data-tier="top-producer"],
.award-card[data-tier="top-landed"] {
  background: linear-gradient(180deg, #FFFAF9 0%, var(--white) 80%);
}
.award-card[data-tier="millionaire"] {
  background: linear-gradient(180deg, #FFFCEF 0%, var(--white) 80%);
}

/* ---------- Records ---------- */
.records-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.records-table th {
  text-align: left;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 600;
  padding: 1rem 1.25rem;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}
.records-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.records-table tr:last-child td { border-bottom: none; }
.records-table tr:hover td { background: var(--cream); }

.records-empty {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--muted);
  background: var(--white);
  border-radius: var(--radius);
  border: 1px dashed var(--line);
}

/* ---------- Testimonials carousel ---------- */
.carousel {
  position: relative;
}
.carousel__track {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 0.5rem 0.25rem 1.25rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track > .testimonial {
  flex: 0 0 360px;
  scroll-snap-align: center;
}
@media (max-width: 760px) {
  .carousel__track > .testimonial { flex-basis: 85%; }
}
@media (max-width: 420px) {
  .carousel__track > .testimonial { flex-basis: 90%; }
}
.carousel__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
  z-index: 3;
}
.carousel__arrow:hover {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}
.carousel__arrow:disabled {
  opacity: 0.3;
  cursor: default;
}
.carousel__arrow--prev { left: -8px; }
.carousel__arrow--next { right: -8px; }
@media (max-width: 880px) {
  .carousel__arrow { display: none; } /* mobile uses swipe */
}
.carousel__dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin: 0.5rem 0 3rem;
}
.carousel__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: var(--line);
  cursor: pointer;
  transition: background 0.25s ease, width 0.25s ease;
}
.carousel__dot.active {
  background: var(--gold);
  width: 26px;
}
.testimonial {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.testimonial:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.testimonial__quote-mark {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  font-family: var(--font-serif);
  font-size: 4rem;
  color: var(--gold-soft);
  opacity: 0.4;
  line-height: 1;
  pointer-events: none;
}
.testimonial__stars {
  color: var(--gold);
  font-size: 1rem;
  letter-spacing: 0.15em;
}
.testimonial__body {
  font-size: 0.98rem;
  color: var(--ink-soft);
  line-height: 1.65;
  flex: 1;
  font-style: italic;
}
.testimonial__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.testimonial__name {
  font-weight: 600;
  color: var(--ink);
  font-size: 0.95rem;
}
.testimonial__role {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.1rem;
}
.testimonial__date {
  font-size: 0.78rem;
  color: var(--muted);
}

/* ---------- Form ---------- */
.review-form {
  background: var(--white);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  max-width: 640px;
  margin: 0 auto;
  border: 1px solid var(--line);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
  .review-form { padding: 1.75rem; }
}
.field { margin-bottom: 1.25rem; }
.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.4rem;
  letter-spacing: 0.02em;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--line);
  background: var(--cream);
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--ink);
  transition: all 0.2s;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  background: var(--white);
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-bg);
}
.field textarea { min-height: 120px; resize: vertical; font-family: var(--font-sans); }
.field-hint { font-size: 0.78rem; color: var(--muted); margin-top: 0.3rem; }

.star-rating {
  display: inline-flex;
  gap: 0.25rem;
  font-size: 1.6rem;
}
.star-rating button {
  background: none;
  border: none;
  color: var(--line);
  cursor: pointer;
  padding: 0;
  font-size: inherit;
  line-height: 1;
  transition: color 0.15s, transform 0.1s;
}
.star-rating button:hover { transform: scale(1.1); }
.star-rating button.active { color: var(--gold); }

.form-success {
  background: #EEF6F0;
  border: 1px solid #BFD7C5;
  color: var(--success);
  padding: 1rem 1.25rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}
.form-error {
  background: #FBEAEA;
  border: 1px solid #E5BBBB;
  color: var(--danger);
  padding: 1rem 1.25rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  max-width: 760px;
  margin: 0 auto 2rem;
}
.contact-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  transition: all 0.2s;
  color: var(--ink);
  text-decoration: none;
}
.contact-card:hover {
  transform: translateY(-2px);
  border-color: var(--gold-soft);
  box-shadow: var(--shadow-md);
  color: var(--gold-deep);
}
.contact-card__icon {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--gold-bg);
  color: var(--gold-deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin: 0 auto 0.75rem;
}
.contact-card__label {
  font-size: 0.78rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.3rem;
}
.contact-card__value {
  font-weight: 600;
  font-size: 1rem;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--ink);
  color: var(--cream);
  padding: 3rem 0 2rem;
  text-align: center;
}
.footer__brand {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.footer__tag {
  font-size: 0.85rem;
  color: rgba(250, 247, 242, 0.6);
  margin-bottom: 1.5rem;
}
.footer__nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.footer__small {
  font-size: 0.78rem;
  color: rgba(250, 247, 242, 0.5);
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(250, 247, 242, 0.1);
}
.footer a { color: var(--gold-soft); }
.footer a:hover { color: var(--white); }

/* ---------- Admin Panel ---------- */
.admin-shell {
  min-height: 100vh;
  background: var(--cream);
}
.admin-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: 1rem 1.5rem;
}
.admin-header__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.admin-header__brand {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
}
.admin-header__brand span { color: var(--gold-deep); }
.admin-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}
.admin-tabs {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: thin;
}
.admin-tab {
  background: none;
  border: none;
  padding: 0.85rem 1.25rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
  font-weight: 500;
  white-space: nowrap;
}
.admin-tab:hover { color: var(--ink); }
.admin-tab.active {
  color: var(--ink);
  border-bottom-color: var(--gold);
}
.admin-tab .pill {
  display: inline-block;
  background: var(--gold);
  color: var(--white);
  font-size: 0.7rem;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  margin-left: 0.35rem;
  font-weight: 600;
}

.admin-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
}
.admin-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.admin-panel__head h2 {
  margin: 0;
  font-size: 1.4rem;
}

.list-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 0.6rem;
  background: var(--cream);
}
.list-item__main {
  flex: 1;
  min-width: 0;
}
.list-item__title {
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.2rem;
}
.list-item__meta {
  font-size: 0.85rem;
  color: var(--muted);
}
.list-item__body {
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin-top: 0.5rem;
  font-style: italic;
}
.list-item__actions {
  display: flex;
  gap: 0.4rem;
  flex-shrink: 0;
}

.empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--muted);
}
.empty-state__icon { font-size: 2.5rem; margin-bottom: 0.5rem; }

.login-card {
  max-width: 420px;
  margin: 5rem auto;
  background: var(--white);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
}
.login-card h1 {
  text-align: center;
  font-size: 1.7rem;
  margin-bottom: 0.25rem;
}
.login-card .login-card__sub {
  text-align: center;
  color: var(--muted);
  margin-bottom: 1.75rem;
  font-size: 0.9rem;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(31, 41, 55, 0.5);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 100;
}
.modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  max-width: 520px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  max-height: 90vh;
  overflow-y: auto;
}
.modal h2 { margin-top: 0; font-size: 1.4rem; }
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.toast {
  position: fixed;
  bottom: 2rem; right: 2rem;
  background: var(--ink);
  color: var(--white);
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  font-size: 0.9rem;
  box-shadow: var(--shadow-lg);
  z-index: 200;
  animation: toast-in 0.3s ease;
}
@keyframes toast-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.backup-card {
  background: linear-gradient(135deg, var(--gold-bg) 0%, var(--cream) 100%);
  border: 1px solid var(--gold-soft);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.backup-card h3 { margin-top: 0; }
.backup-card .actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

/* ===========================================================================
   Dynamic elements — scroll reveal, back-to-top, motion preferences
   =========================================================================== */

/* Scroll reveal: elements gently fade + rise into view */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Back-to-top floating button */
.back-to-top {
  position: fixed;
  bottom: 1.4rem;
  right: 1.4rem;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease,
    visibility 0.3s ease,
    background 0.2s ease;
  z-index: 60;
}
.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  background: var(--gold-deep);
}
@media (max-width: 600px) {
  .back-to-top { bottom: 1rem; right: 1rem; }
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero__content > *, .hero__photo { opacity: 1; transform: none; animation: none; }
}

/* ---------- Small-screen polish ---------- */
@media (max-width: 600px) {
  .container { padding: 0 1.15rem; }
  .section { padding: 3rem 0; }
  .section-header { margin-bottom: 2rem; }
  .review-form { padding: 1.5rem; }
  .btn { padding: 0.8rem 1.3rem; }
  .hero__ctas .btn { flex: 1 1 auto; justify-content: center; }
  .award-card { padding: 1.35rem 1.25rem 1.25rem; }
  .testimonial { padding: 1.5rem; }
}
@media (max-width: 380px) {
  .hero__name { font-size: 2.3rem; }
  .hero__rating { width: 100%; justify-content: center; }
}
