:root {
    --bg: #ffffff;
    --text: #000000;
    --accent: #2563eb;
    --muted: #f4f4f5;
    --border: #e4e4e7;
    --font-main: 'Outfit', sans-serif;
}

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

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font-main);
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('maphoto.jfif');
    background-size: cover;
    background-position: center;
    opacity: 0.05;
    z-index: -1;
    filter: grayscale(100%);
}

.editorial-container {
    display: flex;
    min-height: 100vh;
}

/* Vertical Name Strip */
.name-strip {
    width: 80px;
    background: var(--text);
    color: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
    flex-shrink: 0;
}

.name-strip span {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    font-size: 1.2rem;
    font-weight: 900;
    letter-spacing: 0.3em;
    white-space: nowrap;
}

/* Content Wrapper */
.content-wrapper {
    flex-grow: 1;
    padding: 5rem 8% 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Hero Grid */
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: start;
}

.visual-column {
    display: flex;
    flex-direction: column;
}

.map-box {
    grid-column: 1;
    grid-row: 2;
}

.text-box {
    grid-column: 2;
    grid-row: 1 / 3;
}

.visual-box {
    width: 100%;
    aspect-ratio: 1/1.1;
    background: var(--muted);
    overflow: hidden;
    position: relative;
}

.visual-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) contrast(1.1);
    transition: transform 0.5s ease;
}

.visual-box:hover img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

.qr-float {
    margin-top: 2rem;
    display: flex;
    gap: 3rem;
    align-items: flex-start;
}

.qr-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.qr-item img {
    width: 90px;
    height: 90px;
    border: 1px solid var(--border);
    padding: 5px;
    background: white;
}

.qr-item span {
    font-size: 0.65rem;
    font-weight: 900;
    letter-spacing: 0.2em;
    color: var(--text);
}

.branding {
    margin-bottom: 2rem;
}

.brand-tag {
    font-weight: 900;
    font-size: 0.8rem;
    color: var(--accent);
    letter-spacing: 0.2em;
}

.title-main {
    font-size: 5rem;
    font-weight: 900;
    line-height: 0.9;
    letter-spacing: -0.05em;
    margin-top: 1rem;
    text-transform: uppercase;
}

.service-list {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--accent);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-top: 1rem;
}

.description {
    font-size: 1.25rem;
    color: #52525b;
    max-width: 500px;
    margin-bottom: 3rem;
    line-height: 1.4;
}

/* Contact Grid */
.contact-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-card {
    text-decoration: none;
    color: var(--text);
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
    transition: all 0.3s ease;
}

.contact-card:hover {
    padding-left: 1rem;
    border-bottom-color: var(--accent);
}

.contact-card small {
    display: block;
    font-size: 0.7rem;
    font-weight: 800;
    color: #a1a1aa;
    margin-bottom: 0.25rem;
}

.contact-card p {
    font-size: 1.1rem;
    font-weight: 600;
}

/* Footer */
.editorial-footer {
    margin-top: 5rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.qr-box img {
    width: 80px;
    height: 80px;
    border: 1px solid var(--border);
    padding: 5px;
}

.footer-meta {
    text-align: right;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
}

/* Responsive */
@media (max-width: 1024px) {
    .name-strip { display: none; }
    .hero-grid { grid-template-columns: 1fr; gap: 3rem; }
    .title-main { font-size: 3.5rem; }
    .content-wrapper { padding: 4rem 8% 2rem; }
    .map-box, .text-box {
        grid-column: auto;
        grid-row: auto;
    }
}

@media (max-width: 768px) {
    .content-wrapper { padding: 2rem 6% 2rem; }
    
    /* Mobile Header */
    .content-wrapper::before {
        content: 'MOHAMMED AMIN RACHDI';
        display: block;
        font-weight: 900;
        font-size: 0.8rem;
        letter-spacing: 0.3em;
        margin-bottom: 3rem;
        color: var(--accent);
        border-bottom: 2px solid var(--text);
        padding-bottom: 0.5rem;
    }

    .title-main { 
        font-size: 3rem; 
        line-height: 0.85;
    }

    .visual-box {
        aspect-ratio: 1/1;
        border-radius: 10px;
    }

    .description { 
        font-size: 1.1rem; 
        margin-bottom: 2.5rem;
    }

    .contact-card p {
        font-size: 1rem;
    }

    .editorial-footer {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
        text-align: center;
    }

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