/* Smooth scrolling when clicking navigation links */
html {
    scroll-behavior: smooth;
}

/* Overall page styling */
body {
    font-family: Arial, sans-serif;
    background-color: #fff8ef;
    color: #243b3a;
    line-height: 1.7;
    margin: 0;
    padding: 40px 24px;
}

/* Main heading */
h1 {
    color: #8b4513;
    font-size: 48px;
    line-height: 1.2;
}

/* Section headings */
h2 {
    color: #244e49;
    margin-top: 32px;
}

/* Paragraphs */
p {
    font-size: 17px;
}

/* Tour list */
ul {
    background-color: #ffffff;
    padding: 24px 24px 24px 44px;
    border-radius: 12px;
}

/* Individual tour items */
li {
    margin-bottom: 8px;
}

/* Links */
a {
    color: #17665d;
}

/* Adjust the website for smaller screens */
@media (max-width: 800px) {
    body {
        padding: 24px 16px;
    }

    h1 {
        font-size: 30px;
    }

    h2 {
        margin-top: 24px;
    }

    p {
        font-size: 16px;
    }

    ul {
        padding: 20px 20px 20px 36px;
    }
}

/* Website header */
.site-header {
    background-color: #244e49;
    padding: 20px 24px;
    margin: -40px -24px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Website name */
.site-name {
    color: #ffffff;
    font-size: 26px;
    font-weight: bold;
    text-decoration: none;
}

/* Navigation links */
.site-nav {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.site-nav a {
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
}

/* Highlight links when the mouse is over them */
.site-nav a:hover {
    text-decoration: underline;
}

/* Main content sections */
section {
    margin-bottom: 40px;
    scroll-margin-top: 20px;
}

/* Small-screen adjustments */
@media (max-width: 600px) {
    .site-header {
        margin: -24px -16px 24px;
        padding: 20px 16px;
        align-items: flex-start;
    }

    .site-nav {
        gap: 12px 20px;
    }
}

/* Tour card layout */
.tour-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-top: 24px;
}

/* Individual tour card */
.tour-card {
    background-color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
}

/* Tour image */
.tour-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

/* Text inside the card */
.tour-card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1;
}

/* Tour title */
.tour-card h3 {
    color: #244e49;
    font-size: 21px;
    margin: 0 0 12px;
}

/* Tour description */
.tour-card p {
    font-size: 16px;
    margin: 0 0 20px;
}

/* Tour enquiry link */
.tour-link {
    color: #17665d;
    font-weight: bold;
    text-decoration: none;
    margin-top: auto;
}

.tour-link:hover {
    text-decoration: underline;
}

/* Tablet screens */
@media (max-width: 900px) {
    .tour-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Mobile screens */
@media (max-width: 600px) {
    .tour-grid {
        grid-template-columns: 1fr;
    }

    .tour-card img {
        height: 220px;
    }
}

/* Homepage hero section */
.hero {
    background-color: #e5efec;
    padding: 56px 40px;
    border-radius: 16px;
    margin-bottom: 48px;
}

.hero-content {
    max-width: 760px;
    margin: 0 auto;
}

/* Small introductory label */
.hero-label {
    color: #17665d;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 2px;
    margin-bottom: 16px;
}

/* Main headline */
.hero h1 {
    color: #174f49;
    font-size: 48px;
    line-height: 1.15;
    margin: 0 0 20px;
}

/* Hero description */
.hero-description {
    font-size: 19px;
    max-width: 650px;
    margin-bottom: 28px;
}

/* Group the calls-to-action */
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

/* Shared link styling */
.button-primary,
.button-secondary {
    display: inline-block;
    padding: 13px 20px;
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none;
    text-align: center;
}

/* Main call-to-action */
.button-primary {
    background-color: #17665d;
    color: #ffffff;
}

/* Secondary call-to-action */
.button-secondary {
    color: #17665d;
    border: 2px solid #17665d;
}

/* Hover effects */
.button-primary:hover {
    background-color: #104c45;
}

.button-secondary:hover {
    background-color: #d4e5df;
}

/* Mobile adjustments */
@media (max-width: 600px) {
    .hero {
        padding: 32px 20px;
        margin-bottom: 32px;
    }

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

    .hero-description {
        font-size: 17px;
    }

    .hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .button-primary,
    .button-secondary {
        box-sizing: border-box;
        width: 100%;
    }
}

/* About Me section */
.about-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 48px;
}

/* About image */
.about-image img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
    border-radius: 16px;
}

/* About text */
.about-content {
    min-width: 0;
}

.about-label {
    color: #17665d;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.about-content h2 {
    color: #174f49;
    font-size: 32px;
    line-height: 1.2;
    margin: 0 0 20px;
}

.about-content p {
    font-size: 16px;
}

/* Space above the call-to-action */
.about-content .button-primary {
    margin-top: 12px;
}

/* Mobile layout */
@media (max-width: 600px) {
    .about-section {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .about-content h2 {
        font-size: 28px;
    }
}

/* ========================================
   CONTACT SECTION
   ======================================== */

.contact-section {
    background-color: #e5efec;
    padding: 36px;
    border-radius: 16px;
    margin-bottom: 40px;
}

/* Contact introduction */

.contact-intro {
    max-width: 700px;
    margin-bottom: 28px;
}

.contact-label {
    color: #17665d;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.contact-intro h2 {
    color: #174f49;
    font-size: 32px;
    line-height: 1.2;
    margin: 0 0 16px;
}

/* Form layout */

.enquiry-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    max-width: 850px;
}

/* Each field and its label */

.form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

/* Let the message field span both columns */

.form-field:has(textarea) {
    grid-column: 1 / -1;
}

/* Labels */

.form-field label {
    color: #243b3a;
    font-size: 15px;
    font-weight: bold;
}

/* Input boxes, dropdowns and message box */

.form-field input,
.form-field select,
.form-field textarea {
    box-sizing: border-box;
    width: 100%;
    padding: 12px;
    border: 1px solid #bdceca;
    border-radius: 8px;
    background-color: #ffffff;
    color: #243b3a;
    font: inherit;
}

/* Highlight the field currently being used */

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: 2px solid #17665d;
    outline-offset: 2px;
}

/* Allow visitors to resize the message box vertically */

.form-field textarea {
    resize: vertical;
}

/* Submission button */

.enquiry-form button {
    grid-column: 1 / -1;
    padding: 14px 20px;
    border: none;
    border-radius: 8px;
    background-color: #17665d;
    color: #ffffff;
    font: inherit;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.enquiry-form button:hover {
    background-color: #124c45;
}

.enquiry-form button:focus-visible {
    outline: 2px solid #17665d;
    outline-offset: 3px;
}

/* Explanation beneath the button */

.form-note {
    grid-column: 1 / -1;
    margin: -8px 0 0;
    color: #526764;
    font-size: 14px;
}

/* ========================================
   MOBILE LAYOUT
   ======================================== */

@media (max-width: 600px) {
    .contact-section {
        padding: 24px 18px;
    }

    .contact-intro h2 {
        font-size: 28px;
    }

    .enquiry-form {
        grid-template-columns: 1fr;
    }

    .form-field:has(textarea),
    .enquiry-form button,
    .form-note {
        grid-column: 1;
    }
}

/* Thank-you page */

.thank-you-section {
    max-width: 760px;
    margin: 60px auto;
    padding: 48px 32px;
    background-color: #e5efec;
    border-radius: 16px;
    text-align: center;
}

.thank-you-section h1 {
    color: #174f49;
    font-size: 36px;
    line-height: 1.2;
    margin-bottom: 20px;
}

.thank-you-section p:not(.contact-label) {
    color: #243b3a;
    line-height: 1.7;
    margin-bottom: 20px;
}

.thank-you-section .button-primary {
    display: inline-block;
    margin-top: 12px;
}

@media (max-width: 600px) {
    .thank-you-section {
        margin: 28px 0;
        padding: 32px 20px;
    }

    .thank-you-section h1 {
        font-size: 28px;
    }
}



/* ========================================
   TOUR CARDS
   ======================================== */

/* Tour card layout */
.tour-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: calc(100% - 40px);
    max-width: 1280px;
    margin: 24px auto 0;
    gap: 24px;
    align-items: stretch;
}

/* Individual tour card */
.tour-card {
    background-color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
}


/* Tour images */
.tour-card img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}


/* Merlion: keep more of the head visible */
.tour-card:nth-child(1) img {
    object-position: center 30%;
}


/* Supertrees: balance the sky and lower structures */
.tour-card:nth-child(2) img {
    object-position: center 10%;
}


/* Orangutans: fill the same image frame */
.tour-card:nth-child(4) img {
    object-fit: cover;
    object-position: center center;
}

/* Text inside each card */
.tour-card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1;
}

/* Tour titles */
.tour-card h3 {
    color: #244e49;
    font-size: 21px;
    line-height: 1.3;
    margin: 0 0 10px;
}

/* Tour descriptions */
.tour-card p {
    font-size: 16px;
    margin: 0 0 20px;
}

/* Itinerary headings */
.tour-card h4 {
    color: #244e49;
    font-size: 16px;
    margin: 12px 0 4px;
}

/* Tour itinerary */
.tour-itinerary {
    padding-left: 20px;
    margin: 4px 0 12px;
    line-height: 1.7;
}

/* Tour customisation note */
.tour-custom-note {
    background-color: #f3f7f5;
    padding: 12px;
    border-radius: 8px;
    font-size: 0.92rem;
    line-height: 1.6;
    margin: 0 0 18px;
}

/* Tour enquiry link */
.tour-link {
    color: #17665d;
    font-weight: bold;
    text-decoration: none;
    margin-top: auto;
}

.tour-link:hover {
    text-decoration: underline;
}

/* Tablet screens */
@media (max-width: 900px) {
    .tour-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


/* Mobile screens */
@media (max-width: 600px) {
    .tour-grid {
        width: calc(100% - 28px);
        grid-template-columns: 1fr;
        gap: 18px;
    }
}


/* Website footer */
.site-footer {
    background-color: #173c35;
    color: white;
    padding: 56px 24px 24px;
    text-align: center;
}

.footer-content {
    max-width: 1000px;
    margin: 0 auto;
}

.site-footer h2 {
    color: white;
    margin-top: 0;
    margin-bottom: 12px;
}

.site-footer p {
    color: #e0eae5;
}

/* Social media links */
.social-links {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 28px;
    margin: 30px 0 44px;
}

.social-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: white;
    text-decoration: none;
    font-size: 14px;
}

a.social-link:hover {
    color: #b9dfcf;
}

.social-icon {
    width: 30px;
    height: 30px;
    display: block;
    flex-shrink: 0;
}

/* Accounts that are not ready yet */
.social-inactive {
    opacity: 0.45;
    cursor: default;
}

/* Copyright */
.footer-copyright {
    font-size: 12px;
    margin-top: 20px;
    opacity: 0.75;
}
