* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html { overflow-y: scroll; }

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fefefe;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: linear-gradient(135deg, #F2722D 0%, #E85A1A 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

header .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    min-height: 60px; /* Ensure consistent height */
    width: 100%;
}

.logo {
    font-size: 2rem;
    font-weight: bold;
    letter-spacing: -1px;
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease;
    flex-shrink: 0; /* Prevent logo from shrinking */
}

/* Split styling for Crafty Fox logo */
.logo-crafty {
    font-family: 'Varela Round', Arial, sans-serif;
    font-weight: 400;
}

.logo-fox {
    font-family: 'Outfit', Arial, sans-serif;
    font-weight: 700;
}

.logo:hover {
    opacity: 0.9;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0; /* Ensure no default margins */
    padding: 0; /* Ensure no default padding */
    flex-shrink: 0; /* Prevent nav links from shrinking */
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.nav-links a:hover {
    opacity: 0.8;
}

/* Main Content */
main {
    flex: 1;
    padding: 3rem 0;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 4rem 0;
    background: linear-gradient(135deg, #FFF5F0 0%, #FFE5D6 100%);
    margin-bottom: 3rem;
    width: 100%; /* Ensure consistent width */
    overflow: hidden; /* Prevent any width issues */
}

.hero h1 {
    font-size: 3rem;
    color: #F2722D;
    margin-bottom: 1rem;
    font-weight: bold;
}

.hero p {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Sections */
.section {
    margin-bottom: 3rem;
}

.section h2 {
    font-size: 2rem;
    color: #F2722D;
    margin-bottom: 1.5rem;
    text-align: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
}

.section h2 i {
    color: #E85A1A;
    font-size: 1.5rem;
}

.section h3 {
    font-size: 1.5rem;
    color: #E85A1A;
    margin-bottom: 1rem;
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.section h3 i {
    color: #F2722D;
    font-size: 1.2rem;
    min-width: 1.2rem;
}

.section p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
    color: #555;
}

/* Enhanced text styling for emphasis */
.section p strong {
    color: #E85A1A;
    font-weight: 600;
}

/* Special highlight styling for key phrases */
.highlight {
    background: linear-gradient(120deg, #FFE5D6 0%, #FFF5F0 100%);
    color: #E85A1A;
    padding: 0.2em 0.4em;
    border-radius: 4px;
    font-weight: 500;
    box-shadow: 0 1px 3px rgba(242, 114, 45, 0.1);
}

/* Alternative subtle accent for inline emphasis */
.accent-text {
    color: #F2722D;
    font-weight: 600;
}

/* Icon classes - simplified and removed */

/* Contact Page Styles */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.contact-card {
    background: linear-gradient(135deg, #FFF5F0 0%, #FFE5D6 100%);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(242, 114, 45, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.contact-card h3 {
    text-align: center;
    display: block;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(242, 114, 45, 0.15);
}

.contact-icon {
    background: linear-gradient(135deg, #F2722D 0%, #E85A1A 100%);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
    font-size: 1.5rem;
}

.contact-details h3 {
    color: #E85A1A;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.contact-details p {
    color: #666;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #F2722D 0%, #E85A1A 100%);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(242, 114, 45, 0.3);
    color: white;
    text-decoration: none;
}

.contact-link::before {
    content: "✉";
    font-size: 1rem;
}

.contact-note {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 1.5rem;
    margin-top: 3rem;
    text-align: center;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.contact-note p {
    margin: 0;
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
}

.contact-note i {
    color: #F2722D;
    margin-right: 0.5rem;
}

/* Mobile responsiveness for contact page */
@media (max-width: 768px) {
    .contact-info {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin: 2rem 0;
    }
    
    .contact-card {
        padding: 1.5rem;
    }
    
    .contact-icon {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
    
    .contact-details h3 {
        font-size: 1.2rem;
    }
    
    .contact-link {
        padding: 0.7rem 1.3rem;
        font-size: 0.9rem;
    }
    
    .contact-note {
        padding: 1.2rem;
        margin-top: 2rem;
    }
}

/* Policy Pages */
.policy-content {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
}

.policy-content h2 {
    color: #F2722D;
    font-size: 1.8rem;
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #FFE5D6;
    padding-bottom: 0.5rem;
}

.policy-content h2:first-child {
    margin-top: 0;
}

.policy-content h3 {
    color: #E85A1A;
    font-size: 1.3rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.policy-content h4 {
    color: #E85A1A;
    font-size: 1.1rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.policy-content p {
    margin-bottom: 1.25rem;
    color: #444;
}

.policy-content ul, 
.policy-content ol {
    margin-bottom: 1.25rem;
    margin-left: 2rem;
}

.policy-content li {
    margin-bottom: 0.5rem;
    color: #444;
}

.policy-content hr {
    margin: 2rem 0;
    border: none;
    border-top: 1px solid #ddd;
}

.policy-content strong {
    color: #333;
    font-weight: 600;
}

.policy-content em {
    font-style: italic;
    color: #666;
}

/* Ensure consistent spacing after all block elements */
.policy-content > *:last-child {
    margin-bottom: 0;
}

/* Error Page */
.error-page {
    text-align: center;
    padding: 4rem 0;
}

.error-code {
    font-size: 6rem;
    color: #F2722D;
    font-weight: bold;
    margin-bottom: 1rem;
}

.error-message {
    font-size: 1.5rem;
    color: #666;
    margin-bottom: 2rem;
}

.error-description {
    font-size: 1.1rem;
    color: #888;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.back-home {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #F2722D 0%, #E85A1A 100%);
    color: white;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.back-home i {
    font-size: 1rem;
}

.back-home:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(242, 114, 45, 0.3);
}

/* Footer */
footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: auto;
}

.footer-links {
    margin-top: 1rem;
    font-size: 0.9rem;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-links {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
        margin-top: 1rem;
    }

    .logo {
        font-size: 1.5rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .contact-form {
        margin: 0 1rem;
        padding: 1.5rem;
    }

    nav {
        flex-direction: column;
        text-align: center;
    }

    .section h2 {
        font-size: 1.5rem;
        flex-direction: column;
        gap: 0.3rem;
    }
    
    .section h2::before {
        font-size: 1.5rem;
    }
    
    .section h3::before {
        font-size: 1.1rem;
    }

    .error-code {
        font-size: 4rem;
    }

    .error-message {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    main {
        padding: 2rem 0;
    }

    .hero {
        padding: 2rem 0;
    }

    .footer-links {
        font-size: 0.8rem;
    }
}