/* 
======================================================
  REGNOVA MARINE CONSULTANTS - MAIN CSS
====================================================== 
*/

/* --- Variables & Theme Settings --- */
:root {
    /* Color Palette derived from logo */
    --color-navy: #0B2545;       /* Deep Navy Blue */
    --color-navy-dark: #07172C;
    --color-teal: #1D6B7A;       /* Teal/Sea Green */
    --color-teal-light: #2A93A7;
    --color-gold: #C69C38;       /* Gold/Brass */
    --color-gold-light: #DFB550;
    
    /* Neutrals */
    --color-white: #FFFFFF;
    --color-gray-100: #F8F9FA;
    --color-gray-200: #E9ECEF;
    --color-gray-800: #343A40;
    --color-black: #111111;
    
    /* Typography */
    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Playfair Display', serif; /* For elegant maritime headings */
    
    /* Layout */
    --container-width: 1200px;
    --transition-fast: 0.2s ease-in-out;
    --transition-normal: 0.3s ease-in-out;
    
    /* Shadows */
    --shadow-sm: 0 2px 10px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.1);
    --shadow-header: 0 4px 30px rgba(11, 37, 69, 0.15);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--color-gray-800);
    line-height: 1.6;
    background-color: var(--color-white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all var(--transition-normal);
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all var(--transition-normal);
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

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

.btn-primary:hover {
    background-color: var(--color-gold-light);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(198, 156, 56, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-white);
    border: 2px solid var(--color-white);
}

.btn-secondary:hover {
    background-color: var(--color-white);
    color: var(--color-navy);
    transform: translateY(-2px);
}

/* --- Top Bar --- */
.top-bar {
    background-color: var(--color-navy-dark);
    color: var(--color-gray-200);
    padding: 10px 0;
    font-size: 13px;
    letter-spacing: 0.5px;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar .tagline i {
    color: var(--color-gold);
    margin-right: 5px;
}

.contact-quick {
    display: flex;
    gap: 20px;
}

.contact-quick a:hover {
    color: var(--color-gold);
}

.contact-quick i {
    color: var(--color-teal);
    margin-right: 6px;
}

/* --- Main Header --- */
.main-header {
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-gray-200);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all var(--transition-normal);
}

.main-header.scrolled {
    box-shadow: var(--shadow-header);
    padding: 5px 0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
    transition: height var(--transition-normal);
}

.main-header.scrolled .header-inner {
    height: 90px;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
}

/* Logo Image Styling */
.site-logo {
    max-height: 85px;
    width: auto;
    object-fit: contain;
    transition: all var(--transition-normal);
}

.main-header.scrolled .site-logo {
    max-height: 85px;
}

.site-logo:hover {
    transform: scale(1.02);
}

.site-logo-mobile {
    max-height: 40px;
    width: auto;
    object-fit: contain;
}

.site-logo-footer {
    max-height: 90px;
    width: auto;
    object-fit: contain;
    background-color: var(--color-white);
    padding: 10px 20px;
    border-radius: 4px;
}

/* Desktop Navigation */
.desktop-nav {
    display: block;
}

.desktop-nav > ul {
    display: flex;
    align-items: center;
    gap: 20px;
}

.desktop-nav a {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-navy);
    text-transform: uppercase;
    padding: 10px 5px;
    position: relative;
}

.desktop-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-gold);
    transition: width var(--transition-normal);
}

.desktop-nav a:hover::after,
.desktop-nav a.active::after {
    width: 100%;
}

.desktop-nav a:hover,
.desktop-nav a.active {
    color: var(--color-teal);
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--color-white);
    min-width: 240px;
    box-shadow: var(--shadow-md);
    border-radius: 4px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all var(--transition-normal);
    border-top: 3px solid var(--color-teal);
}

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

.dropdown-menu li {
    display: block;
}

.dropdown-menu a {
    display: block;
    padding: 12px 20px;
    font-size: 13px;
    text-transform: none;
    border-bottom: 1px solid var(--color-gray-100);
}

.dropdown-menu a::after {
    display: none;
}

.dropdown-menu a:hover {
    background-color: var(--color-gray-100);
    padding-left: 25px;
    color: var(--color-teal);
}

/* Contact Button in Nav */
.desktop-nav .btn-contact {
    background-color: var(--color-navy);
    color: var(--color-white);
    padding: 10px 24px;
    border-radius: 4px;
    margin-left: 10px;
}

.desktop-nav .btn-contact::after {
    display: none;
}

.desktop-nav .btn-contact:hover {
    background-color: var(--color-teal);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

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

/* Mobile Nav Overlay */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background-color: var(--color-navy);
    z-index: 2000;
    transition: right 0.4s ease-in-out;
    box-shadow: -5px 0 30px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
}

.mobile-nav-overlay.active {
    right: 0;
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.text-logo-mobile .logo-text-main {
    color: var(--color-white);
    font-size: 24px;
}

.close-mobile-menu {
    background: none;
    border: none;
    color: var(--color-white);
    font-size: 24px;
    cursor: pointer;
}

.close-mobile-menu:hover {
    color: var(--color-gold);
}

.mobile-menu {
    padding: 20px;
    overflow-y: auto;
}

.mobile-menu ul li {
    margin-bottom: 15px;
}

.mobile-menu a {
    color: var(--color-white);
    font-size: 16px;
    font-weight: 500;
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.mobile-menu a.active,
.mobile-menu a:hover {
    color: var(--color-gold);
    padding-left: 10px;
}

.btn-contact-mobile {
    background-color: var(--color-gold);
    color: var(--color-white) !important;
    text-align: center;
    border-radius: 4px;
    margin-top: 10px;
    border-bottom: none !important;
}

.btn-contact-mobile:hover {
    background-color: var(--color-gold-light);
    padding-left: 0 !important;
}

/* --- Hero Section --- */
.hero {
    position: relative;
    height: 90vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    transform: scale(1.05);
    animation: slowZoom 20s ease-in-out infinite alternate;
}

@keyframes slowZoom {
    0% { transform: scale(1.0); }
    100% { transform: scale(1.1); }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(11, 37, 69, 0.9) 0%, rgba(11, 37, 69, 0.6) 50%, rgba(11, 37, 69, 0.2) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    color: var(--color-white);
    animation: fadeInUp 1s ease-out;
}

.hero-badge {
    display: inline-block;
    background-color: rgba(29, 107, 122, 0.8);
    backdrop-filter: blur(5px);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 25px;
    border: 1px solid rgba(255,255,255,0.1);
}

.hero-badge .dot {
    color: var(--color-gold);
    margin: 0 8px;
}

.hero-title {
    font-family: var(--font-secondary);
    font-size: 56px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 25px;
    text-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.hero-desc {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 650px;
    color: var(--color-gray-200);
    font-weight: 400;
}

.hero-actions {
    display: flex;
    gap: 20px;
}

/* Scroll Down Indicator */
.scroll-down {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.mouse {
    width: 26px;
    height: 42px;
    border: 2px solid var(--color-white);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    padding-top: 6px;
    opacity: 0.8;
    transition: opacity var(--transition-normal);
}

.mouse:hover {
    opacity: 1;
}

.wheel {
    width: 4px;
    height: 8px;
    background-color: var(--color-gold);
    border-radius: 2px;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(15px); opacity: 0; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Responsive Design (Mobile View) --- */
@media (max-width: 1024px) {
    .desktop-nav > ul {
        gap: 15px;
    }
    .desktop-nav a {
        font-size: 13px;
    }
    .hero-title {
        font-size: 48px;
    }
}

@media (max-width: 992px) {
    .desktop-nav {
        display: none;
    }
    .mobile-menu-toggle {
        display: block;
    }
    .top-bar-content {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .hero {
        text-align: center;
        height: 100vh;
    }
    
    .contact-quick {
        display: none;
    }
    
    .top-bar-content {
        justify-content: center;
    }
    
    .hero-overlay {
        background: linear-gradient(180deg, rgba(11, 37, 69, 0.7) 0%, rgba(11, 37, 69, 0.9) 100%);
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-title {
        font-size: 38px;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
    }
    
    .hero-badge {
        font-size: 11px;
    }
    
    .section-title h2 {
        font-size: 30px;
        line-height: 1.3;
    }
    
    .scroll-down {
        display: none;
    }
    
    .image-grid {
        display: flex;
        flex-direction: column;
        gap: 15px;
        margin-top: 30px;
    }
    
    .image-grid-col {
        padding-top: 0 !important;
    }
    
    .experience-badge {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 32px;
    }
    
    .logo-text-main {
        font-size: 24px;
    }
    
    .logo-text-sub {
        font-size: 9px;
    }
    
    .section-title h2 {
        font-size: 25px;
    }
}
