/**
 * GadalKedaniels Theme Core CSS
 * Primary Color: Deep Orange
 * Inspiration: Van Oord
 */

:root {
    --primary-color: #E65100;
    --primary-hover: #BF360C;
    --bg-dark: #121F2D; /* Deep navy/charcoal for ocean corporate feel */
    --bg-light: #F4F6F8;
    --text-dark: #1F2937;
    --text-light: #FFFFFF;
    --text-muted: #6B7280;
    
    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Roboto', sans-serif;
    
    --transition-speed: 0.3s;
}

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

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--text-light);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

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

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

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    font-family: var(--font-heading);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    color: var(--text-light);
}

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

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--text-light);
}

/* Typography Utilities */
.text-center { text-align: center; }
.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
}
.text-center .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: all var(--transition-speed) ease;
    background-color: transparent;
}

.site-header.scrolled {
    background-color: var(--bg-dark);
    padding: 1rem 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

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

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.main-navigation a {
    color: var(--text-light);
    font-weight: 500;
    font-family: var(--font-heading);
    letter-spacing: 1px;
    position: relative;
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width var(--transition-speed) ease;
}

.main-navigation a:hover::after,
.main-navigation .current-menu-item > a::after {
    width: 100%;
}

.header-action { margin-left: 2rem; }

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger-box {
    width: 30px;
    height: 24px;
    display: inline-block;
    position: relative;
}

.hamburger-inner, .hamburger-inner::before, .hamburger-inner::after {
    width: 30px;
    height: 3px;
    background-color: #fff;
    position: absolute;
    transition: all 0.2s;
}

.hamburger-inner { top: 50%; transform: translateY(-50%); }
.hamburger-inner::before { content: ''; top: -10px; left: 0; }
.hamburger-inner::after { content: ''; bottom: -10px; left: 0; }

.menu-toggle.is-active .hamburger-inner { background-color: transparent; }
.menu-toggle.is-active .hamburger-inner::before { top: 0; transform: rotate(45deg); }
.menu-toggle.is-active .hamburger-inner::after { bottom: 0; transform: rotate(-45deg); }

/* Hero Section */
.hero-section {
    height: 100vh;
    min-height: 600px;
    position: relative;
    display: flex;
    align-items: center;
    color: var(--text-light);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background-size: cover;
    background-position: center;
}

@keyframes heroSlideshow {
    0% { background-image: url('../img/hero-bg.jpg'); }
    25% { background-image: url('../img/hero-bg.jpg'); }
    33% { background-image: url('../img/fleet-img.jpg'); }
    58% { background-image: url('../img/fleet-img.jpg'); }
    66% { background-image: url('../img/service-dredging.jpg'); }
    92% { background-image: url('../img/service-dredging.jpg'); }
    100% { background-image: url('../img/hero-bg.jpg'); }
}

.hero-bg.animated {
    animation: heroSlideshow 18s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(to right, rgba(18,31,45, 0.9) 0%, rgba(18,31,45, 0.5) 100%);
}

.hero-content {
    max-width: 800px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s ease forwards;
}

@keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
}

.hero-title {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-title span {
    color: var(--primary-color);
}

.hero-desc {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 600px;
    font-weight: 300;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.hero-actions .btn-outline {
    color: #fff;
    border-color: #fff;
}

.hero-actions .btn-outline:hover {
    background-color: #fff;
    color: var(--bg-dark);
}

/* Sections */
.section {
    padding: 6rem 0;
}

.section-alt {
    background-color: var(--bg-light);
}

.section-dark {
    background-color: var(--bg-dark);
    color: var(--text-light);
}
.section-dark .section-title::after {
    background-color: var(--primary-color);
}

/* Cards */
.card {
    background: var(--text-light);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform var(--transition-speed) ease;
}

.card:hover {
    transform: translateY(-10px);
}

.card-img {
    height: 240px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.card-img::after {
    content: '';
    position: absolute;
    top:0; left:0; width:100%; height:100%;
    background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.7));
}

.card-content {
    padding: 2rem;
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

/* Footer */
.site-footer {
    background-color: #0b131c;
    color: #a0aec0;
    padding-top: 5rem;
}

.footer-widget h3 {
    color: var(--text-light);
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.footer-widget ul {
    list-style: none;
}

.footer-widget ul li {
    margin-bottom: 0.75rem;
}

.footer-widget a {
    color: #a0aec0;
}

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

.company-tagline {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin: 1rem 0;
}

.site-info {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 4rem;
    padding: 2rem 0;
    text-align: center;
}

/* Layout Utilities */
.flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 2rem; }
.gap-4 { gap: 4rem; }

/* Responsive */
@media (max-width: 992px) {
    .site-title-text { 
        font-size: 1.3rem !important; 
    }
    
    .menu-toggle { display: block; }
    
    .header-inner { flex-wrap: wrap; position: relative; }
    
    .main-navigation {
        width: auto;
    }
    
    .main-navigation ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--bg-dark);
        padding: 0 1rem;
        flex-direction: column;
        gap: 0;
        box-shadow: 0 10px 10px rgba(0,0,0,0.1);
    }
    
    .main-navigation.is-open ul {
        display: flex;
    }
    
    .main-navigation a {
        display: block;
        padding: 1rem 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .header-action { display: none; }
    
    .hero-title { font-size: 3rem; }
}

@media (max-width: 768px) {
    .hero-content {
        text-align: center;
        margin: 0 auto;
    }
    .hero-title { font-size: 2.5rem; }
    .section { padding: 4rem 0; }
    .hero-actions {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    .hero-actions .btn {
        width: 100%;
        max-width: 400px;
        text-align: center;
        margin-left: 0 !important;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
