/* style.css – modern industrial palette: teal, warm grey, gold accent */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, sans-serif;
}
body {
    background: linear-gradient(135deg, #f6f9f9 0%, #e8f4f4 100%);
    color: #1e3b3c;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    scroll-behavior: smooth;
}
main { flex: 1; }

/* animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes slideIn {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}
.fade-in { animation: fadeInUp 0.8s ease-out; }
.slide-in { animation: slideIn 0.6s ease-out; }

/* navbar */
.navbar {
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 20px rgba(0,70,70,0.08);
    position: sticky;
    top: 0;
    z-index: 100;
}
.nav-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    font-size: 1.9rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-decoration: none;
    color: #1b5e5f;
}
.logo span {
    color: #c49a2b;
    font-weight: 400;
    margin-left: 0.3rem;
}
.nav-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
}
.nav-link {
    text-decoration: none;
    color: #1b4b4c;
    font-weight: 500;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    transition: 0.2s;
}
.nav-link:hover, .nav-link.active {
    border-bottom-color: #c49a2b;
    color: #0f3a3b;
}
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}
.bar {
    width: 25px;
    height: 3px;
    background: #1b5e5f;
    border-radius: 2px;
}

/* hero */
.hero {
    max-width: 1300px;
    margin: 2rem auto;
    padding: 3rem 2rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 3rem;
    position: relative;
}
.hero::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(196,154,43,0.1) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
}
.hero-content { flex: 1 1 300px; }
.hero-content h1 {
    font-size: 3.2rem;
    font-weight: 600;
    color: #1b5e5f;
    margin-bottom: 1rem;
    line-height: 1.2;
}
.hero-content p {
    font-size: 1.1rem;
    color: #4a6b6c;
    margin-bottom: 2rem;
    font-weight: 500;
}
.highlight {
    background: linear-gradient(120deg, #f8e8cf 0%, #fdf2e0 100%);
    padding: 0.2rem 0.8rem;
    border-radius: 25px;
    box-shadow: 0 2px 8px rgba(196,154,43,0.2);
}
.hero-btns {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}
.hero-image {
    flex: 1 1 300px;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 30px 60px -12px rgba(196,154,43,0.3);
    transition: transform 0.3s ease;
}
.hero-image:hover {
    transform: translateY(-5px);
}
.hero-image img { width: 100%; display: block; }

/* cards */
.cards-section {
    max-width: 1300px;
    margin: 4rem auto;
    padding: 0 2rem;
    position: relative;
}
.cards-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -100px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(27,94,95,0.05) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
}
.cards-section h2 {
    text-align: center;
    font-size: 2.8rem;
    color: #1b5e5f;
    margin-bottom: 3rem;
    position: relative;
}
.cards-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #c49a2b, #d4a832);
    border-radius: 2px;
}
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}
.card {
    background: linear-gradient(145deg, #ffffff 0%, #fafefe 100%);
    border-radius: 32px;
    padding: 2.5rem 2rem;
    box-shadow: 0 20px 40px -15px rgba(20,80,80,0.12);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    border: 1px solid rgba(224,239,239,0.8);
    position: relative;
    overflow: hidden;
}
.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(196,154,43,0.1), transparent);
    transition: left 0.5s;
}
.card:hover::before {
    left: 100%;
}
.card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 30px 60px -15px rgba(196,154,43,0.25);
}
.card i {
    font-size: 3.2rem;
    color: #c49a2b;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}
.card:hover i {
    transform: scale(1.1) rotate(5deg);
}
.card h3 {
    font-size: 1.4rem;
    color: #1b5e5f;
    margin-bottom: 1rem;
    font-weight: 600;
}
.card p {
    color: #4a6b6c;
    line-height: 1.6;
}

/* cta */
.cta-banner {
    background: linear-gradient(135deg, #1b5e5f 0%, #2d6f70 100%);
    color: #fcf7eb;
    padding: 4rem 2rem;
    text-align: center;
    border-radius: 48px 48px 0 0;
    margin-top: 4rem;
    position: relative;
    overflow: hidden;
}
.cta-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(196,154,43,0.1) 0%, transparent 50%);
    animation: rotate 20s linear infinite;
}
@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.cta-banner h3 { 
    font-size: 2.2rem; 
    margin-bottom: 1.5rem; 
    position: relative;
    z-index: 1;
}
.cta-banner .btn {
    position: relative;
    z-index: 1;
}

/* buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 60px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    font-size: 1rem;
}
.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}
.btn:hover::before {
    left: 100%;
}
.primary {
    background: linear-gradient(135deg, #c49a2b 0%, #d4a832 100%);
    color: white;
    box-shadow: 0 10px 20px -8px rgba(196,154,43,0.4);
}
.primary:hover {
    background: linear-gradient(135deg, #a8811f 0%, #b8921c 100%);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 15px 30px -10px rgba(196,154,43,0.5);
}
.secondary {
    background: transparent;
    border: 2px solid #c49a2b;
    color: #1b5e5f;
}
.secondary:hover { 
    background: linear-gradient(135deg, #f8e8cf 0%, #fdf2e0 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px -6px rgba(196,154,43,0.3);
}
.block { width: 100%; }

/* footer */
footer {
    background: linear-gradient(135deg, #143b3c 0%, #1a4445 100%);
    color: #d4eaea;
    padding: 4rem 2rem 2rem;
    margin-top: 4rem;
    position: relative;
}
footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #c49a2b, #d4a832, #c49a2b);
}
.footer-grid {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}
.footer-section h4 {
    color: #c49a2b;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    position: relative;
}
.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 40px;
    height: 2px;
    background: #c49a2b;
    border-radius: 1px;
}
.footer-section p {
    line-height: 1.8;
    margin-bottom: 1rem;
    color: #b8d4d4;
}
.footer-section ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.footer-section li {
    margin-bottom: 0.8rem;
}
.footer-section a {
    color: #d4eaea;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.footer-section a:hover {
    color: #c49a2b;
    transform: translateX(5px);
}
.footer-section a i {
    font-size: 1rem;
    width: 16px;
}
.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 0.8rem;
    background: rgba(196,154,43,0.1);
    border-radius: 12px;
    transition: all 0.3s ease;
}
.contact-item:hover {
    background: rgba(196,154,43,0.15);
    transform: translateY(-2px);
}
.contact-item i {
    font-size: 1.2rem;
    color: #c49a2b;
    width: 20px;
    text-align: center;
}
.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}
.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(196,154,43,0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}
.social-links a:hover {
    background: #c49a2b;
    color: white;
    transform: translateY(-3px) scale(1.1);
    border-color: #c49a2b;
}
.social-links i {
    font-size: 1.3rem;
}
.footer-bottom {
    border-top: 1px solid rgba(196,154,43,0.2);
    padding-top: 2rem;
    text-align: center;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}
.footer-bottom p {
    margin: 0;
    color: #b8d4d4;
}
.footer-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}
.footer-links a {
    color: #d4eaea;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}
.footer-links a:hover {
    color: #c49a2b;
}
.certification-badge {
    background: rgba(196,154,43,0.1);
    border: 1px solid rgba(196,154,43,0.3);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    color: #c49a2b;
    font-weight: 600;
    margin-top: 1rem;
    display: inline-block;
}

/* forms */
.page-form {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
    padding: 2rem;
    background: radial-gradient(ellipse at center, rgba(196,154,43,0.05) 0%, transparent 70%);
}
.form-card {
    background: linear-gradient(145deg, #ffffff 0%, #fafefe 100%);
    max-width: 520px;
    width: 100%;
    padding: 3rem;
    border-radius: 40px;
    box-shadow: 0 40px 80px -20px rgba(27,94,95,0.15);
    border: 1px solid rgba(224,239,239,0.5);
    position: relative;
}
.form-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #c49a2b, #1b5e5f, #c49a2b);
    border-radius: 42px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s;
}
.form-card:hover::before {
    opacity: 0.1;
}
.form-card h2 {
    color: #1b5e5f;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    text-align: center;
}
.form-card > p {
    text-align: center;
    color: #4a6b6c;
    margin-bottom: 2rem;
}
.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}
.form-group label {
    font-weight: 600;
    display: block;
    margin-bottom: 0.4rem;
    color: #1b5e5f;
}
.form-group input, .form-group textarea {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 2px solid #e0efef;
    border-radius: 35px;
    font-size: 1rem;
    background: linear-gradient(145deg, #fafefe 0%, #f6f9f9 100%);
    transition: all 0.3s ease;
}
.form-group input:focus, .form-group textarea:focus {
    border-color: #c49a2b;
    outline: none;
    box-shadow: 0 0 0 6px rgba(196,154,43,0.1);
    background: #ffffff;
    transform: translateY(-1px);
}
.form-group textarea {
    border-radius: 20px;
    resize: vertical;
    min-height: 120px;
}
.password-wrapper { position: relative; }
.toggle-pw {
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #5f7d7e;
}
.error {
    color: #b13e3e;
    font-size: 0.85rem;
    margin-top: 0.3rem;
    display: block;
}
.success {
    color: #1e7a5a;
    font-weight: 500;
    text-align: center;
    margin-top: 1rem;
}
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #1b5e5f;
    color: white;
    padding: 1rem 2rem;
    border-radius: 40px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    z-index: 999;
    max-width: 300px;
    font-weight: 500;
}
.toast.hidden { 
    opacity: 0; 
    pointer-events: none; 
    transform: translateY(20px);
}
.toast.success {
    background: linear-gradient(135deg, #1e7a5a 0%, #2d8f6a 100%);
}
.toast.error {
    background: linear-gradient(135deg, #b13e3e 0%, #c44e4e 100%);
}
.toast.info {
    background: linear-gradient(135deg, #1b5e5f 0%, #2d6f70 100%);
}

/* page-specific styles */
.page-content {
    max-width: 900px;
    margin: 3rem auto;
    padding: 0 2rem;
    line-height: 1.8;
}
.page-content h1 {
    color: #1b5e5f;
    font-size: 2.8rem;
    margin-bottom: 1rem;
    text-align: center;
}
.page-content h2 {
    color: #1b5e5f;
    font-size: 1.8rem;
    margin: 2rem 0 1rem;
    border-left: 4px solid #c49a2b;
    padding-left: 1rem;
}
.page-content h3 {
    color: #2d6f70;
    font-size: 1.4rem;
    margin: 1.5rem 0 0.8rem;
}
.page-content p {
    margin-bottom: 1.2rem;
    color: #4a6b6c;
}
.page-content ul {
    margin: 1rem 0 1.5rem 2rem;
    color: #4a6b6c;
}
.page-content li {
    margin-bottom: 0.5rem;
}
.highlight-box {
    background: linear-gradient(135deg, #f8e8cf 0%, #fdf2e0 100%);
    border: 1px solid #e6d4a3;
    border-radius: 20px;
    padding: 1.5rem;
    margin: 2rem 0;
    border-left: 5px solid #c49a2b;
}
.contact-info {
    background: linear-gradient(135deg, #e8f4f4 0%, #f0f8f8 100%);
    border-radius: 20px;
    padding: 2rem;
    margin: 2rem 0;
    text-align: center;
    border: 1px solid #d0e8e8;
}
.contact-info h3 {
    color: #1b5e5f;
    margin-bottom: 1rem;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}
.stat-item {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(145deg, #ffffff 0%, #fafefe 100%);
    border-radius: 25px;
    box-shadow: 0 15px 30px -10px rgba(20,80,80,0.1);
    border: 1px solid rgba(224,239,239,0.8);
}
.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #c49a2b;
    display: block;
}
.stat-label {
    color: #1b5e5f;
    font-weight: 600;
    margin-top: 0.5rem;
}
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: white;
        width: 100%;
        text-align: center;
        padding: 2rem 0;
        box-shadow: 0 20px 30px rgba(0,0,0,0.1);
        transition: 0.4s;
        gap: 1rem;
    }
    .nav-menu.active { left: 0; }
    .hamburger { display: flex; }
    .hero { flex-direction: column; text-align: center; }
    .hero-content h1 { font-size: 2.5rem; }
}
    .hero-btns { justify-content: center; }
    .card-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .page-content { padding: 0 1rem; }
    .form-card { padding: 2rem; }
    .contact-info, .highlight-box { margin: 1.5rem 0; }
    /* contact page mobile */
    main > div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
}
/* footer mobile styles */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    .footer-links {
        justify-content: center;
    }
    .social-links {
        justify-content: center;
    }
    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
}
/* Enhanced button states */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.btn:disabled:hover {
    transform: none !important;
    box-shadow: none !important;
}

/* Hamburger animation */
.hamburger.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Form focus improvements */
.form-group input:focus,
.form-group textarea:focus {
    border-color: #c49a2b;
    outline: none;
    box-shadow: 0 0 0 6px rgba(196,154,43,0.1);
    background: #ffffff;
    transform: translateY(-1px);
}

/* Loading spinner */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 8px;
}

/* Improved hover effects */
.contact-item:hover {
    background: rgba(196,154,43,0.15);
    transform: translateY(-2px);
}

.social-links a:hover {
    background: #c49a2b;
    color: white;
    transform: translateY(-3px) scale(1.1);
    border-color: #c49a2b;
}

/* Better mobile interactions */
@media (max-width: 768px) {
    .toast {
        bottom: 1rem;
        right: 1rem;
        left: 1rem;
        max-width: none;
    }
    
    .contact-item {
        padding: 1rem;
    }
    
    .social-links a {
        width: 50px;
        height: 50px;
    }
}