/* Rao & Sons Accountants - Premium Theme Enhancements
   Colours: deep navy, gold and white. This file safely overrides the base Dewi template. */

:root {
  --rao-navy: #061b33;
  --rao-navy-2: #0b2c4d;
  --rao-gold: #c99a2e;
  --rao-gold-light: #f4d37d;
  --rao-cream: #fbf7ef;
  --rao-soft: #f5f7fb;
  --rao-border: rgba(6, 27, 51, 0.12);
  --background-color: #ffffff;
  --default-color: #435269;
  --heading-color: #061b33;
  --accent-color: #c99a2e;
  --nav-hover-color: #f4d37d;
}

.light-background {
  --background-color: #f5f7fb;
  --surface-color: #ffffff;
}

.dark-background {
  --background-color: #061b33;
  --default-color: #ffffff;
  --heading-color: #ffffff;
  --surface-color: #0b2c4d;
  --contrast-color: #ffffff;
}

body {
  background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
}

.section {
  scroll-margin-top: 86px;
}

.header {
  background: rgba(6, 27, 51, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(244, 211, 125, 0.16);
}

.scrolled .header {
  background: rgba(6, 27, 51, 0.96);
  box-shadow: 0 18px 45px rgba(6, 27, 51, 0.18);
}

.header .logo img {
  max-height: 58px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.22));
}

.header .logo h1 {
  color: #ffffff;
  font-size: 24px;
  letter-spacing: 0.3px;
  font-weight: 800;
  line-height: 1;
}

.header .logo span {
  color: var(--rao-gold-light);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2.8px;
  text-transform: uppercase;
}

.header .cta-btn,
.header .cta-btn:focus {
  color: var(--rao-navy);
  background: linear-gradient(135deg, var(--rao-gold-light), var(--rao-gold));
  border: 0;
  border-radius: 999px;
  padding: 11px 20px;
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(201, 154, 46, 0.28);
}

.header .cta-btn:hover {
  color: var(--rao-navy);
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(201, 154, 46, 0.35);
}

.navmenu a,
.navmenu a:focus {
  font-weight: 700;
  letter-spacing: 0.2px;
}

.navmenu a:hover,
.navmenu .active,
.navmenu .active:focus {
  color: var(--rao-gold-light);
}

.rao-hero {
  min-height: 96vh;
  position: relative;
  overflow: hidden;
}

.rao-hero:before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 25%, rgba(244, 211, 125, 0.28), transparent 26%),
    linear-gradient(120deg, rgba(6, 27, 51, 0.95) 0%, rgba(6, 27, 51, 0.78) 45%, rgba(6, 27, 51, 0.54) 100%);
  z-index: 1;
}

.rao-hero:after {
  content: "";
  position: absolute;
  left: 7%;
  right: 7%;
  bottom: 42px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(244, 211, 125, 0.55), transparent);
  z-index: 2;
}

.rao-hero img {
  filter: saturate(0.95) contrast(1.05);
}

.rao-hero .container {
  position: relative;
  z-index: 3;
  max-width: 980px;
}

.hero-badge,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(244, 211, 125, 0.12);
  border: 1px solid rgba(244, 211, 125, 0.34);
  color: var(--rao-gold-light);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.rao-hero h2 {
  font-size: clamp(42px, 6vw, 74px);
  line-height: 0.98;
  letter-spacing: -2.4px;
  max-width: 1000px;
  margin: 0 auto 22px;
}

.rao-hero p {
  max-width: 760px;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.88);
}

.rao-hero .btn-get-started,
.rao-hero .btn-watch-video {
  min-height: 52px;
  border-radius: 999px;
  padding: 14px 26px;
  font-weight: 800;
  transition: 0.25s ease;
}

.rao-hero .btn-get-started {
  background: linear-gradient(135deg, var(--rao-gold-light), var(--rao-gold));
  color: var(--rao-navy);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 18px 45px rgba(201, 154, 46, 0.28);
}

.rao-hero .btn-get-started:hover,
.rao-hero .btn-watch-video:hover {
  transform: translateY(-3px);
}

.rao-hero .btn-watch-video {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.26);
  color: #ffffff;
}

.rao-hero .btn-watch-video i {
  color: #25d366;
  font-size: 24px;
  margin-right: 9px;
}

.hero-trust-strip {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.hero-trust-strip span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 10px 15px;
  font-size: 14px;
  font-weight: 700;
}

.hero-trust-strip i {
  color: var(--rao-gold-light);
}

.section-title h2 {
  color: var(--rao-gold);
  font-weight: 900;
  letter-spacing: 1.6px;
}

.section-title p {
  color: var(--rao-navy);
  letter-spacing: -1.1px;
}

.about h3,
.rao-why-panel h3,
.rao-whatsapp-box h2 {
  font-weight: 900;
  letter-spacing: -0.9px;
}

.about img,
.member .pic img,
.testimonials-bg {
  filter: saturate(0.95) contrast(1.03);
}

.rao-image-cta {
  position: absolute;
  right: 22px;
  bottom: 22px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--rao-gold-light), var(--rao-gold));
  color: var(--rao-navy);
  box-shadow: 0 16px 36px rgba(6, 27, 51, 0.24);
}

.stats {
  background: linear-gradient(180deg, #f5f7fb, #ffffff);
}

.stats .stats-item {
  border-radius: 24px;
  padding: 28px 24px;
  background: #ffffff;
  border: 1px solid var(--rao-border);
  box-shadow: 0 18px 45px rgba(6, 27, 51, 0.08);
  transition: 0.25s ease;
}

.stats .stats-item:hover,
.rao-service-card:hover,
.rao-audience-card:hover,
.rao-benefit-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 26px 58px rgba(6, 27, 51, 0.14);
}

.stats .stats-item i {
  color: var(--rao-gold) !important;
}

.stats .stats-item span {
  color: var(--rao-navy);
  font-weight: 900;
}

.rao-audience,
.rao-services {
  background: #ffffff;
}

.rao-audience-card,
.rao-service-card,
.rao-benefit-card,
.rao-why-panel {
  border: 1px solid var(--rao-border);
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 18px 45px rgba(6, 27, 51, 0.06);
  transition: 0.25s ease;
}

.rao-audience-card {
  height: 100%;
  padding: 30px 24px;
  text-align: center;
}

.rao-audience-card i,
.rao-benefit-card i {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(244, 211, 125, 0.24), rgba(201, 154, 46, 0.10));
  color: var(--rao-gold);
  font-size: 26px;
  margin-bottom: 18px;
}

.rao-audience-card h4,
.rao-service-card h3,
.rao-benefit-card h4 {
  color: var(--rao-navy);
  font-weight: 900;
  margin-bottom: 10px;
}

.rao-audience-card p,
.rao-service-card p,
.rao-benefit-card p,
.rao-why-panel p {
  color: #5f6f84;
  line-height: 1.7;
  margin-bottom: 0;
}

.rao-service-card {
  padding: 34px 30px;
  position: relative;
  overflow: hidden;
}

.rao-service-card:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--rao-gold-light), var(--rao-gold), var(--rao-navy));
}

.rao-service-icon {
  width: 68px;
  height: 68px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--rao-navy);
  color: var(--rao-gold-light);
  font-size: 30px;
  margin-bottom: 22px;
  box-shadow: 0 18px 35px rgba(6, 27, 51, 0.18);
}

.rao-why {
  background:
    radial-gradient(circle at 12% 0%, rgba(244, 211, 125, 0.22), transparent 28%),
    linear-gradient(180deg, #f5f7fb, #ffffff);
}

.rao-why-panel {
  padding: 42px;
  background: linear-gradient(145deg, #061b33, #0b2c4d);
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.rao-why-panel:after {
  content: "";
  position: absolute;
  width: 210px;
  height: 210px;
  right: -74px;
  bottom: -74px;
  border-radius: 50%;
  background: rgba(244, 211, 125, 0.12);
}

.rao-why-panel h3,
.rao-why-panel p {
  color: #ffffff;
  position: relative;
  z-index: 2;
}

.rao-check-list {
  display: grid;
  gap: 14px;
  margin-top: 28px;
  position: relative;
  z-index: 2;
}

.rao-check-list div {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
}

.rao-check-list i {
  color: var(--rao-gold-light);
  margin-top: 2px;
}

.rao-benefit-card {
  padding: 28px;
  height: 100%;
}

.testimonials {
  position: relative;
}

.testimonials:before {
  background: linear-gradient(120deg, rgba(6, 27, 51, 0.92), rgba(6, 27, 51, 0.76));
}

.testimonial-item .stars i,
.testimonial-item .quote-icon-left,
.testimonial-item .quote-icon-right {
  color: var(--rao-gold-light) !important;
}

.team .member {
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 20px 48px rgba(6, 27, 51, 0.10);
  border: 1px solid var(--rao-border);
}

.team .member .member-info {
  background: #ffffff;
  border-top: 4px solid var(--rao-gold);
}

.contact .info-item {
  border-radius: 24px;
  border: 1px solid var(--rao-border);
  background: #ffffff;
  box-shadow: 0 18px 45px rgba(6, 27, 51, 0.07);
}

.contact .info-item i {
  background: linear-gradient(135deg, var(--rao-navy), var(--rao-navy-2));
  color: var(--rao-gold-light);
}

.php-email-form {
  border: 1px solid var(--rao-border);
  border-radius: 26px;
  box-shadow: 0 18px 45px rgba(6, 27, 51, 0.08);
}

.php-email-form input,
.php-email-form textarea {
  border-radius: 14px;
  border-color: rgba(6, 27, 51, 0.16);
}

.php-email-form input:focus,
.php-email-form textarea:focus {
  border-color: var(--rao-gold);
  box-shadow: 0 0 0 4px rgba(201, 154, 46, 0.12);
}

.php-email-form button[type=submit] {
  background: linear-gradient(135deg, var(--rao-gold-light), var(--rao-gold));
  color: var(--rao-navy);
  border-radius: 999px;
  font-weight: 900;
  box-shadow: 0 14px 30px rgba(201, 154, 46, 0.26);
}

.rao-whatsapp-section {
  padding-top: 0;
  background: #ffffff;
}

.rao-whatsapp-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 42px;
  border-radius: 32px;
  background:
    radial-gradient(circle at 90% 10%, rgba(37, 211, 102, 0.22), transparent 26%),
    linear-gradient(135deg, var(--rao-navy), var(--rao-navy-2));
  color: #ffffff;
  box-shadow: 0 28px 70px rgba(6, 27, 51, 0.20);
  overflow: hidden;
}

.rao-whatsapp-box h2,
.rao-whatsapp-box p {
  color: #ffffff;
  margin-bottom: 8px;
}

.rao-whatsapp-box .eyebrow {
  margin-bottom: 14px;
}

.rao-whatsapp-cta {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 15px 24px;
  border-radius: 999px;
  background: #25d366;
  color: #ffffff;
  font-weight: 900;
  box-shadow: 0 18px 36px rgba(37, 211, 102, 0.24);
}

.rao-whatsapp-cta:hover {
  color: #ffffff;
  transform: translateY(-3px);
}

.footer {
  background: #061b33;
  border-top: 1px solid rgba(244, 211, 125, 0.18);
}

.footer h4,
.footer .sitename {
  color: #ffffff;
}

.footer .footer-links ul a:hover,
.footer a:hover {
  color: var(--rao-gold-light);
}

.footer .btn-warning {
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--rao-gold-light), var(--rao-gold));
  color: var(--rao-navy);
  font-weight: 900;
  padding: 13px 22px;
}

.scroll-top {
  right: 24px;
  bottom: 96px;
  background: var(--rao-navy);
  color: var(--rao-gold-light);
  border: 1px solid rgba(244, 211, 125, 0.3);
}

.scroll-top:hover {
  background: var(--rao-gold);
  color: var(--rao-navy);
}

.rao-floating-whatsapp {
  position: fixed;
  left: 22px;
  bottom: 22px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  z-index: 997;
  box-shadow: 0 18px 38px rgba(37, 211, 102, 0.34);
}

.rao-floating-whatsapp:hover {
  color: #ffffff;
  transform: translateY(-4px) scale(1.03);
}

.rao-chatbot {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 999;
  font-family: var(--default-font);
}

.rao-chatbot-toggle {
  border: 0;
  border-radius: 999px;
  min-height: 58px;
  padding: 0 22px;
  background: linear-gradient(135deg, var(--rao-gold-light), var(--rao-gold));
  color: var(--rao-navy);
  font-weight: 900;
  box-shadow: 0 20px 46px rgba(6, 27, 51, 0.24);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.rao-chatbot-toggle i {
  font-size: 22px;
}

.rao-chatbot-panel {
  position: absolute;
  right: 0;
  bottom: 74px;
  width: min(370px, calc(100vw - 32px));
  max-height: 70vh;
  background: #ffffff;
  border: 1px solid rgba(6, 27, 51, 0.14);
  border-radius: 26px;
  box-shadow: 0 26px 72px rgba(6, 27, 51, 0.28);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px) scale(0.96);
  transition: 0.22s ease;
}

.rao-chatbot.open .rao-chatbot-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.rao-chatbot-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 18px;
  background: linear-gradient(135deg, var(--rao-navy), var(--rao-navy-2));
  color: #ffffff;
}

.rao-chatbot-header strong,
.rao-chatbot-header span {
  display: block;
}

.rao-chatbot-header strong {
  font-size: 16px;
}

.rao-chatbot-header span {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.74);
}

.rao-chatbot-header button {
  border: 0;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  width: 34px;
  height: 34px;
  border-radius: 50%;
}

.rao-chatbot-messages {
  padding: 18px;
  height: 260px;
  overflow-y: auto;
  background: linear-gradient(180deg, #ffffff, #f7f9fc);
}

.rao-bot-message,
.rao-user-message {
  max-width: 86%;
  padding: 12px 14px;
  border-radius: 16px;
  margin-bottom: 10px;
  font-size: 14px;
  line-height: 1.55;
}

.rao-bot-message {
  background: #eef3f8;
  color: #253850;
  border-bottom-left-radius: 5px;
}

.rao-user-message {
  margin-left: auto;
  background: var(--rao-navy);
  color: #ffffff;
  border-bottom-right-radius: 5px;
}

.rao-chatbot-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 18px 14px;
  background: #f7f9fc;
}

.rao-chatbot-chips button {
  border: 1px solid rgba(201, 154, 46, 0.28);
  background: rgba(244, 211, 125, 0.14);
  color: var(--rao-navy);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  padding: 8px 10px;
}

.rao-chatbot-form {
  display: flex;
  gap: 8px;
  padding: 14px;
  border-top: 1px solid rgba(6, 27, 51, 0.08);
  background: #ffffff;
}

.rao-chatbot-form input {
  flex: 1;
  border: 1px solid rgba(6, 27, 51, 0.14);
  border-radius: 999px;
  padding: 11px 14px;
  outline: none;
  min-width: 0;
}

.rao-chatbot-form input:focus {
  border-color: var(--rao-gold);
  box-shadow: 0 0 0 4px rgba(201, 154, 46, 0.12);
}

.rao-chatbot-form button {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--rao-gold-light), var(--rao-gold));
  color: var(--rao-navy);
}

@media (max-width: 1199px) {
  .header .logo h1 { font-size: 20px; }
  .header .logo span { font-size: 10px; letter-spacing: 2px; }
}

@media (max-width: 991px) {
  .rao-whatsapp-box {
    flex-direction: column;
    align-items: flex-start;
  }

  .rao-whatsapp-cta {
    width: 100%;
  }
}

@media (max-width: 767px) {
  .header .logo img {
    max-height: 46px;
  }

  .logo-text {
    display: none;
  }

  .rao-hero {
    min-height: 88vh;
  }

  .rao-hero h2 {
    letter-spacing: -1.2px;
  }

  .hero-trust-strip span {
    width: calc(50% - 8px);
    justify-content: center;
  }

  .rao-why-panel,
  .rao-whatsapp-box {
    padding: 28px;
    border-radius: 24px;
  }

  .rao-chatbot {
    right: 16px;
    bottom: 16px;
  }

  .rao-floating-whatsapp {
    left: 16px;
    bottom: 16px;
    width: 54px;
    height: 54px;
  }

  .scroll-top {
    display: none;
  }
}
/* ===== HERO READABILITY FIX ===== */
.rao-hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.rao-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.45);
}

.rao-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(6, 27, 51, 0.55); /* navy dark overlay */
  z-index: 1;
}

.rao-hero .container {
  position: relative;
  z-index: 2;
}

.rao-hero h2,
.rao-hero p,
.rao-hero .hero-badge,
.rao-hero .hero-trust-strip span {
  color: #ffffff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

.rao-hero h2 {
  font-size: clamp(2.4rem, 5vw, 5rem);
  line-height: 1.08;
  max-width: 980px;
}

.rao-hero p {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.15rem;
}
