/* TimeClock 365 — global stylesheet (mobile-first) */

:root {
  --brand:        #f97316; /* TimeClock orange */
  --brand-dark:   #ea580c;
  --brand-light:  #fff7ed;
  --accent:       #1e3a8a; /* navy accent */
  --dark:         #0f172a;
  --mid:          #475569;
  --light:        #f8fafc;
  --border:       #e2e8f0;
  --success:      #22c55e;
  --warning:      #f59e0b;
  --danger:       #ef4444;
  --radius:       12px;
  --radius-sm:    8px;
  --shadow:       0 4px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg:    0 16px 48px rgba(0, 0, 0, 0.12);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px; line-height: 1.65; color: var(--dark);
  background: #fff; -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: 1200px; margin: 0 auto;
  padding: 0 16px;
}
@media (min-width: 768px) {
  .container { padding: 0 24px; }
}

/* ── Sections ── */
.section { padding: clamp(48px, 8vw, 88px) 0; }
.section-light { background: var(--light); }
.section-dark { background: var(--dark); color: #fff; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; min-height: 48px;
  padding: 12px 24px; border-radius: var(--radius-sm);
  font-weight: 700; font-size: 1rem;
  text-decoration: none; cursor: pointer; border: 0;
  transition: background .15s, transform .1s;
  font-family: inherit;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-dark { background: var(--dark); color: #fff; }
.btn-dark:hover { background: #1e293b; }
.btn-outline { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.4); }
.btn-outline:hover { background: rgba(255,255,255,.1); }
.btn-ghost { background: transparent; color: var(--brand); border: 1.5px solid var(--brand); }
.btn-ghost:hover { background: var(--brand); color: #fff; }

/* ── Header ── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  height: 76px;
}
.header-inner {
  display: flex; align-items: center;
  height: 76px; gap: 22px;
}
.logo { margin-inline-end: auto; flex-shrink: 0; display: inline-flex; align-items: center; }
.logo img {
  height: 44px; width: auto;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
}
.main-nav { display: flex; align-items: center; gap: 22px; }
.main-nav a {
  font-size: 14px; font-weight: 600; color: var(--dark);
  text-decoration: none; transition: color .15s;
}
.main-nav a:hover { color: var(--brand); }
.header-contact {
  display: flex; align-items: center; gap: 12px;
  padding-inline-start: 18px;
  border-inline-start: 1px solid var(--border);
}
.header-contact .login-link {
  font-size: 14px; font-weight: 600; color: var(--dark);
  text-decoration: none;
}
.header-contact .login-link:hover { color: var(--brand); }
.btn-nav-cta {
  background: var(--brand); color: #fff;
  padding: 10px 18px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 700;
  text-decoration: none; transition: background .15s;
  white-space: nowrap;
}
.btn-nav-cta:hover { background: var(--brand-dark); }
.mobile-menu-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
}
.mobile-menu-toggle span { width: 24px; height: 2px; background: var(--dark); border-radius: 2px; }

/* ── Hero ── */
.hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
  color: #fff;
  padding: clamp(56px, 10vw, 96px) 0;
  text-align: center;
}
.hero h1 {
  font-size: clamp(1.9rem, 5.5vw, 3.4rem);
  font-weight: 900; line-height: 1.15;
  margin-bottom: 18px; color: #fff;
}
.hero .lead {
  font-size: clamp(1rem, 2.4vw, 1.25rem);
  color: rgba(255, 255, 255, .85);
  max-width: 720px; margin: 0 auto 28px;
  line-height: 1.6;
}
.hero-ctas {
  display: flex; gap: 12px;
  flex-wrap: wrap; justify-content: center;
}
.hero-trust {
  margin-top: 28px;
  display: flex; gap: 16px; flex-wrap: wrap; justify-content: center;
  font-size: clamp(.8rem, 1.8vw, .9rem);
  color: rgba(255, 255, 255, .65);
}

/* ── Page hero (subpages) ── */
.page-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
  color: #fff; padding: clamp(40px, 6vw, 64px) 0;
}
.page-hero h1 {
  font-size: clamp(1.6rem, 4.5vw, 2.6rem);
  font-weight: 800; line-height: 1.2;
  color: #fff; margin: 0 0 8px;
}
.page-hero .lead { color: rgba(255,255,255,.78); font-size: clamp(.95rem, 2vw, 1.1rem); margin-top: 8px; }
.page-hero .breadcrumb {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; color: rgba(255,255,255,.7);
  margin-bottom: 18px; flex-wrap: wrap;
}
.page-hero .breadcrumb a { color: rgba(255,255,255,.7); text-decoration: none; }
.page-hero .breadcrumb a:hover { color: #fff; }
.page-hero .breadcrumb .sep { opacity: .5; }

/* ── Section heading ── */
.section-title {
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  font-weight: 800; color: var(--dark);
  text-align: center; margin: 0 0 16px;
  line-height: 1.2;
}
.section-sub {
  font-size: clamp(.95rem, 2vw, 1.1rem);
  color: var(--mid); text-align: center;
  max-width: 640px; margin: 0 auto 40px;
  line-height: 1.6;
}

/* ── Card grid ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(20px, 4vw, 32px);
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.card h3 {
  font-size: clamp(1.1rem, 2.5vw, 1.3rem);
  font-weight: 700; color: var(--dark);
  margin: 0 0 12px;
}
.card p { color: var(--mid); margin: 0 0 16px; line-height: 1.65; font-size: clamp(.9rem, 2vw, 1rem); }
.card .arrow { color: var(--brand); font-weight: 700; }

/* ── Content layout (article + sidebar) ── */
.content-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
}
@media (max-width: 900px) {
  .content-layout { grid-template-columns: 1fr; }
}

.prose { max-width: 760px; }
.prose h2 {
  font-size: clamp(1.4rem, 3.5vw, 1.8rem);
  font-weight: 700; color: var(--dark);
  margin: 32px 0 16px;
}
.prose h3 {
  font-size: clamp(1.1rem, 2.5vw, 1.3rem);
  font-weight: 700; color: var(--dark);
  margin: 24px 0 12px;
}
.prose p { color: var(--mid); margin: 0 0 16px; line-height: 1.75; }
.prose ul, .prose ol { padding-inline-start: 22px; margin: 0 0 16px; }
.prose li { color: var(--mid); margin-bottom: 8px; line-height: 1.7; }
.prose strong { color: var(--dark); }
.prose a { color: var(--brand); }
.prose blockquote {
  border-left: 4px solid var(--brand);
  padding: 12px 20px; background: var(--brand-light);
  margin: 24px 0; color: var(--dark);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.sidebar-box {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px;
  margin-bottom: 16px;
}
.sidebar-box h3 {
  font-size: 1rem; font-weight: 700; color: var(--dark);
  margin: 0 0 12px;
}
.sidebar-box p { color: var(--mid); font-size: .9rem; margin: 0 0 12px; }
.sidebar-cta { background: var(--brand-light); border-color: #fed7aa; }
.related-links { list-style: none; padding: 0; margin: 0; }
.related-links li { margin: 0; padding: 8px 0; border-bottom: 1px solid var(--border); }
.related-links li:last-child { border-bottom: 0; }
.related-links a { color: var(--dark); font-size: .95rem; }
.related-links a:hover { color: var(--brand); }

/* ── Pricing tiles ── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  max-width: 1100px; margin: 0 auto;
}
.pricing-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: clamp(20px, 4vw, 32px);
  display: flex; flex-direction: column;
}
.pricing-card.featured { border: 2px solid var(--brand); position: relative; }
.pricing-card.featured::before {
  content: 'MOST POPULAR'; position: absolute; top: -12px; left: 24px;
  background: var(--brand); color: #fff;
  font-size: 11px; font-weight: 700;
  padding: 4px 12px; border-radius: 999px;
  letter-spacing: .05em;
}
.pricing-card h3 { font-size: 1.2rem; color: var(--dark); margin: 0 0 4px; }
.pricing-card .tagline { color: var(--mid); font-size: .9rem; margin: 0 0 16px; }
.pricing-card .price {
  font-size: clamp(2rem, 5vw, 2.5rem);
  font-weight: 800; color: var(--brand); line-height: 1;
}
.pricing-card .price small { font-size: .9rem; font-weight: 500; color: var(--mid); }
.pricing-card .features {
  list-style: none; padding: 0; margin: 20px 0; flex: 1;
}
.pricing-card .features li {
  font-size: .95rem; color: var(--mid);
  line-height: 1.9; padding-left: 0;
}
.pricing-card .features li::before { content: '✓ '; color: var(--success); font-weight: 700; }

/* ── Footer ── */
.site-footer {
  background: var(--dark); color: #fff;
  padding: clamp(48px, 7vw, 72px) 0 0;
  margin-top: 64px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  gap: 32px;
  padding-bottom: 32px;
}
@media (max-width: 920px) {
  .footer-inner { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; }
}
.footer-brand p { color: rgba(255,255,255,.65); font-size: .9rem; line-height: 1.7; margin-top: 12px; white-space: pre-line; }
.footer-links h3 { font-size: .85rem; font-weight: 700; color: #fff; margin: 0 0 16px; text-transform: uppercase; letter-spacing: .05em; }
.footer-links a { display: block; color: rgba(255,255,255,.7); font-size: .9rem; padding: 4px 0; text-decoration: none; min-height: 28px; }
.footer-links a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 24px 0;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
  font-size: .85rem; color: rgba(255,255,255,.55);
}
.footer-bottom a { color: rgba(255,255,255,.65); text-decoration: none; margin: 0 8px; }
.footer-bottom a:hover { color: #fff; }

/* ── Responsive: 860px (hide nav, show hamburger) ── */
@media (max-width: 860px) {
  .site-header,
  .header-inner { height: 60px; gap: 12px; }
  .logo img { height: 34px; }
  .header-contact {
    padding-inline-start: 0;
    border-inline-start: 0;
    gap: 8px;
  }
  .header-contact .login-link { display: none; }
  .main-nav { display: none; }
  .main-nav.open {
    display: flex; flex-direction: column;
    position: absolute; top: 60px; right: 0; left: 0;
    background: #fff; border-bottom: 1px solid var(--border);
    padding: 20px; gap: 4px; z-index: 99;
    box-shadow: var(--shadow);
    align-items: stretch;
  }
  .main-nav.open a {
    font-size: 16px; color: var(--dark);
    padding: 14px 0; min-height: 48px;
    display: flex; align-items: center;
    border-bottom: 1px solid var(--border);
  }
  .main-nav.open a:last-child { border-bottom: 0; }
  .lang-toggle, .search-toggle { min-height: 36px; }
  .btn-nav-cta { padding: 10px 14px; font-size: 12px; }
  .mobile-menu-toggle { display: flex; }
  .container { padding: 0 16px; }
}

@media (max-width: 640px) {
  .hero-ctas .btn { width: 100%; max-width: 320px; }
  .btn-nav-cta { padding: 9px 12px; font-size: 11.5px; letter-spacing: 0; }
  .header-inner { gap: 8px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* iOS zoom-in prevention */
@media (max-width: 860px) {
  input, select, textarea { font-size: 16px !important; }
}
