@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&family=Playfair+Display:wght@700&display=swap');

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

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.7;
    color: #333;
    background: #fdfdfb;
    padding: 1rem;
    /* Global padding for breathing room */
}

h1,
h2,
h3,
h4 {
    font-family: 'Playfair Display', serif;
    letter-spacing: 1.2px;
}

h1 {
    font-size: 4.8rem;
}

h2 {
    font-size: 2.9rem;
    margin-bottom: 1rem;
    text-transform: capitalize;
}

h3 {
    font-size: 1.8rem;
    margin: 1.5rem 0 1rem;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    loading: lazy;
    /* Add to HTML tags too for performance */
}

.container {
    width: 90%;
    max-width: 1280px;
    margin: auto;
}

.flex {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

/* Reduced from 3rem for tighter layout */

.header {
    background: #0a2d3f;
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    margin-bottom: 1rem;
    /* Space below header */
}

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

.logo img {
    height: 95px;
}

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

/* Tighter nav gap */
.nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1rem;
    letter-spacing: 2.2px;
    padding: 0.5rem 0;
    border-bottom: 3px solid transparent;
    transition: all .3s ease;
    /* Smoother hover */
}

.nav ul li a:hover,
.nav ul li a.active {
    color: #e67e22;
    border-color: #e67e22;
}

.hero {
    position: relative;
    height: 70vh;
    /* Slightly shorter for better proportion */
    min-height: 500px;
    margin-bottom: 2rem;
    /* Space below hero */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
    /* Prevents image overflow */
}

.hero img {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: -1;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1;
}

.hero h1 {
    position: relative;
    z-index: 2;
    text-shadow: 5px 5px 18px rgba(0, 0, 0, 0.9);
    margin: 0;
    /* Tighten h1 margins */
    padding: 1rem;
    /* Padding around text for mobile */
}

.section {
    padding: 4rem 0;
    /* Reduced from 7rem for less whitespace */
    margin-bottom: 2rem;
    /* Consistent section spacing */
}

.two-col>* {
    flex: 1 1 48%;
}

.three-col {
    justify-content: space-between;
    /* Even spacing */
    gap: 1.5rem;
    /* Tighter columns */
}

.three-col>* {
    flex: 1 1 calc(33.333% - 1rem);
    /* Precise 3-col math */
    text-align: center;
    min-width: 280px;
    /* Prevent squish on medium screens */
}

.card {
    background: white;
    padding: 2rem;
    /* Slightly less padding for compact feel */
    border-radius: 16px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
    transition: 0.4s ease;
    height: 100%;
    /* Even card heights */
    display: flex;
    flex-direction: column;
}

.card img {
    height: 200px;
    /* Fixed height for even cards */
    object-fit: cover;
    margin-bottom: 1rem;
}

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

.card h2 {
    margin-top: auto;
}

/* Push headings to bottom of card */

.btn {
    display: inline-block;
    background: #e67e22;
    color: white;
    padding: 1.2rem 3rem;
    border-radius: 60px;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 1.1rem;
    transition: 0.3s ease;
    margin: 1rem 0;
    /* Space around buttons */
}

.btn:hover {
    background: #d35400;
}

.footer {
    background: #0a2d3f;
    color: #ecf0f1;
    text-align: center;
    padding: 3rem 0;
    /* Reduced padding */
    margin-top: 3rem;
    /* Space above footer */
    font-size: 1.1rem;
}

.footer a {
    color: #e67e22;
    text-decoration: underline;
}

.contact-form {
    max-width: 700px;
    margin: 2rem auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-form label {
    font-weight: 700;
    font-size: 1.1rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    padding: 1.1rem;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
}

.contact-form button {
    background: #e67e22;
    color: white;
    padding: 1.4rem;
    border: none;
    border-radius: 60px;
    font-size: 1.2rem;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 2.5px;
}

.contact-form button:hover {
    background: #d35400;
}

.back-to-top {
    display: block;
    text-align: center;
    margin: 3rem 0;
    font-size: 1.2rem;
    color: #e67e22;
    text-decoration: none;
}

@media (max-width:768px) {
    body {
        padding: 0.5rem;
    }

    /* Less padding on mobile */
    .header .container.flex {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .hero h1 {
        font-size: 3rem;
        padding: 0.5rem;
    }

    /* Smaller mobile h1 */
    .nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .three-col>* {
        flex: 1 1 100%;
    }

    /* Full-width cards on mobile */
    .section {
        padding: 2rem 0;
    }

    /* Less vertical space on mobile */
    h2 {
        font-size: 2.2rem;
    }
}

/* === PERFECT GRID CONTACT FORM === */
.form-wrapper {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.12);
}

.contact-form-grid {
    display: grid;
    gap: 2rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.full-width {
    grid-column: 1 / -1;
    /* Full width for message */
}

.form-actions {
    grid-column: 1 / -1;
    text-align: center;
}

.required {
    color: #e67e22;
}

.contact-form-grid label {
    font-weight: 700;
    margin-bottom: 0.6rem;
    color: #0a2d3f;
}

.contact-form-grid input,
.contact-form-grid select,
.contact-form-grid textarea {
    padding: 1.1rem;
    border: 2px solid #ddd;
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.contact-form-grid input:focus,
.contact-form-grid select:focus,
.contact-form-grid textarea:focus {
    border-color: #e67e22;
    outline: none;
    box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.15);
}

.btn-large {
    background: #e67e22;
    color: white;
    padding: 1.3rem 3.5rem;
    font-size: 1.3rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: none;
    border-radius: 60px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-large:hover {
    background: #d35400;
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(230, 126, 34, 0.4);
}

/* Mobile – Stack everything */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .form-wrapper {
        padding: 2rem;
        margin: 1rem;
    }

    .btn-large {
        width: 100%;
        padding: 1.4rem;
    }
}