@import url('https://fonts.googleapis.com/css2?family=Fredoka+One&family=Open+Sans:wght@400;600;700&display=swap');

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

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.7;
    color: #333;
    background: #fffaf0;
    padding: 1rem 0;
}

/* Global padding fix */
h1,
h2,
h3 {
    font-family: 'Fredoka One', cursive;
    letter-spacing: 1px;
    color: #e67e22;
}

h1 {
    font-size: 4.5rem;
}

h2 {
    font-size: 2.8rem;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 18px;
    loading: lazy;
}

/* Lazy load for speed */

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

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

/* Tighter gap */

.header {
    background: #ff6b35;
    padding: 1.2rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    margin-bottom: 1rem;
}

/* Header space */
.header .flex {
    align-items: center;
    justify-content: space-between;
}

.logo img {
    height: 95px;
    /* or whatever height looks good */
    width: auto;
    /* keeps original proportions */
}

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

.nav a {
    color: white;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: 0.3s;
}

.nav a:hover,
.nav a.active {
    color: #fff3cd;
}

.hero {
    position: relative;
    height: 65vh;
    min-height: 450px;
    margin-bottom: 2rem;
    overflow: hidden;
}

/* Shorter hero */
.hero img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

/* Fixed image scaling */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

/* Darker overlay */
.hero h1 {
    position: relative;
    z-index: 2;
    text-align: center;
    text-shadow: 4px 4px 15px rgba(0, 0, 0, 0.8);
    padding: 1rem;
}

.section {
    padding: 4rem 0;
    margin-bottom: 1.5rem;
}

/* Balanced section spacing */
.two-col>* {
    flex: 1 1 48%;
}

.three-col>* {
    flex: 1 1 calc(33.333% - 1rem);
    text-align: center;
    min-width: 280px;
}

/* ——— HOME PAGE CARDS – FINAL POLISH ——— */
.three-col {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin: 3rem 0;
    justify-items: center;
}

.card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    max-width: 380px;
}

.card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 50px rgba(255, 107, 53, 0.25);
}

/* Even heights */
.card img {
    width: 100%;
    height: 260px;
    /* Fixed height = perfectly even cards */
    object-fit: cover;
    border-bottom: 6px solid #e67e22;
}

.card-content {
    padding: 1.8rem 1.5rem 2rem;
    /* Generous, comfy padding */
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    text-align: center;
}

/* Fixed image height */
.card h2 {
    font-size: 2rem;
    margin-bottom: 0.8rem;
    color: #d35400;
}

.card p {
    flex-grow: 1;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: #555;
}

.card .btn {
    margin-top: auto;
    /* Pushes button to bottom */
    align-self: center;
}

/* Push headings down */

.btn {
    background: #e67e22;
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: inline-block;
    margin: 1rem 0;
}

.btn:hover {
    background: #d35400;
}

.footer {
    background: #ff6b35;
    color: white;
    text-align: center;
    padding: 3rem 0;
    font-size: 1.1rem;
}

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

.back-to-top {
    display: block;
    text-align: center;
    margin: 3rem 0;
    color: #e67e22;
    font-weight: 600;
}

/* Contact Form Fixes – No Smushing */
/* Beautiful Grid Form for Contact Page */
.contact-form-grid {
    display: grid;
    gap: 2rem;
    max-width: 800px;
    margin: 3rem auto;
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

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

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

.form-group label {
    font-weight: 700;
    margin-bottom: 0.7rem;
    color: #333;
}

/* Label spacing */
.form-group input,
.form-group select,
.form-group textarea {
    padding: 1.2rem;
    border: 2px solid #ddd;
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

/* Input padding */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #e67e22;
    outline: none;
    box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.2);
}

.full-width {
    grid-column: 1 / -1;
    /* Makes message and button full width */
}

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

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

.btn-large:hover {
    background: #d35400;
    transform: translateY(-2px);
}

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

    .header .flex {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

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

    .section {
        padding: 2.5rem 0;
    }

    /* Mobile: Stack rows vertically */
    /* Full stack on mobile */
    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-form-grid {
        padding: 2rem;
        margin: 1rem;
        gap: 1, 8rem;
    }
}