:root {
    --rai-navy: #08284a;
    --rai-blue: #0072bc;
    --rai-cyan: #00a7e1;
    --rai-green: #75bd43;
    --rai-dark-green: #195d2a;
    --rai-light-blue: #eef9ff;
    --rai-soft-green: #f3faef;
    --rai-sky: #f3fbff;
    --rai-text: #243246;
    --rai-muted: #64748b;
    --rai-border: #d7e8ef;
    --rai-shadow: 0 14px 36px rgba(11, 39, 66, .10);
    --rai-radius: 16px;
}

* {
    box-sizing: border-box;
}

body {
    font-family: "Jost", "Segoe UI", Arial, sans-serif;
    color: var(--rai-text);
    background: #ffffff;
    line-height: 1.55;
}

a {
    text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6,
.navbar,
.btn {
    font-family: "Jost", "Segoe UI", Arial, sans-serif;
}

.btn-rai {
    background: linear-gradient(135deg, var(--rai-green), var(--rai-blue));
    color: #fff;
    border: 0;
    border-radius: 8px;
    padding: 12px 22px;
    font-weight: 700;
    box-shadow: 0 10px 20px rgba(0, 114, 188, .20);
}

.btn-rai:hover {
    color: #fff;
    transform: translateY(-1px);
}

.btn-outline-rai {
    border: 1px solid var(--rai-green);
    color: var(--rai-dark-green);
    border-radius: 8px;
    padding: 10px 20px;
    font-weight: 700;
    background: #fff;
}

.btn-outline-rai:hover {
    background: var(--rai-green);
    color: #fff;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 999;
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 18px rgba(6, 29, 79, .08);
}

.navbar {
    min-height: 76px;
}

.navbar-brand img {
    
    width: 68%;
    height: auto;
    display: block;
}

.navbar-nav .nav-link {
    color: var(--rai-text);
    font-weight: 700;
    font-size: 14px;
    padding: 12px 16px !important;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--rai-blue);
}

.hero-section {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 8% 20%, rgba(117, 189, 67, .10), transparent 25%),
        radial-gradient(circle at 38% 12%, rgba(0, 114, 188, .08), transparent 24%),
        linear-gradient(90deg, #ffffff 0%, #ffffff 42%, #f3fbff 100%);
    border-bottom: 1px solid #edf3fb;
}

.hero-section::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(120deg, rgba(255, 255, 255, .9) 0%, rgba(255, 255, 255, .72) 39%, rgba(255, 255, 255, 0) 40%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 58px 0 44px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--rai-dark-green);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .03em;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.eyebrow::before {
    content: "";
    width: 34px;
    height: 3px;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--rai-green), var(--rai-blue));
}

.hero-title {
    font-size: clamp(38px, 5vw, 62px);
    line-height: 1.05;
    letter-spacing: -.04em;
    font-weight: 900;
    color: var(--rai-blue);
    background: linear-gradient(135deg, var(--rai-green) 0%, var(--rai-blue) 45%, var(--rai-navy) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    max-width: 610px;
    margin-bottom: 20px;
}

.hero-text {
    max-width: 520px;
    color: #17264f;
    font-size: 18px;
    margin-bottom: 30px;
}

.hero-image-wrap {
    position: relative;
    z-index: 1;
    min-height: 365px;
    height: 100%;
    display: flex;
    align-items: stretch;
}

.hero-image {
    width: 100%;
    min-height: 365px;
    object-fit: cover;
    object-position: right;
    clip-path: polygon(10% 0, 100% 0, 100% 100%, 0 100%);
    box-shadow: inset 40px 0 50px rgba(255, 255, 255, .4);
}

.stat-row {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 150px;
}

.stat-icon {
    width: 54px;
    height: 54px;
    border: 2px solid rgba(117, 189, 67, .55);
    color: var(--rai-blue);
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 26px;
    background: #fff;
    flex: 0 0 auto;
}

.stat-title {
    color: var(--rai-navy);
    font-weight: 900;
    font-size: 18px;
    line-height: 1;
}

.stat-copy {
    font-size: 12px;
    color: #142653;
    font-weight: 700;
    line-height: 1.15;
    margin-top: 4px;
}

.section-pad {
    padding: 42px 0;
}

.section-title-line {
    display: flex;
    align-items: center;
    gap: 18px;
    justify-content: center;
    text-align: center;
    color: var(--rai-navy);
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
    font-size: 18px;
    margin-bottom: 26px;
}

.section-title-line::before,
.section-title-line::after {
    content: "";
    height: 1px;
    background: #b7cce6;
    flex: 1;
    max-width: 230px;
}

.brand-row {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
}

.brand-logo {
    width: 100%;
    height: 120px;
    padding: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1px solid #e8edf2;
    border-radius: 12px;
    overflow: hidden;
}

.brand-logo img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 150px;
    max-height: 70px;
    object-fit: contain;
    object-position: center;
}

/* Slightly reduce square or vertical logos */
.brand-logo-square img {
    max-width: 100px;
    max-height: 75px;
}

/* Tablet */
@media screen and (max-width: 1199px) {
    .brand-row {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* Small tablet */
@media screen and (max-width: 767px) {
    .brand-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .brand-logo {
        height: 110px;
        padding: 20px;
    }

    .brand-logo img {
        max-width: 135px;
        max-height: 65px;
    }

    .brand-logo-square img {
        max-width: 90px;
        max-height: 70px;
    }
}

/* Mobile */
@media screen and (max-width: 420px) {
    .brand-row {
        grid-template-columns: 1fr;
    }

    .brand-logo {
        height: 105px;
    }
}

.reviews-section {
    background: linear-gradient(180deg, #f5fbff, #ffffff);
}

.google-summary,
.review-card,
.testimonial-card,
.story-card {
    background: #fff;
    border: 1px solid var(--rai-border);
    border-radius: var(--rai-radius);
    box-shadow: var(--rai-shadow);
}

.google-summary {
    padding: 28px;
    height: 100%;
}

.google-word {
    font-size: 38px;
    font-weight: 800;
    letter-spacing: -2px;
    line-height: 1;
}

.g-blue {
    color: #4285f4;
}

.g-red {
    color: #ea4335;
}

.g-yellow {
    color: #fbbc05;
}

.g-green {
    color: #34a853;
}

.rating-large {
    color: var(--rai-navy);
    font-size: 36px;
    font-weight: 900;
}

.stars {
    color: #ffb400;
    letter-spacing: 1px;
    white-space: nowrap;
}

.review-card {
    padding: 22px;
    height: 100%;
}

.avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 900;
    flex: 0 0 auto;
}

.avatar.purple {
    background: #673ab7;
}

.avatar.green {
    background: #17984a;
}

.avatar.teal {
    background: #12a0b5;
}

.small-google {
    font-weight: 800;
    font-size: 16px;
    letter-spacing: -1px;
}

.testimonials-grid {
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 34px;
}

.testimonial-card {
    position: relative;
    padding: 36px 42px 32px;
    margin: 0;
    width: 100%;
    border-left: 6px solid var(--rai-green);
    transition: transform .25s ease, box-shadow .25s ease;
}

.testimonial-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 42px rgba(11, 39, 66, .14);
}

.testimonial-card.featured {
    background: linear-gradient(135deg, #ffffff 0%, #f6fbf3 100%);
    border-color: var(--rai-green);
}

.quote-icon {
    position: absolute;
    top: -17px;
    left: 28px;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--rai-green), var(--rai-blue));
    color: #fff;
    font-size: 22px;
    box-shadow: 0 10px 18px rgba(0, 114, 188, .18);
}

.testimonial-text {
    font-size: 18px;
    color: #1f2d3d;
    line-height: 1.75;
    margin-bottom: 20px;
    letter-spacing: .01em;
}

.testimonial-author {
    font-size: 17px;
    color: var(--rai-dark-green);
    font-weight: 800;
    font-style: italic;
    line-height: 1.45;
}

.testimonial-author span {
    color: var(--rai-dark-green);
    font-weight: 500 !important;
}

.case-studies-section {
  background:
    radial-gradient(circle at top left, rgba(117, 189, 67, 0.08), transparent 32%),
    radial-gradient(circle at bottom right, rgba(0, 114, 188, 0.08), transparent 35%),
    #ffffff;
}

.section-heading .section-eyebrow {
  display: inline-block;
  color: var(--rai-green);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.section-intro {
  max-width: 780px;
  color: var(--text-muted);
  font-size: 18px;
  line-height: 1.7;
}

.case-card {
  background: #ffffff;
  border: 1px solid rgba(0, 114, 188, 0.12);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(11, 39, 66, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.case-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 44px rgba(11, 39, 66, 0.13);
  border-color: rgba(117, 189, 67, 0.35);
}

.case-img {
  min-height: 185px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.case-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 39, 66, 0.05), rgba(11, 39, 66, 0.25));
}

.case-img-1 {
  background-image: linear-gradient(rgba(0, 114, 188, 0.12), rgba(0, 114, 188, 0.12)),
    url("https://images.unsplash.com/photo-1573164713988-8665fc963095?auto=format&fit=crop&w=900&q=80");
}

.case-img-2 {
  background-image: linear-gradient(rgba(117, 189, 67, 0.12), rgba(117, 189, 67, 0.12)),
    url("https://images.unsplash.com/photo-1556761175-b413da4baf72?auto=format&fit=crop&w=900&q=80");
}

.case-img-3 {
  background-image: linear-gradient(rgba(0, 114, 188, 0.12), rgba(0, 114, 188, 0.12)),
    url("https://images.unsplash.com/photo-1587854692152-cbe660dbde88?auto=format&fit=crop&w=900&q=80");
}

.case-img-4 {
  background-image: linear-gradient(rgba(11, 39, 66, 0.12), rgba(11, 39, 66, 0.12)),
    url("https://images.unsplash.com/photo-1551836022-d5d88e9218df?auto=format&fit=crop&w=900&q=80");
}

.case-img-5 {
  background-image: linear-gradient(rgba(117, 189, 67, 0.12), rgba(117, 189, 67, 0.12)),
    url("https://images.unsplash.com/photo-1556767576-cfba06bc577d?auto=format&fit=crop&w=900&q=80");
}

.case-img-6 {
  background-image: linear-gradient(rgba(0, 114, 188, 0.12), rgba(0, 114, 188, 0.12)),
    url("https://images.unsplash.com/photo-1567206563064-6f60f40a2b57?auto=format&fit=crop&w=900&q=80");
}

.case-body {
  padding: 26px 26px 28px;
}

.case-tag {
  display: inline-flex;
  align-items: center;
  background: rgba(117, 189, 67, 0.12);
  color: var(--rai-green-dark, #185c2a);
  font-size: 13px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 15px;
}

.case-body h3 {
  color: var(--rai-navy);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 12px;
}

.case-body p {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.65;
  margin-bottom: 18px;
}

.case-body .story-link {
  color: var(--rai-blue);
  font-weight: 700;
  text-decoration: none;
}

.case-body .story-link:hover {
  color: var(--rai-green);
}

@media (max-width: 767px) {
  .case-img {
    min-height: 165px;
  }

  .case-body {
    padding: 22px;
  }

  .case-body h3 {
    font-size: 20px;
  }

  .section-intro {
    font-size: 16px;
  }
}

.why-section {
    padding: 34px 0 38px;
    background:
        radial-gradient(circle at 12% 40%, rgba(67, 133, 220, .28), transparent 24%),
        linear-gradient(135deg, #00183e, #032b64 65%, #00183e);
    color: #fff;
}

.why-title {
    display: flex;
    align-items: center;
    gap: 18px;
    justify-content: center;
    color: #fff;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 28px;
}

.why-title::before,
.why-title::after {
    content: "";
    flex: 1;
    height: 1px;
    max-width: 330px;
    background: rgba(255, 255, 255, .25);
}

.why-item {
    display: flex;
    gap: 16px;
    align-items: center;
}

.why-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, .25);
    background: rgba(255, 255, 255, .08);
    font-size: 28px;
    flex: 0 0 auto;
}

.why-item h4 {
    font-size: 16px;
    font-weight: 900;
    margin-bottom: 4px;
}

.why-item p {
    font-size: 12px;
    margin: 0;
    color: rgba(255, 255, 255, .86);
}

.cta-section {
    padding: 34px 0;
    background: #fff;
}

.cta-icon {
    width: 74px;
    height: 74px;
    border-radius: 50%;
    background: var(--rai-light-blue);
    color: var(--rai-blue);
    display: grid;
    place-items: center;
    font-size: 34px;
    box-shadow: 0 12px 28px rgba(0, 79, 189, .12);
}

.footer {
    position: relative;
    color: #fff;
    padding: 56px 0 24px;
    background:
        radial-gradient(circle at 10% 0%, rgba(117, 189, 67, .22), transparent 28%),
        radial-gradient(circle at 88% 20%, rgba(0, 114, 188, .32), transparent 26%),
        linear-gradient(135deg, #061b34 0%, #08284a 54%, #041525 100%);
    overflow: hidden;
}

.footer::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px), linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px);
    background-size: 42px 42px;
    opacity: .18;
    pointer-events: none;
}

.footer .container {
    position: relative;
    z-index: 1;
}

.footer-logo {
    max-width: 230px;
    filter: brightness(0) invert(1);
}

.footer-brand-text {
    color: rgba(255, 255, 255, .78);
    max-width: 300px;
    line-height: 1.7;
    margin-top: 14px;
}

.footer h5 {
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 18px;
    color: #ffffff;
    position: relative;
    padding-bottom: 10px;
}

.footer h5::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 38px;
    height: 3px;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--rai-green), var(--rai-blue));
}

.footer a,
.footer p {
    color: rgba(255, 255, 255, .82);
    font-size: 15px;
    margin-bottom: 10px;
    display: block;
    transition: color .2s ease, transform .2s ease;
}

.footer a:hover {
    color: #ffffff;
    transform: translateX(3px);
}

.footer-contact-icon {
    color: var(--rai-green);
    margin-right: 9px;
}

.social-box {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: grid !important;
    place-items: center;
    background: linear-gradient(135deg, var(--rai-green), var(--rai-blue));
    color: #ffffff !important;
    font-size: 20px !important;
    box-shadow: 0 12px 24px rgba(0, 0, 0, .18);
}

.footer-bottom {
    margin-top: 34px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, .16);
    color: rgba(255, 255, 255, .74);
}

@media (max-width: 991.98px) {
    .navbar-brand img {
        max-width: 250px;
        width: 100%;
    }

    .hero-content {
        padding: 42px 0 26px;
    }

    .hero-image-wrap {
        min-height: 280px;
        margin: 0 -12px;
    }

    .hero-image {
        min-height: 280px;
        clip-path: none;
        border-radius: 0;
    }

    .hero-section::after {
        display: none;
    }

    .brand-row {
        grid-template-columns: repeat(3, 1fr);
    }

    .why-item {
        align-items: flex-start;
    }
}

@media (max-width: 575.98px) {
    .hero-title {
        font-size: 38px;
    }

    .hero-text {
        font-size: 16px;
    }

    .stat-row {
        gap: 15px;
    }

    .stat-item {
        width: 100%;
    }

    .section-title-line {
        font-size: 15px;
        gap: 10px;
    }

    .brand-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .google-word {
        font-size: 32px;
    }

    .rating-large {
        font-size: 32px;
    }

    .btn-rai,
    .btn-outline-rai {
        width: 100%;
        text-align: center;
    }

    .footer {
        padding: 42px 0 22px;
    }

    .footer-logo {
        max-width: 200px;
    }
}