
/* =====================================
   MALKE FINISHING WORKS
   Main Stylesheet
===================================== */

:root {
    --primary: #c49a55;
    --primary-dark: #a77b39;
    --dark: #171b20;
    --dark-light: #222831;
    --white: #ffffff;
    --light: #f6f6f4;
    --text: #62676d;
    --border: #e8e8e5;

    --heading-font: 'Manrope', sans-serif;
    --body-font: 'DM Sans', sans-serif;

    --container: 1200px;
}

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

html {
    scroll-padding-top: 90px;
}

body {
    font-family: var(--body-font);
    color: var(--dark);
    background: var(--white);
    line-height: 1.7;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

img {
    display: block;
    max-width: 100%;
}

.container {
    width: min(90%, var(--container));
    margin: auto;
}

.section-padding {
    padding: 100px 0;
}

/* NAVIGATION */

.header {
    background: var(--dark);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    min-height: 85px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--white);
}

.logo-mark {
    width: 43px;
    height: 43px;
    display: grid;
    place-items: center;
    border: 2px solid var(--primary);
    color: var(--primary);
    font-family: var(--heading-font);
    font-size: 25px;
    font-weight: 800;
}

.logo strong,
.logo small {
    display: block;
    line-height: 1.3;
}

.logo strong {
    font-family: var(--heading-font);
    font-size: 21px;
    letter-spacing: 2px;
}

.logo small {
    font-size: 9px;
    letter-spacing: 2px;
    color: #c8c8c8;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
    list-style: none;
}

.nav-links a {
    color: #ddd;
    font-size: 13px;
    font-weight: 600;
    transition: .3s;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links .nav-cta {
    padding: 12px 21px;
    background: var(--primary);
    color: var(--dark);
}

.nav-links .nav-cta:hover {
    background: var(--white);
    color: var(--dark);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    padding: 8px;
    width: 44px;
    height: 44px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    transition: transform .3s, opacity .3s;
}

.menu-toggle.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* HERO */

.hero {
    min-height: 650px;
    position: relative;
    display: flex;
    align-items: center;

    background:
        url('https://images.unsplash.com/photo-1600607687939-ce8a6c25118c?w=2000')
        center/cover no-repeat;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(15, 19, 23, .94),
        rgba(15, 19, 23, .72),
        rgba(15, 19, 23, .18)
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    color: white;
    padding-top: 50px;
    padding-bottom: 80px;
}

.eyebrow,
.section-label {
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
}

.hero h1 {
    font-family: var(--heading-font);
    font-size: clamp(42px, 6vw, 76px);
    line-height: 1.15;
    max-width: 750px;
    margin: 22px 0;
}

.hero h1 span,
.intro-content h2 span,
.contact-content h2 span {
    color: var(--primary);
}

.hero-content > p {
    color: #d0d0d0;
    max-width: 560px;
    font-size: 16px;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 14px 25px;
    border: none;
    font-size: 13px;
    font-weight: 700;
    transition: .3s;
}

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

.btn-primary:hover {
    background: white;
    transform: translateY(-3px);
}

.btn-outline {
    border: 1px solid rgba(255,255,255,.6);
    color: white;
}

.btn-outline:hover {
    background: white;
    color: var(--dark);
}

.hero-location {
    margin-top: 50px;
    color: #ddd;
    font-size: 13px;
}

.hero-location i {
    color: var(--primary);
    margin-right: 8px;
}

.hero-bottom {
    position: absolute;
    bottom: 20px;
    left: 5%;
    right: 5%;
    display: flex;
    justify-content: space-between;
    color: #ddd;
    font-size: 10px;
    letter-spacing: 2px;
}

/* INTRODUCTION */

.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 75px;
}

.intro-image {
    position: relative;
}

.intro-image img {
    width: 100%;
    height: 480px;
    object-fit: cover;
}

.image-label {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--dark);
    color: white;
    padding: 20px 30px;
}

.image-label strong,
.image-label span {
    display: block;
}

.image-label strong {
    color: var(--primary);
    font-size: 22px;
}

.image-label span {
    font-size: 12px;
}

.intro-content h2,
.section-heading h2,
.contact-content h2 {
    font-family: var(--heading-font);
    font-size: clamp(30px, 4vw, 43px);
    line-height: 1.25;
    margin: 17px 0;
}

.intro-content p,
.contact-content p {
    color: var(--text);
    margin-bottom: 18px;
    font-size: 15px;
}

.text-link {
    display: inline-flex;
    gap: 12px;
    color: var(--primary-dark);
    font-weight: 700;
    font-size: 13px;
    margin-top: 15px;
}

/* SECTION HEADINGS */

.section-heading {
    text-align: center;
    margin-bottom: 45px;
}

.section-heading h2 {
    margin: 12px 0;
}

.section-heading p {
    color: var(--text);
    font-size: 14px;
}

/* SERVICES */

.services {
    background: var(--light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.service-card {
    background: white;
    padding: 35px 28px;
    border: 1px solid var(--border);
    transition: .3s;
}

.service-card:hover {
    transform: translateY(-7px);
    border-color: var(--primary);
    box-shadow: 0 15px 35px rgba(0,0,0,.06);
}

.service-card i {
    color: var(--primary-dark);
    font-size: 29px;
    margin-bottom: 20px;
}

.service-card h3 {
    font-family: var(--heading-font);
    font-size: 17px;
    margin-bottom: 10px;
}

.service-card p {
    color: var(--text);
    font-size: 13px;
}

/* PROJECTS */

.projects {
    background: white;
}

.project-filters {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 35px;
}

.filter-btn {
    border: 1px solid var(--border);
    background: white;
    padding: 10px 20px;
    color: var(--text);
    font-size: 12px;
    font-weight: 600;
    transition: .3s;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--dark);
    color: white;
    border-color: var(--dark);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.project-card {
    position: relative;
    height: 350px;
    overflow: hidden;
    background: var(--dark);
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .5s;
}

.project-card:hover img {
    transform: scale(1.08);
}

.project-card::after {
    content: "";
    position: absolute;
    inset: 35% 0 0;
    background: linear-gradient(transparent, rgba(0,0,0,.9));
}

.project-info {
    position: absolute;
    bottom: 25px;
    left: 23px;
    z-index: 1;
    color: white;
}

.project-info span {
    color: var(--primary);
    font-size: 10px;
    letter-spacing: 1.5px;
}

.project-info h3 {
    font-family: var(--heading-font);
    font-size: 18px;
    margin: 5px 0;
}

.project-info small {
    color: #ddd;
    font-size: 11px;
}

.demo-note {
    margin-top: 25px;
    color: var(--text);
    font-size: 12px;
    text-align: center;
}

/* CONTACT */

.contact {
    background: var(--light);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: start;
}

.contact-detail {
    display: flex;
    gap: 17px;
    align-items: center;
    margin-top: 28px;
}

.contact-detail i {
    width: 45px;
    height: 45px;
    display: grid;
    place-items: center;
    background: var(--dark);
    color: var(--primary);
}

.contact-detail strong,
.contact-detail span {
    display: block;
}

.contact-detail strong {
    font-size: 13px;
}

.contact-detail span {
    color: var(--text);
    font-size: 13px;
}

.contact-form {
    background: white;
    padding: 35px;
    box-shadow: 0 10px 35px rgba(0,0,0,.04);
}

.contact-form h3 {
    font-family: var(--heading-font);
    font-size: 23px;
    margin-bottom: 25px;
}

.contact-form label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    margin: 15px 0 7px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    border: 1px solid var(--border);
    padding: 13px;
    outline: none;
    background: white;
    font-size: 13px;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: var(--primary);
}

.contact-form textarea {
    resize: vertical;
}

.contact-form button {
    margin-top: 20px;
    width: 100%;
}

.form-message {
    margin-top: 12px;
    font-size: 13px;
}

/* FOOTER */

.footer {
    background: var(--dark);
    padding: 45px 0 20px;
    color: white;
}

.footer-content {
    text-align: center;
}

.footer-logo {
    justify-content: center;
}

.footer-content > p {
    color: #bbb;
    font-size: 13px;
    margin: 20px 0 35px;
}

.footer-bottom {
    border-top: 1px solid #373c43;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    gap: 15px;
    color: #aaa;
    font-size: 11px;
}

/* RESPONSIVE DESIGN */

@media (max-width: 900px) {

    .nav-links {
        gap: 15px;
    }

    .intro-grid,
    .contact-grid {
        gap: 40px;
    }

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

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

}

@media (max-width: 700px) {

    .navbar {
        min-height: 75px;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 75px;
        left: 0;
        width: 100%;
        background: var(--dark);
        padding: 25px 5%;
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }

    .nav-links.show {
        display: flex;
    }

    .nav-links .nav-cta {
        display: inline-block;
        text-align: center;
    }

    .hero {
        min-height: 600px;
    }

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

    .intro-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .intro-image img {
        height: 350px;
    }

    .image-label {
        right: 0;
    }

    .services-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .project-card {
        height: 320px;
    }

    .section-padding {
        padding: 70px 0;
    }

    .footer-bottom {
        flex-direction: column;
    }

}

@media (max-width: 400px) {

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

    .hero-buttons .btn {
        width: 100%;
    }

    .contact-form {
        padding: 23px;
    }

}

/* PROJECT IMAGE LIGHTBOX */

.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(10, 13, 17, 0.96);
    padding: 30px;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    width: min(850px, 100%);
    color: white;
    animation: lightboxOpen .3s ease;
}

.lightbox-content img {
    width: 100%;
    max-height: 70vh;
    object-fit: contain;
}

.lightbox-details {
    padding-top: 18px;
}

.lightbox-details span {
    color: var(--primary);
    font-size: 11px;
    letter-spacing: 2px;
}

.lightbox-details h2 {
    font-family: var(--heading-font);
    margin-top: 5px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    background: none;
    border: none;
    color: white;
    font-size: 42px;
    cursor: pointer;
}

.lightbox-close:hover {
    color: var(--primary);
}

@keyframes lightboxOpen {
    from {
        opacity: 0;
        transform: scale(.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}


/* ===== ADDITIONS ===== */

.skip-link {
    position: absolute;
    left: -999px;
    top: 0;
    background: var(--primary);
    color: var(--dark);
    padding: 10px 16px;
    z-index: 2000;
    font-weight: 700;
}
.skip-link:focus { left: 0; }

[hidden] { display: none !important; }

:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
}

.nav-links a.active { color: var(--primary); }
.nav-links .nav-cta.active { color: var(--dark); }

.nav-call {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.project-card { cursor: pointer; }

/* Process */
.process { background: var(--dark); color: var(--white); }
.process .section-heading h2 { color: var(--white); }
.process .section-heading p { color: #b8bcc1; }

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    margin-top: 50px;
}

.process-step {
    padding: 30px 26px;
    border: 1px solid rgba(255,255,255,.12);
    border-top: 3px solid var(--primary);
    background: var(--dark-light);
}

.process-step b {
    font-family: var(--heading-font);
    font-size: 34px;
    color: var(--primary);
    display: block;
    line-height: 1;
    margin-bottom: 16px;
}

.process-step h3 {
    font-family: var(--heading-font);
    font-size: 17px;
    margin-bottom: 8px;
}

.process-step p { color: #b8bcc1; font-size: 14px; }

/* Contact quick links */
.contact-detail a { color: var(--dark); font-weight: 600; }
.contact-detail a:hover { color: var(--primary-dark); }

.contact-quick {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.contact-quick a {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 12px 20px;
    border: 1px solid var(--dark);
    font-size: 13px;
    font-weight: 700;
    transition: .3s;
}

.contact-quick a:hover { background: var(--dark); color: var(--primary); }

.contact-form button[disabled] { opacity: .6; cursor: wait; }

/* Footer nav */
.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    margin: 18px 0;
    font-size: 13px;
}
.footer-nav a:hover, #devCredit[href]:hover { color: var(--primary); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    * { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}

@media (max-width: 900px) {
    .process-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
    .process-grid { grid-template-columns: 1fr; }
}

/* ===== Language switch ===== */
.lang-toggle {
    font: 700 12px var(--body-font);
    color: var(--primary);
    background: transparent;
    border: 1px solid rgba(196, 154, 85, .55);
    padding: 9px 14px;
    cursor: pointer;
    transition: background .3s, color .3s;
}

.lang-toggle:hover {
    background: var(--primary);
    color: var(--dark);
}

/* ===== Developer credit with logo ===== */
.dev-credit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #aaa;
}

.dev-credit strong {
    color: #ddd;
    font-weight: 600;
}

.dev-credit:hover strong {
    color: var(--primary);
}

.dev-logo {
    width: 26px;
    height: 26px;
    object-fit: contain;
}

/* ===== Amharic typography ===== */
html[lang="am"] {
    --heading-font: 'Manrope', 'Noto Sans Ethiopic', sans-serif;
    --body-font: 'DM Sans', 'Noto Sans Ethiopic', sans-serif;
}

html[lang="am"] h1,
html[lang="am"] h2,
html[lang="am"] h3 {
    line-height: 1.35;
    letter-spacing: 0;
}

html[lang="am"] p,
html[lang="am"] label {
    line-height: 1.8;
}

html[lang="am"] .eyebrow,
html[lang="am"] .section-label {
    letter-spacing: 0;
}

@media (max-width: 700px) {
    .lang-toggle {
        align-self: flex-start;
    }
}
