/* ==============================================
   Rx Consultants — exact replica of rxcs.in
   Colors / fonts sourced from live site CSS
   ============================================== */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Exact colors from live site */
  --sage:        rgb(199, 223, 211);   /* page bg + hero bg */
  --sage-card:   #c7dfd3;             /* card bg (why-us) */
  --black:       rgb(0, 0, 0);
  --white:       rgb(255, 255, 255);
  --text-body:   rgb(94, 94, 94);
  --text-head:   rgb(27, 27, 27);
  --text-muted:  rgb(133, 153, 143);
  --link-green:  rgb(104, 122, 113);
  --link-hover:  rgb(64, 73, 68);
  --teal-btn:    rgb(69, 90, 100);
  --teal-hover:  rgb(79, 102, 114);
  --border:      rgb(226, 226, 226);
  --input-bg:    rgb(246, 246, 246);

  --font-body:   'Josefin Sans', Arial, sans-serif;
  --font-head:   'Righteous', serif, system-ui;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text-body);
  background-color: var(--sage);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a   { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: 984px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============ NAVBAR ============ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 10002;
  background: var(--white);
}

.nav-inner {
  max-width: 100%;
  padding: 8px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 32px;
}

.logo-img {
  height: 75px;
  width: auto;
  object-fit: contain;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--link-green);
}

.nav-links {
  display: flex;
  align-items: center;
}

.nav-cta {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.063em;
  text-transform: uppercase;
  color: var(--white);
  background-color: var(--black);
  padding: 0 32px;
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  transition: background-color 0.15s ease;
}

.nav-cta:hover { background-color: rgb(7, 7, 7); }

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  padding-top: 91px; /* navbar height */
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-position: center;
  background-repeat: no-repeat;
  background-size: auto, cover;
  background-blend-mode: normal;
  background-image:
    linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0) 100%),
    url("https://img1.wsimg.com/isteam/stock/9729/:/rs=w:1279,m");
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 66.66%;
  margin-left: 16.666%;
  padding: 72px 24px;
  text-align: center;
}

.hero-title {
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--black);
  white-space: pre-line;
  margin-bottom: 16px;
}

.hero-sub {
  font-size: 19px;
  font-weight: 400;
  color: var(--text-body);
  line-height: 1.4;
  margin-bottom: 40px;
}

/* ============ BUTTONS ============ */
.btn-black {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.063em;
  text-transform: uppercase;
  color: var(--white);
  background-color: var(--black);
  padding: 0 32px;
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 0;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.btn-black:hover { background-color: rgb(7, 7, 7); }

/* ============ SERVICES ============ */
.section-services {
  background-color: var(--white);
  padding: 72px 0;
}

.section-heading {
  font-family: var(--font-head);
  font-size: 26px;
  font-weight: 400;
  color: var(--text-head);
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.25;
}

.cards-grid {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -12px -24px;
}

.card {
  flex-basis: 33.33%;
  max-width: 33.33%;
  padding: 0 12px;
  margin-bottom: 24px;
  box-sizing: border-box;
}

.card-image {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background-color: var(--sage-card);
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-content {
  background-color: var(--sage-card);
  padding: 24px;
}

.card-title {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 400;
  color: var(--text-head);
  margin-bottom: 12px;
  line-height: 1.25;
}

.card-text {
  font-size: 16px;
  color: var(--text-body);
  line-height: 1.5;
}

/* ============ WHY US ============ */
.section-why {
  background-color: var(--sage);
  padding: 72px 0;
}

.why-grid {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -24px -48px;
}

.why-item {
  flex-basis: 33.33%;
  max-width: 33.33%;
  padding: 0 24px 48px;
  box-sizing: border-box;
}

.why-title {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 400;
  color: var(--text-head);
  margin-bottom: 16px;
  line-height: 1.25;
}

.why-text {
  font-size: 16px;
  color: var(--text-body);
  line-height: 1.5;
}

/* ============ FOUNDERS ============ */
.section-founders {
  background-color: var(--white);
  padding: 72px 0;
}

.founders-grid {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -24px -48px;
}

.founder-card {
  flex-basis: 50%;
  max-width: 50%;
  padding: 0 24px 48px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.founder-img-wrap {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 50%;
  max-width: 200px;
  align-self: center;
}

.founder-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.founder-name {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 400;
  color: var(--text-head);
  text-align: center;
  line-height: 1.25;
}

.founder-bio {
  font-size: 16px;
  color: var(--text-body);
  line-height: 1.5;
  text-align: center;
}

/* ============ CONTACT ============ */
.section-contact {
  background-color: var(--sage);
  padding: 72px 0;
}

.contact-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 48px;
}

.contact-left {
  flex-basis: 0%;
  flex-grow: 1;
  max-width: none;
  min-width: 200px;
}

.left-align { text-align: left; }

.contact-sub {
  font-size: 19px;
  color: var(--text-body);
  margin-top: 8px;
}

.contact-right {
  flex-basis: 83.33%;
  max-width: 83.33%;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.form-field {
  position: relative;
  margin-bottom: 4px;
}

.field-label {
  position: absolute;
  top: 30%;
  left: 15px;
  font-size: 16px;
  color: var(--text-muted);
  pointer-events: none;
  transition: all 0.15s ease;
  z-index: 1;
}

.field-input {
  width: 100%;
  font-family: var(--font-body);
  font-size: 16px;
  color: rgb(71, 71, 71);
  background-color: var(--input-bg);
  border-top: 0;
  border-right: 0;
  border-left: 0;
  border-bottom: 4px solid var(--border);
  border-style: solid;
  border-color: rgb(226, 226, 226);
  border-top-width: 0;
  border-right-width: 0;
  border-bottom-width: 4px;
  border-left-width: 0;
  padding: 23px 16px 7px 16px;
  outline: none;
  resize: none;
}

.field-input:focus {
  border-bottom-color: var(--link-green);
}

.field-input:focus + .field-label,
.field-input:not(:placeholder-shown) + .field-label {
  top: 8px;
  font-size: 11px;
}

/* Override label to be above with standard flow since we're not using placeholder approach */
.form-field {
  display: flex;
  flex-direction: column;
  position: relative;
  margin-bottom: 4px;
}

.field-label {
  position: static;
  font-size: 11px;
  color: var(--text-muted);
  padding: 8px 16px 0;
  background-color: var(--input-bg);
  pointer-events: none;
  display: block;
}

.field-input {
  border-top: 0;
  border-right: 0;
  border-left: 0;
  border-bottom: 4px solid var(--border);
  padding: 4px 16px 11px 16px;
}

.required { color: inherit; }

.form-check {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin: 16px 0;
}

.check-input {
  width: 19px;
  height: 19px;
  min-width: 19px;
  margin-top: 2px;
  border-radius: 2px;
  border: 1px solid rgba(111,111,111,0.5);
  accent-color: var(--link-green);
  cursor: pointer;
  flex-shrink: 0;
}

.check-label {
  font-size: 16px;
  color: rgb(82, 82, 82);
  line-height: 1.5;
  cursor: pointer;
}

.recaptcha-note {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 12px;
  line-height: 1.5;
}

.recaptcha-note a {
  color: var(--link-green);
  text-decoration: underline;
}

.form-success {
  display: none;
  color: rgb(45, 122, 79);
  font-weight: 600;
  margin-top: 12px;
}

/* ============ CTA ============ */
.section-cta {
  background-color: var(--white);
  padding: 72px 0;
}

.cta-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  justify-content: space-between;
}

.cta-text { flex: 1 1 400px; }

.cta-heading {
  font-family: var(--font-head);
  font-size: 26px;
  font-weight: 400;
  color: var(--text-head);
  margin-bottom: 16px;
  line-height: 1.25;
}

.cta-body {
  font-size: 16px;
  color: var(--text-body);
  line-height: 1.5;
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.063em;
  text-transform: uppercase;
  color: var(--white);
  background-color: #25d366;
  padding: 0 32px;
  min-height: 56px;
  border: none;
  border-radius: 0;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.15s ease;
  flex-shrink: 0;
}

.btn-whatsapp:hover { background-color: #1ebe5a; }

/* ============ GRIEVANCE ============ */
.section-grievance {
  background-color: var(--sage);
  padding: 72px 0;
}

.grievance-heading {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 8px;
}

.grievance-sub {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 400;
  color: var(--text-head);
  text-align: center;
  margin-bottom: 32px;
  line-height: 1.25;
}

.grievance-body {
  max-width: 680px;
  margin: 0 auto;
  font-size: 16px;
  color: var(--text-body);
  line-height: 1.7;
}

.grievance-body p { margin-bottom: 16px; }

.grievance-body ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 16px;
}

.grievance-body ul li { margin-bottom: 8px; }

.grievance-body a {
  color: var(--link-green);
}
.grievance-body a:hover {
  color: var(--link-hover);
}

/* ============ FOOTER ============ */
.footer {
  background-color: var(--sage);
  border-top: 1px solid rgba(0,0,0,0.08);
  padding: 32px 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-logo-img {
  height: 50px;
  width: auto;
  object-fit: contain;
}

.footer-links-col {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-body);
}

.footer-links-col a {
  color: var(--link-green);
  transition: color 0.15s ease;
}
.footer-links-col a:hover { color: var(--link-hover); }

.footer-sep { color: var(--border); }

.footer-copy-col {
  font-size: 12px;
  color: var(--text-body);
}

/* ============ COOKIE BANNER ============ */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background-color: var(--white);
  border-top: 1px solid var(--border);
  padding: 16px 24px;
  z-index: 99999;
  display: none;
}

.cookie-banner.show { display: block; }

.cookie-inner {
  max-width: 984px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cookie-title {
  font-weight: 700;
  font-size: 14px;
  color: var(--text-head);
  margin-bottom: 4px;
}

.cookie-text {
  font-size: 13px;
  color: var(--text-body);
  max-width: 640px;
}

.btn-accept {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--white);
  background-color: var(--black);
  border: none;
  padding: 10px 24px;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s ease;
}
.btn-accept:hover { background-color: rgb(40,40,40); }

/* ============ RESPONSIVE ============ */
@media (max-width: 1023px) {
  .nav-inner { padding: 8px 24px; }

  .hero-content {
    width: 100%;
    margin-left: 0;
    padding: 56px 24px;
  }

  .contact-right {
    flex-basis: 100%;
    max-width: 100%;
  }
}

@media (max-width: 767px) {
  .nav-inner { padding: 8px 16px; }

  .logo-img { height: 75px; }

  .menu-toggle { display: block; }

  .nav-links {
    display: none;
    position: absolute;
    top: 91px;
    left: 0; right: 0;
    background: var(--white);
    padding: 16px;
    border-top: 1px solid var(--border);
    z-index: 99;
  }
  .nav-links.open { display: flex; flex-direction: column; align-items: flex-start; }

  .hero { min-height: auto; }
  .hero-content { padding: 40px 16px; }
  .hero-title { font-size: 28px; }
  .hero-sub { font-size: 16px; }

  .card, .why-item {
    flex-basis: 100%;
    max-width: 100%;
  }

  .founder-card {
    flex-basis: 100%;
    max-width: 100%;
  }

  .contact-wrap { flex-direction: column; gap: 24px; }
  .contact-left { min-width: auto; }
  .left-align { text-align: center; }
  .contact-sub { text-align: center; }

  .cta-wrap { flex-direction: column; text-align: center; }

  .footer-inner { flex-direction: column; align-items: center; text-align: center; }
  .footer-links-col { justify-content: center; }

  .section-services,
  .section-why,
  .section-founders,
  .section-contact,
  .section-cta,
  .section-grievance { padding: 40px 0; }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .card, .why-item {
    flex-basis: 50%;
    max-width: 50%;
  }
  .hero-title { font-size: 33px; }
  .hero-sub { font-size: 19px; }
  .section-heading { font-size: 26px; }
}

@media (min-width: 1024px) {
  .hero-title { font-size: 33px; }
  .section-heading { font-size: 26px; }
  .container { max-width: 984px; }
}

@media (min-width: 1280px) {
  .container { max-width: 1160px; }
  .hero-title { font-size: 39px; }
  .section-heading { font-size: 28px; }
}

@media (min-width: 1536px) {
  .container { max-width: 1280px; }
  .hero-title { font-size: 42px; }
  .section-heading { font-size: 32px; }
  body { font-size: 18px; }
}

/* Hero responsive background images */
@media (max-width: 450px) {
  .hero-bg {
    background-image:
      linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0) 100%),
      url("https://img1.wsimg.com/isteam/stock/9729/:/rs=w:450,m");
  }
}
@media (min-width: 451px) and (max-width: 767px) {
  .hero-bg {
    background-image:
      linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0) 100%),
      url("https://img1.wsimg.com/isteam/stock/9729/:/rs=w:767,m");
  }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .hero-bg {
    background-image:
      linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0) 100%),
      url("https://img1.wsimg.com/isteam/stock/9729/:/rs=w:1023,m");
  }
}
@media (min-width: 1024px) and (max-width: 1279px) {
  .hero-bg {
    background-image:
      linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0) 100%),
      url("https://img1.wsimg.com/isteam/stock/9729/:/rs=w:1279,m");
  }
}
@media (min-width: 1280px) {
  .hero-bg {
    background-image:
      linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0) 100%),
      url("https://img1.wsimg.com/isteam/stock/9729/:/rs=w:1920,m");
  }
}
