/**
 * Meyer IT Theme Styles
 * Custom CSS framework with utility classes
 * Version: 2.0.0
 */

/* ==========================================================================
   CSS Custom Properties (Design Tokens)
   ========================================================================== */

:root {
  /* Color System - Slate-based Palette */
  --color-background: #ffffff;
  --color-surface: #fafafa;
  --color-surface-elevated: #f8f9fa;

  --color-text-primary: #0f172a;
  --color-text-secondary: #475569;
  --color-text-tertiary: #94a3b8;

  --color-accent-primary: #3b82f6;
  --color-accent-primary-hover: #2563eb;
  --color-accent-gradient-start: #6366f1;
  --color-accent-gradient-end: #8b5cf6;

  --color-border-subtle: #e2e8f0;
  --color-border-medium: #cbd5e1;
  --color-border-strong: #94a3b8;

  /* Spacing System - 8pt Grid */
  --spacing-xs: 0.5rem;    /* 8px */
  --spacing-sm: 1rem;      /* 16px */
  --spacing-md: 1.5rem;    /* 24px */
  --spacing-lg: 2rem;      /* 32px */
  --spacing-xl: 3rem;      /* 48px */
  --spacing-2xl: 4rem;     /* 64px */
  --spacing-3xl: 6rem;     /* 96px */
  --spacing-4xl: 8rem;     /* 128px */

  /* Typography Scale */
  --font-family-sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --font-size-xs: 0.75rem;    /* 12px */
  --font-size-sm: 0.875rem;   /* 14px */
  --font-size-base: 1rem;     /* 16px */
  --font-size-lg: 1.125rem;   /* 18px */
  --font-size-xl: 1.25rem;    /* 20px */
  --font-size-2xl: 1.5rem;    /* 24px */
  --font-size-3xl: 1.875rem;  /* 30px */
  --font-size-4xl: 2.25rem;   /* 36px */
  --font-size-5xl: 3rem;      /* 48px */
  --font-size-6xl: 3.75rem;   /* 60px */

  /* Shadow System */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

  /* Transition Timing */
  --transition-fast: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 350ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slower: 600ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Border Radius */
  --radius-sm: 0.5rem;   /* 8px */
  --radius-md: 0.75rem;  /* 12px */
  --radius-lg: 1rem;     /* 16px */
  --radius-xl: 1.5rem;   /* 24px */
}

/* ==========================================================================
   CSS Reset & Base Styles (T009)
   ========================================================================== */

/* Box sizing reset */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Remove default margins */
body, h1, h2, h3, h4, h5, h6, p, ul, ol, li, figure, figcaption, blockquote, dl, dd {
    margin: 0;
    padding: 0;
}

/* Set core root defaults */
html {
    font-size: 16px;
    scroll-behavior: smooth;
}

/* Set core body defaults */
body {
    min-height: 100vh;
    font-family: var(--font-family-sans);
    font-size: var(--font-size-base);
    line-height: 1.7;
    color: var(--color-text-primary);
    background-color: var(--color-background);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Remove list styles */
ul, ol {
    list-style: none;
}

/* Make images easier to work with */
img, picture {
    max-width: 100%;
    display: block;
    height: auto;
}

/* Inherit fonts for inputs and buttons */
input, button, textarea, select {
    font: inherit;
}

/* Remove default button styles */
button {
    background: none;
    border: none;
    cursor: pointer;
}

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

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

/* ==========================================================================
   Typography
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--color-text-primary);
    letter-spacing: -0.02em;
}

/* Mobile typography */
h1 {
    font-size: var(--font-size-5xl);  /* 48px mobile */
}

h2 {
    font-size: var(--font-size-4xl);  /* 36px mobile */
}

h3 {
    font-size: var(--font-size-2xl);  /* 24px mobile */
}

h4 {
    font-size: var(--font-size-xl);   /* 20px */
}

h5 {
    font-size: var(--font-size-lg);   /* 18px */
}

h6 {
    font-size: var(--font-size-base); /* 16px */
}

/* Desktop typography - larger, bolder headings */
@media (min-width: 768px) {
    h1 {
        font-size: var(--font-size-6xl);  /* 60px desktop */
    }

    h2 {
        font-size: var(--font-size-5xl);  /* 48px desktop */
    }

    h3 {
        font-size: var(--font-size-3xl);  /* 30px desktop */
    }
}

p {
    margin-bottom: 1rem;
}

/* Lead paragraph for hero sections */
.lead {
    font-size: var(--font-size-xl);
    line-height: 1.7;
    color: var(--color-text-secondary);
}

strong {
    font-weight: 700;
}

em {
    font-style: italic;
}

/* ==========================================================================
   Utility Classes (T008)
   ========================================================================== */

/* Container */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

@media (min-width: 768px) {
    .container {
        padding: 0 var(--spacing-lg);
    }
}

/* Section spacing */
.section {
    padding: var(--spacing-2xl) 0;  /* 64px mobile */
}

.section-sm {
    padding: var(--spacing-lg) 0;  /* 32px */
}

.section-lg {
    padding: var(--spacing-3xl) 0;  /* 96px desktop */
}

@media (min-width: 768px) {
    .section {
        padding: var(--spacing-3xl) 0;  /* 96px desktop */
    }
}

.section-spacing-sm {
    padding-top: var(--spacing-lg);
    padding-bottom: var(--spacing-lg);
}

.section-spacing-lg {
    padding-top: var(--spacing-3xl);
    padding-bottom: var(--spacing-3xl);
}

.section-spacing-xl {
    padding-top: var(--spacing-4xl);
    padding-bottom: var(--spacing-4xl);
}

.bg-white {
    background-color: #ffffff;
}

.bg-gray {
    background-color: #f8fafc;
}

/* Text utilities */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

/* Spacing utilities */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.pt-1 { padding-top: 0.5rem; }
.pt-2 { padding-top: 1rem; }
.pt-3 { padding-top: 1.5rem; }
.pt-4 { padding-top: 2rem; }

.pb-1 { padding-bottom: 0.5rem; }
.pb-2 { padding-bottom: 1rem; }
.pb-3 { padding-bottom: 1.5rem; }
.pb-4 { padding-bottom: 2rem; }

/* Button utilities */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    text-align: center;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border: none;
}

/* Button ripple effect */
.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 600ms, height 600ms;
}

.btn:active::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-accent-primary) 0%, var(--color-accent-gradient-start) 100%);
    color: #ffffff;
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.3), 0 2px 4px -1px rgba(59, 130, 246, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 20px -5px rgba(59, 130, 246, 0.4), 0 6px 10px -5px rgba(59, 130, 246, 0.3);
    color: #ffffff;
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: transparent;
    color: var(--color-accent-primary);
    border: 2px solid var(--color-border-subtle);
}

.btn-secondary:hover {
    border-color: var(--color-accent-primary);
    background: rgba(59, 130, 246, 0.05);
    transform: translateY(-2px);
    color: var(--color-accent-primary);
}

.btn-secondary:active {
    transform: translateY(0);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: var(--font-size-lg);
}

/* ==========================================================================
   Responsive Layout Utilities (T010)
   ========================================================================== */

/* Flexbox utilities */
.flex {
    display: flex;
}

.flex-column {
    flex-direction: column;
}

.flex-wrap {
    flex-wrap: wrap;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.align-center {
    align-items: center;
}

.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.gap-4 { gap: 2rem; }

/* Grid utilities */
.grid {
    display: grid;
    gap: 1rem;
    align-items: stretch;
}

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

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

@media (min-width: 768px) {
    .grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

.offer-grid {
    gap: 1.5rem;
}

.offer-grid.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
}

.offer-grid > p {
    display: none;
    margin: 0;
    padding: 0;
}

.offer-grid br {
    display: none;
}

.card {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    background: #ffffff;
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    height: 100%;
}

.card-title {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: var(--font-size-xl);
}

.card-content {
    color: var(--color-text-secondary);
}

.card .btn {
    margin-top: 1rem;
    align-self: flex-start;
}

/* Responsive utilities */
.hide-mobile {
    display: none;
}

@media (min-width: 768px) {
    .hide-mobile {
        display: block;
    }

    .hide-desktop {
        display: none;
    }
}

/* ==========================================================================
   Site Header
   ========================================================================== */

.site-header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

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

.site-branding {
    flex: 0 0 auto;
}

.site-logo .custom-logo-link {
    display: inline-flex;
    align-items: center;
}

.site-logo img {
    height: 40px;
    width: auto;
}

.site-title {
    font-size: var(--font-size-2xl);
    margin: 0;
}

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

.site-title a:hover {
    color: var(--color-accent-primary);
}

.site-description {
    font-size: var(--font-size-sm);
    color: var(--color-text-tertiary);
    margin: 0.25rem 0 0;
}

/* Navigation */
.main-navigation {
    flex: 1 1 auto;
    display: flex;
    justify-content: flex-end;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    display: inline-block;
}

.nav-menu a {
    position: relative;
    color: var(--color-text-secondary);
    font-weight: 500;
    padding: 0.5rem 0;
    transition: color var(--transition-fast);
}

/* Animated gradient underline */
.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-accent-primary), var(--color-accent-gradient-start));
    transition: width 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-menu a:hover,
.nav-menu .current-menu-item a {
    color: var(--color-accent-primary);
}

.nav-menu a:hover::after,
.nav-menu .current-menu-item a::after {
    width: 100%;
}

.nav-menu .menu-item-has-children {
    position: relative;
}

.nav-menu .sub-menu {
    display: none;
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    min-width: 240px;
    background: #ffffff;
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 0.75rem;
    z-index: 10;
}

.nav-menu .sub-menu li {
    display: block;
    border-bottom: none;
}

.nav-menu .sub-menu a {
    display: block;
    padding: 0.5rem 0.75rem;
    color: var(--color-text-secondary);
    font-weight: 600;
}

.nav-menu .sub-menu a:hover {
    color: var(--color-accent-primary);
}

.nav-menu .menu-item-has-children:hover > .sub-menu,
.nav-menu .menu-item-has-children:focus-within > .sub-menu {
    display: block;
}

/* Menu toggle for mobile */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
}

.menu-toggle-icon {
    display: block;
    width: 24px;
    height: 2px;
    background-color: #333;
    position: relative;
}

.menu-toggle-icon::before,
.menu-toggle-icon::after {
    content: '';
    display: block;
    width: 24px;
    height: 2px;
    background-color: #333;
    position: absolute;
    left: 0;
}

.menu-toggle-icon::before {
    top: -8px;
}

.menu-toggle-icon::after {
    bottom: -8px;
}

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    width: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
}

/* Skip link: becomes visible on keyboard focus */
.skip-link:focus {
    clip: auto;
    clip-path: none;
    height: auto;
    width: auto;
    margin: 0;
    overflow: visible;
    padding: 0.75rem 1rem;
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 1000;
    background: #ffffff;
    color: var(--color-text-primary);
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

/* Mobile navigation */
@media (max-width: 767px) {
    .menu-toggle {
        display: block;
    }

    .main-navigation {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: #fff;
        box-shadow: -2px 0 8px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        padding: 2rem 1rem;
    }

    .main-navigation.active {
        right: 0;
    }

    .nav-menu {
        flex-direction: column;
        gap: 0;
    }

    .nav-menu li {
        display: block;
        border-bottom: 1px solid #eee;
    }

    .nav-menu a {
        display: block;
        padding: 1rem 0;
    }

    .nav-menu .menu-item-has-children {
        border-bottom: none;
    }

    .nav-menu .sub-menu {
        position: static;
        display: block;
        box-shadow: none;
        border: none;
        padding: 0.25rem 0 0.75rem 0;
        margin-left: 0.5rem;
    }

    .nav-menu .sub-menu a {
        padding: 0.5rem 0;
    }
}

/* ==========================================================================
   Site Footer
   ========================================================================== */

.site-footer {
    background-color: #f8f8f8;
    border-top: 1px solid #eee;
    padding: 2rem 0;
    margin-top: 4rem;
}

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

.footer-info .copyright {
    color: #666;
    font-size: 0.875rem;
    margin: 0;
}

.footer-contact {
    margin: 0.25rem 0 0;
    font-size: 0.875rem;
}

.footer-contact a {
    color: #666;
}

.footer-contact a:hover {
    color: #0066cc;
}

.footer-menu {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-menu a {
    color: #666;
    font-size: 0.875rem;
}

.footer-menu a:hover {
    color: #0066cc;
}

.last-updated {
    font-size: 0.75rem;
    color: #999;
    margin: 0;
}

@media (max-width: 767px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

/* ==========================================================================
   Main Content
   ========================================================================== */

.site-main {
    min-height: 60vh;
}

.content-wrapper {
    padding: 3rem 0;
}

.entry-header {
    margin-bottom: 2rem;
}

.entry-title {
    color: #111;
}

.entry-content {
    line-height: 1.8;
}

/* Animated underline for content links */
.entry-content a {
    position: relative;
    color: var(--color-accent-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.entry-content a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent-primary);
    transition: width 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

.entry-content a:hover {
    color: var(--color-accent-primary-hover);
}

.entry-content a:hover::after {
    width: 100%;
}

.entry-content h2 {
    margin-top: 2.25rem;
    margin-bottom: 1rem;
}

.entry-content h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.entry-content ul,
.entry-content ol {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

.entry-content ul {
    list-style: disc;
}

.entry-content ol {
    list-style: decimal;
}

.entry-content li {
    margin-bottom: 0.5rem;
}

/* Tables (for pricing, feature comparisons) */
.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    font-size: 0.9375rem;
}

.entry-content th,
.entry-content td {
    padding: 0.75rem 1rem;
    text-align: left;
    border: 1px solid #ddd;
}

.entry-content th {
    background-color: #f8f8f8;
    font-weight: 600;
    color: #333;
}

.entry-content tr:nth-child(even) {
    background-color: #fafafa;
}

.entry-content tr:hover {
    background-color: #f0f0f0;
}

/* Responsive tables */
@media (max-width: 767px) {
    .entry-content table {
        font-size: 0.875rem;
    }

    .entry-content th,
    .entry-content td {
        padding: 0.5rem;
    }
}

/* ==========================================================================
   No Content (404, empty)
   ========================================================================== */

.no-content {
    text-align: center;
    padding: 4rem 0;
}

.no-content h1 {
    margin-bottom: 1rem;
    color: #666;
}

.no-content p {
    color: #999;
}

/* ==========================================================================
   Homepage Template Styles (T014)
   ========================================================================== */

/* Hero Section */
.hero-section {
    background:
        radial-gradient(at 20% 30%, rgba(99, 102, 241, 0.1) 0px, transparent 50%),
        radial-gradient(at 80% 70%, rgba(139, 92, 246, 0.1) 0px, transparent 50%),
        var(--color-surface);
    color: var(--color-text-primary);
    padding: var(--spacing-3xl) 0;
    text-align: center;
}

.hero-section .container {
    max-width: 1100px;
}

@media (min-width: 768px) {
    .hero-section {
        padding: var(--spacing-4xl) 0;
        text-align: left;
    }

    .hero-actions {
        justify-content: flex-start;
    }
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.hero-title {
    font-size: var(--font-size-5xl);  /* 48px mobile */
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--color-text-primary);
    letter-spacing: -0.02em;
    line-height: 1.1;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: var(--font-size-6xl);  /* 60px desktop */
    }
}

.hero-lead {
    font-size: var(--font-size-xl);  /* 20px */
    line-height: 1.7;
    margin-bottom: 2.5rem;
    color: var(--color-text-secondary);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 768px) {
    .hero-lead {
        font-size: var(--font-size-2xl);  /* 24px desktop */
    }
}

.hero-section ul {
    list-style: none;
    padding-left: 0;
    margin: 1.25rem 0 0;
}

.hero-section li {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    color: var(--color-text-secondary);
    font-size: var(--font-size-lg);
}

.hero-section img {
    width: min(960px, 100%);
    height: auto;
    margin: 2rem auto 0;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.hero-actions .btn {
    min-width: 200px;
}

/* Value Proposition Section */
.value-prop-section {
    background-color: var(--color-background);
}

.value-prop-section .entry-content {
    max-width: 800px;
    margin: 0 auto;
}

/* Services Preview */
.services-preview {
    background-color: #fff;
}

.services-preview h2 {
    margin-bottom: 1rem;
    font-size: 2rem;
}

.service-card {
    background-color: var(--color-background);
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    transition: all var(--transition-slow);
    position: relative;
    overflow: hidden;
    will-change: transform, box-shadow;
}

/* Gradient top border on hover */
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-accent-gradient-start), var(--color-accent-gradient-end));
    opacity: 0;
    transition: opacity var(--transition-slow);
}

.service-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-8px);
    border-color: var(--color-border-medium);
}

.service-card:hover::before {
    opacity: 1;
}

.service-card h3 {
    color: var(--color-text-primary);
    margin-bottom: 1rem;
    font-size: var(--font-size-2xl);
}

.service-excerpt {
    color: var(--color-text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.service-card .btn {
    width: 100%;
}

@media (min-width: 768px) {
    .service-card .btn {
        width: auto;
    }
}

/* ==========================================================================
   Services Template Styles (T017)
   ========================================================================== */

.service-header {
    background-color: #f8f9fa;
    border-bottom: 2px solid #e0e0e0;
    padding: 3rem 0;
}

.service-title {
    font-size: 2.5rem;
    color: #111;
    margin: 0;
}

@media (min-width: 768px) {
    .service-title {
        font-size: 3rem;
    }
}

.service-content {
    padding: 3rem 0;
}

/* Module sections for CTO-Kit */
.modules-content h2 {
    background-color: #f0f4f8;
    padding: 1rem 1.5rem;
    border-left: 4px solid #0066cc;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.modules-content h3 {
    color: #0066cc;
    margin-top: 1.5rem;
}

.modules-content ul {
    list-style: none;
    padding-left: 0;
}

.modules-content ul li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.75rem;
}

.modules-content ul li::before {
    content: "✓";
    color: #0066cc;
    font-weight: 700;
    position: absolute;
    left: 0;
}

/* Service CTA */
.service-cta {
    padding: 3rem 0;
}

.service-cta h2 {
    margin-bottom: 1rem;
}

.cta-text {
    font-size: 1.125rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.cta-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ==========================================================================
   Pricing Template Styles (T020)
   ========================================================================== */

.pricing-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 4rem 0;
}

.pricing-title {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .pricing-title {
        font-size: 3rem;
    }
}

.pricing-subtitle {
    font-size: 1.125rem;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto;
}

.pricing-content {
    padding: 3rem 0;
}

/* Enhanced table styles for pricing */
.pricing-content table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 2rem 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 0.5rem;
    overflow: hidden;
}

.pricing-content thead th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    font-weight: 700;
    padding: 1rem;
    text-align: left;
    font-size: 1.125rem;
}

.pricing-content tbody td {
    padding: 1rem;
    border-bottom: 1px solid #e0e0e0;
}

.pricing-content tbody tr:last-child td {
    border-bottom: none;
}

.pricing-content tbody tr:hover {
    background-color: #f8f9fa;
}

/* Highlight price column */
.pricing-content tbody td:nth-child(2) {
    font-weight: 700;
    color: #0066cc;
    font-size: 1.125rem;
}

/* Package names */
.pricing-content tbody td:first-child {
    font-weight: 600;
}

@media (max-width: 767px) {
    .pricing-content table {
        font-size: 0.875rem;
    }

    .pricing-content th,
    .pricing-content td {
        padding: 0.75rem 0.5rem;
    }
}

/* Pricing sections */
.pricing-content h2 {
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid #0066cc;
    font-size: 2rem;
}

.pricing-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #667eea;
}

.pricing-cta {
    padding: 3rem 0;
}

/* ==========================================================================
   About Template Styles (T023)
   ========================================================================== */

.about-header {
    background-color: #f8f9fa;
    border-bottom: 2px solid #e0e0e0;
    padding: 3rem 0;
}

.about-title {
    font-size: 2.5rem;
    color: #111;
    margin: 0;
}

@media (min-width: 768px) {
    .about-title {
        font-size: 3rem;
    }
}

.about-content {
    padding: 3rem 0;
}

.about-content .entry-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-content h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: #0066cc;
}

.about-content h3 {
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: #667eea;
}

.about-content ul {
    list-style: none;
    padding-left: 0;
}

.about-content ul li {
    padding-left: 2rem;
    position: relative;
    margin-bottom: 0.75rem;
}

.about-content ul li::before {
    content: "→";
    color: #0066cc;
    font-weight: 700;
    position: absolute;
    left: 0;
}

.about-cta {
    padding: 3rem 0;
}

/* ==========================================================================
   Legal Template Styles (T025)
   ========================================================================== */

.legal-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
    padding: 2rem 0;
}

.legal-title {
    font-size: 2rem;
    color: #111;
    margin: 0 0 0.5rem;
}

.legal-updated {
    font-size: 0.875rem;
    color: #666;
    margin: 0;
}

.legal-content {
    padding: 2rem 0;
}

.legal-content .entry-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 0.9375rem;
    line-height: 1.8;
}

.legal-content h2 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #333;
}

.legal-content h3 {
    font-size: 1.25rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: #555;
}

.legal-content p {
    margin-bottom: 1rem;
    color: #444;
}

.legal-content ul,
.legal-content ol {
    margin-bottom: 1rem;
    color: #444;
}

.legal-content a {
    color: var(--color-accent-primary);
    text-decoration: underline;
}

.legal-content a:hover {
    color: var(--color-accent-primary-hover);
}

/* ==========================================================================
   Scroll Animations
   ========================================================================== */

/* Base animation states */
.animation-ready {
    opacity: 0;
    transition: all var(--transition-slower);
}

/* Fade-in animation */
.animate-fade-in.animation-ready {
    opacity: 0;
}

.animate-fade-in.is-visible {
    opacity: 1;
}

/* Slide-up animation */
.animate-slide-up.animation-ready {
    opacity: 0;
    transform: translateY(40px);
}

.animate-slide-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger animation for grid items */
.animate-stagger > * {
    opacity: 0;
    transform: translateY(20px);
    transition: all 600ms cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-stagger > *.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   Performance & Accessibility
   ========================================================================== */

/* GPU acceleration for animated elements */
.service-card,
.btn,
.animate-slide-up,
.animate-fade-in {
    will-change: transform, opacity;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ==========================================================================
   Marketing Sections (Landing Pages)
   ========================================================================== */

/* Navigation CTA item appended via theme filter */
.nav-menu .menu-item-cta a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1rem;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--color-accent-primary) 0%, var(--color-accent-gradient-start) 100%);
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 8px 16px -8px rgba(59, 130, 246, 0.5);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), filter var(--transition-fast);
}

.nav-menu .menu-item-cta a:hover {
    color: #ffffff;
    transform: translateY(-1px);
}

.nav-menu .menu-item-cta a::after {
    display: none;
}

/* Hero visual */
.hero-visual,
.about-hero {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
}

.hero-visual img,
.about-hero img {
    width: min(960px, 100%);
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

/* Small, consistent helper text */
.fineprint {
    font-size: 0.9375rem;
    color: var(--color-text-tertiary);
}

/* Step cards */
.steps-grid {
    margin-top: 2rem;
}

.step-card {
    background: #ffffff;
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.step-card h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.step-card p {
    margin-bottom: 0;
    color: var(--color-text-secondary);
}

/* Download cards */
.download-grid {
    margin-top: 2rem;
}

.download-card {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    background: #ffffff;
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-decoration: none;
    color: var(--color-text-primary);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
    height: 100%;
}

.download-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: rgba(59, 130, 246, 0.35);
}

.download-card h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.download-card p {
    color: var(--color-text-secondary);
    margin-bottom: 0;
    flex: 1 1 auto;
}

.download-meta {
    display: inline-block;
    font-size: 0.875rem;
    color: var(--color-text-tertiary);
}

.download-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 700;
    color: var(--color-accent-primary);
}

.download-cta::after {
    content: '→';
    font-weight: 800;
}

.download-card:hover .download-cta {
    color: var(--color-accent-primary-hover);
}

.download-card:focus-visible {
    outline: 3px solid rgba(59, 130, 246, 0.5);
    outline-offset: 3px;
}

/* Pricing cards */
.pricing-grid {
    margin-top: 2rem;
    align-items: stretch;
}

.pricing-columns {
    gap: 1.5rem;
}

.pricing-column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pricing-stack {
    display: grid;
    gap: 1rem;
}

.pricing-card {
    background: #ffffff;
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    box-shadow: var(--shadow-sm);
    position: relative;
}

.pricing-card.is-featured {
    border-color: rgba(59, 130, 246, 0.45);
    box-shadow: var(--shadow-md);
}

.pricing-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.35rem 0.6rem;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--color-accent-primary) 0%, var(--color-accent-gradient-start) 100%);
}

.pricing-price {
    font-size: 2rem;
    font-weight: 800;
    margin: 0.5rem 0 0.75rem;
}

.pricing-kicker {
    color: var(--color-text-secondary);
    margin-bottom: 1rem;
}

.pricing-card ul {
    margin: 0 0 1.25rem;
}

.pricing-addons {
    margin-top: 1.5rem;
}

.addon-card {
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
}

.addon-card h3 {
    margin-top: 0;
}

.addon-price {
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.addon-wide {
    margin-top: 1rem;
}

/* Deliverables & modules */
.deliverables-grid,
.modules-grid,
.option-grid {
    margin-top: 2rem;
}

.deliverable-card,
.module-card,
.option-card {
    background: #ffffff;
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.deliverable-card h3,
.module-card h3,
.option-card h3 {
    margin-top: 0;
    margin-bottom: 0.75rem;
}

.module-highlight {
    border-color: rgba(139, 92, 246, 0.45);
}

.tag {
    display: inline-block;
    margin-left: 0.35rem;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--color-accent-secondary) 0%, var(--color-accent-gradient-end) 100%);
}

/* Ensure button styles are usable when inserted via markdown HTML */
.entry-content .btn {
    text-decoration: none;
}
