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

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

html {
    scroll-behavior: smooth;
}


/*  REUSABLE COMPONENTS  */

/* hide mobile menu toggle by default */
.hamburger {
    display: none;
}


/* --- Buttons --- */
.orange-button {
    background-color: #d97d3a;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.orange-button:hover {
    background-color: #c26a2a;
}

.white-button {
    background-color: white;
    color: #333;
    border: 2px solid #333;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.white-button:hover {
    background-color: #f0f0f0;
}

/* --- Text Utilities --- */
.small-text {
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #999;
    font-weight: 600;
}

.italic-text {
    font-style: italic;
    color: #999;
    font-size: 17px;
    margin: 15px 0;
}

/* --- Button Groups --- */
.button-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}


/*  HEADER & NAVIGATION  */
header.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 60px;
    background-color: #E7E5CB;
    border-bottom: none;
}

.logo {
    font-size: 18px;
    font-weight: 700;
    color: #333;
}

.menu {
    display: flex;
    gap: 30px;
    align-items: center;
}

.menu a {
    text-decoration: none;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.menu a:hover {
    color: #d97d3a;
}


/*  HERO SECTION  */
.hero-section {
    padding: 60px 60px;
    background-color: #f5ede3;
}

.hero-text {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hero-section h1 {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    color: #000;
    margin-top: 15px;
}

.hero-description {
    font-size: 16px;
    color: #555;
    line-height: 1.7;
    margin: 10px 0;
}

.hero-text img {
    width: 100%;
    border-radius: 16px;
    object-fit: cover;
}


/*  ABOUT SECTION  */
.about-section {
    padding: 0;
    background-color: #E4DECE;
}

.about-text {
    padding: 80px 60px;
    background-color: #E4DECE;
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-content {
    grid-column: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 15px;
}

.about-text h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #000;
}

.about-text p {
    font-size: 15px;
    color: #555;
    margin-bottom: 15px;
    line-height: 1.7;
}

.about-text img {
    width: 100%;
    grid-column: 2;
    border-radius: 16px;
    object-fit: cover;
    align-self: center;
}

.about-text button {
    margin-top: 15px;
    width: fit-content;
}


/*  WHY CHOOSE US SECTION  */
.why-section {
    padding: 100px 60px 50px 60px;
    background-color: #f5ede3;
    text-align: center;
}

.why-section h2 {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 80px;
    color: #000;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
    max-width: 1400px;
    margin: 0 auto;
}

.card {
    background-color: white;
    padding: 45px 35px;
    border-radius: 12px;
    text-align: left;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.card h3 {
    font-size: 21px;
    font-weight: 700;
    margin-bottom: 18px;
    color: #000;
    line-height: 1.3;
}

.card p {
    font-size: 15px;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.65;
    flex-grow: 1;
}

.card a {
    color: #0066cc;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: color 0.3s ease;
    margin-top: auto;
}

.card a:hover {
    color: #d97d3a;
}


/*  FEATURED WORK SECTION  */
.work-section {
    padding: 50px 60px 100px 60px;
    background-color: #f5ede3;
}

.work-section h2 {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 80px;
    color: #000;
    text-align: center;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.projects {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
    max-width: 1400px;
    margin: 0 auto;
}

.project-card {
    background-color: white;
    padding: 45px 35px;
    border-radius: 12px;
    text-align: left;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.project-card h3 {
    font-size: 23px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #000;
    line-height: 1.3;
}

.project-card p {
    font-size: 14px;
    color: #888;
    margin-bottom: 30px;
    line-height: 1.6;
    flex-grow: 1;
}

.project-card a {
    color: #0066cc;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: color 0.3s ease;
    margin-top: auto;
}

.project-card a:hover {
    color: #d97d3a;
}


/*   PROBLEM SOLVING SECTION  */
.problem-section {
    padding: 100px 60px;
    background-color: #E4DECE;
    text-align: center;
    max-width: 1600px;
    margin: 0 auto;
}

.problem-section h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 40px;
    color: #000;
}

.problem-section p {
    font-size: 16px;
    color: #555;
    line-height: 1.8;
    max-width: 1000px;
    margin: 0 auto;
}


/*  CONTACT SECTION  */
.contact-section {
    padding: 80px 60px;
    background-color: #f5ede3;
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
}

/* Contact Info */
.contact-info {
    display: flex;
    flex-direction: column;
}

.contact-info h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 30px;
    color: #000;
}

.contact-info p {
    font-size: 15px;
    color: #555;
    margin-bottom: 15px;
    line-height: 1.7;
}

.contact-info strong {
    color: #000;
    font-weight: 600;
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form input,
.contact-form textarea {
    padding: 15px 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: white;
    transition: border-color 0.3s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #999;
}

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

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

.contact-form button {
    margin-top: 10px;
}


/*  FOOTER  */
footer.footer {
    padding: 40px 60px;
    background-color: #E7E5CB;
    text-align: center;
    border-top: 1px solid #ddd;
}

.footer p {
    font-size: 13px;
    color: #666;
}

/*  RESPONSIVE BREAKPOINTS  */

/* Tablet and small laptop */
@media (max-width: 1024px) {
    header.header {
        padding: 18px 40px;
    }

    .menu {
        gap: 20px;
    }

    .hero-section {
        padding: 50px 40px;
    }

    .hero-text {
        gap: 40px;
    }

    .hero-section h1 {
        font-size: 40px;
    }

    .about-text {
        padding: 60px 40px;
        gap: 60px;
    }

    .why-section h2,
    .work-section h2 {
        font-size: 36px;
    }

    .cards,
    .projects {
        grid-template-columns: repeat(2, 1fr);
    }

    .card,
    .project-card {
        padding: 35px 30px;
    }

    .contact-section {
        padding: 60px 40px;
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* Mobile phones and narrow screens */
@media (max-width: 768px) {
    header.header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 16px 20px;
        position: relative;
    }

    /* Hide the regular menu by default on mobile; open it when .nav-open is set on header */
    .menu {
        display: none;
    }

    /* When nav is open, show menu as dropdown below header */
    header.nav-open .menu {
        display: flex;
        flex-direction: column;
        gap: 12px;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background: #E7E5CB;
        padding: 12px 0;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }

    .menu a,
    .menu .orange-button {
        font-size: 16px;
        padding: 10px 14px;
        display: block;
        width: 100%;
        text-align: left;
    }

    /* Hamburger button */
    .hamburger {
        display: block;
        background: none;
        border: none;
        width: 40px;
        height: 36px;
        cursor: pointer;
        padding: 6px;
    }

    .hamburger span,
    .hamburger span::before,
    .hamburger span::after {
        display: block;
        background: #333;
        height: 3px;
        border-radius: 3px;
        transition: transform 0.25s ease, opacity 0.2s ease;
        content: '';
        position: relative;
    }

    .hamburger span { display: block; }
    .hamburger span::before { content: ''; display: block; margin-top: 6px; }
    .hamburger span::after { content: ''; display: block; margin-top: 6px; }

    /* Toggle to X when open */
    header.nav-open .hamburger span { background: transparent; }
    header.nav-open .hamburger span::before { transform: translateY(-9px) rotate(45deg); }
    header.nav-open .hamburger span::after { transform: translateY(3px) rotate(-45deg); }

    .hero-section {
        padding: 36px 20px;
    }

    .hero-text {
        max-width: 100%;
        margin: 0 auto;
        display: grid;
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .hero-section h1 {
        font-size: 32px;
        line-height: 1.15;
    }

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

    .hero-text img,
    .about-text img {
        border-radius: 12px;
        width: 100%;
        height: auto;
    }

    .about-text {
        display: block;
        padding: 20px 16px;
    }

    .about-content {
        width: 100%;
        gap: 10px;
    }

    .about-text img {
        width: 100%;
        margin-top: 16px;
    }

    .cards,
    .projects {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 16px;
    }

    .why-section h2,
    .work-section h2 {
        font-size: 28px;
        margin-bottom: 40px;
    }

    .card,
    .project-card {
        padding: 24px;
    }

    .problem-section {
        padding: 60px 20px;
    }

    .contact-section {
        padding: 30px 16px;
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .contact-info h2 {
        font-size: 22px;
    }

    .contact-form input,
    .contact-form textarea {
        font-size: 14px;
    }

    footer.footer {
        padding: 20px 16px;
    }
}
