
/* ==========================================
   SMARTCALC COMPANY PAGES
   About Us + Contact Us
   Responsive, lightweight and mobile-first
========================================== */

.company-page {
  --company-purple: var(--ac, #7657f0);
  --company-purple-light: color-mix(in srgb, var(--ac, #7657f0) 15%, transparent);
  --company-text: var(--tx, #f4f6ff);
  --company-muted: var(--mu, #b7c2df);
  --company-border: var(--bd, #1f2a44);
  --company-bg: var(--bg, #0b1020);
  --company-card: var(--card, #121a2e);

  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px 24px 48px;
  color: var(--company-text);
  font-family: inherit;
  line-height: 1.65;
  box-sizing: border-box;
}

.company-page *,
.company-page *::before,
.company-page *::after {
  box-sizing: border-box;
}

.company-page h1,
.company-page h2,
.company-page h3,
.company-page p {
  margin-top: 0;
}

.company-page h1,
.company-page h2,
.company-page h3 {
  color: var(--company-text);
  letter-spacing: -0.035em;
}

.company-page a {
  -webkit-tap-highlight-color: transparent;
}

.company-page a:focus-visible,
.company-page button:focus-visible,
.company-page input:focus-visible,
.company-page select:focus-visible,
.company-page textarea:focus-visible {
  outline: 3px solid rgba(124, 92, 255, 0.45);
  outline-offset: 3px;
}

/* Top navigation */

.company-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.company-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--company-muted);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.company-back:hover {
  color: var(--company-purple);
}

.company-breadcrumb {
  color: var(--company-muted);
  font-size: 12px;
}

/* Hero */

.company-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 5vw, 60px);
  margin-bottom: 52px;
  background: radial-gradient(circle at 100% 100%, color-mix(in srgb, var(--ac, #7657f0) 12%, transparent), transparent 28%), var(--card, #121a2e);
  border: 1px solid var(--company-border);
  border-radius: 24px;
}

.company-hero::after {
  content: "";
  position: absolute;
  width: 230px;
  height: 230px;
  right: -95px;
  bottom: -120px;
  border-radius: 50%;
  background: rgba(124, 92, 255, 0.08);
  pointer-events: none;
}

.company-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  color: var(--company-purple);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.company-eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #7c5cff;
  box-shadow: 0 0 0 4px rgba(124, 92, 255, 0.12);
}

.company-hero h1 {
  max-width: 780px;
  margin-bottom: 20px;
  font-size: clamp(34px, 5.2vw, 56px);
  font-weight: 850;
  line-height: 1.12;
}

.company-hero h1 span {
  color: var(--company-purple);
}

.company-hero-description {
  max-width: 680px;
  margin-bottom: 26px;
  color: var(--company-muted);
  font-size: 16px;
  line-height: 1.85;
}

.company-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 12px 20px;
  color: #ffffff;
  background: var(--company-purple);
  border: 1px solid var(--company-purple);
  border-radius: 11px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition:
    background 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.company-button:hover {
  filter: brightness(1.08);
  box-shadow: 0 7px 20px rgba(79, 50, 216, 0.17);
  transform: translateY(-2px);
}

.company-button:active {
  transform: translateY(0);
}

/* Shared sections */

.company-section {
  margin-bottom: 54px;
}

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

.company-kicker {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--company-purple);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.company-section-heading h2,
.company-about-panel h2,
.company-cta h2,
.company-contact-strip h2,
.contact-info h2,
.contact-form-card h2,
.contact-bottom h2 {
  margin-bottom: 14px;
  font-size: clamp(23px, 3vw, 32px);
  font-weight: 800;
  line-height: 1.25;
}

.company-section-heading p,
.company-about-panel > div > p {
  color: var(--company-muted);
  font-size: 14px;
  line-height: 1.9;
}

/* Feature cards */

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

.company-card {
  padding: 25px;
  background: var(--company-card);
  border: 1px solid var(--company-border);
  border-radius: 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.company-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(35, 44, 85, 0.06);
}

.company-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 19px;
  color: var(--company-purple);
  background: var(--company-purple-light);
  border-radius: 12px;
  font-size: 24px;
  font-weight: 800;
}

.company-card h3 {
  margin-bottom: 9px;
  font-size: 16px;
  font-weight: 750;
}

.company-card p {
  margin-bottom: 0;
  color: var(--company-muted);
  font-size: 13px;
  line-height: 1.8;
}

/* About feature panel */

.company-about-panel {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 44px;
  align-items: center;
  padding: clamp(24px, 4vw, 42px);
  margin-bottom: 42px;
  background: var(--company-card);
  border: 1px solid var(--company-border);
  border-radius: 20px;
}

.company-about-panel h2 {
  max-width: 470px;
}

.company-about-panel > div > p:last-child {
  margin-bottom: 0;
}

.company-feature-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.company-feature {
  display: flex;
  align-items: flex-start;
  gap: 13px;
}

.company-feature > span {
  display: flex;
  flex: 0 0 27px;
  align-items: center;
  justify-content: center;
  width: 27px;
  height: 27px;
  color: var(--company-purple);
  background: var(--company-purple-light);
  border-radius: 50%;
  font-size: 13px;
  font-weight: 800;
}

.company-feature h3 {
  margin-bottom: 4px;
  font-size: 14px;
  font-weight: 750;
}

.company-feature p {
  margin-bottom: 0;
  color: var(--company-muted);
  font-size: 12px;
  line-height: 1.7;
}

/* Call-to-action */

.company-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 32px;
  margin-bottom: 34px;
  color: #ffffff;
  background: var(--g, linear-gradient(90deg, #6546df, #245fc7));
  border-radius: 18px;
}

.company-cta h2 {
  color: #ffffff;
  font-size: clamp(21px, 3vw, 28px);
}

.company-cta p {
  margin-bottom: 0;
  color: #e7e0ff;
  font-size: 13px;
}

.company-button-light {
  flex-shrink: 0;
  color: var(--company-purple);
  background: var(--company-bg);
  border-color: #ffffff;
}

.company-button-light:hover {
  color: #3e25bc;
  background: #f5f2ff;
}

.company-contact-strip,
.contact-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
  padding: 25px 0 8px;
  border-top: 1px solid var(--company-border);
}

.company-contact-strip h2,
.contact-bottom h2 {
  margin-bottom: 7px;
  font-size: 20px;
}

.company-contact-strip p,
.contact-bottom p {
  margin-bottom: 0;
  color: var(--company-muted);
  font-size: 13px;
}

.company-text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  color: var(--company-purple);
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
}

.company-text-link:hover {
  text-decoration: underline;
}

/* ==========================================
   CONTACT PAGE
========================================== */

.contact-hero {
  margin-bottom: 30px;
  padding-top: 40px;
  padding-bottom: 40px;
}

.contact-hero h1 {
  font-size: clamp(32px, 4.5vw, 48px);
}

.contact-hero .company-hero-description {
  margin-bottom: 0;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 24px;
  align-items: start;
  margin-bottom: 44px;
}

.contact-info,
.contact-form-card {
  min-width: 0;
  padding: clamp(22px, 3vw, 32px);
  background: var(--company-card);
  border: 1px solid var(--company-border);
  border-radius: 18px;
}

.contact-info h2,
.contact-form-card h2 {
  font-size: 26px;
}

.contact-info-description,
.contact-form-intro {
  margin-bottom: 25px;
  color: var(--company-muted);
  font-size: 13px;
  line-height: 1.85;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 19px 0;
  border-top: 1px solid var(--company-border);
}

.contact-info-icon {
  display: flex;
  flex: 0 0 40px;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--company-purple);
  background: var(--company-purple-light);
  border-radius: 11px;
  font-size: 18px;
  font-weight: 750;
}

.contact-info-item h3 {
  margin-bottom: 5px;
  font-size: 14px;
  font-weight: 750;
}

.contact-info-item p {
  margin-bottom: 7px;
  color: var(--company-muted);
  font-size: 12px;
  line-height: 1.8;
}

.contact-info-item a {
  color: var(--company-purple);
  font-size: 12px;
  font-weight: 700;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.contact-info-item a:hover {
  text-decoration: underline;
}

.contact-note {
  padding: 16px;
  margin-top: 14px;
  background: color-mix(in srgb, var(--ac, #7657f0) 9%, var(--card, #121a2e));
  border: 1px solid var(--company-border);
  border-radius: 12px;
}

.contact-note strong {
  display: block;
  margin-bottom: 5px;
  color: var(--company-purple);
  font-size: 12px;
}

.contact-note p {
  margin-bottom: 0;
  color: var(--company-muted);
  font-size: 12px;
  line-height: 1.8;
}

/* Contact form */

.contact-form-card form {
  display: flex;
  flex-direction: column;
  gap: 19px;
}

.contact-field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}

.contact-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.contact-field label {
  color: var(--company-text);
  font-size: 12px;
  font-weight: 750;
}

.contact-field input,
.contact-field select,
.contact-field textarea {
  width: 100%;
  min-width: 0;
  padding: 12px 13px;
  color: var(--company-text);
  background: var(--company-bg);
  border: 1px solid var(--company-border);
  border-radius: 10px;
  font: inherit;
  font-size: 13px;
  line-height: 1.6;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-field input,
.contact-field select {
  min-height: 45px;
}

.contact-field textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-field input::placeholder,
.contact-field textarea::placeholder {
  color: var(--company-muted);
}

.contact-field input:focus,
.contact-field select:focus,
.contact-field textarea:focus {
  border-color: var(--ac2, var(--ac, #7657f0));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ac, #7657f0) 18%, transparent);
  outline: none;
}

.contact-character-count {
  color: var(--company-muted);
  font-size: 11px;
  text-align: right;
}

.contact-submit {
  width: 100%;
  min-height: 48px;
  margin-top: 2px;
}

.contact-form-status {
  margin: 0;
  color: var(--company-purple);
  font-size: 12px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.contact-form-disclaimer {
  margin: -7px 0 0;
  color: var(--company-muted);
  font-size: 11px;
  line-height: 1.8;
  text-align: center;
}

.contact-bottom {
  margin-top: 10px;
}

/* ==========================================
   TABLET
========================================== */

@media (max-width: 900px) {
  .company-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .company-about-panel {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .contact-info {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 22px;
  }

  .contact-info > .company-kicker,
  .contact-info > h2,
  .contact-info > .contact-info-description,
  .contact-info > .contact-note {
    grid-column: 1 / -1;
  }

  .contact-info-item {
    align-self: start;
  }
}

/* ==========================================
   MOBILE
========================================== */

@media (max-width: 600px) {
  .company-page {
    padding: 15px 15px 32px;
  }

  .company-topbar {
    align-items: flex-start;
    margin-bottom: 20px;
  }

  .company-breadcrumb {
    font-size: 11px;
  }

  .company-hero {
    padding: 27px 21px;
    margin-bottom: 35px;
    border-radius: 17px;
  }

  .company-hero h1 {
    font-size: clamp(30px, 8vw, 42px);
  }

  .company-hero-description {
    font-size: 14px;
    line-height: 1.8;
  }

  .company-button {
    width: 100%;
    min-height: 46px;
  }

  .company-section {
    margin-bottom: 38px;
  }

  .company-section-heading {
    text-align: left;
  }

  .company-card-grid {
    grid-template-columns: 1fr;
    gap: 13px;
  }

  .company-card {
    padding: 21px;
  }

  .company-about-panel {
    padding: 22px 19px;
    margin-bottom: 30px;
    border-radius: 16px;
  }

  .company-feature-list {
    gap: 18px;
  }

  .company-cta {
    flex-direction: column;
    align-items: stretch;
    padding: 24px 20px;
    border-radius: 16px;
  }

  .company-contact-strip,
  .contact-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .company-contact-strip .company-text-link,
  .contact-bottom .company-text-link {
    align-self: flex-start;
  }

  .contact-hero {
    margin-bottom: 22px;
  }

  .contact-info,
  .contact-form-card {
    display: block;
    padding: 22px 18px;
    border-radius: 15px;
  }

  .contact-info-item {
    padding: 16px 0;
  }

  .contact-field-row {
    grid-template-columns: 1fr;
    gap: 19px;
  }

  .contact-form-card form {
    gap: 18px;
  }
}

/* Small phones */

@media (max-width: 360px) {
  .company-page {
    padding-right: 12px;
    padding-left: 12px;
  }

  .company-hero {
    padding: 23px 17px;
  }

  .company-hero h1 {
    font-size: 29px;
  }

  .company-breadcrumb {
    width: 100%;
  }

  .contact-info,
  .contact-form-card {
    padding: 19px 14px;
  }
}


/* SmartCalc theme integration */
html,
body {
  min-height: 100%;
  background: var(--bg, #0b1020);
  color: var(--tx, #f4f6ff);
}

.company-page {
  width: min(100% - 32px, 980px);
  max-width: 980px;
  background: transparent;
  color: var(--tx, #f4f6ff);
}

/* The existing breadcrumb is not the site navbar. */
.company-page > .company-topbar {
  display: none !important;
}

.company-page .company-hero,
.company-page .company-card,
.company-page .company-about-panel,
.company-page .contact-info,
.company-page .contact-form-card {
  color: var(--tx);
  background-color: var(--card);
  border-color: var(--bd);
}

.company-page h1,
.company-page h2,
.company-page h3,
.company-page .contact-field label {
  color: var(--tx);
}

.company-page p,
.company-page .company-hero-description,
.company-page .company-section-heading p,
.company-page .company-card p,
.company-page .company-about-panel p,
.company-page .company-feature p,
.company-page .contact-info-item p,
.company-page .contact-form-intro,
.company-page .contact-form-disclaimer,
.company-page .company-contact-strip p,
.company-page .contact-bottom p {
  color: var(--mu);
}

.company-page .company-eyebrow,
.company-page .company-kicker,
.company-page .company-hero h1 span,
.company-page .company-text-link,
.company-page .contact-info-item a,
.company-page .contact-note strong {
  color: var(--ac2, var(--ac));
}

.company-page .company-icon,
.company-page .company-feature > span,
.company-page .contact-info-icon {
  color: var(--ac2, var(--ac));
  background: color-mix(in srgb, var(--ac) 15%, var(--card));
}

.company-page .company-button {
  color: #fff;
  background: var(--g, var(--ac));
  border-color: transparent;
}

.company-page .company-button:hover {
  filter: brightness(1.08);
}

.company-page .company-button-light {
  color: var(--ac2, var(--ac));
  background: var(--card);
  border-color: var(--bd);
}

.company-page .company-button-light:hover {
  color: var(--ac2, var(--ac));
  background: var(--bg);
}

.company-page .contact-field input,
.company-page .contact-field select,
.company-page .contact-field textarea {
  color: var(--tx);
  background: var(--bg);
  border-color: var(--bd);
  color-scheme: light dark;
}

.company-page .contact-field input::placeholder,
.company-page .contact-field textarea::placeholder {
  color: var(--mu);
  opacity: .8;
}

.company-page .contact-field input:focus,
.company-page .contact-field select:focus,
.company-page .contact-field textarea:focus {
  border-color: var(--ac2, var(--ac));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ac) 18%, transparent);
}

.company-page .contact-note {
  color: var(--tx);
  background: color-mix(in srgb, var(--ac) 9%, var(--card));
  border-color: var(--bd);
}

.company-page .company-cta {
  color: #fff;
  background: var(--g, linear-gradient(90deg, #6546df, #245fc7));
}

.company-page .company-cta h2 {
  color: #fff;
}

.company-page .company-cta p {
  color: rgba(255,255,255,.88);
}

.company-page .company-cta .company-button-light {
  color: var(--ac);
  background: #fff;
  border-color: #fff;
}

.company-page .company-cta .company-button-light:hover {
  background: #f4f1ff;
}

.site-footer {
  color: var(--tx);
  background: var(--card);
  border-color: var(--bd);
}

.site-footer .footer-logo,
.site-footer .footer-column h3 {
  color: var(--tx);
}

.site-footer .footer-column a,
.site-footer .footer-brand p,
.site-footer .footer-bottom p {
  color: var(--mu);
}

.site-footer a:hover {
  color: var(--ac2, var(--ac));
}

@media (max-width: 600px) {
  .company-page {
    width: calc(100% - 28px);
    padding: 18px 0 30px;
  }

  .company-page .company-button {
    width: 100%;
  }

  .company-page .company-cta {
    align-items: stretch;
  }
}

@media (prefers-reduced-motion: reduce) {
  .company-page *,
  .company-page *::before,
  .company-page *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
