/*
Theme Name: RitaCall
Theme URI: https://ritacall.com/
Author: RitaCall Communications
Description: Custom WordPress theme for RitaCall Communications, built to replace the legacy Joomla/Helix site.
Version: 0.1.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 8.0
License: GPL-2.0-or-later
Text Domain: ritacall
*/

:root {
  --rc-blue: #143d8f;
  --rc-blue-dark: #08265f;
  --rc-cyan: #00a7df;
  --rc-orange: #f58220;
  --rc-green: #41b65c;
  --rc-ink: #172033;
  --rc-muted: #647084;
  --rc-bg: #f5f8fc;
  --rc-card: #ffffff;
  --rc-border: #dfe7f1;
  --rc-shadow: 0 18px 45px rgba(14, 42, 88, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--rc-ink);
  background: #fff;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.6;
}

a {
  color: var(--rc-blue);
  text-decoration: none;
}

a:hover,
a:focus {
  color: var(--rc-orange);
}

img {
  height: auto;
  max-width: 100%;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.rc-container {
  width: min(1140px, calc(100% - 32px));
  margin-inline: auto;
}

.rc-site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(223, 231, 241, 0.8);
}

.rc-header-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.rc-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--rc-blue-dark);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
}

.rc-brand-mark {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.rc-nav ul {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rc-nav li {
  position: relative;
}

.rc-nav a {
  display: block;
  padding: 12px 14px;
  color: var(--rc-ink);
  font-size: 0.96rem;
  font-weight: 700;
  border-radius: 999px;
}

.rc-nav a:hover,
.rc-nav .current-menu-item > a {
  color: var(--rc-blue);
  background: #eef5ff;
}

.rc-nav .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  display: none;
  flex-direction: column;
  align-items: stretch;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--rc-border);
  border-radius: 18px;
  box-shadow: var(--rc-shadow);
}

.rc-nav li:hover > .sub-menu,
.rc-nav li:focus-within > .sub-menu {
  display: flex;
}

.rc-button,
.wp-block-button__link,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  color: #fff;
  background: linear-gradient(135deg, var(--rc-orange), #ffad42);
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  box-shadow: 0 12px 24px rgba(245, 130, 32, 0.25);
}

.rc-button:hover,
.wp-block-button__link:hover {
  color: #fff;
  transform: translateY(-1px);
}

.rc-button.secondary {
  color: var(--rc-blue);
  background: #fff;
  border: 1px solid var(--rc-border);
  box-shadow: none;
}

.rc-hero {
  position: relative;
  overflow: hidden;
  padding: 86px 0 74px;
  background:
    radial-gradient(circle at 12% 20%, rgba(0, 167, 223, 0.22), transparent 28%),
    linear-gradient(135deg, #f7fbff 0%, #eaf4ff 48%, #fff 100%);
}

.rc-hero::after {
  content: "";
  position: absolute;
  inset: auto -8% -28% auto;
  width: 520px;
  height: 520px;
  background: rgba(20, 61, 143, 0.08);
  border-radius: 50%;
}

.rc-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  align-items: center;
  gap: 56px;
}

.rc-kicker {
  display: inline-flex;
  padding: 7px 13px;
  color: var(--rc-blue);
  background: #e7f3ff;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.rc-hero h1 {
  margin: 18px 0 16px;
  color: var(--rc-blue-dark);
  font-size: clamp(2.45rem, 6vw, 4.75rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.rc-hero p {
  max-width: 640px;
  color: var(--rc-muted);
  font-size: 1.18rem;
}

.rc-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.rc-hero-card {
  position: relative;
  padding: 24px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 34px;
  box-shadow: var(--rc-shadow);
}

.rc-hero-card img {
  display: block;
  margin-inline: auto;
}

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

.rc-section.alt {
  background: var(--rc-bg);
}

.rc-section-heading {
  max-width: 720px;
  margin: 0 auto 36px;
  text-align: center;
}

.rc-section-heading h2 {
  margin: 0 0 10px;
  color: var(--rc-blue-dark);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.rc-section-heading p {
  margin: 0;
  color: var(--rc-muted);
}

.rc-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.rc-card,
.rc-product-card {
  padding: 26px;
  background: var(--rc-card);
  border: 1px solid var(--rc-border);
  border-radius: 28px;
  box-shadow: 0 12px 28px rgba(14, 42, 88, 0.08);
}

.rc-card h3,
.rc-product-card h3 {
  margin: 12px 0 8px;
  color: var(--rc-blue-dark);
  font-size: 1.28rem;
  line-height: 1.2;
}

.rc-card p,
.rc-product-card p {
  color: var(--rc-muted);
}

.rc-card-icon {
  width: 62px;
  height: 62px;
  object-fit: contain;
}

.rc-split {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  align-items: center;
  gap: 54px;
}

.rc-split h2 {
  margin: 0 0 14px;
  color: var(--rc-blue-dark);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.rc-check-list {
  display: grid;
  gap: 10px;
  margin: 22px 0;
  padding: 0;
  list-style: none;
}

.rc-check-list li::before {
  content: "✓";
  margin-right: 10px;
  color: var(--rc-green);
  font-weight: 900;
}

.rc-product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.rc-product-card {
  text-align: center;
}

.rc-price {
  display: block;
  margin: 12px 0 18px;
  color: var(--rc-orange);
  font-size: 2rem;
  font-weight: 900;
}

.rc-contact-band {
  color: #fff;
  background: linear-gradient(135deg, var(--rc-blue-dark), var(--rc-blue));
}

.rc-contact-band a {
  color: #fff;
  font-weight: 800;
}

.rc-contact-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
}

.rc-page-main {
  padding: 58px 0 78px;
}

.rc-page-header {
  padding: 64px 0;
  color: #fff;
  background: linear-gradient(135deg, var(--rc-blue-dark), var(--rc-blue));
}

.rc-page-header h1 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1;
}

.rc-content {
  max-width: 820px;
  margin-inline: auto;
}

.rc-site-footer {
  padding: 48px 0 30px;
  color: #c9d6f0;
  background: #081936;
}

.rc-footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr 0.7fr;
  gap: 32px;
}

.rc-site-footer h2,
.rc-site-footer h3 {
  color: #fff;
}

.rc-site-footer a {
  color: #fff;
}

.rc-footer-bottom {
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.9rem;
}

.woocommerce ul.products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
  display: none;
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
  float: none;
  width: auto;
  margin: 0;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--rc-border);
  border-radius: 26px;
  box-shadow: 0 12px 28px rgba(14, 42, 88, 0.08);
  text-align: center;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
  color: var(--rc-blue-dark);
  font-size: 1.15rem;
}

.woocommerce div.product div.summary {
  padding: 28px;
  background: #fff;
  border: 1px solid var(--rc-border);
  border-radius: 28px;
  box-shadow: 0 12px 28px rgba(14, 42, 88, 0.08);
}

.woocommerce div.product p.price,
.woocommerce div.product span.price,
.woocommerce ul.products li.product .price {
  color: var(--rc-orange);
  font-weight: 900;
}

.woocommerce table.shop_table,
.woocommerce form.checkout,
.woocommerce-account .woocommerce-MyAccount-content,
.woocommerce-account .woocommerce-MyAccount-navigation {
  padding: 22px;
  background: #fff;
  border: 1px solid var(--rc-border);
  border-radius: 22px;
}

@media (max-width: 900px) {
  .rc-header-inner,
  .rc-contact-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .rc-nav ul {
    flex-wrap: wrap;
  }

  .rc-nav .sub-menu {
    position: static;
    display: flex;
    min-width: 0;
    padding: 0 0 0 14px;
    border: 0;
    box-shadow: none;
  }

  .rc-hero-grid,
  .rc-split,
  .rc-footer-grid {
    grid-template-columns: 1fr;
  }

  .rc-card-grid,
  .rc-product-grid,
  .woocommerce ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .rc-card-grid,
  .rc-product-grid,
  .woocommerce ul.products {
    grid-template-columns: 1fr;
  }
}
