/* =========================================================
   Stil comun pentru toate paginile (arhitect-proiect.ro)
   - Desktop (>= 1100px): layout fix de 1200px, identic cu cel vechi
   - Telefon / tableta (< 1100px): totul se aseaza pe o singura coloana
   ========================================================= */

* { box-sizing: border-box; }

html { min-height: 100%; }

body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    background: #d7d7d7;
    font-family: Arial, Helvetica, sans-serif;
}

img { border: 0; }

/* ---------- Rama paginii (linia neagra din jur) ---------- */
/* Linia din dreapta e acum chenarul .page, deci nu mai poate fi intrerupta. */
.page {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    background: #d7d7d7;
    border: solid #000;
    border-width: 2px 3px;
}

/* ---------- Meniul (butoanele de sus) ---------- */
.site-nav { padding: 12px 6px 10px; }

.buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.buttons a {
    display: block;
    width: 214px;
    height: 35px;
    line-height: 33px;
    text-align: center;
    text-decoration: none;
    font-family: "Lucida Grande", Tahoma, Arial, Verdana, sans-serif;
    font-size: 22px;
    font-weight: bold;
    background-color: #fff;
    border: 1px solid #dedede;
    border-top-color: #eee;
    border-left-color: #eee;
    color: #990000;
    white-space: nowrap;
}

.buttons a:hover,
.buttons a:active {
    background-color: #990000;
    border-color: #990000;
    color: #fff;
}

/* butonul paginii curente */
.buttons a.negative,
.buttons a.negative:hover {
    background-color: #990000;
    border: 1px solid #990000;
    color: #fff;
}
.buttons a.negative:hover { border-color: #fff; color: #e4e4e4; }

/* ---------- Stanga sus: logo + titlu ---------- */
.brand { padding: 4px 0 0 69px; }
.brand .logo { display: block; width: 135px; height: 135px; }
.brand-title { width: 345px; margin-top: 16px; text-align: center; }

h1, h2 {
    margin: 0;
    padding: 0;
    font-family: Tahoma, Verdana, Arial, sans-serif;
    font-weight: bold;
    font-style: italic;
    color: #525252;
}
h1 { font-size: 45px; }
h2 { font-size: 25px; }

/* ---------- Banda rosie cu adresa ---------- */
.contact {
    background: #811d1b;
    color: #fff;
    padding: 2px 22px 0 10px;
    text-align: right;
    font-family: Tahoma, Verdana, Arial, sans-serif;
    font-size: 17.5px;
    font-weight: bold;
    line-height: 21.5px;
}
.contact a { color: inherit; text-decoration: none; font: inherit; }

/* ---------- Continutul din dreapta ---------- */
.box {
    background: #fff;
    color: #000;
    font: 16px "Times New Roman", Times, serif;
    text-align: left;
    padding: 3px 6px;
    height: 425px;
    overflow: auto;
    margin: 14.5px 0 0 3px;
    width: 702px;
}

/* pe tab-ul Prezentare: aliniata cu pozele de jos (653px, ca imaginile) */
.box.aligned { width: 653px; margin-left: 55px; }

.main-image { display: block; margin: 14.5px 0 0 3px; width: 705px; height: auto; }

.box hr {
    height: 2px;
    color: #eaeaea;
    background-color: #eaeaea;
}

/* ---------- Textul "E SIMPLU !" ---------- */
.note {
    width: 208px;
    margin-left: 209px;
    padding-top: 54px;
    text-align: center;
    font-style: italic;
    font-weight: bold;
    font-size: 13px;
    line-height: 1.2;
    color: #555;
}
.note p { margin: 0 0 15px; }
.note .note-title { font-family: Tahoma, Verdana, Arial, sans-serif; font-size: 18px; margin-bottom: 15px; }

/* ---------- Pozele de jos ---------- */
.pics { width: 653px; margin: 68px 0 33px 55px; }
.pics img { display: block; max-width: 100%; height: auto; }

/* varianta cu harta clicabila (felii) - tab-ul Prezentare */
.pics-sliced {
    display: grid;
    grid-template-columns: 241fr 412fr;
}
.pics-sliced .s1 { grid-column: 1 / 3; }
.pics-sliced .s3 { grid-column: 2; grid-row: 2 / 4; }

/* =========================================================
   DESKTOP: layout cu grid, pozitii identice cu cele vechi
   ========================================================= */
@media (min-width: 1100px) {
    .page {
        width: 1200px;
        display: grid;
        grid-template-columns: 417px 1fr;
        grid-template-rows: 122px 309px 90px minmax(350px, auto);
        grid-template-areas:
            "head  head"
            "brand main"
            "band  main"
            "note  pics";
    }
    .site-nav { grid-area: head; padding: 56px 0 0; }
    .buttons  { gap: 0; }
    .buttons a { margin: 0 11px; }
    .brand   { grid-area: brand; }
    .contact { grid-area: band; }
    .main    { grid-area: main; }
    .note    { grid-area: note; }
    .pics    { grid-area: pics; }
}

/* =========================================================
   TELEFON / TABLETA
   ========================================================= */
@media (max-width: 1099px) {
    .page { border-width: 2px; }

    .site-nav { padding: 10px 8px; }
    .buttons { gap: 6px; }
    .buttons a {
        width: calc(50% - 3px);
        height: auto;
        min-height: 44px;
        line-height: 1.2;
        padding: 10px 4px;
        font-size: 18px;
        white-space: normal;
    }
    /* "oferta servicii" etc. pe 2 coloane; ultimul buton ocupa tot randul */
    .buttons a:last-child:nth-child(odd) { width: 100%; }

    .brand {
        padding: 6px 12px 0;
        text-align: center;
    }
    .brand .logo { margin: 0 auto; }
    .brand-title { width: auto; margin-top: 12px; }
    h1 { font-size: clamp(30px, 9vw, 45px); }
    h2 { font-size: clamp(18px, 5.5vw, 25px); }

    .contact {
        margin-top: 14px;
        padding: 10px 12px;
        text-align: center;
        font-size: 17px;
        line-height: 1.5;
    }
    .contact a { display: inline-block; padding: 2px 0; }

    .main { padding: 0 10px; }
    .box,
    .box.aligned {
        width: 100%;
        height: auto;          /* fara scroll intern pe telefon */
        overflow: visible;
        margin: 14px 0 0;
        padding: 8px 10px;
    }
    .main-image { width: 100%; max-width: 705px; margin: 14px auto 0; }

    .note {
        width: auto;
        max-width: 320px;
        margin: 18px auto 0;
        padding: 0 10px;
    }

    .pics {
        width: auto;
        max-width: 653px;
        margin: 8px auto 0;
        padding: 0 10px 16px;
    }
}
