
/* =====================================
   COMEPAY WEBSITE - MAIN STYLESHEET
   Domain: comepay.in
   Theme: Blue + Orange + Yellow
===================================== */

:root {
  --primary: #0878e8;
  --primary-dark: #0755bd;
  --primary-light: #eaf4ff;

  --secondary: #fff3e5;
  --orange: #f47b08;
  --orange-dark: #d95d00;

  --yellow: #ffbe18;
  --green: #25ad55;

  --telegram: #229ed9;

  --text: #1d2b42;
  --muted: #64748b;

  --background: #f4f8ff;
  --white: #ffffff;
  --border: #e2eaf4;

  --shadow: 0 8px 28px rgba(8, 70, 140, 0.07);
  --radius: 14px;
}

/* GLOBAL */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: var(--background);
  color: var(--text);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

/* HEADER */

.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-container {
  max-width: 1150px;
  margin: auto;
  min-height: 74px;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--primary);
}

.brand img {
  width: 45px;
  height: 45px;
  object-fit: contain;
  border-radius: 9px;
}

.main-menu {
  display: flex;
  align-items: center;
  gap: 20px;
}

.main-menu a {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  transition: color 0.2s ease;
}

.main-menu a:hover {
  color: var(--orange);
}

/* MOBILE MENU BUTTON */

.menu-toggle {
  display: none;
  background: transparent;
  border: 0;
  width: 42px;
  height: 42px;
  cursor: pointer;
  padding: 9px;
}

.menu-toggle span {
  display: block;
  width: 23px;
  height: 2px;
  margin: 5px auto;
  background: var(--primary);
  border-radius: 5px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-toggle.active span:first-child {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:last-child {
  transform: translateY(-7px) rotate(-45deg);
}

/* HERO SECTION */

.hero-section {
  max-width: 900px;
  margin: 32px auto 24px;
  padding: 30px 20px;
  text-align: center;
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--primary);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 22px;
}

.hero-logo img {
  width: 155px;
  height: 155px;
  object-fit: contain;
  border-radius: 15px;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

/* BUTTONS */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  max-width: 310px;
  min-height: 48px;
  padding: 10px 18px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.2s ease,
              transform 0.2s ease,
              box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

/* REGISTER BUTTON */

.btn-primary {
  background: linear-gradient(110deg, #0878e8, #0755bd);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(8, 120, 232, 0.20);
}

.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 6px 16px rgba(8, 120, 232, 0.25);
}

/* REFER CODE BUTTON */

.btn-outline {
  background: var(--white);
  color: var(--orange-dark);
  border: 1px solid var(--orange);
}

.btn-outline:hover {
  background: var(--secondary);
}

/* TELEGRAM BUTTON */

.btn-telegram {
  background: var(--telegram);
  color: var(--white);
}

.btn-telegram:hover {
  background: #1687bf;
}

.independent-note {
  margin-top: 20px;
  color: var(--muted);
  font-size: 12px;
}

/* MAIN CONTENT */

main {
  max-width: 900px;
  margin: auto;
  padding: 0 15px 30px;
}

.content-card {
  background: var(--white);
  padding: 27px 30px;
  margin-bottom: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.intro-section {
  border-top: 3px solid var(--primary);
}

/* SECTION LABEL */

.section-tag {
  display: inline-block;
  color: var(--orange-dark);
  background: var(--secondary);
  padding: 4px 10px;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.8px;
  margin-bottom: 12px;
}

/* HEADINGS */

h1 {
  color: #0755bd;
  font-size: 29px;
  line-height: 1.35;
  margin-bottom: 16px;
}

h2 {
  font-size: 21px;
  color: #0870d5;
  line-height: 1.45;
  margin-bottom: 12px;
}

h3 {
  font-size: 17px;
  color: var(--text);
  margin-bottom: 12px;
}

p {
  color: #526176;
  font-size: 14px;
  margin-bottom: 12px;
}

p:last-child {
  margin-bottom: 0;
}

/* CONTENT LINKS */

.content-card a {
  color: var(--primary);
  font-weight: 600;
}

.content-card a:hover {
  color: var(--orange-dark);
  text-decoration: underline;
}

/* FAQ */

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  width: 100%;
  padding: 16px 2px;
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.faq-question span {
  font-size: 20px;
  color: var(--orange);
  transition: transform 0.2s ease;
}

.faq-item.active .faq-question span {
  transform: rotate(45deg);
}

.faq-answer {
  display: none;
  padding: 0 5px 15px;
}

.faq-item.active .faq-answer {
  display: block;
}

/* PAGE HEADER */

.page-header {
  padding: 28px 30px;
  background: linear-gradient(120deg, #eaf4ff, #fff3e5);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius);
  margin-bottom: 18px;
}

.page-header h1 {
  margin-bottom: 8px;
}

.page-header p {
  margin-bottom: 0;
}

/* CONTACT */

.contact-info {
  display: grid;
  gap: 14px;
}

.contact-item {
  padding: 16px;
  background: var(--primary-light);
  border: 1px solid var(--border);
  border-radius: 9px;
}

/* FOOTER */

.site-footer {
  background: #102b50;
  color: var(--white);
  margin-top: 25px;
}

.footer-container {
  max-width: 1150px;
  padding: 42px 20px 18px;
  margin: auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 28px;
}

.footer-brand .brand {
  color: var(--white);
  margin-bottom: 13px;
}

.footer-brand p,
.footer-disclaimer p {
  color: #c5d5e9;
  font-size: 12px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-links h3 {
  color: var(--yellow);
  font-size: 15px;
}

.footer-links a {
  color: #c5d5e9;
  font-size: 13px;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--yellow);
}

.footer-disclaimer {
  grid-column: 1 / -1;
  padding: 16px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 9px;
  background: rgba(255,255,255,0.035);
}

.footer-bottom {
  grid-column: 1 / -1;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.14);
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.footer-bottom p {
  color: #c5d5e9;
  font-size: 11px;
}

/* RESPONSIVE TABLET */

@media (max-width: 850px) {

  .menu-toggle {
    display: block;
  }

  .main-menu {
    position: absolute;
    top: 73px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 12px 20px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    transition: max-height 0.3s ease,
                padding 0.3s ease,
                visibility 0.3s ease;
  }

  .main-menu.open {
    max-height: 420px;
    padding: 10px 20px 18px;
    visibility: visible;
  }

  .main-menu a {
    padding: 10px 5px;
    border-bottom: 1px solid var(--border);
  }

  .footer-container {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

/* RESPONSIVE MOBILE */

@media (max-width: 600px) {

  .header-container {
    min-height: 65px;
    padding: 8px 15px;
  }

  .brand {
    font-size: 18px;
  }

  .brand img {
    width: 39px;
    height: 39px;
  }

  .main-menu {
    top: 64px;
  }

  .hero-section {
    margin: 18px 12px;
    padding: 24px 16px;
  }

  .hero-logo img {
    width: 135px;
    height: 135px;
  }

  main {
    padding: 0 12px 20px;
  }

  .content-card {
    padding: 21px 17px;
    margin-bottom: 13px;
  }

  h1 {
    font-size: 24px;
  }

  h2 {
    font-size: 19px;
  }

  p {
    font-size: 13.5px;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 25px;
    padding: 30px 18px 15px;
  }

  .footer-brand,
  .footer-disclaimer,
  .footer-bottom {
    grid-column: auto;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 3px;
  }

  .page-header {
    padding: 22px 18px;
  }
}

/* ACCESSIBILITY */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
