:root {
    --primary:      #c9674f;
    --brown:        #5A3725;
    --text:         #333333;
    --text-light:   #666666;
    --white:        #ffffff;
    --light-bg:     #f5f5f5;
    --border:       #dddddd;
    --footer-overlay: rgba(22, 12, 5, 0.70);
}
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Open Sans', Arial, sans-serif;
    font-size: 14px;
    line-height: 1.65;
    color: var(--text);
    background: #fff;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease, opacity 0.2s ease;
}

ul, ol { list-style: none; padding: 0; margin: 0; }

.container {
    max-width: 1380px;
    margin: 0 auto;
    padding: 0 20px;
}

.site-wrapper {
    border-top: 5px solid var(--primary);
    background-color: #ffffff;
}

/* HEADER */
.site-header {
    background: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.header-main {
    padding: 10px 0;
    background: #fff;
}

.header-inner {
    display: flex;
    justify-content: center;
    align-items: center;
}

.site-logo {
    display: inline-block;
}

.site-logo img {
    height: auto;
    width: 220px;
    max-width: 94%;
    display: block;
}

.main-nav {
    background-color: #f5f5f5;
    border-bottom: 2px solid var(--primary);
}

.nav-menu-wrap {
    display: flex;
    justify-content: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0;
}

.nav-menu .nav-item > a {
    display: block;
    padding: 18px;
    line-height: 20px;
    color: #333333;
    font-family: 'Roboto', 'Open Sans', sans-serif;
    font-size: 18px;
    font-weight: 400;
    transition: color 0.2s, background 0.2s;
}

.nav-menu .nav-item > a:hover,
.nav-menu .nav-item.active > a {
    color: var(--primary);
    background: #ffffff;
}

.nav-menu .nav-item > a svg {
    display: block;
    margin: auto;
}

/* HERO SLIDER */
.hero-slider {
    position: relative;
    background: #e8ddd4;
    line-height: 0;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    z-index: 1;
    animation: slideShow 20s infinite;
}

.slide a {
    display: block;
    line-height: 0;
}

.slide img {
    width: 100%;
    height: auto;
    display: block;
}

#slide1 {
    position: relative;
    opacity: 1;
    animation-delay: 0s;
}

#slide2 {
    animation-delay: 5s;
}

#slide3 {
    animation-delay: 10s;
}

#slide4 {
    animation-delay: 15s;
}

@keyframes slideShow {
    0% { opacity: 0; z-index: 1; }
    2% { opacity: 1; z-index: 2; }
    23% { opacity: 1; z-index: 2; }
    25% { opacity: 0; z-index: 1; }
    100% { opacity: 0; z-index: 1; }
}

/* CATEGORY BANNERS */
.category-banners {
    background: #fff;
}

.banners-row {
    display: flex;
    gap: 0;
    line-height: 0;
    margin: 20px auto;
}

.banners-row.three-col .banner-item {
    flex: 1 1 0;
    overflow: hidden;
    position: relative;
    display: block;
    padding: 0 10px;
}

.banners-row.three-col .banner-item:first-child {
    padding-left: 0;
}

.banners-row.three-col .banner-item:last-child {
    padding-right: 0;
}

.banners-row.three-col .banner-item img {
    width: 100%;
    height: auto;
    transition: transform 0.45s ease;
}

.banners-row.three-col .banner-item:hover img {
    transform: scale(1.04);
}

.banner-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0);
    transition: background 0.3s;
    pointer-events: none;
}

.banners-row.three-col .banner-item:hover .banner-overlay {
    background: rgba(0,0,0,0.08);
}

.banners-row.full-width .banner-item {
    width: 100%;
    display: block;
    overflow: hidden;
}

.banners-row.full-width .banner-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: opacity 0.3s;
}

.banners-row.full-width .banner-item:hover img {
    opacity: 0.9;
}

/* CERTIFICATION BADGES */
.certifications-section {
    padding: 52px 0;
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    align-items: start;
}

.cert-item {
    display: flex;
    align-items: center;
    gap: 18px;
}

.cert-icon {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cert-icon img {
    width: 100px;
    height: 100px;
    object-fit: contain;
}

.cert-info h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--brown);
    letter-spacing: 0.6px;
    margin-bottom: 4px;
}

.cert-info p {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.45;
}

/* PAGE CONTENT */
.page-content {
    padding: 60px 0;
    background: #fff;
}

.page-content h1 {
    font-size: 36px;
    font-weight: 700;
    color: var(--brown);
    text-align: center;
    margin-bottom: 40px;
    letter-spacing: 0.5px;
    text-transform: capitalize;
}

.page-content h2 {
    font-size: 26px;
    font-weight: 700;
    color: var(--brown);
    margin-top: 40px;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.page-content h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--brown);
    margin-top: 30px;
    margin-bottom: 16px;
}

.page-content h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    margin-top: 24px;
    margin-bottom: 12px;
}

.page-content p {
    font-size: 16px;
    line-height: 1.75;
    color: var(--text);
    margin-bottom: 16px;
}

.page-content ul,
.page-content ol {
    margin-bottom: 20px;
    padding-left: 30px;
}

.page-content li {
    font-size: 16px;
    line-height: 1.75;
    color: var(--text);
    margin-bottom: 8px;
}

.page-content a {
    color: var(--primary);
    text-decoration: underline;
}

.page-content a:hover {
    color: var(--brown);
}

.page-content table {
    width: 100%;
    margin: 20px 0;
    border-collapse: collapse;
}

.page-content table th,
.page-content table td {
    padding: 12px;
    text-align: left;
    border: 1px solid #ddd;
}

.page-content table th {
    background-color: var(--brown);
    color: #fff;
    font-weight: 600;
}

.page-content table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.content-block {
    margin-bottom: 50px;
}

.content-block:last-child {
    margin-bottom: 0;
}

.content-block h2 {
    font-size: 28px;
    text-align: center;
    margin-bottom: 24px;
}

.content-block p {
    text-align: justify;
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.contact-info {
    background: #f9f9f9;
    padding: 40px;
    border-radius: 8px;
}

.contact-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e0e0e0;
}

.contact-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.contact-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    color: var(--primary);
}

.contact-item strong {
    display: block;
    font-size: 18px;
    color: var(--brown);
    margin-bottom: 8px;
}

.contact-item p {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
}

.contact-item a {
    color: var(--text);
    text-decoration: none;
}

.contact-item a:hover {
    color: var(--primary);
}

.contact-form-wrapper {
    background: #fff;
    padding: 40px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: var(--brown);
    margin-bottom: 8px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    font-family: inherit;
    color: var(--text);
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.checkbox-group label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-weight: normal;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    margin-top: 4px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkbox-group a {
    color: var(--primary);
    text-decoration: underline;
}

.required {
    color: #c9674f;
}

.form-note {
    font-size: 13px;
    color: #777;
    margin: 16px 0;
}

.btn-submit {
    background: var(--primary);
    color: #fff;
    padding: 14px 40px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-submit:hover {
    background: var(--brown);
}

.btn {
    display: inline-block;
    padding: 14px 40px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    font-family: inherit;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #d97961 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(201, 103, 79, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--brown) 0%, #6e4631 100%);
    box-shadow: 0 6px 20px rgba(90, 55, 37, 0.4);
    transform: translateY(-2px);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(201, 103, 79, 0.3);
}

.alert {
    padding: 16px 20px;
    margin-bottom: 24px;
    border-radius: 4px;
    border-left: 4px solid;
}

.alert-success {
    background: #d4edda;
    border-color: #28a745;
    color: #155724;
}

.alert-error {
    background: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}

.contact-map {
    margin-top: 60px;
}

.contact-map h2 {
    text-align: center;
    margin-bottom: 30px;
}

.contact-map iframe {
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

@media (max-width: 960px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-info,
    .contact-form-wrapper {
        padding: 30px;
    }
}

@media (max-width: 640px) {
    .contact-info,
    .contact-form-wrapper {
        padding: 20px;
    }
    
    .contact-item {
        flex-direction: column;
        gap: 12px;
    }
}

/* FOOTER */
.site-footer {
    background-color: #3a2a1a;
    background-image: url('../images/footer-background.jpg');
    background-size: cover;
    background-position: center top;
    color: #fff;
}

.footer-inner {
    background: var(--footer-overlay);
    padding: 55px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 42px;
    padding-bottom: 45px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-title {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.2px;
    color: var(--primary);
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
    display: inline-block;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 7px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.82);
    font-size: 13px;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-text {
    color: rgba(255, 255, 255, 0.82);
    font-size: 13px;
    line-height: 1.75;
}

.footer-list-num {
    list-style: decimal;
    padding-left: 17px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 13px;
    line-height: 1.75;
}

.footer-list-num li {
    margin-bottom: 6px;
    padding-left: 3px;
}

.footer-contact p {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 13px;
    margin-bottom: 11px;
    line-height: 1.5;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.82);
    transition: color 0.2s;
}

.footer-contact a:hover {
    color: var(--primary);
}

.f-icon {
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 2px;
}

.footer-payment {
    margin-top: 16px;
}

.footer-payment img {
    max-width: 190px;
    opacity: 0.82;
}

.footer-bottom {
    padding: 18px 0;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.42);
    font-size: 12px;
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.42);
    transition: color 0.2s;
}

.footer-bottom a:hover {
    color: var(--primary);
}

/* RESPONSIVE */
@media (max-width: 960px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .cert-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .nav-menu .nav-item > a {
        font-size: 15px;
        padding: 15px;
    }

    .banners-row.three-col {
        flex-direction: column;
    }

    .banners-row.three-col .banner-item {
        flex: 0 0 auto;
        width: 100%;
        padding: 10px 0;
    }

    .banners-row.three-col .banner-item:first-child {
        padding-top: 0;
    }

    .banners-row.three-col .banner-item:last-child {
        padding-bottom: 0;
    }
}

@media (max-width: 640px) {
    .site-logo img {
        width: 160px;
    }

    .nav-menu .nav-item > a {
        padding: 13px;
        font-size: 13px;
    }

    .banners-row.three-col {
        flex-direction: column;
    }

    .banners-row.three-col .banner-item {
        flex: 0 0 auto;
        width: 100%;
        padding: 10px 0;
    }

    .banners-row.three-col .banner-item:first-child {
        padding-top: 0;
    }

    .banners-row.three-col .banner-item:last-child {
        padding-bottom: 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .cert-grid {
        gap: 24px;
    }
}

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