/* ═══════════════════════════════════════════════════
   clicktests.net — Global Stylesheet v1.0
   ═══════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;1,400&display=swap');

/* ─── VARIABLES ─────────────────────────────────── */
:root {
  --bg:           #f4f2ee;
  --surface:      #ffffff;
  --surface2:     #ede9e2;
  --border:       #d8d2c6;
  --text:         #1a1714;
  --text-muted:   #6b6560;
  --accent:       #c84b2f;
  --accent2:      #e8732a;
  --accent-light: #fff0ec;
  --nav-bg:       #1a1714;
  --nav-text:     #f4f2ee;
  --radius:       10px;
  --radius-lg:    16px;
  --shadow:       0 2px 12px rgba(0,0,0,0.08);
  --shadow-lg:    0 8px 32px rgba(0,0,0,0.14);
  --font-head:    'Syne', sans-serif;
  --font-body:    'DM Sans', sans-serif;
  --max-w:        1320px;
  --tr:           0.22s cubic-bezier(0.4,0,0.2,1);
}

/* ─── RESET ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: var(--font-body); background: var(--bg); color: var(--text); line-height: 1.6; min-height: 100vh; display: flex; flex-direction: column; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ─── HEADER ─────────────────────────────────────── */
.site-header { background: var(--nav-bg); color: var(--nav-text); position: relative; z-index: 100; }
.header-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; display: flex; align-items: center; height: 58px; gap: 0; }

/* Logo */
.logo { font-family: var(--font-head); font-weight: 800; font-size: 1.11rem; color: var(--nav-text); letter-spacing: -0.02em; display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.logo-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); display: inline-block; margin-bottom: 1px; }
.logo em { color: var(--accent2); font-style: normal; }

/* Nav */
.site-nav { display: flex; align-items: center; gap: 2px; margin-left: 28px; flex: 1; }
.nav-item { position: relative; }
.nav-link { display: flex; align-items: center; gap: 5px; padding: 0 13px; height: 58px; font-size: 0.875rem; font-weight: 500; color: rgba(244,242,238,0.75); white-space: nowrap; transition: color var(--tr); cursor: pointer; border: none; background: none; font-family: var(--font-body); letter-spacing: 0.01em; }
.nav-link:hover, .nav-link.active { color: #fff; }
.nav-link svg { width: 11px; height: 11px; transition: transform var(--tr); flex-shrink: 0; }
.nav-item.open > .nav-link svg { transform: rotate(180deg); }

/* Dropdown */
.dropdown { position: absolute; top: calc(100% + 6px); left: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); min-width: 240px; padding: 8px; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity var(--tr), transform var(--tr), visibility var(--tr); z-index: 200; }
.nav-item.open .dropdown, .nav-item:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; font-size: 0.865rem; color: var(--text); border-radius: 7px; transition: background var(--tr), color var(--tr); font-weight: 400; }
.dropdown a:hover { background: var(--accent-light); color: var(--accent); }
.dropdown a .d-icon { width: 28px; height: 28px; border-radius: 6px; background: var(--surface2); display: flex; align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0; }
.dropdown-label { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); padding: 8px 12px 4px; }

/* Header actions */
.header-actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.icon-btn { width: 38px; height: 38px; border-radius: 8px; border: none; background: rgba(255,255,255,0.07); color: rgba(244,242,238,0.75); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background var(--tr), color var(--tr); position: relative; }
.icon-btn:hover { background: rgba(255,255,255,0.14); color: #fff; }
.icon-btn.active { background: var(--accent); color: #fff; }
.icon-btn svg { width: 18px; height: 18px; }

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; background: none; border: none; margin-left: 8px; }
.hamburger span { display: block; width: 22px; height: 2px; background: rgba(244,242,238,0.78); border-radius: 2px; transition: all 0.3s; }

/* Mobile nav */
.mobile-nav { display: none; flex-direction: column; background: var(--nav-bg); border-top: 1px solid rgba(255,255,255,0.08); padding: 0 16px; max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.3s; }
.mobile-nav.open { max-height: 900px; padding: 8px 16px 16px; }
.mobile-nav .m-section { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent2); padding: 12px 4px 4px; }
.mobile-nav .m-link { display: block; padding: 9px 4px; color: rgba(244,242,238,0.75); font-size: 0.88rem; font-weight: 500; border-bottom: 1px solid rgba(255,255,255,0.06); }
.mobile-nav .m-link:hover { color: #fff; }

/* ─── SIDE PANELS ────────────────────────────────── */
.panel-overlay { display: none; position: fixed; inset: 0; background: rgba(26,23,20,0.5); z-index: 400; backdrop-filter: blur(3px); }
.panel-overlay.show { display: flex; align-items: flex-start; justify-content: flex-end; }
.side-panel { background: var(--surface); width: min(480px, 96vw); height: 100vh; overflow-y: auto; box-shadow: -8px 0 40px rgba(0,0,0,0.2); transform: translateX(100%); transition: transform 0.32s cubic-bezier(0.4,0,0.2,1); display: flex; flex-direction: column; }
.side-panel.open { transform: translateX(0); }
.panel-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px 16px; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: var(--surface); z-index: 1; }
.panel-head h2 { font-family: var(--font-head); font-size: 1rem; font-weight: 700; }
.close-btn { width: 32px; height: 32px; border-radius: 7px; border: 1px solid var(--border); background: none; cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--text-muted); transition: all var(--tr); }
.close-btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.close-btn svg { width: 16px; height: 16px; }
.panel-tabs { display: flex; gap: 2px; padding: 12px 24px 0; border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; flex-shrink: 0; }
.panel-tabs::-webkit-scrollbar { display: none; }
.ptab { padding: 8px 13px; font-size: 0.82rem; font-weight: 600; color: var(--text-muted); cursor: pointer; border: none; background: none; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; transition: color var(--tr), border-color var(--tr); }
.ptab:hover { color: var(--text); }
.ptab.active { color: var(--accent); border-bottom-color: var(--accent); }
.panel-body { padding: 22px 24px; flex: 1; }
.tab-pane { display: none; }
.tab-pane.active { display: block; }
.panel-body h3 { font-family: var(--font-head); font-size: 0.95rem; font-weight: 700; margin-bottom: 8px; margin-top: 18px; }
.panel-body h3:first-child { margin-top: 0; }
.panel-body p { font-size: 0.875rem; color: var(--text-muted); margin-bottom: 12px; line-height: 1.75; }
.panel-body ul { padding-left: 18px; margin-bottom: 12px; }
.panel-body li { font-size: 0.875rem; color: var(--text-muted); margin-bottom: 6px; line-height: 1.65; }
.tip-card { background: var(--accent-light); border-left: 3px solid var(--accent); border-radius: 0 8px 8px 0; padding: 11px 15px; margin-bottom: 12px; font-size: 0.855rem; color: var(--text); }
.tip-card strong { color: var(--accent); }

/* Settings controls */
.setting-row { display: flex; align-items: center; justify-content: space-between; padding: 13px 0; border-bottom: 1px solid var(--border); gap: 16px; }
.setting-row:last-child { border-bottom: none; }
.s-label { font-size: 0.88rem; font-weight: 500; }
.s-desc { font-size: 0.78rem; color: var(--text-muted); margin-top: 2px; }
.toggle { position: relative; width: 42px; height: 24px; flex-shrink: 0; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-track { position: absolute; inset: 0; background: var(--border); border-radius: 24px; cursor: pointer; transition: background var(--tr); }
.toggle input:checked + .toggle-track { background: var(--accent); }
.toggle-track::after { content: ''; position: absolute; width: 18px; height: 18px; background: #fff; border-radius: 50%; top: 3px; left: 3px; transition: transform var(--tr); box-shadow: 0 1px 4px rgba(0,0,0,0.2); }
.toggle input:checked + .toggle-track::after { transform: translateX(18px); }
.s-select { padding: 6px 10px; border: 1px solid var(--border); border-radius: 7px; background: var(--surface); font-size: 0.84rem; color: var(--text); font-family: var(--font-body); outline: none; cursor: pointer; }
.s-select:focus { border-color: var(--accent); }
.swatch-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.swatch { width: 30px; height: 30px; border-radius: 50%; cursor: pointer; border: 2px solid transparent; transition: transform var(--tr), border-color var(--tr); }
.swatch:hover { transform: scale(1.15); }
.swatch.selected { border-color: var(--text); }

/* ─── MAIN LAYOUT ────────────────────────────────── */
main { flex: 1; max-width: var(--max-w); width: 100%; margin: 0 auto; padding: 28px 24px 40px; }

/* Breadcrumb */
.breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 0.78rem; color: var(--text-muted); margin-bottom: 10px; flex-wrap: wrap; }
.breadcrumb a { color: var(--accent); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb svg { width: 10px; height: 10px; flex-shrink: 0; }

/* Page title */
.page-title { font-family: var(--font-head); font-size: clamp(1.1rem, 2.2vw, 1.3rem); font-weight: 800; color: var(--text); letter-spacing: -0.02em; line-height: 1.25; }
.page-subtitle { font-size: 0.875rem; color: var(--text-muted); margin-top: 5px; }
.page-title-wrap { margin-bottom: 24px; }

/* Section titles */
.section-title { font-family: var(--font-head); font-size: 1rem; font-weight: 800; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.section-title::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* ─── BUTTONS ────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; gap: 7px; padding: 10px 22px; border-radius: 8px; font-size: 0.875rem; font-weight: 600; cursor: pointer; border: none; font-family: var(--font-body); transition: all var(--tr); letter-spacing: 0.01em; text-decoration: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #b83d22; box-shadow: 0 4px 18px rgba(200,75,47,0.4); transform: translateY(-1px); }
.btn-secondary { background: var(--surface2); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--border); }
.btn-outline { background: transparent; color: var(--accent); border: 1.5px solid var(--accent); }
.btn-outline:hover { background: var(--accent-light); }
.btn-sm { padding: 7px 15px; font-size: 0.82rem; }

/* ─── CARDS ──────────────────────────────────────── */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow); }
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; margin-bottom: 28px; }
.info-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow); }
.info-card .ic-icon { width: 38px; height: 38px; background: var(--accent-light); border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: 18px; margin-bottom: 12px; }
.info-card h3 { font-family: var(--font-head); font-size: 0.9rem; font-weight: 700; margin-bottom: 8px; }
.info-card p { font-size: 0.855rem; color: var(--text-muted); line-height: 1.75; }

/* ─── RELATED TOOLS ──────────────────────────────── */
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(175px, 1fr)); gap: 14px; margin-bottom: 28px; }
.related-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 15px; display: flex; flex-direction: column; gap: 7px; box-shadow: var(--shadow); transition: all var(--tr); }
.related-card:hover { border-color: var(--accent); box-shadow: 0 4px 20px rgba(200,75,47,0.15); transform: translateY(-2px); }
.related-card .rc-icon { font-size: 22px; }
.related-card .rc-name { font-family: var(--font-head); font-size: 0.855rem; font-weight: 700; }
.related-card .rc-desc { font-size: 0.78rem; color: var(--text-muted); line-height: 1.5; flex: 1; }
.related-card .rc-arrow { font-size: 0.78rem; color: var(--accent); font-weight: 600; }

/* ─── TABLES ─────────────────────────────────────── */
.data-table { width: 100%; border-collapse: collapse; font-size: 0.855rem; margin-bottom: 28px; }
.data-table th { background: var(--nav-bg); color: var(--nav-text); padding: 10px 16px; text-align: left; font-family: var(--font-head); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.04em; }
.data-table th:first-child { border-radius: 8px 0 0 8px; }
.data-table th:last-child { border-radius: 0 8px 8px 0; }
.data-table td { padding: 10px 16px; border-bottom: 1px solid var(--border); color: var(--text-muted); background: var(--surface); }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--accent-light); }

/* Badges */
.badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 0.75rem; font-weight: 700; font-family: var(--font-head); }
.badge-red    { background: #ffeae6; color: #c84b2f; }
.badge-amber  { background: #fff3e0; color: #e8732a; }
.badge-green  { background: #e6f9f0; color: #2d9b5a; }
.badge-blue   { background: #e6f0ff; color: #2563eb; }
.badge-purple { background: #f3e6ff; color: #7c3aed; }
.badge-gold   { background: #fff8cc; color: #a07000; }

/* ─── FAQ ────────────────────────────────────────── */
.faq-list { margin-bottom: 28px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 8px; overflow: hidden; }
.faq-q { width: 100%; padding: 15px 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 0.9rem; font-weight: 600; color: var(--text); background: none; border: none; cursor: pointer; text-align: left; font-family: var(--font-body); transition: background var(--tr); }
.faq-q:hover { background: var(--accent-light); }
.faq-q svg { width: 16px; height: 16px; color: var(--accent); flex-shrink: 0; transition: transform var(--tr); }
.faq-item.open .faq-q svg { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.35s ease, padding 0.2s; font-size: 0.875rem; color: var(--text-muted); line-height: 1.75; padding: 0 20px; }
.faq-item.open .faq-a { max-height: 500px; padding: 0 20px 16px; }

/* ─── FOOTER ─────────────────────────────────────── */
.site-footer { background: var(--nav-bg); color: rgba(244,242,238,0.7); margin-top: auto; }
.footer-inner { max-width: var(--max-w); margin: 0 auto; padding: 40px 24px 0; }
.footer-grid { display: grid; grid-template-columns: 280px 1fr 1fr; gap: 40px; margin-bottom: 32px; }
.footer-brand .logo { margin-bottom: 12px; }
.footer-brand p { font-size: 0.835rem; line-height: 1.7; color: rgba(244,242,238,0.5); max-width: 240px; }
.footer-social { display: flex; gap: 8px; margin-top: 16px; }
.social-link { width: 34px; height: 34px; border-radius: 7px; background: rgba(255,255,255,0.07); display: flex; align-items: center; justify-content: center; color: rgba(244,242,238,0.55); font-size: 13px; font-weight: 700; transition: all var(--tr); }
.social-link:hover { background: var(--accent); color: #fff; }
.footer-col h4 { font-family: var(--font-head); font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--nav-text); margin-bottom: 14px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 7px; }
.footer-links a { font-size: 0.845rem; color: rgba(244,242,238,0.5); transition: color var(--tr); }
.footer-links a:hover { color: var(--accent2); }
.footer-tools-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 18px 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.footer-bottom p { font-size: 0.8rem; color: rgba(244,242,238,0.35); }
.footer-legal-links { display: flex; flex-wrap: wrap; gap: 0; }
.footer-legal-links a { font-size: 0.8rem; color: rgba(244,242,238,0.4); padding: 0 14px; transition: color var(--tr); border-right: 1px solid rgba(255,255,255,0.12); }
.footer-legal-links a:last-child { border-right: none; }
.footer-legal-links a:hover { color: var(--accent2); }

/* ─── STATIC PAGE CONTENT ────────────────────────── */
.static-wrap { max-width: 820px; }
.static-wrap h2 { font-family: var(--font-head); font-size: 1.15rem; font-weight: 700; margin: 28px 0 10px; color: var(--text); }
.static-wrap h3 { font-family: var(--font-head); font-size: 0.95rem; font-weight: 700; margin: 20px 0 8px; }
.static-wrap p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.8; margin-bottom: 14px; }
.static-wrap ul, .static-wrap ol { padding-left: 20px; margin-bottom: 14px; }
.static-wrap li { font-size: 0.9rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 5px; }
.static-wrap a { color: var(--accent); }
.static-wrap a:hover { text-decoration: underline; }
.static-meta { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 24px; padding-bottom: 18px; border-bottom: 1px solid var(--border); }

/* ─── HOMEPAGE HERO ──────────────────────────────── */
.hero { background: var(--nav-bg); padding: 52px 24px; text-align: center; }
.hero-inner { max-width: 680px; margin: 0 auto; }
.hero h1 { font-family: var(--font-head); font-size: clamp(1.8rem, 5vw, 2.8rem); font-weight: 800; color: #fff; letter-spacing: -0.03em; line-height: 1.15; margin-bottom: 14px; }
.hero h1 em { color: var(--accent2); font-style: normal; }
.hero p { font-size: 1rem; color: rgba(244,242,238,0.65); margin-bottom: 28px; line-height: 1.7; }
.hero-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Tools grid on homepage */
.tools-section { padding: 40px 24px; max-width: var(--max-w); margin: 0 auto; }
.tools-grid-home { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.tool-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px 20px; display: flex; flex-direction: column; gap: 10px; box-shadow: var(--shadow); transition: all var(--tr); }
.tool-card:hover { border-color: var(--accent); box-shadow: 0 6px 24px rgba(200,75,47,0.15); transform: translateY(-3px); }
.tool-card .tc-icon { font-size: 28px; }
.tool-card .tc-name { font-family: var(--font-head); font-size: 0.95rem; font-weight: 700; }
.tool-card .tc-desc { font-size: 0.82rem; color: var(--text-muted); line-height: 1.55; flex: 1; }
.tool-card .tc-cta { font-size: 0.8rem; color: var(--accent); font-weight: 600; display: flex; align-items: center; gap: 4px; }

/* ─── BLOG ───────────────────────────────────────── */

/* ─── CONTACT FORM ───────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1fr 340px; gap: 32px; align-items: start; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 0.86rem; font-weight: 600; margin-bottom: 7px; }
.form-input, .form-textarea, .form-select { width: 100%; padding: 11px 14px; border: 1.5px solid var(--border); border-radius: 9px; font-size: 0.88rem; font-family: var(--font-body); color: var(--text); background: var(--surface); outline: none; transition: border-color var(--tr); }
.form-input:focus, .form-textarea:focus, .form-select:focus { border-color: var(--accent); }
.form-textarea { min-height: 130px; resize: vertical; line-height: 1.6; }
.contact-info-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; }
.contact-info-card h3 { font-family: var(--font-head); font-size: 0.95rem; font-weight: 700; margin-bottom: 16px; }
.contact-info-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 0.875rem; }
.contact-info-item:last-child { border-bottom: none; }
.contact-info-item .ci-icon { font-size: 18px; flex-shrink: 0; margin-top: 1px; }
.contact-info-item strong { display: block; font-weight: 600; margin-bottom: 2px; }
.contact-info-item span { color: var(--text-muted); font-size: 0.84rem; }

/* ─── RESPONSIVE ─────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .site-nav { display: none; }
  .hamburger { display: flex; }
  .mobile-nav { display: flex; }
}
@media (max-width: 640px) {
  .header-inner { padding: 0 16px; }
  main { padding: 20px 16px 32px; }
  .footer-inner { padding: 32px 16px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
  .tools-grid-home { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 400px) {
  .tools-grid-home { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr 1fr; }
  .footer-tools-grid { grid-template-columns: 1fr; }
}
@media (min-width: 1600px) {
  :root { --max-w: 1480px; }
}
