/* Root Variables */
:root {
    --primary-color: #1B3C59;    /* Navy Blue */
    --secondary-color: #F4A261;   /* Sandy Orange */
    --accent-color: #E9ECEF;      /* Light Gray */
    --bg-color: #F8F9FA;         /* Soft White */
    --card-bg: #FFFFFF;          /* White */
    --text-color: #212529;       /* Dark Gray */
    --white: #FFFFFF;            /* White */
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* Modern shadow */
    --transition: 0.3s ease;     /* Smooth transition */
}

/* Reset and Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth;
}

body {
    background: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem; /* Increased default padding */
}

/* Header */
.header {
    background: var(--primary-color);
    color: var(--white);
    padding: 1.2rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    text-decoration: none;
    color: var(--white);
    transition: color var(--transition);
}

.logo:hover {
    color: var(--secondary-color);
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-menu li {
    margin-left: 2rem;
}

.nav-menu a {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: color var(--transition);
}

.nav-menu a:hover {
    color: var(--secondary-color);
}

.hamburger {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--white);
    transition: color var(--transition);
}

.hamburger:hover {
    color: var(--secondary-color);
}

/* Hero Section */
.hero {
    height: 100vh; /* Homepage default */
    background: url('../images/palace.jpg') no-repeat center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    position: relative;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    text-align: center;
    padding: 2rem;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.4rem;
    margin-bottom: 2.5rem;
}

/* Services Hero */
.services-hero {
    background: url('../images/services-hero.jpg') no-repeat center/cover;
}

.services-hero::after {
    background: rgba(0, 0, 0, 0.3);
}

/* About Hero */
.about-hero {
    background: url('../images/aboutus-hero.jpg') no-repeat center/cover;
}

.about-hero::after {
    background: rgba(0, 0, 0, 0.3);
}

/* Contact Hero */
.contact-hero {
    background: url('../images/contactus-hero.jpg') no-repeat center/cover;
}

.contact-hero::after {
    background: rgba(0, 0, 0, 0.3);
}

/* Buttons */
.btn {
    display: block;
    padding: 0.9rem 2.5rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: 5px;
    text-align: center;
    transition: background-color var(--transition), transform var(--transition), box-shadow var(--transition);
    margin: 1rem auto; /* Consistent centering */
}

.btn:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow);
}

.btn-primary {
    background: var(--secondary-color);
    color: var(--white);
}

.btn-primary:hover {
    background: #E68A3F;
}

.btn-secondary {
    background: var(--primary-color);
    color: var(--white);
}

.btn-secondary:hover {
    background: #132D46;
}

.btn-link {
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
    padding: 0.7rem 2rem;
}

.btn-link:hover {
    background: var(--secondary-color);
    color: var(--white);
}

/* Section */
.section {
    padding: 5rem 0;
}

.section h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 1.5rem;
}

.section p {
    font-size: 1.2rem;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 2rem;
}

/* About Section */
.about {
    background: var(--card-bg);
}

.about-content {
    display: flex;
    gap: 2.5rem;
    align-items: center;
    margin-top: 2.5rem;
}

.about-image {
    width: 50%;
    height: auto;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.about-text {
    width: 50%;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--card-bg);
    border-radius: 10px;
    box-shadow: var(--shadow);
    overflow: hidden;
    text-align: center;
    transition: transform var(--transition), box-shadow var(--transition);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.service-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    padding: 1.2rem 1.5rem 0.5rem;
}

.service-card p {
    font-size: 1rem;
    padding: 0 1.5rem 1rem;
}

/* Tours Section */
.tours {
    background: linear-gradient(to bottom, var(--bg-color), #F0F4F8);
}

.tours-carousel {
    display: flex;
    overflow-x: auto;
    gap: 2rem;
    padding: 1.5rem 0;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: var(--secondary-color) var(--accent-color);
}

.tours-carousel::-webkit-scrollbar {
    height: 8px;
}

.tours-carousel::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 4px;
}

.tours-carousel::-webkit-scrollbar-track {
    background: var(--accent-color);
}

.tour-card {
    flex: 0 0 340px;
    background: var(--card-bg);
    border-radius: 10px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    scroll-snap-align: start;
    transition: transform var(--transition), box-shadow var(--transition);
}

.tour-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.tour-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.tour-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(27, 60, 89, 0.9);
    color: var(--white);
    padding: 1.5rem;
    transform: translateY(100%);
    transition: transform var(--transition);
    text-align: center;
}

.tour-card:hover .tour-overlay {
    transform: translateY(0);
}

.tour-overlay h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.tour-brief {
    font-size: 1rem;
    margin-bottom: 1rem;
}

.tour-full {
    font-size: 0.95rem;
    line-height: 1.5;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.tour-card:hover .tour-full {
    max-height: 200px;
}

/* Why Choose Section */
.why-choose {
    background: linear-gradient(to bottom, var(--card-bg), #F8FAFC);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.why-card {
    background: var(--bg-color);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform var(--transition), box-shadow var(--transition);
}

.why-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.why-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.why-card p {
    font-size: 1rem;
}

.team-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

/* Testimonials Section */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform var(--transition), box-shadow var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.testimonial-card p {
    font-style: italic;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.testimonial-card h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--secondary-color);
}

/* Contact Section */
.contact-content {
    display: flex;
    gap: 2.5rem;
    margin-top: 2.5rem;
}

.contact-info,
.contact-form {
    width: 50%;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
}

.contact-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform var(--transition), box-shadow var(--transition);
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.contact-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.contact-card p {
    font-size: 1rem;
    margin-bottom: 1rem;
}

/* Contact Form */
.contact-form h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--accent-color);
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 5px rgba(244, 162, 97, 0.5);
    outline: none;
}

.form-group textarea {
    resize: vertical;
}

/* FAQ Section */
.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.faq-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform var(--transition), box-shadow var(--transition);
}

.faq-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.faq-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.faq-card p {
    font-size: 1rem;
}

/* Map Section */
.map iframe {
    width: 100%;
    height: 300px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

/* Sticky CTA */
.sticky-cta {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 3rem 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-info h3,
.footer-links h3 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    font-size: 1.1rem;
    transition: color var(--transition);
}

.footer-links a:hover {
    color: var(--secondary-color);
}

.footer-copy {
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Responsive Design */
/* Tablet (≤768px) */
@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--primary-color);
        flex-direction: column;
        padding: 1.5rem;
        box-shadow: var(--shadow);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        margin: 1rem 0;
    }

    .nav-menu a {
        font-size: 1rem;
    }

    .hamburger {
        display: block;
    }

    .hero {
        height: 80vh; /* Slightly shorter for tablet */
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .hero p {
        font-size: 1.2rem;
        margin-bottom: 2rem;
    }

    .btn {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }

    .section {
        padding: 4rem 0;
    }

    .section h2 {
        font-size: 2.2rem;
    }

    .section p {
        font-size: 1.1rem;
    }

    .about-content,
    .contact-content {
        flex-direction: column;
        gap: 2rem;
    }

    .about-image,
    .about-text,
    .contact-info,
    .contact-form {
        width: 100%;
    }

    .services-grid,
    .why-grid,
    .testimonials-grid,
    .contact-grid,
    .faq-grid {
        grid-template-columns: 1fr; /* Single column for tablet */
    }

    .service-img {
        height: 180px;
    }

    .tour-card {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .tour-img {
        height: 260px;
    }

    .tour-overlay {
        padding: 1.2rem;
        transform: translateY(0); /* Always visible on tablet */
        position: static;
        background: var(--card-bg);
        color: var(--text-color);
    }

    .tour-brief {
        display: none;
    }

    .tour-full {
        max-height: none;
    }

    .team-image {
        height: 200px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .contact-form h2 {
        font-size: 1.8rem;
    }

    .map iframe {
        height: 250px;
    }

    .sticky-cta {
        bottom: 1.5rem;
        right: 1.5rem;
    }

    .sticky-cta .btn {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* Mobile (≤480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .logo {
        font-size: 1.6rem;
    }

    .hamburger {
        font-size: 1.6rem;
    }

    .hero {
        height: 60vh; /* Compact for mobile */
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .btn {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
        margin: 0.8rem auto;
    }

    .section {
        padding: 3rem 0;
    }

    .section h2 {
        font-size: 1.8rem;
    }

    .section p {
        font-size: 0.95rem;
    }

    .service-img {
        height: 160px;
    }

    .service-card h3 {
        font-size: 1.3rem;
    }

    .service-card p {
        font-size: 0.9rem;
    }

    .tour-img {
        height: 220px;
    }

    .tour-overlay h3 {
        font-size: 1.3rem;
    }

    .tour-full {
        font-size: 0.9rem;
    }

    .why-card h3 {
        font-size: 1.3rem;
    }

    .why-card p {
        font-size: 0.9rem;
    }

    .team-image {
        height: 180px;
    }

    .testimonial-card p {
        font-size: 0.95rem;
    }

    .testimonial-card h4 {
        font-size: 1rem;
    }

    .contact-card h3 {
        font-size: 1.3rem;
    }

    .contact-card p {
        font-size: 0.9rem;
    }

    .contact-form h2 {
        font-size: 1.6rem;
    }

    .form-group label {
        font-size: 1rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.8rem;
        font-size: 0.9rem;
    }

    .faq-card h3 {
        font-size: 1.3rem;
    }

    .faq-card p {
        font-size: 0.9rem;
    }

    .map iframe {
        height: 200px;
    }

    .sticky-cta {
        bottom: 1rem;
        right: 1rem;
    }

    .sticky-cta .btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }

    .footer-info h3,
    .footer-links h3 {
        font-size: 1.4rem;
    }

    .footer-links a {
        font-size: 1rem;
    }

    .footer-copy {
        font-size: 0.85rem;
    }
}