/* ==========================================================================
   OneCosec.com — Site Stylesheet
   Pure CSS, no framework. Brand colors are controlled by the variables below.
   To retheme the whole site, edit :root only.
   ========================================================================== */

:root {
  /* Brand palette — swap these to match the OneCosec logo */
  --brand: #4285F4;            /* logo blue */
  --brand-dark: #123274;       /* deep navy */
  --brand-deeper: #0B1F4B;
  --brand-bright: #1D4ED8;
  --brand-light: #E8F0FE;
  --accent: #F9AB00;           /* logo yellow/gold */
  --accent-dark: #E08600;
  --green: #34A853;            /* logo green */
  --red: #EA4335;              /* logo red */
  --yellow: #FBBC05;           /* logo yellow */
  --rainbow: linear-gradient(90deg,#4285F4 0 25%,#EA4335 25% 50%,#FBBC05 50% 75%,#34A853 75% 100%);
  --ink: #16213A;
  --body: #3E4964;
  --muted: #55617D;
  --line: #DDE4F0;
  --bg-soft: #F6F8FC;
  --white: #ffffff;
  --success: #0E9F6E;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 8px 30px rgba(16, 24, 40, .08);
  --shadow-lg: 0 16px 48px rgba(16, 24, 40, .14);
  --maxw: 1180px;
  --font-display: 'Space Grotesk', 'Inter', -apple-system, 'Segoe UI', sans-serif;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font); color: var(--body); background: var(--white); line-height: 1.65; font-size: 16px; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }
ul, ol { padding-left: 1.2em; }
h1, h2, h3, h4, h5 { color: var(--ink); line-height: 1.25; font-weight: 700; }
h1, h2 { font-family: var(--font-display); }
h1 { font-size: clamp(1.9rem, 4vw, 3rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); letter-spacing: -.015em; }
h3 { font-size: 1.25rem; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--brand); color: #fff; padding: 10px 16px; z-index: 999; }
.skip-link:focus { left: 0; }

.btn { display: inline-block; padding: 13px 26px; border-radius: 999px; font-weight: 600; font-size: .97rem; transition: all .18s ease; border: 2px solid transparent; cursor: pointer; text-align: center; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-bright); color: #fff; transform: translateY(-1px); box-shadow: 0 6px 18px rgba(66,133,244,.4); }
.btn-outline { border-color: rgba(255,255,255,.7); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn-ghost { border-color: var(--brand); color: var(--brand); }
.btn-ghost:hover { background: var(--brand-light); }
.btn-brand { background: var(--brand-dark); color: #fff; }
.btn-brand:hover { background: var(--brand-deeper); color: #fff; }
.btn-sm { padding: 9px 18px; font-size: .9rem; }

.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav-wrap { display: flex; align-items: center; gap: 28px; height: 72px; }
.logo img { height: 44px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 6px; flex: 1; }
.main-nav > li { list-style: none; position: relative; }
.main-nav a.nav-link { display: block; padding: 10px 14px; color: var(--ink); font-weight: 500; font-size: .95rem; border-radius: var(--radius-sm); }
.main-nav a.nav-link:hover, .main-nav li.open > a.nav-link { background: var(--bg-soft); color: var(--brand); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.dropdown-toggle::after { content: "\25BE"; font-size: .7em; margin-left: 6px; opacity: .6; }

.dropdown-menu { display: none; position: absolute; top: 100%; left: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 22px; min-width: 300px; }
.dropdown-menu.mega { width: 940px; max-width: calc(100vw - 40px); display: none; grid-template-columns: repeat(3, 1fr); gap: 4px 20px; }
li.open > .dropdown-menu { display: block; }
li.open > .dropdown-menu.mega { display: grid; }
.dropdown-menu .menu-group-title { grid-column: 1 / -1; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; margin: 8px 0 2px; }
.dropdown-menu a { display: block; padding: 8px 10px; border-radius: var(--radius-sm); color: var(--ink); }
.dropdown-menu a:hover { background: var(--brand-light); }
.dropdown-menu a strong { display: block; font-size: .93rem; }
.dropdown-menu a span { display: block; font-size: .8rem; color: var(--muted); }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .2s; }

@media (max-width: 1020px) {
  .nav-toggle { display: block; margin-left: auto; }
  .main-nav { display: none; position: absolute; top: 72px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; padding: 14px 20px 24px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg); max-height: calc(100vh - 72px); overflow-y: auto; }
  .main-nav.open { display: flex; }
  .dropdown-menu, .dropdown-menu.mega { position: static; width: auto; box-shadow: none; border: 0; padding: 4px 0 10px 14px; grid-template-columns: 1fr; }
  .nav-cta { display: none; }
}

.hero { background: linear-gradient(160deg, var(--brand-deeper) 0%, var(--brand-dark) 55%, var(--brand-bright) 100%); color: #fff; padding: 84px 0 90px; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -180px; top: -180px; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255,255,255,.10), transparent); }
.hero h1 { color: #fff; margin-bottom: 18px; }
.hero h1 em, .hero h1 strong { color: #7FD9D9; font-style: normal; }
.hero p.sub { font-size: 1.15rem; color: rgba(255,255,255,.88); max-width: 640px; margin-bottom: 30px; }
.hero .actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero .note { font-size: .85rem; color: rgba(255,255,255,.75); margin-top: 14px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; position: relative; z-index: 1; }
.hero-grid img { border-radius: var(--radius); box-shadow: var(--shadow-lg); }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

.page-hero { background: linear-gradient(160deg, var(--brand-deeper) 0%, var(--brand-dark) 55%, var(--brand-bright) 100%); color: #fff; padding: 64px 0; }
.page-hero h1 { color: #fff; }
.page-hero h1 strong { color: #7FD9D9; }
.page-hero p { color: rgba(255,255,255,.85); max-width: 720px; margin-top: 12px; }
.page-hero .actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 24px; }
.page-hero .note { font-size: .85rem; color: rgba(255,255,255,.75); margin-top: 12px; }

.stats { padding: 56px 0; background: var(--bg-soft); }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.stat-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; text-align: center; box-shadow: var(--shadow); }
.stat-card .num { font-size: 2.6rem; font-weight: 800; color: var(--brand); letter-spacing: -.03em; }
.stat-card .label { font-weight: 700; color: var(--ink); margin-top: 4px; }
.stat-card .desc { font-size: .9rem; color: var(--muted); margin-top: 6px; }
@media (max-width: 780px) { .stats-grid { grid-template-columns: 1fr; } }

.section { padding: 72px 0; }
.section.soft { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 48px; }
.section-head .kicker { display: inline-block; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: #6B5316; background: #FFF6DC; padding: 5px 14px; border-radius: 999px; margin-bottom: 14px; }
.section-head p { color: var(--muted); margin-top: 12px; }
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 34px 0; }
.feature-row img { border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); }
.feature-row h3 { font-size: 1.45rem; margin-bottom: 12px; }
.feature-row p { margin-bottom: 14px; }
.feature-row .benefits { list-style: none; padding: 0; margin-top: 6px; }
.feature-row .benefits li { padding-left: 30px; position: relative; margin-bottom: 10px; }
.feature-row .benefits li::before { content: "\2713"; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%; background: #e7f7ef; color: var(--success); font-size: .75rem; display: flex; align-items: center; justify-content: center; font-weight: 800; }
.feature-row .benefits strong { color: var(--ink); }
@media (max-width: 880px) { .feature-row { grid-template-columns: 1fr; gap: 26px; } .feature-row.rev .media { order: -1; } }
@media (min-width: 881px) { .feature-row.rev .media { order: 2; } }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cards.cols-4 { grid-template-columns: repeat(4, 1fr); }
.cards.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); transition: transform .18s ease, box-shadow .18s ease; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card h3 { margin-bottom: 8px; font-size: 1.08rem; }
.card p { font-size: .93rem; color: var(--muted); }
.card .icon { width: 46px; height: 46px; border-radius: 12px; background: var(--brand-light); color: var(--brand); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; margin-bottom: 14px; }
@media (max-width: 980px) { .cards, .cards.cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .cards, .cards.cols-4, .cards.cols-2 { grid-template-columns: 1fr; } }

.logo-strip { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 38px; padding: 10px 0; }
.logo-strip img { height: 52px; width: auto; filter: grayscale(1); opacity: .65; transition: .2s; }
.logo-strip img:hover { filter: none; opacity: 1; }
.trust-note { text-align: center; color: var(--muted); font-size: .9rem; margin-bottom: 26px; }

.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.tcard { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.tcard blockquote { font-size: .95rem; color: var(--body); flex: 1; }
.tcard .who { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.tcard .who img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.tcard .who strong { display: block; font-size: .9rem; color: var(--ink); }
.tcard .who span { font-size: .8rem; color: var(--muted); }
@media (max-width: 880px) { .testimonials { grid-template-columns: 1fr; } }

.cta-banner { background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand-bright) 100%); border-radius: var(--radius); color: #fff; padding: 54px 40px; text-align: center; }
.cta-banner h2 { color: #fff; margin-bottom: 10px; }
.cta-banner p { color: rgba(255,255,255,.85); margin-bottom: 26px; }
.cta-banner .note { font-size: .85rem; margin-top: 12px; margin-bottom: 0; color: rgba(255,255,255,.7); }

.promo-box { background: #fdf3e2; border: 1px solid #f5d9a8; border-radius: var(--radius); padding: 26px 30px; text-align: center; margin-bottom: 44px; }
.promo-box h3 { color: var(--accent-dark); }
.promo-box p { color: var(--body); margin-top: 6px; }
.toggle-row { display: flex; justify-content: center; align-items: center; gap: 14px; margin: 30px 0 40px; flex-wrap: wrap; }
.toggle-row .hint { font-size: .8rem; color: var(--success); font-weight: 700; }
.seg { display: inline-flex; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 999px; padding: 4px; }
.seg button { border: 0; background: transparent; padding: 9px 22px; border-radius: 999px; font-weight: 600; font-family: var(--font); cursor: pointer; color: var(--muted); }
.seg button.active { background: var(--brand); color: #fff; }
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.plan { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.plan.featured { border-color: var(--brand); border-width: 2px; position: relative; }
.plan.featured::before { content: "Most popular"; position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--brand); color: #fff; font-size: .72rem; font-weight: 700; padding: 4px 14px; border-radius: 999px; }
.plan h3 { font-size: 1.15rem; }
.plan .price { font-size: 2.2rem; font-weight: 800; color: var(--ink); margin: 12px 0 2px; letter-spacing: -.02em; }
.plan .price small { font-size: .85rem; font-weight: 500; color: var(--muted); }
.plan .billing-note { font-size: .8rem; color: var(--muted); margin-bottom: 16px; }
.plan ul { list-style: none; padding: 0; margin: 14px 0 22px; font-size: .9rem; }
.plan ul li { padding: 6px 0 6px 26px; position: relative; border-bottom: 1px dashed var(--line); }
.plan ul li::before { content: "\2713"; position: absolute; left: 0; color: var(--success); font-weight: 800; }
.plan .btn { margin-top: auto; }
@media (max-width: 1080px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .plans { grid-template-columns: 1fr; } }

.faq-item { border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 12px; background: #fff; overflow: hidden; }
.faq-item summary { cursor: pointer; padding: 18px 22px; font-weight: 600; color: var(--ink); list-style: none; position: relative; padding-right: 48px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 1.3rem; color: var(--brand); font-weight: 400; }
.faq-item[open] summary::after { content: "\2013"; }
.faq-item .faq-body { padding: 0 22px 18px; color: var(--body); font-size: .95rem; }
.faq-cat { margin: 40px 0 18px; }

.prose { max-width: 860px; margin: 0 auto; }
.prose h2 { margin: 38px 0 14px; font-size: 1.35rem; }
.prose h3 { margin: 26px 0 10px; font-size: 1.1rem; }
.prose p, .prose li { margin-bottom: 12px; font-size: .97rem; }
.prose ol, .prose ul { margin: 10px 0 16px 22px; }

.contact-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-bottom: 40px; }
.offices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.office { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; text-align: center; }
.office img { height: 34px; margin: 0 auto 12px; }
.office h3 { font-size: 1rem; letter-spacing: .06em; }
.office p { font-size: .92rem; color: var(--muted); margin-top: 8px; }
@media (max-width: 880px) { .contact-cards, .offices { grid-template-columns: 1fr; } }

.site-footer { background: #0d1526; color: #b6c0d4; padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 34px; }
.site-footer h4 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: #b6c0d4; font-size: .92rem; }
.site-footer a:hover { color: #fff; }
.footer-brand img { height: 42px; margin-bottom: 14px; background: #fff; padding: 8px 14px; border-radius: 10px; box-sizing: content-box; }
.footer-brand p { font-size: .9rem; max-width: 280px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 44px; padding-top: 24px; display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; font-size: .85rem; }
.footer-bottom .legal-links a { margin-right: 16px; }
@media (max-width: 980px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

.lead { font-size: 1.12rem; color: var(--body); }
.center { text-align: center; }
.mt-1 { margin-top: 10px; } .mt-2 { margin-top: 20px; } .mt-3 { margin-top: 32px; } .mt-4 { margin-top: 48px; }
.mb-2 { margin-bottom: 20px; } .mb-3 { margin-bottom: 32px; }
.badge { display: inline-block; background: var(--brand-light); color: var(--brand); font-size: .75rem; font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.badge.soon { background: #fdf3e2; color: var(--accent-dark); }
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease; }
[data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { [data-reveal] { opacity: 1; transform: none; transition: none; } }

.rainbow-bar { height: 4px; background: var(--rainbow); }

/* Dropdown hover-bridge: keeps the menu open while the cursor crosses from
   the trigger to the menu (fixes menu closing before it can be clicked). */
.dropdown-menu::before { content: ""; position: absolute; top: -14px; left: 0; right: 0; height: 14px; }
.main-nav li.has-dropdown { padding-bottom: 0; }
@media (min-width: 1021px) {
  .main-nav li.has-dropdown:hover > .dropdown-menu { display: block; }
  .main-nav li.has-dropdown:hover > .dropdown-menu.mega { display: grid; }
}

/* Testimonial slider ------------------------------------------------------- */
.tslider-wrap { position: relative; padding: 0 46px; }
.tslider { display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 10px 4px 22px; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.tslide { flex: 0 0 360px; max-width: 86vw; scroll-snap-align: start; }
.tslide blockquote { font-size: .93rem; }
.tnav { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--brand); font-size: 1.5rem; line-height: 1; cursor: pointer; box-shadow: var(--shadow); z-index: 2; transition: .15s; }
.tnav:hover { background: var(--brand); color: #fff; }
.tprev { left: 0; } .tnext { right: 0; }
@media (max-width: 620px) { .tslider-wrap { padding: 0 8px; } .tnav { display: none; } .tslide { flex-basis: 84vw; } }

/* Avatar with initials fallback */
.avatar { position: relative; width: 48px; height: 48px; border-radius: 50%; overflow: hidden; flex: 0 0 48px; background: var(--brand); display: flex; align-items: center; justify-content: center; }
.avatar i { font-style: normal; color: #fff; font-weight: 700; font-size: .95rem; letter-spacing: .02em; }
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Mega-menu item icons */
.dropdown-menu a { display: flex; gap: 10px; align-items: flex-start; }
.dropdown-menu .mi { width: 34px; height: 34px; border-radius: 8px; background: var(--brand-light); color: var(--brand); display: flex; align-items: center; justify-content: center; flex: 0 0 34px; margin-top: 2px; }
.dropdown-menu .mi svg { width: 18px; height: 18px; }
.dropdown-menu .mtxt { min-width: 0; }

/* Text-only home hero */
.hero-solo { max-width: 880px; margin: 0 auto; text-align: center; position: relative; z-index: 1; }
.hero-solo .actions { justify-content: center; }
.hero-solo p.sub { margin-left: auto; margin-right: auto; }

/* AI employee mascots */
.card.tcenter { text-align: center; }
.card .mascot { height: 120px; width: auto; margin: 0 auto 12px; }

/* FAQ search */
.faq-search { margin-bottom: 30px; }
.faq-search input { width: 100%; padding: 15px 20px; border: 2px solid var(--line); border-radius: 999px; font-family: var(--font); font-size: 1rem; color: var(--ink); }
.faq-search input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-light); }
#faqNoResults { margin-top: 14px; color: var(--muted); }

/* Click-to-reveal phone numbers (anti-scrape) */
.reveal-phone { cursor: pointer; }

/* Stat card icons */
.stat-card .sicon { width: 52px; height: 52px; border-radius: 14px; background: var(--brand-light); color: var(--brand); display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; }
.stat-card .sicon svg { width: 26px; height: 26px; }
