/* Dylan Shipping Solutions - Main Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&family=Roboto:wght@300;400;500;700&display=swap');

:root {
    --primary-color: #005696;
    /* Deep Blue from reference */
    --secondary-color: #1bb0ce;
    /* Cyan/Teal from reference */
    --accent-color: #0397d6;
    /* Hover Blue */
    --text-color: #333;
    --text-light: #666;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --dark-footer: #222;
    --font-heading: 'Roboto', sans-serif;
    --font-body: 'Lato', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-weight: 700;
}

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

ul {
    list-style: none;
}

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

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

.section {
    padding: 80px 0;
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 4px;
    /* Slightly more square like reference */
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 14px;
    font-family: var(--font-heading);
}

.btn-sm {
    padding: 8px 20px;
    font-size: 12px;
}

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

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

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

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

/* Header & Nav */
header {
    background-color: var(--white);
    color: var(--text-color);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-bottom: 3px solid var(--secondary-color);
    /* Accent line */
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo-img {
    height: 120px;
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--primary-color);
    font-weight: 600;
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.5px;
    position: relative;
}

.nav-links a:hover {
    color: var(--secondary-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--secondary-color);
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 180px 0 120px;
    /* More padding top */
    text-align: center;
    position: relative;
    clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
    /* Modern angle */
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 86, 150, 0.85) 0%, rgba(27, 176, 206, 0.75) 100%);
    /* Gradient matching brand */
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 56px;
    margin-bottom: 20px;
    color: var(--white);
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hero p {
    font-size: 22px;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 60px;
}

/* Lead Capture Form */
.lead-capture {
    background: var(--white);
    padding: 30px;
    border-radius: 4px;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    top: 20px;
}

.lead-capture h3 {
    margin-bottom: 20px;
    font-size: 20px;
    color: var(--primary-color);
    text-transform: uppercase;
}

#quick-lead-form {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

#quick-lead-form input {
    padding: 12px 15px;
    border-radius: 4px;
    border: 1px solid #ddd;
    flex: 1;
    min-width: 220px;
    font-family: var(--font-body);
}

#quick-lead-form button {
    flex: 0 0 auto;
}

/* Features Section */
.features {
    background-color: var(--white);
    padding-top: 100px;
    /* Account for hero overlap */
}

.features h2 {
    color: var(--primary-color);
    margin-bottom: 50px;
    font-size: 36px;
    position: relative;
    display: inline-block;
}

.features h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--secondary-color);
    margin: 15px auto 0;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    padding: 40px 30px;
    background: var(--white);
    border-radius: 4px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid #eee;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--secondary-color);
}

.feature-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 20px;
}

.feature-card p {
    color: var(--text-light);
    font-size: 15px;
}

/* Services Summary */
.services-summary {
    background-color: var(--light-bg);
}

.services-summary h2 {
    color: var(--primary-color);
    margin-bottom: 50px;
    font-size: 36px;
    position: relative;
    display: inline-block;
}

.services-summary h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--secondary-color);
    margin: 15px auto 0;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.service-item {
    background: var(--white);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-item:hover .service-img {
    transform: scale(1.05);
}

.service-item h3 {
    padding: 25px 25px 10px;
    color: var(--primary-color);
    font-size: 22px;
}

.service-item p {
    padding: 0 25px 25px;
    flex-grow: 1;
    color: var(--text-light);
}

.read-more {
    display: block;
    padding: 15px 25px;
    background: var(--white);
    color: var(--secondary-color);
    font-weight: 600;
    text-align: left;
    border-top: 1px solid #eee;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 1px;
}

.read-more:hover {
    background: var(--secondary-color);
    color: var(--white);
}

/* Stats Section */
.stats {
    background: linear-gradient(rgba(0, 86, 150, 0.9), rgba(0, 86, 150, 0.9)), url('../images/container_ship_1117210.jpg');
    background-size: cover;
    background-attachment: fixed;
    color: var(--white);
}

.stats h2 {
    color: var(--white);
    margin-bottom: 50px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.stat-item h3 {
    font-size: 48px;
    color: var(--secondary-color);
    margin-bottom: 10px;
    font-weight: 700;
}

.stat-item p {
    font-weight: 500;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
}

/* Footer */
footer {
    background-color: var(--dark-footer);
    color: #aaa;
    padding: 80px 0 0;
    font-size: 14px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
    margin-bottom: 60px;
}

.footer-col h3 {
    color: var(--white);
    margin-bottom: 25px;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 15px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background: var(--secondary-color);
}

.footer-col p {
    margin-bottom: 15px;
    line-height: 1.8;
}

.footer-col ul li {
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 12px;
}

.footer-col ul li:last-child {
    border-bottom: none;
}

.footer-col ul li a {
    transition: all 0.3s;
}

.footer-col ul li a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

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

.social-links a svg {
    fill: #aaa;
    transition: fill 0.3s;
}

.social-links a:hover svg {
    fill: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    padding: 25px 0;
    background-color: #1a1a1a;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 13px;
}

/* Contact Form */
.contact-form {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    padding: 50px;
    border-radius: 4px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary-color);
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 15px;
    background-color: #fcfcfc;
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--secondary-color);
    background-color: var(--white);
}

.checkbox-group {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.checkbox-group input[type="checkbox"] {
    margin-top: 5px;
}

.consent-text {
    font-size: 13px;
    color: #888;
    margin-bottom: 25px;
    line-height: 1.5;
}

.error-message {
    color: #dc3545;
    font-size: 12px;
    margin-top: 5px;
    display: none;
}

.form-control.error {
    border-color: #dc3545;
}

.success-message {
    background-color: #d4edda;
    color: #155724;
    padding: 20px;
    border-radius: 4px;
    margin-bottom: 30px;
    display: none;
    text-align: center;
    border: 1px solid #c3e6cb;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    max-width: 400px;
    background: var(--white);
    color: var(--text-color);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 2000;
    transform: translateY(150%);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-left: 5px solid var(--secondary-color);
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-banner p {
    font-size: 14px;
    margin: 0;
}

.cookie-banner a {
    text-decoration: underline;
    color: var(--primary-color);
}

.cookie-banner button {
    align-self: flex-end;
}

/* Responsive */
/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        gap: 20px;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a::after {
        display: none;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero p {
        font-size: 18px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .lead-capture {
        margin-top: 20px;
        padding: 20px;
    }

    .section {
        padding: 60px 0;
    }

    .contact-form {
        padding: 30px 20px;
    }
}

/* Service Details Page */
/* Service Sections */
.service-section {
    margin-bottom: 60px;
    padding-bottom: 60px;
    border-bottom: 1px solid #eee;
}

.service-section:last-child {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.service-section .row {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: flex-start;
}

.service-section .col-text {
    flex: 1;
    min-width: 300px;
}

.service-section .col-image {
    flex: 1;
    min-width: 300px;
}

.service-section h2 {
    font-size: 32px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.service-section p {
    margin-bottom: 20px;
    color: var(--text-light);
    font-size: 16px;
    line-height: 1.8;
}

.specialties-box {
    background-color: var(--light-bg);
    padding: 30px;
    border-radius: 8px;
    margin-top: 30px;
    border-left: 4px solid var(--secondary-color);
}

.specialties-box h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.custom-list {
    list-style: none;
    padding: 0;
}

.custom-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 12px;
    color: var(--text-color);
}

.custom-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

@media (max-width: 768px) {
    .service-section .row {
        flex-direction: column;
    }

    .service-section .col-image {
        order: -1;
        width: 100%;
    }
}