/* ============================================
   SEABEE ELECTRIC — Custom Styles
   Clean, Minimalist, Terracotta & Sand Palette
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
    --color-terracotta-50: #fdf8f6;
    --color-terracotta-100: #f2e8e5;
    --color-terracotta-200: #eaddd7;
    --color-terracotta-600: #b08678;
    --color-terracotta-700: #96685d;
    --color-terracotta-950: #3a2522;
    --color-sand-50: #fcfaf8;
    --color-sand-100: #f7f3ef;
    --color-sand-200: #efe8df;
    --color-sand-300: #e3d5c6;
    --color-dark: #1a1a1a;
    --color-light: #faf9f7;
    
    --font-sans: 'Manrope', sans-serif;
    --font-serif: 'Playfair Display', serif;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    background-color: var(--color-light);
    color: var(--color-dark);
    line-height: 1.6;
}

/* --- Selection --- */
::selection {
    background-color: var(--color-terracotta-200);
    color: var(--color-terracotta-950);
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--color-sand-50);
}

::-webkit-scrollbar-thumb {
    background: var(--color-terracotta-200);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-terracotta-600);
}

/* --- Heading Styles --- */
h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 400;
    line-height: 1.2;
}

/* --- Utility: Focus Visible --- */
*:focus-visible {
    outline: 2px solid var(--color-terracotta-700);
    outline-offset: 2px;
}

/* --- Navbar Scroll State --- */
#navbar.scrolled {
    box-shadow: 0 1px 0 rgba(0,0,0,0.05);
}

/* --- Service Card Hover --- */
.group:hover .group-hover\\:translate-x-1 {
    transform: translateX(4px);
}

/* --- Mobile Menu Transition --- */
#mobile-menu {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Form Input Transitions --- */
input:focus,
textarea:focus,
select:focus {
    border-color: var(--color-terracotta-700) !important;
}

/* --- Smooth Image Loading --- */
img {
    opacity: 1;
    transition: opacity 0.3s ease;
}

img[data-src] {
    opacity: 0;
}

/* --- Reduced Motion --- */
@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;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* --- Print Styles --- */
@media print {
    #navbar,
    #mobile-menu,
    .hover\\:scale-105 {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    a {
        color: black !important;
        text-decoration: underline !important;
    }
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    .font-serif {
        font-size: clamp(2rem, 8vw, 3rem);
    }
}
