/* ===================================
   AMT Website Styles
   Absolute Marine Tech
   =================================== */

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* Color Variables */
:root {
    --primary-navy: #001f3f;
    --primary-orange: #ffa500;
    --accent-orange: #ff8c00;
    --dark-blue: #003366;
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-600: #4b5563;
    --gray-700: #374151;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--primary-navy);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--white);
}

/* Logo Image - REPLACE logo.png with your company logo */
.logo-image {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.logo-title {
    font-weight: bold;
    font-size: 20px;
    line-height: 1.2;
}

.logo-subtitle {
    font-size: 12px;
    color: #ccc;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-link {
    padding: 10px 16px;
    color: var(--gray-200);
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    background: var(--primary-orange);
    color: var(--white);
}

/* Dropdown */
.nav-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 260px;
    border-radius: 6px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    margin-top: 8px;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 12px 16px;
    color: var(--gray-700);
    font-size: 14px;
    transition: all 0.2s ease;
}

.dropdown-menu a:first-child {
    border-radius: 6px 6px 0 0;
}

.dropdown-menu a:last-child {
    border-radius: 0 0 6px 6px;
}

.dropdown-menu a:hover {
    background: var(--primary-orange);
    color: var(--white);
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
}

/* Sections */
.section {
    padding: 80px 0;
}

.section-title {
    font-size: 42px;
    font-weight: bold;
    color: var(--primary-navy);
    margin-bottom: 20px;
}

.section-title.text-white {
    color: var(--white);
}

.section-title.text-left {
    text-align: left;
}

.title-underline {
    width: 80px;
    height: 4px;
    background: var(--primary-orange);
    margin: 0 auto 30px;
}

.title-underline.left {
    margin: 0 0 30px 0;
}

/* Backgrounds */
.bg-white {
    background: var(--white);
}

.bg-gray {
    background: var(--gray-50);
}

.bg-navy {
    background: var(--primary-navy);
}

.bg-orange {
    background: linear-gradient(135deg, var(--primary-orange), var(--accent-orange));
}

/* Grid System */
.grid {
    display: grid;
    gap: 30px;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.gap-2 {
    gap: 20px;
}

.align-center {
    align-items: center;
}

/* Service Cards */
.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    text-align: center;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.service-icon {
    font-size: 50px;
    color: var(--primary-orange);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 22px;
    color: var(--primary-navy);
    margin-bottom: 15px;
}

.service-card p {
    color: var(--gray-600);
    margin-bottom: 15px;
}

.learn-more {
    color: var(--primary-orange);
    font-weight: 600;
    display: inline-block;
    margin-top: 10px;
}

/* Feature Boxes */
.feature-box {
    text-align: center;
}

.feature-icon {
    font-size: 50px;
    color: var(--primary-orange);
    margin-bottom: 20px;
}

.feature-box h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.feature-box p {
    color: rgba(255, 255, 255, 0.8);
}

/* Port Cards */
.port-card {
    background: linear-gradient(135deg, var(--primary-navy), var(--dark-blue));
    padding: 30px;
    border-radius: 12px;
    color: var(--white);
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.port-card i {
    font-size: 40px;
    color: var(--primary-orange);
    margin-bottom: 15px;
}

.port-card h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.port-card p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

/* Stat Boxes */
.stat-box {
    background: var(--primary-navy);
    padding: 30px;
    border-radius: 12px;
    color: var(--white);
    text-align: center;
}

.stat-number {
    font-size: 48px;
    font-weight: bold;
    color: var(--primary-orange);
    margin-bottom: 10px;
}

.stat-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

/* Check List */
.check-list {
    margin-top: 20px;
}

.check-item {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.check-item i {
    color: var(--primary-orange);
    font-size: 20px;
    flex-shrink: 0;
    margin-top: 3px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 15px 35px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--primary-orange);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--accent-orange);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 165, 0, 0.3);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary-navy);
}

.btn-secondary:hover {
    background: var(--gray-100);
    transform: translateY(-2px);
}

.btn-navy {
    background: var(--primary-navy);
    color: var(--white);
}

.btn-navy:hover {
    background: var(--dark-blue);
    transform: translateY(-2px);
}

.btn-white {
    background: var(--white);
    color: var(--primary-navy);
}

.btn-white:hover {
    background: var(--gray-100);
}

.button-group {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Emergency Icon */
.emergency-icon {
    font-size: 60px;
    margin-bottom: 20px;
}

/* Text Utilities */
.text-center {
    text-align: center;
}

.text-lg {
    font-size: 18px;
    line-height: 1.8;
    color: var(--gray-700);
}

.text-xl {
    font-size: 20px;
    line-height: 1.6;
}

.text-white {
    color: var(--white);
}

.text-gray-600 {
    color: var(--gray-600);
}

/* Spacing */
.mb-4 {
    margin-bottom: 25px;
}

.mb-5 {
    margin-bottom: 40px;
}

.mt-5 {
    margin-top: 40px;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.max-w-4xl {
    max-width: 900px;
}

/* Footer */
.footer {
    background: var(--primary-navy);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-orange);
}

.footer-title {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--primary-orange);
}

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

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

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

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

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

.footer-contact li {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.footer-contact i {
    color: var(--primary-orange);
    width: 20px;
    flex-shrink: 0;
    margin-top: 3px;
}

.footer-contact small {
    display: block;
    font-size: 12px;
    margin-top: 2px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 40px;
    padding-top: 30px;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

.footer-bottom p {
    margin-bottom: 5px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-navy);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-orange);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .mobile-toggle {
        display: block;
    }
    
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--primary-navy);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-menu.active {
        max-height: 600px;
    }
    
    .nav-link {
        padding: 15px 20px;
        border-radius: 0;
    }
    
    .nav-dropdown .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: rgba(0, 0, 0, 0.2);
        margin: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .nav-dropdown.active .dropdown-menu {
        max-height: 500px;
    }
    
    .dropdown-menu a {
        padding-left: 40px;
        color: rgba(255, 255, 255, 0.8);
    }
    
    .section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
    
    .text-lg {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 28px;
    }
    
    .btn {
        padding: 12px 25px;
        font-size: 14px;
    }
    
    .button-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .button-group .btn {
        width: 100%;
    }
}
