/*
Theme Name: Lord Of The Sea
Description: Modern WordPress theme for boat tours in Montenegro
Version: 1.0
Author: Your Name
*/

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Header Styles */
.site-header {
    background: #1e3a8a;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    position: relative;
}

.main-nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.logo {
    font-size: 2.5rem;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
}

/* Custom logo styling for white logo */
.site-header .custom-logo-link img {
    max-height: 80px;
    width: auto;
}

.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
    width: 30px;
    height: 30px;
    position: relative;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: #fff;
    border-radius: 3px;
    transition: all 0.3s ease;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.menu-toggle span:nth-child(1) {
    transform: translate(-50%, -8px);
}

.menu-toggle span:nth-child(2) {
    transform: translate(-50%, -50%);
}

.menu-toggle span:nth-child(3) {
    transform: translate(-50%, 5px);
}

.menu-toggle[aria-expanded="true"] span:nth-child(1),
.menu-toggle[aria-expanded="true"] span:nth-child(3) {
    top: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
    transform: translate(-50%, -50%);
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.main-nav a {
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    font-size: 1.1rem;
    transition: color 0.3s;
}

.main-nav a:hover {
    color: rgba(255, 255, 255, 0.8);
}

.header-book-btn {
    display: inline-block;
    padding: 12px 28px;
    background: #fff;
    color: #1e3a8a;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    white-space: nowrap;
}

.header-book-btn:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    color: #1e3a8a;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.3) 0%, rgba(59, 130, 246, 0.3) 100%), url('/wp-content/uploads/2026/02/Kotor-Panorama-Daylight-Adriatic-Sea-2048x943-1.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    padding: 180px 0;
    min-height: 600px;
    text-align: center;
    position: relative;
}

.hero-section::before {
    display: none;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-section h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
}

.hero-section p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    animation: fadeInUp 1s ease 0.2s both;
}

.btn-primary {
    display: inline-block;
    padding: 15px 40px;
    background: #fff;
    color: #1e3a8a;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: transform 0.3s, box-shadow 0.3s;
    animation: fadeInUp 1s ease 0.4s both;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

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

/* Tours Section */
.tours-section {
    padding: 80px 0;
    background: #f8fafc;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #1e3a8a;
}

.tours-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
    margin-top: 3rem;
}

.tour-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.tour-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 50px rgba(30, 58, 138, 0.2);
}

.tour-image-wrapper {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.tour-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: linear-gradient(135deg, #3b82f6 0%, #1e3a8a 100%);
    transition: transform 0.5s ease;
}

.tour-card:hover .tour-image {
    transform: scale(1.1);
}

.tour-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.3) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tour-card:hover .tour-overlay {
    opacity: 1;
}

.tour-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.95);
    color: #1e3a8a;
    padding: 6px 16px;
    border-radius: 25px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 2;
}

.tour-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.tour-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: #1e3a8a;
    font-weight: 700;
    line-height: 1.3;
}

.tour-content p {
    color: #64748b;
    margin-bottom: 1.5rem;
    line-height: 1.7;
    flex-grow: 1;
    font-size: 0.95rem;
}

.tour-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.tour-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 500;
}

.tour-meta-item svg {
    color: #1e3a8a;
    flex-shrink: 0;
}

.tour-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 14px 28px;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(30, 58, 138, 0.3);
    width: 100%;
    text-align: center;
}

.tour-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(30, 58, 138, 0.4);
    background: linear-gradient(135deg, #3b82f6 0%, #1e3a8a 100%);
}

.tour-btn svg {
    transition: transform 0.3s ease;
}

.tour-btn:hover svg {
    transform: translateX(4px);
}

/* Testimonials Section */
.testimonials-section {
    padding: 80px 0;
    background: white;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.testimonial-card {
    background: #f8fafc;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.testimonial-text {
    font-style: italic;
    color: #555;
    margin-bottom: 1rem;
    line-height: 1.8;
}

.testimonial-author {
    font-weight: bold;
    color: #1e3a8a;
}

/* About Us Section */
.about-section {
    padding: 80px 0;
    background: #f8fafc;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    color: #1e3a8a;
    margin-bottom: 1.5rem;
}

.about-text p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.about-image {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Footer */
.site-footer {
    background: #1e3a8a;
    color: white;
    padding: 50px 0 20px;
}

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

.footer-section h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: white;
}

.footer-logo .custom-logo-link img {
    max-height: 60px;
    width: auto;
    margin-bottom: 1rem;
}

.footer-book {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-book-btn {
    display: inline-block;
    padding: 14px 32px;
    background: #fff !important;
    color: #1e3a8a !important;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    margin-top: 1rem;
    border: 2px solid #fff;
}

.footer-book-btn:hover {
    background: #f0f0f0 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
    color: #1e3a8a !important;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.8);
}

/* Single Tour Page */
.single-tour-header {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.tour-details {
    padding: 60px 0;
}

.tour-details-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.tour-description {
    line-height: 1.8;
    color: #666;
}

.tour-info-box {
    background: #f8fafc;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.tour-info-box h3 {
    color: #1e3a8a;
    margin-bottom: 1rem;
}

.tour-info-item {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.tour-info-item:last-child {
    border-bottom: none;
}

/* Tour Booking Section */
.tour-booking-section {
    padding: 80px 0;
    background: #f8fafc;
}

.tour-booking-content {
    max-width: 600px;
    margin: 0 auto;
}

.contact-form-wrapper {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.contact-form-wrapper h3 {
    color: #1e3a8a;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    text-align: center;
}

/* Contact Form 7 Styles */
.contact-form-wrapper .wpcf7-form,
.contact-form .wpcf7-form {
    margin-top: 1.5rem;
}

.contact-form-wrapper .wpcf7-form-control,
.contact-form .wpcf7-form-control,
.contact-form-wrapper input[type="text"],
.contact-form-wrapper input[type="email"],
.contact-form-wrapper textarea,
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100% !important;
    padding: 14px !important;
    margin-bottom: 1rem !important;
    border: 2px solid #e2e8f0 !important;
    border-radius: 10px !important;
    font-family: inherit !important;
    font-size: 1rem !important;
    transition: border-color 0.3s !important;
    background: white !important;
    box-sizing: border-box !important;
}

.contact-form-wrapper .wpcf7-form-control:focus,
.contact-form .wpcf7-form-control:focus,
.contact-form-wrapper input:focus,
.contact-form-wrapper textarea:focus,
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none !important;
    border-color: #1e3a8a !important;
}

.contact-form-wrapper .wpcf7-textarea,
.contact-form .wpcf7-textarea,
.contact-form-wrapper textarea,
.contact-form textarea {
    min-height: 150px !important;
    resize: vertical !important;
}

.contact-form-wrapper .wpcf7-submit,
.contact-form .wpcf7-submit,
.contact-form-wrapper input[type="submit"],
.contact-form input[type="submit"] {
    display: inline-block !important;
    padding: 14px 32px !important;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%) !important;
    color: white !important;
    text-decoration: none !important;
    border: none !important;
    border-radius: 50px !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(30, 58, 138, 0.3) !important;
    width: 100% !important;
    text-align: center !important;
}

.contact-form-wrapper .wpcf7-submit:hover,
.contact-form .wpcf7-submit:hover,
.contact-form-wrapper input[type="submit"]:hover,
.contact-form input[type="submit"]:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 25px rgba(30, 58, 138, 0.4) !important;
    background: linear-gradient(135deg, #3b82f6 0%, #1e3a8a 100%) !important;
}

.contact-form-wrapper .wpcf7-response-output,
.contact-form .wpcf7-response-output {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    font-weight: 500;
}

.contact-form-wrapper .wpcf7-mail-sent-ok,
.contact-form .wpcf7-mail-sent-ok {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.contact-form-wrapper .wpcf7-mail-sent-ng,
.contact-form .wpcf7-mail-sent-ng,
.contact-form-wrapper .wpcf7-validation-errors,
.contact-form .wpcf7-validation-errors {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.contact-form-wrapper .wpcf7-spinner,
.contact-form .wpcf7-spinner {
    margin: 0 auto;
}

/* Additional CF7 styling to override defaults */
.contact-form-wrapper .wpcf7 input,
.contact-form-wrapper .wpcf7 textarea,
.contact-form .wpcf7 input,
.contact-form .wpcf7 textarea {
    width: 100% !important;
    padding: 14px !important;
    margin-bottom: 1rem !important;
    border: 2px solid #e2e8f0 !important;
    border-radius: 10px !important;
    font-size: 1rem !important;
    background: white !important;
}

.contact-form-wrapper .wpcf7 input:focus,
.contact-form-wrapper .wpcf7 textarea:focus,
.contact-form .wpcf7 input:focus,
.contact-form .wpcf7 textarea:focus {
    border-color: #1e3a8a !important;
    outline: none !important;
}

.contact-form-wrapper .wpcf7 input[type="submit"],
.contact-form .wpcf7 input[type="submit"],
.contact-form-wrapper .wpcf7 .wpcf7-submit,
.contact-form .wpcf7 .wpcf7-submit {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%) !important;
    color: white !important;
    border: none !important;
    border-radius: 50px !important;
    padding: 14px 32px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    width: 100% !important;
    box-shadow: 0 4px 15px rgba(30, 58, 138, 0.3) !important;
}

.contact-form-wrapper .wpcf7 input[type="submit"]:hover,
.contact-form .wpcf7 input[type="submit"]:hover,
.contact-form-wrapper .wpcf7 .wpcf7-submit:hover,
.contact-form .wpcf7 .wpcf7-submit:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 25px rgba(30, 58, 138, 0.4) !important;
    background: linear-gradient(135deg, #3b82f6 0%, #1e3a8a 100%) !important;
}

.tour-contact-form input,
.tour-contact-form textarea {
    width: 100%;
    padding: 14px;
    margin-bottom: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.tour-contact-form input:focus,
.tour-contact-form textarea:focus {
    outline: none;
    border-color: #1e3a8a;
}

.tour-contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

.form-message {
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 500;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Contact Page */
.contact-section {
    padding: 60px 0;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-form {
    background: #f8fafc;
    padding: 2rem;
    border-radius: 15px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-info {
    padding: 2rem;
}

.contact-info h3 {
    color: #1e3a8a;
    margin-bottom: 1rem;
}

.contact-info p {
    margin-bottom: 0.5rem;
    color: #666;
}

.contact-map {
    margin-top: 3rem;
}

.map-container {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.map-container iframe {
    width: 100%;
    height: 450px;
    border: 0;
    display: block;
}

/* Blog Section */
.blog-section {
    padding: 60px 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.blog-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

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

.blog-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-card-content {
    padding: 1.5rem;
}

.blog-card h3 {
    color: #1e3a8a;
    margin-bottom: 0.5rem;
}

.blog-card a {
    color: #1e3a8a;
    text-decoration: none;
}

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

@media (max-width: 900px) {
    .tours-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .about-content,
    .contact-content,
    .tour-details-content {
        grid-template-columns: 1fr;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        z-index: 999;
    }
    
    .menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        left: auto;
        transform: none;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: #1e3a8a;
        transition: right 0.3s ease;
        z-index: 1000;
        padding: 60px 2rem 2rem;
        box-shadow: -2px 0 10px rgba(0,0,0,0.2);
        overflow-y: auto;
    }
    
    .main-nav.active {
        right: 0;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .main-nav a {
        font-size: 1.1rem;
        padding: 0.5rem 0;
        display: block;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .header-book-btn {
        display: none;
    }
    
    .tours-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}
