
/* Local Noto Sans Hebrew fonts */
@font-face {
  font-family: 'Noto Sans Hebrew';
  font-style: normal;
  font-weight: 100;
  font-stretch: normal;
  font-display: swap;
  src: url('../fonts/noto-sans-hebrew-100.ttf') format('truetype');
}
@font-face {
  font-family: 'Noto Sans Hebrew';
  font-style: normal;
  font-weight: 200;
  font-stretch: normal;
  font-display: swap;
  src: url('../fonts/noto-sans-hebrew-200.ttf') format('truetype');
}
@font-face {
  font-family: 'Noto Sans Hebrew';
  font-style: normal;
  font-weight: 300;
  font-stretch: normal;
  font-display: swap;
  src: url('../fonts/noto-sans-hebrew-300.ttf') format('truetype');
}
@font-face {
  font-family: 'Noto Sans Hebrew';
  font-style: normal;
  font-weight: 400;
  font-stretch: normal;
  font-display: swap;
  src: url('../fonts/noto-sans-hebrew-400.ttf') format('truetype');
}
@font-face {
  font-family: 'Noto Sans Hebrew';
  font-style: normal;
  font-weight: 500;
  font-stretch: normal;
  font-display: swap;
  src: url('../fonts/noto-sans-hebrew-500.ttf') format('truetype');
}
@font-face {
  font-family: 'Noto Sans Hebrew';
  font-style: normal;
  font-weight: 600;
  font-stretch: normal;
  font-display: swap;
  src: url('../fonts/noto-sans-hebrew-600.ttf') format('truetype');
}
@font-face {
  font-family: 'Noto Sans Hebrew';
  font-style: normal;
  font-weight: 600;
  font-stretch: normal;
  font-display: swap;
  src: url('../fonts/noto-sans-hebrew-700.ttf') format('truetype');
}
@font-face {
  font-family: 'Noto Sans Hebrew';
  font-style: normal;
  font-weight: 800;
  font-stretch: normal;
  font-display: swap;
  src: url('../fonts/noto-sans-hebrew-800.ttf') format('truetype');
}
@font-face {
  font-family: 'Noto Sans Hebrew';
  font-style: normal;
  font-weight: 900;
  font-stretch: normal;
  font-display: swap;
  src: url('../fonts/noto-sans-hebrew-900.ttf') format('truetype');
}

body {
    font-family: 'Noto Sans Hebrew', 'Open Sans', 'Arial', 'Helvetica', sans-serif;
}

/* Content container and max-width — ensure these apply even if Tailwind build omits them */
.container {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}
.max-w-\[1440px\] {
    max-width: 1440px;
}
@media (min-width: 640px) {
    .sm\:px-8 {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}
@media (min-width: 1024px) {
    .lg\:px-12 {
        padding-left: 3rem;
        padding-right: 3rem;
    }
}

/* Card internal padding — more “air” for text (same as other pages) */
.px-10 {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
}
.py-5 {
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
}
.py-6 {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}
.px-12 {
    padding-left: 3rem;
    padding-right: 3rem;
}
.py-12 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

/* Prevent FOUC by setting default dark theme styles */
html {
    color-scheme: light;
}

html[data-theme="dark"] {
    color-scheme: dark;
}

/* Ensure smooth theme transitions */
* {
    transition: background-color 0.1s ease, color 0.1s ease, border-color 0.1s ease;
}

/* Noto Sans Hebrew font optimization */
* {
    font-family: 'Noto Sans Hebrew', 'Open Sans', 'Arial', 'Helvetica', sans-serif;
}

/* Dark theme CSS variables */
:root {
    --bg-primary: #f9fafb;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f3f4f6;
    --text-primary: #111827;
    --text-secondary: #6b7280;
    --text-tertiary: #9ca3af;
    --border-color: #e5e7eb;
    --shadow-color: rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] {
    --bg-primary: #111827;
    --bg-secondary: #111827;
    --bg-tertiary: #1f2937;
    --text-primary: #ffffff;
    --text-secondary: #e5e7eb;
    --text-tertiary: #d1d5db;
    --border-color: #374151;
    --shadow-color: rgba(0, 0, 0, 0.3);
}

/* Theme switcher styles for footer */
.theme-switcher-container {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: center;
    margin-top: 16px;
}

.theme-toggle-btn {
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    color: var(--text-primary);
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    box-shadow: 0 2px 8px var(--shadow-color);
}

.theme-toggle-btn:hover {
    background: var(--bg-tertiary);
    transform: scale(1.1);
    box-shadow: 0 4px 12px var(--shadow-color);
}

.theme-toggle-btn-dark.active {
    background: var(--text-primary);
    color: var(--bg-secondary);
    border-color: var(--text-primary);
}
.theme-toggle-btn-light.active {
    background: var(--bg-primary);
    color: var(--text-secondary);
    border-color: var(--bg-primary);
}

.theme-toggle-btn svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.theme-toggle-btn:hover svg {
    transform: rotate(15deg);
}

/* Dark theme overrides for existing elements */
[data-theme="dark"] body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

[data-theme="dark"] .bg-white {
    background-color: var(--bg-secondary) !important;
}

[data-theme="dark"] .bg-gray-50 {
    background-color: var(--bg-tertiary) !important;
}

[data-theme="dark"] .text-gray-900 {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .text-gray-700 {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .text-gray-600 {
    color: var(--text-secondary) !important;
}

[data-theme="dark"] .text-gray-500 {
    color: var(--text-tertiary) !important;
}

[data-theme="dark"] .border-gray-100 {
    border-color: var(--border-color) !important;
}

[data-theme="dark"] .border-gray-200 {
    border-color: var(--border-color) !important;
}

[data-theme="dark"] .bg-gray-100 {
    background-color: var(--bg-tertiary) !important;
}

[data-theme="dark"] .text-gray-300 {
    color: var(--text-secondary) !important;
}

[data-theme="dark"] .border-gray-800 {
    border-color: var(--border-color) !important;
}

[data-theme="dark"] .text-gray-400 {
    color: var(--text-tertiary) !important;
}

/* FAQ Accordion dark theme styles */
[data-theme="dark"] .faq-item {
    background-color: var(--bg-tertiary) !important;
    border-color: var(--border-color) !important;
}

[data-theme="dark"] .faq-question {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .faq-question:hover {
    background-color: var(--bg-secondary) !important;
}

[data-theme="dark"] .faq-question span {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .faq-icon {
    color: var(--text-secondary) !important;
}

[data-theme="dark"] .faq-answer p {
    color: var(--text-secondary) !important;
}

/* Dark theme for footer */
[data-theme="dark"] footer {
    background-color: #0f172a !important;
}

[data-theme="dark"] footer .text-white {
    color: var(--text-primary) !important;
}

[data-theme="dark"] footer .text-gray-300 {
    color: var(--text-secondary) !important;
}

[data-theme="dark"] footer .text-gray-400 {
    color: var(--text-tertiary) !important;
}

/* Dark theme for header dropdowns */
[data-theme="dark"] .absolute.bg-white {
    background-color: var(--bg-secondary) !important;
    border-color: var(--border-color) !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3) !important;
}

[data-theme="dark"] .absolute.bg-white a {
    color: var(--text-secondary) !important;
}

[data-theme="dark"] .absolute.bg-white a:hover {
    background-color: var(--bg-tertiary) !important;
    color: var(--text-primary) !important;
}

/* Dark theme for mobile menu */
[data-theme="dark"] .mobile-menu-transition {
    background-color: var(--bg-secondary) !important;
    border-color: var(--border-color) !important;
}

[data-theme="dark"] .mobile-menu-transition a {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .mobile-menu-transition a:hover {
    background-color: var(--bg-tertiary) !important;
    color: var(--text-primary) !important;
}

[data-theme="dark"] .mobile-dropdown-transition a {
    color: var(--text-secondary) !important;
}

[data-theme="dark"] .mobile-dropdown-transition a:hover {
    color: var(--text-primary) !important;
}

/* CTA Button styles */
.cta-button {
    background-color: #111827;
    color: #ffffff;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    font-weight: 600;
}

.cta-button:hover {
    background-color: #1f2937;
    transform: translateY(-1px);
}

/* Dark theme CTA buttons with white borders for visibility */
[data-theme="dark"] .cta-button {
    background-color: #1f2937 !important;
    border: 1px solid #ffffff !important;
    color: #ffffff !important;
    font-weight: 600 !important;
}

[data-theme="dark"] .cta-button:hover {
    background-color: #4b5563 !important;
    border-color: #ffffff !important;
    color: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3) !important;
}

/* Secondary button with border on dark theme */
[data-theme="dark"] a.border-2[href="/contact"],
[data-theme="dark"] button.border-2 {
    color: #ffffff !important;
    border-color: #ffffff !important;
    background-color: transparent !important;
}

[data-theme="dark"] a.border-2[href="/contact"]:hover,
[data-theme="dark"] button.border-2:hover {
    color: #1f2937 !important;
    background-color: #ffffff !important;
    border-color: #ffffff !important;
}

/* Login and About buttons hover on dark theme */
[data-theme="dark"] a[href="https://app.accounting-ai.co.il/auth/login/"]:hover,
[data-theme="dark"] a[href="/about"]:hover {
    color: #ffffff !important;
    background-color: rgba(255, 255, 255, 0.1) !important;
    border-radius: 0.5rem;
}

/* Dark theme for header buttons and navigation */
[data-theme="dark"] header button {
    color: var(--text-primary) !important;
}

[data-theme="dark"] header button:hover {
    color: #60a5fa !important;
}

[data-theme="dark"] header nav a {
    color: var(--text-primary) !important;
}

[data-theme="dark"] header nav a:hover {
    color: #60a5fa !important;
}

/* Logo theme switching */
.logo-light-theme {
    display: block;
}

.logo-dark-theme {
    display: none;
}

[data-theme="dark"] .logo-light-theme {
    display: none;
}

[data-theme="dark"] .logo-dark-theme {
    display: block;
}
