@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500&display=swap');

/* ==========================================================================
   Rarely Heard Voices — polish layer (EE template assets/polish, type CSS)
   Loaded after main-responsive.css. Remove the <link> to undo everything.
   ========================================================================== */

:root {
  --rhv-gold: #afa369;
  --rhv-gold-dark: #978b51;
  --rhv-ink: #292929;
  --rhv-text: #4a4a4a;
  --rhv-muted: #6b6b6b;
  --rhv-cream: #f7f4ec;
  --rhv-line: #e6e0cf;
  --rhv-radius: 10px;
  --rhv-serif: 'Cormorant Garamond', Georgia, serif;
  --rhv-ease: cubic-bezier(.2, .7, .2, 1);
}

/* 1. Width fix — main.css stretched .container to 95% of the window (1200–2000px) */
@media (min-width: 1200px) {
  .container { width: 100%; max-width: 1200px; }
}

/* 2. Readability */
body, p { color: var(--rhv-text); }
p { line-height: 1.7; }
a { transition: color .2s ease; }

/* 3. Header buttons + dropdowns */
.navbar-default .navbar-nav > li > a {
  transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}
.navbar-default .navbar-nav > li > a:hover,
.navbar-default .navbar-nav > li > a:focus,
.navbar-default .navbar-nav > .open > a,
.navbar-default .navbar-nav > .open > a:hover,
.navbar-default .navbar-nav > .open > a:focus {
  background-color: var(--rhv-gold);
  border-color: var(--rhv-gold);
  color: #fff;
}
.navbar .dropdown-menu {
  border: 1px solid var(--rhv-line);
  border-radius: var(--rhv-radius);
  box-shadow: 0 14px 34px rgba(41, 41, 41, .10);
  padding: 8px 0;
  margin-top: 8px;
}
.navbar .dropdown-menu > li > a { padding: 9px 20px; transition: background-color .2s ease, color .2s ease; }
.navbar .dropdown-menu > li > a:hover,
.navbar .dropdown-menu > li > a:focus { background: var(--rhv-cream); color: var(--rhv-gold-dark); }

/* 4. Home login */
.rhv-login { padding-top: 10px; padding-bottom: 10px; }
.rhv-login .row { display: flex; flex-wrap: wrap; align-items: flex-end; row-gap: 16px; }
.rhv-login label {
  display: block; margin: 0 0 6px; font-size: 11px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--rhv-gold-dark); font-weight: 700;
}
.rhv-login input[type="text"],
.rhv-login input[type="password"] {
  display: block; width: 100%; height: 50px; margin: 0; padding: 0 16px;
  background: #fff !important;
  border-style: solid !important; border-width: 1px !important; border-color: var(--rhv-line) !important; border-radius: 8px;
  font-size: 15px; color: var(--rhv-ink) !important;
  box-shadow: none; outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.rhv-login input::placeholder { color: #a39f93; opacity: 1; }
.rhv-login input[type="text"]:hover,
.rhv-login input[type="password"]:hover { border-color: #d6cdb0 !important; }
.rhv-login input[type="text"]:focus,
.rhv-login input[type="password"]:focus {
  border-color: var(--rhv-gold) !important;
  box-shadow: 0 0 0 4px rgba(175, 163, 105, .18);
}
.rhv-login .btn-krome,
.rhv-login .btn-krome.fullwidth {
  width: 100% !important; height: 50px; margin: 0; padding: 0 16px;
  background: var(--rhv-gold) !important; border-style: solid !important; border-width: 1px !important; border-color: var(--rhv-gold) !important; border-radius: 8px;
  color: #fff !important; font-size: 13px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  transition: background-color .2s ease, transform .2s var(--rhv-ease), box-shadow .2s ease;
}
.rhv-login .btn-krome:hover,
.rhv-login .btn-krome:focus {
  background: var(--rhv-gold-dark) !important; border-color: var(--rhv-gold-dark) !important; color: #fff !important;
  transform: translateY(-1px); box-shadow: 0 8px 20px rgba(151, 139, 81, .28);
}
.rhv-login__help { margin: 16px 0 0; font-size: 14px; display: flex; flex-wrap: wrap; gap: 6px 22px; justify-content: center; }
.rhv-login__more { text-align: center; margin: 14px 0 0; font-size: 15px; }

/* 5. Home feature panel (press release) */
.rhv-feature {
  display: grid; grid-template-columns: 7fr 5fr; background: var(--rhv-cream);
  margin: 10px 0 64px; color: var(--rhv-ink); text-decoration: none;
  border-radius: var(--rhv-radius); overflow: hidden;
  box-shadow: 0 1px 0 var(--rhv-line);
  transition: box-shadow .3s ease, transform .3s var(--rhv-ease);
}
.rhv-feature:hover, .rhv-feature:focus { text-decoration: none; color: var(--rhv-ink); box-shadow: 0 18px 40px rgba(41, 41, 41, .10); transform: translateY(-2px); }
.rhv-feature:focus-visible { outline: 2px solid var(--rhv-gold); outline-offset: 3px; }
.rhv-feature__img { overflow: hidden; }
.rhv-feature__img img { display: block; width: 100%; height: 100%; min-height: 260px; object-fit: cover; transition: transform .8s var(--rhv-ease); }
.rhv-feature:hover .rhv-feature__img img { transform: scale(1.04); }
.rhv-feature__text { padding: 40px; display: flex; flex-direction: column; justify-content: center; }
.rhv-feature .rhv-eyebrow { margin: 0 0 14px; }
.rhv-feature__title { font-family: var(--rhv-serif); font-weight: 500; font-size: clamp(26px, 2.6vw, 34px); line-height: 1.15; margin: 0 0 14px; color: var(--rhv-ink); }
.rhv-feature .rhv-feature__intro { font-size: 15px; line-height: 1.6; color: var(--rhv-text); margin: 0 0 22px; }
.rhv-feature__cta { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; font-weight: 700; color: var(--rhv-ink); border-bottom: 1px solid var(--rhv-gold); align-self: flex-start; padding-bottom: 4px; transition: color .2s ease; }
.rhv-feature:hover .rhv-feature__cta { color: var(--rhv-gold-dark); }

/* Shared eyebrow label */
.rhv-eyebrow { font-size: 11px; line-height: 1.5; letter-spacing: .22em; text-transform: uppercase; color: var(--rhv-gold-dark); font-weight: 700; }

/* 6. Home services grid */
.rhv-services {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 0 0 64px;
}
.rhv-service {
  background: #fff; border: 1px solid var(--rhv-line); border-top: 2px solid var(--rhv-gold);
  border-radius: var(--rhv-radius); padding: 30px 28px 26px;
  display: flex; flex-direction: column;
  transition: box-shadow .3s ease, transform .3s var(--rhv-ease);
}
.rhv-service:hover { box-shadow: 0 16px 36px rgba(41, 41, 41, .08); transform: translateY(-3px); }
.rhv-service h3 { font-family: var(--rhv-serif); font-weight: 500; font-size: 30px; line-height: 1.1; color: var(--rhv-ink); margin: 0 0 12px; }
.rhv-service .rhv-service__tag { font-size: 11px; line-height: 1.6; letter-spacing: .16em; text-transform: uppercase; color: var(--rhv-gold-dark); font-weight: 700; margin: 0 0 14px; }
.rhv-service p { font-size: 15px; line-height: 1.7; margin: 0 0 12px; }
.rhv-service .rhv-service__cta { margin: auto 0 0; padding-top: 10px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; }
.rhv-service .rhv-service__cta a { border-bottom: 1px solid var(--rhv-gold); padding-bottom: 3px; }

/* 7. Home media grid */
.rhv-media { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin: 0 0 56px; }
.rhv-media video, .rhv-media img {
  display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
  border: 0 !important; border-radius: var(--rhv-radius) !important;
  background: var(--rhv-cream);
}
video { background: var(--rhv-cream); }

/* 8. Section titles + client logos */
.rhv-section-title, section .container > h3.black {
  font-family: var(--rhv-serif); font-weight: 500; font-size: 34px; color: var(--rhv-ink); margin: 0 0 24px;
}
.home-testimonial-carousel img {
  filter: grayscale(1); opacity: .65; transition: filter .3s ease, opacity .3s ease;
}
.home-testimonial-carousel img:hover { filter: none; opacity: 1; }

/* 9. Inner pages — calmer reading column */
.pg-body p, .pg-body li { font-size: 17px; line-height: 1.75; }
.pg-body h1 { font-family: var(--rhv-serif); font-weight: 500; color: var(--rhv-ink); line-height: 1.1; }
.pg-body img { border-radius: var(--rhv-radius); }

/* 10. Footer */
.mastfoot h6 { font-size: 13px; letter-spacing: .04em; line-height: 1.7; }

/* 11. Scroll reveal (class added by assets/polish-js, so no-JS visitors see everything) */
.rhv-reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--rhv-ease), transform .8s var(--rhv-ease); }
.rhv-reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .rhv-reveal { opacity: 1; transform: none; transition: none; }
  .rhv-feature, .rhv-service, .rhv-feature__img img, .rhv-login .btn-krome { transition: none; }
  .rhv-feature:hover, .rhv-service:hover { transform: none; }
  .rhv-feature:hover .rhv-feature__img img { transform: none; }
}

/* 12. Responsive */
@media (min-width: 1200px) {
  .rhv-service:last-child:nth-child(3n+1) { grid-column: 1 / -1; }
  .rhv-service:last-child:nth-child(3n+1) p { max-width: 820px; }
}
@media (max-width: 1199px) {
  .rhv-services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 768px) and (max-width: 1199px) {
  .rhv-service:last-child:nth-child(2n+1) { grid-column: 1 / -1; }
}
@media (max-width: 991px) {
  .rhv-feature { grid-template-columns: 1fr; }
  .rhv-feature__img img { min-height: 0; height: auto; aspect-ratio: 1600 / 678; }
  .rhv-feature__text { padding: 26px 24px 28px; }
}
@media (max-width: 767px) {
  .rhv-services, .rhv-media { grid-template-columns: 1fr; gap: 18px; }
  .rhv-service { padding: 24px 22px 22px; }
  .rhv-login .row > [class*="col-"] { width: 100%; }
}
