/* On The Fringe - Custom Styles */

/* Base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

/* Body */
body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: #111111;
    background-color: #fefdf8;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Custom selection color */
::selection {
    background-color: #1e7a4e;
    color: #fefdf8;
}

/* Typography scale */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', Georgia, serif;
    line-height: 1.2;
}

/* Focus styles for accessibility */
:focus-visible {
    outline: 2px solid #1e7a4e;
    outline-offset: 2px;
}

/* Remove focus outline for mouse users */
:focus:not(:focus-visible) {
    outline: none;
}

/* Image responsive */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Link styles */
a {
    text-decoration: none;
    color: inherit;
}

/* Button base styles */
button, [type="button"], [type="submit"], [type="reset"] {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

/* Input base styles */
input, select, textarea {
    font-family: inherit;
    font-size: inherit;
}

/* Animation keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Utility classes */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Print styles */
@media print {
    nav, .mobile-menu, #menuToggle {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    .service-card, .bg-white {
        border: 1px solid #ccc;
        break-inside: avoid;
    }
}

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

/* High contrast mode */
@media (prefers-contrast: high) {
    .service-card {
        border-width: 2px;
    }
    
    .btn-primary {
        border: 2px solid currentColor;
    }
}

/* Landscape mode on mobile */
@media (max-height: 500px) and (orientation: landscape) {
    #hero {
        min-height: auto;
        padding: 80px 0;
    }
}

/* Tablet and up */
@media (min-width: 768px) {
    .service-card:hover {
        transform: translateY(-8px);
    }
}

/* Desktop and up */
@media (min-width: 1024px) {
    .service-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    }
}
