/*
 * ChozekAI shared web design system.
 *
 * This file is the single owner of interactive component styling. Page-level
 * CSS may control layout and decorative sections, but must not redefine the
 * dimensions, typography, focus states, or motion of controls.
 */

:root {
  --cz-font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --cz-color-primary: #6d28d9;
  --cz-color-primary-hover: #5b21b6;
  --cz-color-primary-active: #4c1d95;
  --cz-color-secondary: #475569;
  --cz-color-secondary-hover: #334155;
  --cz-color-success: #15803d;
  --cz-color-success-hover: #166534;
  --cz-color-danger: #dc2626;
  --cz-color-danger-hover: #b91c1c;
  --cz-color-warning: #d97706;
  --cz-color-warning-hover: #b45309;
  --cz-color-orange: #f97316;
  --cz-color-orange-hover: #ea580c;
  --cz-color-surface: #ffffff;
  --cz-color-surface-muted: #f8fafc;
  --cz-color-text: #0f172a;
  --cz-color-text-muted: #64748b;
  --cz-color-border: #cbd5e1;
  --cz-color-border-hover: #94a3b8;
  --cz-color-focus: rgba(109, 40, 217, 0.22);
  --cz-control-height: 44px;
  --cz-control-height-sm: 36px;
  --cz-control-height-lg: 52px;
  --cz-control-radius: 10px;
  --cz-field-radius: 0;
  --cz-control-padding-x: 16px;
  --cz-control-font-size: 0.95rem;
  --cz-control-font-weight: 600;
  --cz-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.08);
  --cz-shadow-control: 0 6px 16px rgba(15, 23, 42, 0.12);
  --cz-transition: 160ms ease;
}

html {
  color-scheme: light;
}

body {
  color: var(--cz-color-text);
  font-family: var(--cz-font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Buttons and button-like links */
.btn,
.btn-signup-link,
.btn-signin-link,
input[type="button"],
input[type="submit"],
input[type="reset"] {
  align-items: center !important;
  border-radius: var(--cz-control-radius) !important;
  display: inline-flex !important;
  font-family: var(--cz-font-sans) !important;
  font-size: var(--cz-control-font-size) !important;
  font-weight: var(--cz-control-font-weight) !important;
  gap: 0.5rem !important;
  justify-content: center !important;
  line-height: 1.2 !important;
  min-height: var(--cz-control-height) !important;
  padding: 0.65rem var(--cz-control-padding-x) !important;
  text-decoration: none !important;
  transition: background-color var(--cz-transition), border-color var(--cz-transition),
    box-shadow var(--cz-transition), color var(--cz-transition), transform var(--cz-transition) !important;
}

.btn:hover:not(:disabled):not(.disabled),
input[type="button"]:hover:not(:disabled),
input[type="submit"]:hover:not(:disabled),
input[type="reset"]:hover:not(:disabled) {
  transform: translateY(-1px) !important;
  box-shadow: var(--cz-shadow-control) !important;
}

.btn:active:not(:disabled):not(.disabled),
input[type="button"]:active:not(:disabled),
input[type="submit"]:active:not(:disabled),
input[type="reset"]:active:not(:disabled) {
  transform: translateY(0) !important;
  box-shadow: var(--cz-shadow-sm) !important;
}

.btn-sm {
  min-height: var(--cz-control-height-sm) !important;
  padding: 0.45rem 0.75rem !important;
  font-size: 0.85rem !important;
}

.btn-lg {
  min-height: var(--cz-control-height-lg) !important;
  padding: 0.8rem 1.25rem !important;
  font-size: 1rem !important;
}

.btn-primary,
.btn-orange,
.btn-signin,
.btn-signup-submit,
.btn-submit,
.btn-modern,
.btn-add,
.btn-hero-primary,
.btn-dashboard,
.btn-indigo-gradient,
.footer .newsletter-form button {
  color: #fff !important;
  background: var(--cz-color-primary) !important;
  border: 1px solid var(--cz-color-primary) !important;
}

.btn-primary:hover,
.btn-orange:hover,
.btn-signin:hover,
.btn-signup-submit:hover,
.btn-submit:hover,
.btn-modern:hover,
.btn-add:hover,
.btn-hero-primary:hover,
.btn-dashboard:hover,
.btn-indigo-gradient:hover,
.footer .newsletter-form button:hover {
  color: #fff !important;
  background: var(--cz-color-primary-hover) !important;
  border-color: var(--cz-color-primary-hover) !important;
}

.btn-header-login {
  color: #fff !important;
  background: var(--cz-color-orange) !important;
  border-color: var(--cz-color-orange) !important;
}

.btn-header-login:hover,
.btn-header-login:focus-visible {
  color: #fff !important;
  background: var(--cz-color-orange-hover) !important;
  border-color: var(--cz-color-orange-hover) !important;
}

.btn-secondary { background: var(--cz-color-secondary) !important; border-color: var(--cz-color-secondary) !important; color: #fff !important; }
.btn-secondary:hover { background: var(--cz-color-secondary-hover) !important; border-color: var(--cz-color-secondary-hover) !important; color: #fff !important; }
.btn-success { background: var(--cz-color-success) !important; border-color: var(--cz-color-success) !important; color: #fff !important; }
.btn-success:hover { background: var(--cz-color-success-hover) !important; border-color: var(--cz-color-success-hover) !important; color: #fff !important; }
.btn-danger { background: var(--cz-color-danger) !important; border-color: var(--cz-color-danger) !important; color: #fff !important; }
.btn-danger:hover { background: var(--cz-color-danger-hover) !important; border-color: var(--cz-color-danger-hover) !important; color: #fff !important; }
.btn-warning { background: var(--cz-color-warning) !important; border-color: var(--cz-color-warning) !important; color: #fff !important; }
.btn-warning:hover { background: var(--cz-color-warning-hover) !important; border-color: var(--cz-color-warning-hover) !important; color: #fff !important; }

.btn-outline-primary,
.btn-outline-orange,
.btn-outline-modern,
.btn-signup-link,
.btn-signin-link {
  color: var(--cz-color-primary) !important;
  background: transparent !important;
  border: 1px solid var(--cz-color-primary) !important;
}

.btn-signin,
.btn-signup-submit,
.btn-signup-link,
.btn-signin-link {
  width: 100% !important;
}

.btn-signup-link,
.btn-signin-link {
  margin-top: 0.6rem;
}

.btn-outline-primary:hover,
.btn-outline-orange:hover,
.btn-outline-modern:hover,
.btn-signup-link:hover,
.btn-signin-link:hover {
  color: #fff !important;
  background: var(--cz-color-primary) !important;
  border-color: var(--cz-color-primary) !important;
}

.btn-link {
  color: var(--cz-color-primary) !important;
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

.btn-close {
  border-radius: 50% !important;
  min-height: 32px;
  min-width: 32px;
  transition: background-color var(--cz-transition), opacity var(--cz-transition), transform var(--cz-transition) !important;
}

/* Fields, dropdown triggers, and upload controls */
.form-control,
.form-select,
.form-control-modern,
input:not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="hidden"]),
select,
textarea {
  color: var(--cz-color-text) !important;
  background-color: var(--cz-color-surface) !important;
  border: 1px solid var(--cz-color-border) !important;
  border-radius: var(--cz-field-radius) !important;
  box-shadow: var(--cz-shadow-sm) !important;
  font-family: var(--cz-font-sans) !important;
  font-size: var(--cz-control-font-size) !important;
  line-height: 1.4 !important;
  min-height: var(--cz-control-height) !important;
  padding: 0.65rem 0.875rem !important;
  transition: background-color var(--cz-transition), border-color var(--cz-transition),
    box-shadow var(--cz-transition) !important;
}

select,
.form-select {
  cursor: pointer;
  padding-right: 2.5rem !important;
}

textarea,
textarea.form-control {
  min-height: 120px !important;
  resize: vertical;
}

.form-control:hover,
.form-select:hover,
.form-control-modern:hover,
input:not([type="button"]):not([type="submit"]):not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):hover,
select:hover,
textarea:hover {
  border-color: var(--cz-color-border-hover) !important;
}

.form-control:focus,
.form-select:focus,
.form-control-modern:focus,
input:not([type="button"]):not([type="submit"]):not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):focus,
select:focus,
textarea:focus {
  color: var(--cz-color-text) !important;
  background-color: var(--cz-color-surface) !important;
  border-color: var(--cz-color-primary) !important;
  box-shadow: 0 0 0 4px var(--cz-color-focus) !important;
  outline: 0 !important;
}

::placeholder {
  color: var(--cz-color-text-muted) !important;
  opacity: 1 !important;
}

.form-label,
label {
  color: var(--cz-color-text) ;
  font-family: var(--cz-font-sans);
  font-size: 0.9rem;
  font-weight: 600;
}

.form-text,
.helptext {
  color: var(--cz-color-text-muted) !important;
  font-size: 0.82rem;
}

.form-check-input {
  min-height: 1rem !important;
  min-width: 1rem;
  padding: 0 !important;
  border-radius: 0.25rem !important;
}

.form-check-input:checked {
  background-color: var(--cz-color-primary) !important;
  border-color: var(--cz-color-primary) !important;
}

.input-group > .form-control,
.input-group > .form-select,
.input-group > input,
.input-group > select,
.input-group > button,
.input-group > .btn {
  margin: 0;
}

.input-group-text {
  color: var(--cz-color-text-muted) !important;
  background: var(--cz-color-surface-muted) !important;
  border-color: var(--cz-color-border) !important;
  border-radius: var(--cz-field-radius) !important;
}

.input-group > .input-group-text {
  width: 46px;
  flex: 0 0 46px;
  justify-content: center;
}

.input-group > .btn-toggle-pw {
  width: 46px !important;
  min-width: 46px;
  flex: 0 0 46px;
  padding: 0 !important;
  color: var(--cz-color-text-muted) !important;
  background: var(--cz-color-surface-muted) !important;
  border: 1px solid var(--cz-color-border) !important;
  border-left: 0 !important;
  border-radius: var(--cz-field-radius) !important;
  box-shadow: none !important;
}

.input-group > .btn-toggle-pw:hover,
.input-group > .btn-toggle-pw:focus-visible {
  color: var(--cz-color-text) !important;
  background: #eef2f6 !important;
  transform: none !important;
}

/* Fields are deliberately flat; buttons retain the shared control radius. */
html body .form-control,
html body .form-select,
html body .form-control-modern,
html body .input-group-text,
html body input:not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="hidden"]),
html body select,
html body textarea,
html body .select2-container .select2-selection,
html body .choices__inner {
  border-radius: var(--cz-field-radius) !important;
}

/* Menus */
.dropdown-menu {
  padding: 0.5rem !important;
  color: var(--cz-color-text) !important;
  background: var(--cz-color-surface) !important;
  border: 1px solid var(--cz-color-border) !important;
  border-radius: var(--cz-control-radius) !important;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.16) !important;
}

.dropdown-item {
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.75rem !important;
  color: var(--cz-color-text) !important;
  border-radius: 8px !important;
  font-size: 0.92rem;
  transition: background-color var(--cz-transition), color var(--cz-transition) !important;
}

.dropdown-item:hover,
.dropdown-item:focus {
  color: var(--cz-color-primary) !important;
  background: #f3e8ff !important;
}

.dropdown-item.active,
.dropdown-item:active {
  color: #fff !important;
  background: var(--cz-color-primary) !important;
}

/* Consistent validation, disabled, and keyboard states */
.is-invalid,
.was-validated :invalid {
  border-color: var(--cz-color-danger) !important;
}

.is-valid,
.was-validated :valid {
  border-color: var(--cz-color-success) !important;
}

:disabled,
.disabled {
  cursor: not-allowed !important;
  opacity: 0.56 !important;
  transform: none !important;
  box-shadow: none !important;
}

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid var(--cz-color-focus) !important;
  outline-offset: 2px !important;
}

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

/*
 * ---------------------------------------------------------------------------
 * Page layout & decorative sections (merged from css/style.css)
 * ---------------------------------------------------------------------------
 */

/* Prevent horizontal scrolling */
@font-face {
    font-family: "Indie Flower";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/indie-flower-latin.9394245807cd.woff2") format("woff2");
}

html, body {
    overflow-x: hidden;
    max-width: 100%;
}

.store-download-badge {
    display: inline-flex;
    width: 164px;
    min-height: 50px;
    align-items: center;
    gap: .65rem;
    padding: .48rem .8rem;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 9px;
    color: #fff;
    background: #050505;
    text-align: left;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(0,0,0,.18);
    transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.store-download-badge:hover {
    color: #fff;
    background: #171717;
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(0,0,0,.24);
}
.store-download-badge > i { width: 25px; font-size: 1.55rem; line-height: 1; text-align: center; }
.store-download-badge > span { display: flex; flex-direction: column; line-height: 1.05; }
.store-download-badge small { color: inherit; font-size: .62rem; letter-spacing: .015em; }
.store-download-badge strong { color: inherit; font-size: 1.05rem; font-weight: 600; white-space: nowrap; }
.app-badge-link { width: fit-content; text-decoration: none; }

.navbar {
    z-index: 10;
    transition: background-color 0.3s ease-in-out;
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
    color: #000;

    font-family: "Indie Flower", cursive;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
}

.logo {
    height: 25px;
    margin-right: 2px;
    margin-top: -7px;
}

.brand-text {
    font-size: 1.5rem;
    display: flex;
    align-items: center;
}

.text-orange {
    color: orange;
}

.text-dark {
    color: black;
    margin-left: 0;
}

.navbar-nav .nav-link {
    font-size: 1.1rem;
    margin-left: 15px;
}

.navbar-nav .nav-link.active {
    color: #9c40c0;
}

.hero-modern {
    position: relative;
    min-height: 95vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    background: linear-gradient(135deg, #1e1e2f 0%, #3f3cbb 100%);
    overflow: hidden;
    padding: 4rem 1rem;
}

.hero-modern::before {
    content: '';
    position: absolute;
    top: -100px;
    left: -100px;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.05), transparent 70%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    text-align: center;
}

.hero-modern h1 {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.hero-modern h1 span {
    background: linear-gradient(to right, #facc15, #fb923c);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.hero-modern .subtitle {
    text-transform: uppercase;
    letter-spacing: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: #d1d5db;
    margin-top: 1rem;
    margin-bottom: 2.5rem;
}

@media (max-width: 768px) {
    .hero-modern h1 {
        font-size: 2.2rem;
    }

    .hero-modern .subtitle {
        font-size: 0.9rem;
        letter-spacing: 0.3rem;
    }

    .hero-modern .btn {
        width: 100%;
    }
}

.services-section {
    background: linear-gradient(135deg, #f4f6fc, #e9efff);
    padding: 2rem 0;
}
.services-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.services-subtitle {
    font-size: 1.1rem;
    color: #6c757d;
}
.service-card {
    border: none;
    border-radius: 1.25rem;
    padding: 2rem;
    background: #ffffff;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}
.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 1.5rem 2rem rgba(0, 0, 0, 0.08);
}
.icon-circle {
    width: 60px;
    height: 60px;
    background-color: #e9f0ff;
    color: #0d6efd;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}
.service-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #212529;
}
.service-desc {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
}

.feature {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: white;
    width: 100%;
    max-width: 250px;
}

.feature:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.feature i {
    font-size: 3rem;
    margin-bottom: 10px;
    color: #ffcc00;
}

.feature h3 {
    font-size: 1.2rem;
    margin: 10px 0;
    font-weight: bold;
}

.feature p {
    font-size: 0.9rem;
    color: #f0f0f0;
}

.img-fluid:hover {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

/* ===== FOOTER ===== */
.footer {
    background: linear-gradient(180deg, #16191d 0%, #1e2227 60%, #212529 100%);
    color: #cdd3da;
    padding: 64px 0 0;
    position: relative;
    border-top: 3px solid transparent;
    border-image: linear-gradient(90deg, #ff8c00 0%, #667eea 50%, #ff8c00 100%) 1;
}

/* Brand tagline */
.footer-tagline {
    color: #7a8490;
    font-size: 0.88rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

/* Footer section headings */
.footer h2 {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #ffffff;
    margin-bottom: 1.25rem;
    padding-bottom: 0.6rem;
    position: relative;
}

.footer h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 28px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, #ff8c00, #667eea);
}

/* Footer inline links (About, Terms, etc.) */
.footer-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #8c96a2;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.25s ease, transform 0.25s ease;
}

.footer-link::before {
    content: "›";
    color: #ff8c00;
    font-size: 1.1rem;
    line-height: 1;
    transition: transform 0.2s ease;
}

.footer-link:hover {
    color: #ff8c00;
    transform: translateX(4px);
}

/* Quick-link nav items */
.footer .nav-link {
    color: #8c96a2;
    font-size: 0.9rem;
    padding: 0.2rem 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.25s ease, transform 0.25s ease;
}

.footer .nav-link::before {
    content: "›";
    color: #ff8c00;
    font-size: 1.1rem;
    line-height: 1;
}

.footer .nav-link:hover {
    color: #ff8c00;
    transform: translateX(4px);
}

/* Social icon pills */
.footer .social-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.footer .social-icons a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cdd3da;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background 0.3s ease, color 0.3s ease, transform 0.25s ease, border-color 0.3s ease;
    -webkit-text-fill-color: unset;
}

.footer .social-icons a:hover {
    background: linear-gradient(135deg, #ff8c00, #667eea);
    border-color: transparent;
    color: #fff;
    -webkit-text-fill-color: #fff;
    transform: translateY(-4px);
}

/* Newsletter form */
.footer .newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Divider & copyright strip */
.footer-divider {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin: 2.5rem 0 0;
}

.footer-copyright-strip {
    background: rgba(0, 0, 0, 0.25);
    padding: 1rem 0;
    font-size: 0.82rem;
    color: #5c6470;
}

/* Keep legacy selector working */
.footer .text-center {
    font-size: 0.9rem;
    margin-top: 0;
}
