/**
 * Veewom Online Measurement Tools
 * Main Stylesheet - Modern SaaS Theme
 *
 * @package Veewom\RulerOnline
 */

:root {
  --primary: #ea580c;
  --primary-hover: #c2410c;
  --primary-focus: rgba(234, 88, 12, 0.25);
  --primary-light: #fff7ed;
  --primary-subtle: #ffedd5;
  --primary-border: #fed7aa;
  
  --secondary: #0f172a;
  --secondary-hover: #1e293b;

  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50:  #f8fafc;
  --white:     #ffffff;

  --success: #10b981;
  --success-light: #ecfdf5;
  --info: #0284c7;
  --warning: #f59e0b;
  --danger: #ef4444;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.04);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Reset & Typography */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--slate-50);
  color: var(--slate-700);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary-hover);
}

h1, h2, h3, h4, h5, h6 {
  color: var(--slate-900);
  font-weight: 700;
  line-height: 1.25;
}

h1 { font-size: 2.25rem; letter-spacing: -0.025em; }
h2 { font-size: 1.75rem; letter-spacing: -0.02em; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.15rem; }

p {
  margin-bottom: 1rem;
}

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

ul, ol {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

li {
  margin-bottom: 0.35rem;
}

code {
  font-family: var(--font-mono);
  background-color: var(--slate-100);
  padding: 0.15rem 0.4rem;
  border-radius: var(--radius-sm);
  font-size: 0.88em;
  color: var(--slate-800);
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1220px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.site-main {
  flex: 1 0 auto;
  padding-bottom: 3.5rem;
}

/* Header & Top Bar */
.site-header {
  background-color: var(--white);
  border-bottom: 1px solid var(--slate-200);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

/* Main Navbar */
.navbar {
  padding: 0.75rem 0;
}

.navbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-logo img {
  height: 42px;
  width: auto;
}

.nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
  gap: 0.4rem;
}

.nav-menu li a {
  color: var(--slate-700);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-menu li a:hover {
  color: var(--primary);
  background-color: var(--primary-light);
}

.nav-menu li.active a {
  color: var(--primary);
  background-color: var(--primary-light);
  font-weight: 700;
}

.nav-cta-btn {
  background-color: var(--primary);
  color: var(--white) !important;
  padding: 0.5rem 1.1rem !important;
  border-radius: var(--radius-md) !important;
  box-shadow: 0 2px 4px rgba(234, 88, 12, 0.2);
}

.nav-cta-btn:hover {
  background-color: var(--primary-hover) !important;
  color: var(--white) !important;
  transform: translateY(-1px);
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 0.5rem;
  cursor: pointer;
  color: var(--slate-800);
}

.mobile-nav-toggle svg {
  width: 24px;
  height: 24px;
}

/* Breadcrumbs Section */
.breadcrumb-section {
  background-color: var(--white);
  border-bottom: 1px solid var(--slate-200);
  padding: 0.75rem 0;
  font-size: 0.875rem;
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.breadcrumb-item {
  display: inline-flex;
  align-items: center;
  color: var(--slate-500);
}

.breadcrumb-item a {
  color: var(--slate-600);
  font-weight: 500;
}

.breadcrumb-item a:hover {
  color: var(--primary);
}

.breadcrumb-separator {
  margin: 0 0.5rem;
  color: var(--slate-400);
  font-size: 0.75rem;
}

.breadcrumb-item.active {
  color: var(--slate-800);
  font-weight: 600;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(180deg, var(--white) 0%, var(--slate-50) 100%);
  padding: 3.5rem 0 3rem 0;
  border-bottom: 1px solid var(--slate-200);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-content h1 {
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--slate-900);
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.hero-content h1 .highlight {
  color: var(--primary);
  background: linear-gradient(135deg, var(--primary) 0%, #f97316 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--slate-600);
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.hero-illustration {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--slate-200);
}

.hero-badge-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--slate-600);
}

.hero-badge-item svg {
  color: var(--success);
  width: 18px;
  height: 18px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.4rem;
  font-size: 0.98rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  line-height: 1;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 6px -1px rgba(234, 88, 12, 0.25), 0 2px 4px -2px rgba(234, 88, 12, 0.2);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 6px 10px -1px rgba(234, 88, 12, 0.3);
}

.btn-secondary {
  background-color: var(--white);
  color: var(--slate-700);
  border-color: var(--slate-300);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background-color: var(--slate-100);
  color: var(--slate-900);
  border-color: var(--slate-400);
}

.btn-sm {
  padding: 0.45rem 0.85rem;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 0.95rem 1.8rem;
  font-size: 1.1rem;
}

/* Tool Cards Grid */
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 2.5rem auto;
}

.section-tag {
  display: inline-block;
  background-color: var(--primary-light);
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.75rem;
  border: 1px solid var(--primary-border);
}

.section-title {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  color: var(--slate-900);
}

.section-subtitle {
  color: var(--slate-600);
  font-size: 1.05rem;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}

.tool-card {
  background-color: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.tool-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-border);
  box-shadow: var(--shadow-lg);
}

.tool-card-badge {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background-color: var(--primary-light);
  color: var(--primary);
  border: 1px solid var(--primary-border);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
}

.tool-card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background-color: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  border: 1px solid var(--primary-border);
}

.tool-card-icon img, .tool-card-icon svg {
  width: 32px;
  height: 32px;
}

.tool-card-title {
  font-size: 1.25rem;
  margin-bottom: 0.6rem;
  color: var(--slate-900);
}

.tool-card-desc {
  color: var(--slate-600);
  font-size: 0.92rem;
  line-height: 1.55;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.tool-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--primary);
}

.tool-card-link:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

/* Tool Header & Presentation Banner */
.tool-page-header {
  background-color: var(--white);
  border-bottom: 1px solid var(--slate-200);
  padding: 2.25rem 0 1.75rem 0;
  margin-bottom: 2rem;
}

.tool-page-title-wrap {
  max-width: 860px;
}

.tool-page-title {
  font-size: 2.25rem;
  margin-bottom: 0.75rem;
  color: var(--slate-900);
}

.tool-page-desc {
  font-size: 1.1rem;
  color: var(--slate-600);
  line-height: 1.55;
}

/* Tool Workspace Container */
.tool-container {
  background-color: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  margin-bottom: 3rem;
}

/* Educational Content Section */
.content-section {
  background-color: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow-sm);
}

.content-section h2 {
  font-size: 1.75rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--slate-100);
}

.content-section h2:first-child {
  margin-top: 0;
}

.content-section h3 {
  font-size: 1.3rem;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--slate-800);
}

.content-section p, .content-section ul, .content-section ol {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--slate-700);
  margin-bottom: 1.25rem;
}

.feature-box {
  background-color: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}

.feature-box-title {
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* FAQ Accordion */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

.faq-item {
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-color: var(--white);
  transition: border-color var(--transition-fast);
}

.faq-item:hover {
  border-color: var(--slate-300);
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 1.25rem 1.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--slate-900);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-icon {
  width: 20px;
  height: 20px;
  transition: transform var(--transition-fast);
  color: var(--primary);
  flex-shrink: 0;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal);
  background-color: var(--slate-50);
}

.faq-answer-inner {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--slate-200);
  color: var(--slate-700);
  line-height: 1.7;
}

/* Related Tools */
.related-tools-section {
  margin-top: 3.5rem;
}

/* Footer */
.site-footer {
  background-color: var(--slate-900);
  color: var(--slate-300);
  padding-top: 3.5rem;
  margin-top: auto;
  border-top: 1px solid var(--slate-800);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--slate-800);
}

.footer-col h4 {
  color: var(--white);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
}

.footer-col p {
  color: var(--slate-400);
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.6rem;
}

.footer-links a {
  color: var(--slate-400);
  font-size: 0.9rem;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--white);
  text-decoration: underline;
}

.footer-bottom {
  padding: 1.5rem 0;
  font-size: 0.85rem;
  color: var(--slate-500);
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom a {
  color: var(--slate-400);
}

.footer-bottom a:hover {
  color: var(--white);
}

/* Toast Alerts */
.toast-notice {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background-color: var(--slate-900);
  color: var(--white);
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  font-size: 0.92rem;
  font-weight: 600;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  border-left: 4px solid var(--primary);
  animation: slideIn 0.25s ease-out;
}

@keyframes slideIn {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ==========================================================================
   Google AdSense Ad Placements & Layout Styling
   Designed for low bounce rate, high CTR, and CLS layout stability
   ========================================================================== */
.ad-unit-wrapper {
  margin: 2rem auto;
  text-align: center;
  position: relative;
  background-color: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 0.5rem;
  box-sizing: border-box;
  overflow: hidden;
  max-width: 100%;
}

.ad-unit-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  overflow: hidden;
  max-width: 100%;
}

/* 300x250 Medium Rectangle (Sidebar Top / Bottom / Post-Tool) */
.ad-unit-300x250 {
  max-width: 320px;
  min-height: 260px;
}

.ad-unit-300x250 .ad-unit-inner {
  min-height: 250px;
  width: 300px;
}

/* 300x600 Half-Page Skyscraper (Sidebar Middle) */
.ad-unit-300x600 {
  max-width: 320px;
  min-height: 610px;
}

.ad-unit-300x600 .ad-unit-inner {
  min-height: 600px;
  width: 300px;
}

/* In-Article Fluid Ad */
.ad-unit-in-article {
  max-width: 100%;
  min-height: 110px;
  margin: 2rem auto;
  background-color: var(--white);
  border: 1px dashed var(--slate-200);
}

.ad-unit-in-article .ad-unit-inner {
  width: 100%;
  min-height: 90px;
}

/* Autorelaxed / Multiplex Ad Grid */
.ad-unit-autorelaxed {
  max-width: 100%;
  min-height: 190px;
  margin: 2.5rem auto 1.5rem;
  background-color: var(--white);
  border: 1px solid var(--slate-200);
}

.ad-unit-autorelaxed .ad-unit-inner {
  width: 100%;
  min-height: 160px;
}

/* Post-Tool subtle banner spacing */
.ad-unit-post-tool {
  margin: 1.5rem auto 2rem;
}

/* Print Protection: Never print advertisements */
@media print {
  .ad-unit-wrapper,
  .adsbygoogle {
    display: none !important;
  }
}

