/* Crown Website Color Palette (updated to user-provided colors only) */
:root {
    --primary: #302104;
    --secondary: #BF9B21;
    --accent: #F2EADD;
    --background: #F2EADD;
    --text: #302104;
    --highlight: #BF9B21;
}

body.dark-mode {
    --primary: #18120a;
    --secondary: #BF9B21;
    --accent: #26201a;
    --background: #18120a;
    --text: #F2EADD;
    --highlight: #BF9B21;
}


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

body {
    font-family: 'Segoe UI', 'Roboto', Arial, sans-serif;
    background: var(--background);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--primary);
    color: var(--accent);
    padding: 1rem 2rem;
    box-shadow: 0 2px 8px rgba(48, 33, 4, 0.10);
}
.logo {
    display: flex;
    align-items: center;
    height: 100%;
}
.logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
}
.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}
.nav-links li a {
    color: var(--accent);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    transition: background 0.2s, color 0.2s;
}

.lang-btn {
    background: var(--highlight);
    color: var(--primary);
    border: none;
    border-radius: 6px;
    font-size: 1.05rem;
    font-weight: 600;
    padding: 0.4rem 1.2rem;
    margin-left: 1.5rem;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    box-shadow: 0 1px 4px rgba(48,33,4,0.08);
}
.lang-btn:hover, .lang-btn:focus {
    background: var(--primary);
    color: var(--highlight);
    outline: none;
    box-shadow: 0 2px 8px rgba(48,33,4,0.13);
}

.dark-btn {
    background: var(--secondary);
    color: var(--primary);
    border: none;
    border-radius: 6px;
    font-size: 1.15rem;
    font-weight: 700;
    padding: 0.4rem 1.2rem;
    margin-left: 0.7rem;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    box-shadow: 0 1px 4px rgba(48,33,4,0.08);
    vertical-align: middle;
}
.dark-btn:hover, .dark-btn:focus {
    background: var(--primary);
    color: var(--highlight);
    outline: none;
    box-shadow: 0 2px 8px rgba(48,33,4,0.13);
}

body, .navbar, .about, .contact, .services, .service-card, footer {
    transition: background 0.3s, color 0.3s, border 0.3s;
}

.nav-links li a.active,
.nav-links li a:hover {
    background: var(--highlight);
    color: var(--primary);
    border-bottom: 3px solid var(--highlight);
}

main {
    flex: 1 0 auto;
    width: 100%;
    max-width: 1100px;
    margin: 2rem auto 0 auto;
    padding: 0 1.5rem;
}
.hero {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
}
.hero-logo {
    width: 400px;
    height: 400px;
    object-fit: contain;
    border-radius: 50%;
    box-shadow: 0 4px 24px rgba(48,33,4,0.10);
    background: var(--accent);
    padding: 2rem;
    transition: width 0.3s, height 0.3s;
    border: 6px solid var(--highlight);
}
@media (max-width: 600px) {
    .hero-logo {
        width: 240px;
        height: 240px;
        padding: 1.25rem;
    }
}
.about, .contact, .services {
    background: var(--accent);
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(27,38,59,0.04);
    margin-bottom: 2rem;
    padding: 2rem;
}
.about h2, .contact h2, .services h2 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 2rem;
    border-bottom: 4px solid var(--highlight);
    display: inline-block;
    padding-bottom: 0.25rem;
}
.about p {
    line-height: 1.7;
    font-size: 1.15rem;
}
.contact ul {
    list-style: none;
    padding: 0;
}
.contact li {
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}
.contact a {
    color: var(--primary);
    text-decoration: underline;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}
.service-card {
    background: var(--background);
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(48,33,4,0.06);
    border: 2.5px solid var(--highlight);
    padding: 1.5rem 1rem 1.25rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: box-shadow 0.2s, border 0.2s;
}
.service-card:hover {
    box-shadow: 0 6px 24px rgba(27,38,59,0.10);
}
.service-img {
    width: 100%;
    max-width: 210px;
    height: 140px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
    background: var(--accent);
}
.service-card h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}
.service-card p {
    font-size: 1rem;
    color: var(--text);
    text-align: center;
}

footer {
    background: var(--primary);
    color: var(--highlight);
    padding: 1.5rem 0;
    text-align: center;
    flex-shrink: 0;
    font-size: 1.08rem;
    margin-top: 2rem;
    border-top: 4px solid var(--highlight);
}
.footer-content {
    max-width: 1100px;
    margin: 0 auto;
}

@media (max-width: 800px) {
    .navbar {
        flex-direction: column;
        gap: 1.2rem;
        padding: 1.2rem 0.5rem;
        align-items: stretch;
    }
    .logo {
        justify-content: center;
        margin-bottom: 0.5rem;
    }
    .nav-links {
        justify-content: center;
        gap: 1.2rem;
        margin-bottom: 0.5rem;
    }
    .lang-btn {
        align-self: center;
        margin-left: 0;
        margin-bottom: 0.5rem;
    }
    main {
        padding: 0 0.5rem;
    }
    .about, .contact, .services {
        padding: 1.1rem 0.5rem;
    }
}
@media (max-width: 500px) {
    .hero-logo {
        width: 180px;
        height: 180px;
    }
    .about h2, .contact h2, .services h2 {
        font-size: 1.15rem;
    }
    .about p, .contact li {
        font-size: 1.05rem;
    }
    .service-card {
        padding: 1rem 0.5rem;
    }
    .contact ul {
        padding-left: 0;
    }
    .contact a {
        font-size: 1.06rem;
        word-break: break-all;
    }
}
@media (max-width: 500px) {
    .hero-logo {
        width: 100px;
        height: 100px;
    }
    .about h2, .contact h2, .services h2 {
        font-size: 1.3rem;
    }
    .service-card {
        padding: 1rem 0.5rem;
    }
}
