/**
 * RNK brand overrides — global styles
 */

/* ── Header ── */
.header {
  --background-color: #ffffff;
  --heading-color: #000000;
  --nav-color: #444444;
  --nav-hover-color: #DC2626;
  background-color: #ffffff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06), 0 4px 24px rgba(0, 0, 0, 0.06);
  padding: 12px 0;
}

.scrolled .header {
  --background-color: #ffffff;
  padding: 8px 0;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.header .logo,
.footer .footer-about .logo {
  background: none;
  padding: 0;
  gap: 16px;
  text-decoration: none;
}

.header .logo img,
.footer .footer-about .logo img {
  display: block;
  height: 70px;
  max-height: none !important;
  width: auto;
  flex-shrink: 0;
}

.scrolled .header .logo img { height: 58px; }
.footer .footer-about .logo img { height: 80px; }

.rnk-logo-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.25;
  border-left: 3px solid #DC2626;
  padding-left: 16px;
}

.rnk-logo-name {
  font-family: var(--heading-font);
  font-size: 16px;
  font-weight: 600;
  color: #111111;
}

.rnk-logo-tag {
  font-family: var(--heading-font);
  font-size: 14px;
  font-weight: 500;
  color: #DC2626;
}

.rnk-logo-tag span { color: #111111; }

@media (min-width: 1200px) {
  .navmenu a, .navmenu a:focus {
    color: #444444;
    font-weight: 500;
    padding: 12px 18px;
  }
  .navmenu li:hover > a,
  .navmenu .active,
  .navmenu .active:focus { color: #DC2626; }
  .navmenu .active { font-weight: 600; }
}

.mobile-nav-toggle { color: #DC2626; }

.header .btn-getstarted {
  border-radius: 6px;
  font-weight: 600;
  padding: 10px 22px;
}

/* ── Section titles ── */
.section-title {
  text-align: center;
  margin-bottom: 40px;
}

.section-title h2 {
  color: #111111;
  font-size: clamp(1.65rem, 3vw, 2rem);
  font-weight: 700;
  position: relative;
  padding-bottom: 18px;
  margin-bottom: 0;
  letter-spacing: -0.01em;
}

.section-title h2::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 48px;
  height: 3px;
  background: #DC2626;
  border-radius: 2px;
}

.section-title p {
  color: #666;
  max-width: 680px;
  margin: 12px auto 0;
}

.rnk-section { padding: 72px 0; }

.rnk-section--alt {
  background: linear-gradient(180deg, #fbf4f4 0%, #ffffff 100%);
}

/* ── Page title ── */
.page-title {
  background-size: cover;
  background-position: center;
}

.page-title::before {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.82), rgba(220, 38, 38, 0.55)) !important;
}

.page-title h1 {
  font-weight: 700;
  letter-spacing: -0.02em;
}

.page-title p {
  opacity: 0.9;
  font-size: 17px;
}

.breadcrumbs ol li.current {
  color: #F87171;
}

/* ── Hero ── */
.hero { padding-top: 120px; }

.rnk-hero { position: relative; overflow: hidden; }

.rnk-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.75) 45%, rgba(220, 38, 38, 0.15) 100%);
  z-index: 2;
  pointer-events: none;
}

.rnk-hero .container { position: relative; z-index: 3; }

.rnk-hero-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #F87171;
  margin-bottom: 14px;
  padding: 6px 14px;
  border: 1px solid rgba(220, 38, 38, 0.45);
  border-radius: 999px;
  background: rgba(220, 38, 38, 0.12);
}

.rnk-hero h2 {
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  line-height: 1.25;
  margin-bottom: 16px;
}

.rnk-hero-location {
  font-size: 17px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 12px;
}

.rnk-hero-location i { color: #F87171; margin-right: 6px; }

.rnk-hero-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}

.rnk-hero-contact a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 15px;
  text-decoration: none;
  transition: color 0.2s;
}

.rnk-hero-contact a:hover { color: #ffffff; }
.rnk-hero-contact i { color: #F87171; width: 20px; margin-right: 4px; }

.rnk-hero-lead {
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.7;
  margin-bottom: 28px;
  max-width: 540px;
}

.rnk-hero-media { position: relative; margin: 0; }

.rnk-hero-media::before {
  content: "";
  position: absolute;
  inset: -8px -8px 12px 12px;
  border: 2px solid rgba(220, 38, 38, 0.45);
  border-radius: 18px;
  z-index: 0;
}

.rnk-hero-media img {
  position: relative;
  z-index: 1;
  width: 100%;
  display: block;
  border-radius: 16px;
  object-fit: cover;
  aspect-ratio: 4 / 3;
  box-shadow: 0 28px 56px rgba(0, 0, 0, 0.4);
}

.rnk-hero-media__tags {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}

.rnk-hero-media__tags span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #ffffff;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.rnk-hero-media__tags i { color: #F87171; font-size: 13px; }

/* ── Image frames ── */
.rnk-image-frame {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

.rnk-image-frame::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #DC2626, #F87171);
  z-index: 1;
}

.rnk-image-frame img {
  width: 100%;
  display: block;
  object-fit: cover;
}

/* ── Intro cards (Vision / Mission / Goal) ── */
.about .content > h3,
.rnk-block-title {
  font-size: 28px;
  font-weight: 700;
  color: #111;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 3px solid #DC2626;
  display: inline-block;
}

.about .content ul { padding: 0; list-style: none; }

.about .content ul li {
  display: flex;
  gap: 18px;
  padding: 22px;
  margin-bottom: 16px;
  background: #ffffff;
  border: 1px solid #f5e8e8;
  border-radius: 14px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.about .content ul li:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(220, 38, 38, 0.1);
  border-color: rgba(220, 38, 38, 0.25);
}

.about .content ul li i {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #ffffff;
  background: linear-gradient(135deg, #DC2626, #991B1B);
  border-radius: 12px;
}

.about .content ul li h5 {
  font-size: 17px;
  font-weight: 600;
  color: #111;
  margin-bottom: 6px;
}

.about .content ul li p {
  margin: 0;
  color: #555;
  line-height: 1.65;
  font-size: 15px;
}

.about .content > p {
  color: #555;
  line-height: 1.75;
  font-size: 15px;
  margin-bottom: 16px;
}

.about .content > p:last-child {
  margin-bottom: 0;
}

/* ── Expertise cards ── */
.rnk-expertise-card {
  height: 100%;
  padding: 28px 20px;
  text-align: center;
  background: #ffffff;
  border: 1px solid #f5e8e8;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.25s ease;
}

.rnk-expertise-card:hover {
  transform: translateY(-6px);
  border-color: rgba(220, 38, 38, 0.3);
  box-shadow: 0 16px 40px rgba(220, 38, 38, 0.12);
}

.rnk-expertise-card__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #ffffff;
  background: linear-gradient(135deg, #DC2626, #991B1B);
  border-radius: 14px;
}

.rnk-expertise-card h3 {
  font-size: 15px;
  font-weight: 600;
  color: #111;
  line-height: 1.4;
  margin: 0;
}

.services .card { border: none; box-shadow: none; background: transparent; padding: 0; }

/* ── Value cards ── */
.rnk-value-card {
  height: 100%;
  padding: 32px 28px;
  background: #ffffff;
  border: 1px solid #f5e8e8;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.rnk-value-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #DC2626, #F87171);
}

.rnk-value-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(220, 38, 38, 0.1);
}

.rnk-value-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #DC2626;
  background: rgba(220, 38, 38, 0.1);
  border-radius: 12px;
  margin-bottom: 18px;
}

.rnk-value-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: #111;
  margin-bottom: 12px;
  line-height: 1.35;
}

.rnk-value-card p {
  color: #555;
  line-height: 1.7;
  margin: 0;
  font-size: 15px;
}

/* ── Strategy cards ── */
.rnk-strategy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.rnk-strategy-card {
  padding: 28px;
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #f5e8e8;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  border-left: 4px solid #DC2626;
}

.rnk-strategy-card p {
  margin: 0;
  color: #555;
  line-height: 1.75;
  font-size: 15px;
}

/* ── Portfolio list ── */
.rnk-portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.rnk-portfolio-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
  background: #ffffff;
  border: 1px solid #f5e8e8;
  border-radius: 12px;
  transition: all 0.2s;
}

.rnk-portfolio-item:hover {
  border-color: rgba(220, 38, 38, 0.3);
  box-shadow: 0 8px 24px rgba(220, 38, 38, 0.08);
}

.rnk-portfolio-item__num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  background: #DC2626;
  border-radius: 8px;
}

.rnk-portfolio-item span {
  color: #333;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
}

/* ── Service blocks (services page) ── */
.rnk-service-block {
  padding: 40px 0;
  border-bottom: 1px solid #f5e8e8;
}

.rnk-service-block:last-child { border-bottom: none; }

.rnk-service-block .features-item img,
.rnk-service-block .rnk-image-frame img {
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.rnk-service-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #DC2626;
  background: rgba(220, 38, 38, 0.1);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.rnk-service-block h3 {
  font-size: 24px;
  font-weight: 700;
  color: #111;
  margin-bottom: 14px;
  line-height: 1.3;
}

.rnk-service-block > .col-md-7 > p,
.features-item .col-md-7 > p {
  color: #555;
  line-height: 1.75;
  margin-bottom: 16px;
}

.features-item ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.features-item ul li {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #f8f0f0;
  color: #444;
  line-height: 1.65;
  font-size: 15px;
}

.features-item ul li:last-child { border-bottom: none; }

.features-item ul li i {
  color: #DC2626;
  font-size: 18px;
  flex-shrink: 0;
  margin-top: 2px;
}

.rnk-intro-lead {
  font-size: 17px;
  color: #555;
  line-height: 1.75;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

/* ── Legal / CTA section ── */
.rnk-legal-section .text-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.rnk-legal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  width: 100%;
  max-width: 640px;
  margin: 0 auto 28px;
}

.rnk-legal-card {
  padding: 28px 24px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  backdrop-filter: blur(8px);
}

.rnk-legal-card i {
  font-size: 28px;
  color: #F87171;
  margin-bottom: 12px;
  display: block;
}

.rnk-legal-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 8px;
}

.rnk-legal-card p {
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
  font-size: 15px;
}

.call-to-action .cta-btn {
  background: #DC2626;
  border: 2px solid #DC2626;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 8px;
  transition: all 0.2s;
}

.call-to-action .cta-btn:hover {
  background: transparent;
  color: #ffffff;
}

/* ── Contact page ── */
.rnk-map-frame {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
  border: 1px solid #f5e8e8;
}

.rnk-map-frame iframe {
  display: block;
  width: 100%;
  height: 360px;
  border: 0;
}

.rnk-contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.rnk-contact-card {
  display: flex;
  gap: 16px;
  padding: 24px;
  background: #ffffff;
  border: 1px solid #f5e8e8;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.2s;
  height: 100%;
}

.rnk-contact-card:hover {
  border-color: rgba(220, 38, 38, 0.3);
  box-shadow: 0 12px 32px rgba(220, 38, 38, 0.1);
  transform: translateY(-3px);
}

.rnk-contact-card > i {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #ffffff;
  background: linear-gradient(135deg, #DC2626, #991B1B);
  border-radius: 12px;
}

.rnk-contact-card h3 {
  font-size: 15px;
  font-weight: 600;
  color: #111;
  margin-bottom: 6px;
}

.rnk-contact-card p {
  margin: 0;
  color: #555;
  font-size: 15px;
  line-height: 1.5;
}

.rnk-contact-card a {
  color: #DC2626;
  text-decoration: none;
  font-weight: 500;
}

.rnk-contact-card a:hover { text-decoration: underline; }

.rnk-legal-card:not(:has(p)) h3 {
  margin-bottom: 0;
}

/* ── Footer ── */
.footer {
  background: #0a0a0a !important;
}

.footer .footer-about .logo { margin-bottom: 20px; }

.footer .footer-about .rnk-logo-text { border-left-color: rgba(255, 255, 255, 0.35); }
.footer .footer-about .rnk-logo-name { color: #ffffff; font-size: 15px; }
.footer .footer-about .rnk-logo-tag { color: #F87171; }
.footer .footer-about .rnk-logo-tag span { color: rgba(255, 255, 255, 0.85); }

.footer-links h4,
.footer-contact h4 {
  color: #ffffff;
  font-size: 16px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid #DC2626;
  display: inline-block;
}

.footer-links ul li { padding: 6px 0; }

.footer-links ul a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s;
}

.footer-links ul a:hover { color: #F87171; }

.footer-contact p { color: rgba(255, 255, 255, 0.75); }

.copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 20px;
  color: rgba(255, 255, 255, 0.5);
}

/* ── Buttons ── */
.btn-primary {
  background-color: #DC2626;
  border-color: #DC2626;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: 8px;
}

.btn-primary:hover {
  background-color: #991B1B;
  border-color: #991B1B;
}

/* ── Responsive ── */
@media (max-width: 991px) {
  .hero-visual { max-width: 520px; margin: 0 auto; }
  .rnk-hero h2 { font-size: 1.65rem; }
  .rnk-section { padding: 56px 0; }
}

@media (max-width: 1199px) {
  .header .logo img { height: 58px; }
  .scrolled .header .logo img { height: 52px; }
}

@media (max-width: 576px) {
  .header { padding: 10px 0; }
  .header .logo img { height: 52px; }
  .scrolled .header .logo img { height: 48px; }
  .header .btn-getstarted { font-size: 13px; padding: 8px 14px; }
}

/* ── Solar page ── */
.rnk-media-4x3,
.rnk-media-16x9 {
  position: relative;
  overflow: hidden;
}

.rnk-media-4x3 { aspect-ratio: 4 / 3; }
.rnk-media-16x9 { aspect-ratio: 16 / 9; }

.rnk-media-4x3 img,
.rnk-media-16x9 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.solar-page .rnk-block-title + p,
.solar-page .rnk-section p {
  color: #555;
  line-height: 1.75;
  font-size: 15px;
}

.rnk-solar-checklist {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: grid;
  gap: 10px;
}

.rnk-solar-checklist li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: #444;
  font-size: 15px;
  line-height: 1.6;
}

.rnk-solar-checklist i {
  color: #DC2626;
  margin-top: 3px;
  flex-shrink: 0;
}

.rnk-step-card {
  width: 100%;
  height: 100%;
  background: #ffffff;
  border: 1px solid #f5e8e8;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.rnk-step-card {
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rnk-step-card__num {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  background: #DC2626;
  border-radius: 10px;
}

.rnk-step-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: #111;
  margin: 0;
  line-height: 1.3;
}

.rnk-step-card p {
  margin: 0;
  color: #555;
  line-height: 1.7;
  font-size: 15px;
}

.rnk-section-title-start {
  text-align: left;
  margin-bottom: 16px;
}

.rnk-section-title-start h2::after {
  left: 0;
  transform: none;
}

.rnk-solar-app-list {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.rnk-solar-app-list .rnk-portfolio-item {
  margin: 0;
}

.rnk-solar-app-list .rnk-portfolio-item__num,
.rnk-solar-app-list .rnk-portfolio-item__num i {
  color: #ffffff !important;
  font-size: 15px;
}

.rnk-solar-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 36px 40px;
  background: #ffffff;
  border: 1px solid #f5e8e8;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  border-left: 4px solid #DC2626;
}

.rnk-solar-cta h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 700;
  color: #111;
  margin: 0 0 10px;
}

.rnk-solar-cta p {
  margin: 0;
  color: #555;
  line-height: 1.7;
  max-width: 640px;
}

.rnk-solar-cta .btn { flex-shrink: 0; }

@media (max-width: 767px) {
  .rnk-solar-cta {
    flex-direction: column;
    align-items: flex-start;
    padding: 28px 22px;
  }
}
