/*
Theme Name: Richfolds
Theme URI: https://richfolds.com
Author: Richfolds
Author URI: https://richfolds.com
Description: Main WordPress theme for Richfolds.
Version: 2.1.15
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
Text Domain: richfolds
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  color: #1f2937;
  background: #fff;
}
a { color: #0b5563; }
img { max-width: 100%; display: block; }

.site-wrap { max-width: 1080px; margin: 0 auto; padding: 1.25rem 1rem; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 1rem; }
.navbar > .container { max-width: var(--richfolds-header-max-width, 1280px); }

body.admin-bar .navbar { top: 32px; }
@media (max-width: 782px) {
  body.admin-bar .navbar { top: 46px; }
}

.navbar {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: background-color .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.navbar--classic {
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 6px 18px rgba(0,0,0,.06);
}

.navbar--style2 {
  position: absolute;
  top: 0;
  background: transparent;
  border-bottom: 1px solid transparent;
  box-shadow: 0 2px 5px #0003;
}

.navbar--style2.scrolled {
  position: fixed;
  top: 0;
  background: var(--richfolds-sticky-header-bg, #ffffff);
  border-bottom-color: #e5e7eb;
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
}
.announcement-bar { width: 100%; background: #2f5f1d; color: #fff; text-align: center; max-height: 160px; overflow: hidden; transition: max-height .25s ease, opacity .25s ease, padding .25s ease; padding: .5rem 1rem; }
.announcement-bar__text { margin: 0; font-size: .92rem; line-height: 1.4; display: flex; align-items: center; justify-content: center; gap: 15px; flex-wrap: wrap; }
.announcement-bar__text > div,
.announcement-bar__text > p,
.announcement-bar__text > span { display: flex; align-items: center; justify-content: center; gap: 15px; flex-wrap: wrap; width: 100%; }
.announcement-bar__text p { margin: 0; }
.announcement-bar__text a { display: inline-flex; align-items: center; gap: 6px; color: inherit; text-decoration: none; }
.announcement-bar__text a:hover,
.announcement-bar__text a:focus { text-decoration: underline; }
.announcement-bar__text img { flex-shrink: 0; }
.announcement-bar__text .rf-top-txt-address,
.announcement-bar__text .rf-top-txt-phone { display: inline; }
.navbar--style2.scrolled .announcement-bar { max-height: 0; opacity: 0; padding: 0; }

.nav-content { display: flex; align-items: center; justify-content: space-between; min-height: 78px; gap: 1rem; }
.logo { flex-shrink: 0; }
.logo a { text-decoration: none; font-size: 1.5rem; font-weight: 700; color: #0b5563; }
.logo img,
.logo .custom-logo {
  width: min(var(--richfolds-logo-width, 150px), 100%);
  max-width: 100%;
  height: auto;
  max-height: none;
}

.nav-actions {
  margin-left: auto;
  display: none;
  align-items: center;
  gap: 0;
}

.nav-links { display: none; list-style: none; gap: 1.4rem; margin: 0; padding: 0; }
.navbar--compact .nav-links { gap: .8rem; }
.nav-link { text-decoration: none; font-weight: 500; color: #374151; }
.nav-link:hover, .nav-link:focus { color: #0b5563; }

.nav-links .menu-item { position: relative; }
.nav-links .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: .5rem;
  box-shadow: 0 14px 28px rgba(0,0,0,.12);
  padding: .45rem;
  list-style: none;
  margin: .35rem 0 0;
  z-index: 1100;
}
.nav-links .sub-menu .sub-menu { left: 100%; top: 0; }
.nav-links .menu-item:hover > .sub-menu,
.nav-links .menu-item:focus-within > .sub-menu { display: block; }
.nav-links .sub-menu a { color: #1f2937; display: block; padding: .45rem .6rem; border-radius: .35rem; }
.nav-links .sub-menu a:hover { background: #f3f4f6; color: #0b5563; }

.nav-btn {
  display: none;
  background: #0b5563;
  color: #fff;
  text-decoration: none;
  padding: .6rem 1.1rem;
  border-radius: .5rem;
  font-weight: 600;
}
.nav-btn:hover { background: #0e7490; color: #fff; }

.mobile-menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d1d5db;
  border-radius: .5rem;
  background: #fff;
  width: 42px;
  height: 42px;
  padding: 0;
  cursor: pointer;
}
.mobile-menu-icon { line-height: 0; color: #374151; }
.mobile-menu-icon svg { width: 22px; height: 22px; }
.mobile-menu-icon--close { display: none; }
.mobile-menu-btn.active .mobile-menu-icon--open { display: none; }
.mobile-menu-btn.active .mobile-menu-icon--close { display: inline-flex; }

.mobile-menu,
.mobile-menu-cta-wrap {
  display: none;
  list-style: none;
  margin: 0;
  padding: .75rem 0 1rem;
  border-top: 1px solid #e5e7eb;
}
.mobile-menu.active,
.mobile-menu-cta-wrap.active { display: block; }
.mobile-link {
  display: block;
  text-decoration: none;
  color: #374151;
  padding: .7rem .8rem;
  border-radius: .45rem;
}
.mobile-link:hover { background: #f3f4f6; color: #0b5563; }
.mobile-link--button {
  background: #0b5563;
  color: #fff;
  margin-top: .25rem;
  text-align: center;
  font-weight: 600;
}

.mobile-menu .sub-menu {
  display: block;
  list-style: none;
  margin: .25rem 0 .5rem .65rem;
  padding: 0 0 0 .5rem;
  border-left: 2px solid #d1d5db;
}
.mobile-menu .sub-menu a {
  display: block;
  padding: .45rem .6rem;
  color: #4b5563;
  text-decoration: none;
}

.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-background,
.hero-background img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-overlay-half {
  position: absolute;
  inset: 0;
  width: 60%;
  background: linear-gradient(to right, rgba(11,85,99,.95), rgba(11,85,99,.78), rgba(11,85,99,0));
}
.hero-content { position: relative; z-index: 2; max-width: 760px; padding: 5rem 0; }
.hero-title { color: #fff; font-size: clamp(2rem, 5vw, 4rem); line-height: 1.15; margin: 0 0 1rem; }
.hero-subtitle { color: rgba(255,255,255,.95); font-size: 1.15rem; margin: 0 0 1.5rem; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: .8rem; }

.btn { display: inline-flex; align-items: center; justify-content: center; border-radius: .5rem; padding: .85rem 1.2rem; text-decoration: none; font-weight: 600; }
.btn-primary { background: #fff; color: #0b5563; }
.btn-secondary { border: 2px solid #fff; color: #fff; }

.section { padding: 4.5rem 0; }
.section-gray { background: #f9fafb; }
.section-header { text-align: center; max-width: 820px; margin: 0 auto 2rem; }
.section-title { margin: 0 0 1rem; font-size: clamp(1.8rem, 4vw, 3rem); line-height: 1.2; }
.section-title.center { text-align: center; }
.grid-2 { display: grid; gap: 2rem; }
.feature-list { padding-left: 1rem; }
.image-wrapper { border-radius: 1rem; overflow: hidden; box-shadow: 0 18px 34px rgba(0,0,0,.15); }

.services-grid { display: grid; gap: 1.2rem; }
.service-card { background: #fff; border: 1px solid #eef0f3; border-radius: .9rem; padding: 1.5rem; box-shadow: 0 10px 16px rgba(0,0,0,.06); }
.service-card h3 { margin-top: 0; }

.contact-grid { display: grid; gap: 1.2rem; }
.contact-card { background: #fff; border: 1px solid #eef0f3; border-radius: .9rem; padding: 1.25rem; }

.site-footer {
  width: 100%;
  background: var(--richfolds-footer-bg, #1f4b68);
  color: #fff;
}
.site-footer__frame {
  max-width: min(100%, var(--richfolds-footer-max-width, 1280px));
  margin: 0 auto;
  display: flow-root;
  padding-top: 3.5rem;
  padding-bottom: 1.2rem;
}
.site-footer__grid {
  display: grid;
  gap: 2.5rem;
  margin-top: 30px;
  padding-top: 55px;
  padding-bottom: 2.25rem;
  border-top: 1px solid rgba(255,255,255,.7);
}
.site-footer__brand {
  display: flex;
  align-items: flex-start;
}
.site-footer__logo-link {
  display: inline-flex;
  max-width: 240px;
}
.site-footer__logo {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}
.site-footer__column {
  min-width: 0;
}
.site-footer__title {
  margin: 0 0 1.35rem;
  color: #fff;
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.site-footer__menu,
.site-footer__social,
.site-footer__contact {
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-footer__menu {
  display: grid;
  gap: 1rem;
}
.site-footer__menu a,
.site-footer__contact-link,
.site-footer__contact-text {
  color: rgba(255,255,255,.96);
  font-size: 1.125rem;
  line-height: 1.6;
  text-decoration: none;
}
.site-footer__menu a:hover,
.site-footer__menu a:focus,
.site-footer__contact-link:hover,
.site-footer__contact-link:focus,
.site-footer__social-link:hover,
.site-footer__social-link:focus {
  color: #fff;
  opacity: .85;
}
.site-footer__social {
  display: grid;
  gap: .9rem;
}
.site-footer__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  color: #fff;
  text-decoration: none;
}
.site-footer__contact {
  display: grid;
  gap: 1.4rem;
}
.site-footer__contact-item {
  display: grid;
  grid-template-columns: 1.8rem minmax(0, 1fr);
  gap: .85rem;
  align-items: start;
}
.site-footer__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.6rem;
  height: 1.6rem;
  color: #fff;
}
.site-footer__icon svg {
  width: 100%;
  height: 100%;
  display: block;
}
.site-footer__contact-text {
  white-space: pre-line;
}
.site-footer__bottom {
  padding-top: 1.3rem;
  padding-bottom: 1.3rem;
  border-top: 1px solid rgba(255,255,255,.7);
}
.site-footer__bottom small {
  color: rgba(255,255,255,.92);
  font-size: 1rem;
  line-height: 1.6;
}
.site-footer__bottom a {
  color: #fff;
  text-decoration: none;
}
.site-footer__bottom a:hover,
.site-footer__bottom a:focus {
  opacity: .85;
}

.site-content--full { width: 100%; padding: 1.25rem 1rem; }
.site-content--constrained { width: min(100%, var(--richfolds-page-max-width, 1080px)); margin-inline: auto; }
.site-content--full__header h1 { margin: 0 0 1rem; font-size: 2rem; }

article {
  background: #fff;
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .container { padding: 0 1.5rem; }
  .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; }
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer__grid { grid-template-columns: minmax(220px, 1.35fr) repeat(3, minmax(0, 1fr)); }
  .nav-actions { display: flex; }
  .nav-links { display: flex; margin: 0; }
  .nav-cta--desktop { display: flex; }
  .nav-btn--desktop { display: inline-flex; }
  .mobile-menu-btn,
  .mobile-menu,
  .mobile-menu-cta-wrap { display: none !important; }
}

@media (max-width: 767px) {
  .hero-overlay-half { width: 100%; background: linear-gradient(to bottom, rgba(11,85,99,.92), rgba(11,85,99,.8)); }

  .announcement-bar {
    max-height: 220px;
    padding: .65rem 1rem;
  }

  .announcement-bar__text,
  .announcement-bar__text > div,
  .announcement-bar__text > p,
  .announcement-bar__text > span {
    gap: 10px;
  }

  .announcement-bar__text .rf-top-txt-address,
  .announcement-bar__text .rf-top-txt-phone {
    white-space: normal;
    text-align: center;
  }

  .navbar--style2,
  .navbar--style2.scrolled {
    position: sticky;
    top: 0;
    background: var(--richfolds-sticky-header-bg, #ffffff);
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 6px 18px rgba(0,0,0,.06);
  }

  body .navbar--style2:not(.scrolled) .logo a,
  body .navbar--style2:not(.scrolled) .nav-link,
  body .navbar--style2:not(.scrolled) .mobile-menu-icon,
  body .navbar--style2:not(.scrolled) .submenu-toggle,
  body .navbar--style2.scrolled .logo a,
  body .navbar--style2.scrolled .nav-links > .menu-item > .nav-link,
  body .navbar--style2.scrolled .mobile-menu-icon,
  body .navbar--style2.scrolled .submenu-toggle {
    color: var(--richfolds-sticky-header-text, #1f2937);
  }

  body .navbar--style2:not(.scrolled) .mobile-menu-btn,
  body .navbar--style2.scrolled .mobile-menu-btn {
    background: #ffffff;
    border-color: #d1d5db;
  }

  body .navbar--style2:not(.scrolled) .nav-btn,
  body .navbar--style2.scrolled .nav-btn {
    background: #0b5563;
    border: 1px solid #0b5563;
    color: #ffffff;
  }

  .mobile-menu,
  .mobile-menu-cta-wrap {
    background: var(--richfolds-sticky-header-bg, #ffffff);
  }

  .mobile-menu.active {
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
}

.navbar--style2:not(.scrolled) .logo a,
.navbar--style2:not(.scrolled) .nav-link,
.navbar--style2:not(.scrolled) .mobile-menu-icon { color: #ffffff; }

.navbar--style2:not(.scrolled) .nav-btn { background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.65); color: #fff; }
.navbar--style2:not(.scrolled) .mobile-menu-btn { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.65); }

.navbar--classic .logo a,
.navbar--classic .nav-link,
.navbar--classic .mobile-menu-icon { color: #1f2937; }

.navbar--style2 .nav-links > .menu-item-has-children {
  position: relative;
  padding-bottom: 1.1rem;
  margin-bottom: -1.1rem;
}
.navbar--style2 .nav-links > .menu-item-has-children::after {
  content: "";
  position: absolute;
  left: -1rem;
  right: -1rem;
  top: 100%;
  height: 1.35rem;
}
.navbar--style2 .nav-links > .menu-item-has-children > .submenu-panel {
  left: 50%;
  top: 100%;
  margin: 0;
  transform: translateX(-50%);
  min-width: 520px;
  max-width: min(560px, calc(100vw - 2rem));
  padding: 1.15rem 1.45rem 1.1rem;
  border: 0;
  border-radius: 1.4rem;
  box-shadow: 0 22px 44px rgba(15, 23, 42, .18);
}
.navbar--style2 .nav-links > .menu-item-has-children > .submenu-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(255,255,255,.98);
}
.navbar--style2 .nav-links > .menu-item-has-children > .submenu-panel > li {
  position: relative;
  z-index: 1;
}
.navbar--style2 .submenu-panel__header {
  margin-bottom: .65rem;
  padding-bottom: .8rem;
  border-bottom: 1px solid #d7dde5;
  list-style: none;
}
.navbar--style2 .submenu-panel__title {
  display: block;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--richfolds-submenu-text, #24303c);
}
.navbar--style2 .submenu-panel > .menu-item {
  list-style: none;
}
.navbar--style2 .submenu-panel > .menu-item:not(:last-child) {
  border-bottom: 1px solid #e2e8f0;
}
.navbar--style2 .submenu-panel > .menu-item > a {
  padding: .85rem 1rem;
  border-radius: .8rem;
  font-size: 1rem;
  letter-spacing: .03em;
}
.navbar--style2 .submenu-panel > .menu-item > a:hover,
.navbar--style2 .submenu-panel > .menu-item > a:focus {
  background: #f3f5f7;
}

.nav-actions {
  justify-content: flex-end;
  flex: 1 1 auto;
  min-width: 0;
}

.nav-cta--desktop {
  display: none;
  flex-shrink: 0;
  margin-left: 1rem;
}

.nav-links {
  align-items: center;
}

.nav-content--menu-center .nav-actions {
  margin-left: 0;
  justify-content: center;
}

.nav-content--menu-center .nav-links {
  justify-content: center;
}


@media (min-width: 768px) {
  .nav-cta--desktop {
    display: flex;
  }
}

.navbar--style2 .submenu-panel a,
.navbar--style2 .submenu-panel .nav-link {
  color: var(--richfolds-submenu-text, #1f2937);
}

.navbar--style2 .submenu-panel a:hover,
.navbar--style2 .submenu-panel a:focus,
.navbar--style2 .submenu-panel .nav-link:hover,
.navbar--style2 .submenu-panel .nav-link:focus {
  color: #0b5563;
}
.navbar--style2.scrolled .logo a,
.navbar--style2.scrolled .nav-links > .menu-item > .nav-link,
.navbar--style2.scrolled .mobile-menu-icon,
.navbar--style2.scrolled .submenu-toggle {
  color: var(--richfolds-sticky-header-text, #1f2937);
}

.navbar--style2.scrolled .nav-links > .menu-item > .nav-link:hover,
.navbar--style2.scrolled .nav-links > .menu-item > .nav-link:focus,
.navbar--style2.scrolled .logo a:hover,
.navbar--style2.scrolled .logo a:focus,
.navbar--style2.scrolled .submenu-toggle:hover,
.navbar--style2.scrolled .submenu-toggle:focus {
  color: var(--richfolds-sticky-header-text, #1f2937);
  opacity: .82;
}
.nav-links .menu-item-has-children > a {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}

.submenu-indicator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  transition: transform .2s ease;
  transform-origin: center;
}

.submenu-indicator svg {
  width: .95rem;
  height: .95rem;
}

.nav-links .menu-item-has-children:hover > a .submenu-indicator,
.nav-links .menu-item-has-children:focus-within > a .submenu-indicator {
  transform: rotate(180deg);
}

@media (max-width: 767px) {
  .site-footer__frame { padding-top: 2.5rem; }
  .site-footer__grid { padding-top: 55px; padding-bottom: 1.75rem; }
  .site-footer__title { font-size: 1.3rem; }
  .site-footer__logo-link { max-width: 200px; }
}
