
/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Helvetica Neue', 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* Force clean fonts on all elements */
*, *::before, *::after {
    font-family: inherit;
    font-style: normal;
}

/* Main container */
.wrap { 
    padding: 0;
    text-align: center; 
    box-shadow: 0 4px 25px -4px rgba(157, 165, 171, 0.3);
    background: #ffffff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header styles */
header {
    background: linear-gradient(135deg, rgba(52, 73, 94, 0.95), rgba(44, 62, 80, 0.95)), 
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><rect fill="%23405a6e" width="1200" height="600"/></svg>');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 120px 0 60px 0;
    position: relative;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(52, 73, 94, 0.8) 0%, 
        rgba(44, 62, 80, 0.9) 50%, 
        rgba(52, 73, 94, 0.8) 100%);
    z-index: 1;
}

header > * {
    position: relative;
    z-index: 2;
}

/* Top navigation bar */
.top-nav {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.5);
    padding: 15px 0;
    z-index: 3;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-nav .container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    min-height: 60px;
}

.logo {
    display: flex;
    align-items: center;
    color: white;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    transition: opacity 0.3s ease;
    flex-shrink: 0;
}

.logo:hover {
    opacity: 0.8;
}

/* ✅ Logo proportional sizing */
/* Desktop (≥1025px) */
.logo img {
    height: 120px;   /* was 100px */
    width: auto;
    margin-right: 12px;
    object-fit: contain;
}

/* Tablete (≤1024px) */
@media (max-width: 1024px) {
    .logo img {
        height: 100px;   /* was 80px */
    }
}

/* Mobile (≤768px) */
@media (max-width: 768px) {
    .logo img {
        height: 85px;   /* was 65px */
    }
}

.top-menu {
    display: flex;
    align-items: center;
    gap: 25px;
    flex-shrink: 0;
}

.contact-info {
    color: #ffd700;
    font-weight: bold;
    font-size: 16px;
    white-space: nowrap;
}

/* Main site title */
header h1 {
    font-size: 42px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 25px;
    margin-top: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
    text-align: center;
    max-width: 90%;
}

/* Navigation menu */
nav.menu {
    margin-top: 15px;
}

nav .item {
    display: inline-block;
    padding: 10px 20px;
    margin: 0 8px;
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid transparent;
    border-radius: 5px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
}

nav .item:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #ffd700;
    transform: translateY(-2px);
}

nav .active {
    border-color: #ffd700;
    background: rgba(255, 215, 0, 0.2);
    color: #ffd700;
}

/* Services section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    padding: 60px 20px;
    background: #f8f9fa;
    margin-top: -30px;
    position: relative;
    z-index: 2;
}

.service-item {
    background: white;
    padding: 40px 20px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: white;
}

.service-item h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #2c3e50;
    font-weight: 600;
}

.service-item p {
    color: #7f8c8d;
    font-size: 14px;
    line-height: 1.6;
}

/* Article content */
article { 
    padding: 60px 40px;
    line-height: 1.8;
    text-align: left;
    background: white;
    flex: 1;
}

article h2 {
    font-size: 36px;
    color: #2c3e50;
    margin-bottom: 30px;
    border-bottom: 3px solid #3498db;
    padding-bottom: 15px;
    font-weight: 600;
}

article p {
    margin-bottom: 20px;
    font-size: 16px;
    color: #555;
}

/* Footer */
footer {
    background: #2c3e50;
    color: white;
    padding: 40px 20px;
    text-align: center;
    font-family: 'Arial', 'Helvetica', 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
}

footer small {
    font-size: 14px;
    opacity: 0.8;
    line-height: 1.6;
    font-family: inherit;
    font-style: normal;
    font-weight: normal;
    text-transform: none;
    letter-spacing: normal;
}

/* Responsive design */
@media only screen and (max-width: 768px) {
    .top-nav .container {
        flex-direction: row;
        justify-content: space-between;
        gap: 10px;
        text-align: left;
        min-height: 50px;
    }
    
    .top-menu {
        flex-direction: column;
        gap: 5px;
        align-items: flex-end;
    }
    
    .logo {
        font-size: 16px;
    }
    
    .contact-info {
        font-size: 12px;
    }
    
    header {
        min-height: 350px;
        padding: 80px 0 50px 0;
    }
    
    header h1 {
        font-size: 24px;
        padding: 0 20px;
        margin-top: 10px;
    }
    
    nav .item {
        display: block;
        margin: 4px 0;
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        padding: 40px 20px;
        gap: 20px;
        margin-top: -20px;
    }
    
    article { 
        padding: 30px 20px;
    }
    
    article h2 {
        font-size: 28px;
    }
}

@media only screen and (min-width: 768px) and (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    header h1 {
        font-size: 40px;
    }
}

@media only screen and (min-width: 1024px) {
    .wrap { 
        max-width: none;
        margin: 0;
    }
    
    .services-grid {
        max-width: 1200px;
        margin: -30px auto 0;
        padding: 60px 20px;
    }
    
    article {
        max-width: 1200px;
        margin: 0 auto;
        padding: 80px 40px;
    }
}

/* Animation keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-item {
    animation: fadeInUp 0.6s ease forwards;
}

.service-item:nth-child(1) { animation-delay: 0.1s; }
.service-item:nth-child(2) { animation-delay: 0.2s; }
.service-item:nth-child(3) { animation-delay: 0.3s; }
.service-item:nth-child(4) { animation-delay: 0.4s; }

/* Additional utility classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center {
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(52, 152, 219, 0.3);
}

/* Print styles */
@media print {
    header {
        background: #2c3e50 !important;
        -webkit-print-color-adjust: exact;
        color-adjust: exact;
    }
    
    .service-item {
        break-inside: avoid;
    }
}
