/* =========================
   ROOT VARIABLES
========================= */
:root {
    --primary: #d52b1e;
    --primary-dark: #a81f15;
    --black: #111111;
    --text: #222222;
    --light-text: #666666;
    --bg: #ffffff;
    --bg-light: #f7f7f7;
    --border: #e5e5e5;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

/* =========================
   CONTAINER
========================= */
.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

/* =========================
   HEADER
========================= */
.header {
    background: #fff;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo img {
     height: 46px;
  object-fit: contain;
}

/* NAV */
.header nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

.header nav a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    position: relative;
}

/* subtle underline animation */
.header nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0%;
    height: 2px;
    background: var(--primary);
    transition: 0.3s;
}

.header nav a:hover::after {
    width: 100%;
}



.menu-toggle {
    display: none;
    width: 30px;
    height: 22px;
    position: relative;
    cursor: pointer;
}

/* the 3 lines */
.menu-toggle span {
    position: absolute;
    width: 100%;
    height: 3px;
    background: var(--black);
    left: 0;
    transition: 0.3s;
}

/* position each line */
.menu-toggle span:nth-child(1) {
    top: 0;
}

.menu-toggle span:nth-child(2) {
    top: 9px;
}

.menu-toggle span:nth-child(3) {
    bottom: 0;
}


/* =========================
   HERO SECTION
========================= */
.hero {
    padding: 120px 0;
    background: linear-gradient(to bottom, #ffffff, #f7f7f7);
    text-align: center;
}

.hero h1 {
    font-size: 3.2rem;
    color: var(--black);
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.hero h1 span {
    color: var(--primary);
}

.hero p {
    color: var(--light-text);
    font-size: 1.2rem;
    max-width: 600px;
    margin: auto;
}

/* =========================
   BUTTONS
========================= */
.btn {
    display: inline-block;
    margin-top: 30px;
    padding: 12px 28px;
    background: var(--primary);
    color: #fff;
    text-decoration: none;
    border-radius: 3px;
    transition: 0.3s;
    font-weight: 500;
}

.btn:hover {
    background: var(--primary-dark);
}

/* =========================
   SECTIONS
========================= */
.section {
    padding: 80px 0;
}

.section.light {
    background: var(--bg-light);
}

.section h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--black);
}

.section p {
    color: var(--light-text);
    max-width: 700px;
}

/* =========================
   CARDS (Portfolio / News)
========================= */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.card {
    background: #fff;
    border: 1px solid var(--border);
    padding: 20px;
    transition: 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.card img {
    width: 100%;
    margin-bottom: 15px;
}

.card h3 {
    margin-bottom: 10px;
    color: var(--black);
}

.card p {
    color: var(--light-text);
}

/* =========================
   CONTACT FORM
========================= */
form {
    max-width: 600px;
    margin-top: 30px;
}

input, textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid var(--border);
    font-size: 1rem;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
}

/* =========================
   FOOTER
========================= */
.footer {
    background: #111;
    color: #aaa;
    text-align: center;
    padding: 30px 0;
    margin-top: 60px;
}

.footer p {
    font-size: 0.9rem;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 768px) {

    .header nav ul {
        gap: 15px;
    }

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

    .hero {
        padding: 80px 0;
    }
}


/* =========================
   MOBILE NAV FIX
========================= */

.menu-toggle {
    display: none;
    font-size: 28px;
    cursor: pointer;
}

/* Mobile */
@media (max-width: 768px) {

    .header .container {
        flex-direction: row;
    }

    .menu-toggle {
        display: block;
    }

    nav {
        position: absolute;
        top: 70px;
        right: 0;
        width: 100%;
        background: #fff;
        border-top: 1px solid var(--border);
        display: none;
    }

    nav ul {
        flex-direction: column;
        padding: 20px;
        gap: 15px;
    }

    nav ul li {
        text-align: center;
    }

    nav.active {
        display: block;
    }
}