/* Import a professional font from Google Fonts */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

:root {
    /* Typography */
    --pico-font-family:
        "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        sans-serif;
    --pico-font-size: 1.1rem;
    --pico-line-height: 1.7;

    /* 2025 Professional Color Palette */
    --pico-primary-500: #3b82f6; /* Modern blue */
    --pico-primary-600: #2563eb; /* Deep blue */
    --pico-primary-700: #1e40af; /* Darker blue */

    /* Purple sophistication accent */
    --purple-accent: #8b5cf6;
    --purple-hover: #7c3aed;

    /* Orange energy accent */
    --accent-color: #f97316;
    --accent-hover: #ea580c;

    /* 2025 neutral warmth */
    --neutral-warm: #f5f5f4;
    --neutral-text: #374151;
}

[data-theme="dark"] {
    --pico-primary-500: #60a5fa;
    --pico-primary-600: #3b82f6;
    --purple-accent: #a78bfa;
    --accent-color: #fb923c;
    --accent-hover: #f97316;
    --neutral-text: #d1d5db;
}

/* Ensure proper dark mode detection */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        /* Additional dark mode refinements if needed */
        --pico-background-color: #1a1a1a;
        --pico-card-background-color: #2a2a2a;
    }
}

/* Optional: Manual theme toggle support */
[data-theme="dark"] {
    --pico-background-color: #1a1a1a;
    --pico-card-background-color: #2a2a2a;
}

[data-theme="light"] {
    --pico-background-color: #ffffff;
    --pico-card-background-color: #f8f9fa;
}

/* Theme toggle button styling */
.theme-toggle {
    background: transparent;
    border: 1px solid var(--pico-form-element-border-color);
    border-radius: 50%;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-left: 1rem;
}

.theme-toggle:hover {
    background-color: var(--pico-primary-500);
    border-color: var(--pico-primary-500);
    transform: none; /* Override the default button hover transform */
}

/* For the enhanced version with separate icons */
.theme-toggle .dark-icon {
    display: none;
}

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

[data-theme="dark"] .theme-toggle .dark-icon {
    display: inline;
}

/* Simple version styling */
.theme-icon {
    font-size: 1.2rem;
    line-height: 1;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .theme-toggle {
        width: 2rem;
        height: 2rem;
        margin-left: 0.5rem;
    }

    .theme-icon {
        font-size: 1rem;
    }
}

/* Apply the color scheme */
h3 {
    color: var(--purple-accent);
}

.brand-accent {
    color: var(--accent-color);
}

.brand-highlight {
    background: linear-gradient(
        120deg,
        var(--accent-color) 0%,
        var(--pico-primary-500) 100%
    );
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 600;
}

/* Typography enhancements */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    letter-spacing: -0.025em;
    line-height: 1.4;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2rem;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

/* Improved paragraph spacing and readability */
p {
    margin-bottom: 1.5rem;
    color: var(--pico-color);
}

/* Enhanced link styling */
a:not([role="button"]) {
    color: var(--pico-primary-600);
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
    transition: all 0.2s ease;
}

a:not([role="button"]):hover {
    color: var(--pico-primary-700);
    text-decoration-thickness: 3px;
}

/* Professional button styling */
button,
[role="button"],
input[type="submit"],
input[type="button"] {
    font-weight: 500;
    letter-spacing: 0.025em;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

button:hover,
[role="button"]:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Enhanced navigation */
nav ul li {
    font-weight: 500;
}

nav a {
    text-decoration: none;
    transition: color 0.2s ease;
}

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

/* Improved hero section */
.hero-section {
    text-align: center;
    padding: 4rem 0;
    background: linear-gradient(
        135deg,
        var(--pico-card-background-color) 0%,
        var(--pico-background-color) 100%
    );
    border-radius: var(--pico-border-radius);
    margin-bottom: 3rem;
    border: 1px solid var(--pico-card-border-color);
}

.hero-section h1 {
    margin-bottom: 1.5rem;
}

.hero-section p {
    font-size: 1.25rem;
    color: var(--pico-contrast-lower);
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* Enhanced service grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.services-grid article {
    padding: 2rem;
    border: 1px solid var(--pico-card-border-color);
    border-radius: var(--pico-border-radius);
    transition: all 0.2s ease;
    background: var(--pico-card-background-color);
}

.services-grid article:hover {
    border-color: var(--pico-primary-500);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.services-grid h3 {
    margin-top: 0;
    margin-bottom: 1rem;
}

/* Professional form styling */
.contact-form {
    max-width: 600px;
    margin: 2rem 0;
    padding: 2rem;
    background: var(--pico-card-background-color);
    border: 1px solid var(--pico-card-border-color);
    border-radius: var(--pico-border-radius);
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--pico-contrast-higher);
}

.contact-form input,
.contact-form textarea {
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--pico-primary-500);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Enhanced footer */
footer {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 2px solid var(--pico-card-border-color);
}

footer p {
    color: var(--pico-contrast-lower);
    margin-bottom: 0.5rem;
}

/* Boutique branding touches */
.brand-accent {
    color: var(--accent-color);
    font-weight: 600;
}

.brand-highlight {
    background: linear-gradient(
        120deg,
        var(--accent-color) 0%,
        var(--pico-primary-500) 100%
    );
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 600;
}

/* Subtle animations */
@media (prefers-reduced-motion: no-preference) {
    article,
    .contact-form,
    button {
        transition: all 0.2s ease;
    }
}

/* Mobile responsiveness improvements */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .hero-section {
        padding: 2rem 0;
    }

    .contact-form {
        padding: 1.5rem;
        margin: 1rem 0;
    }
}
