
/* ========================================
   AUTLINX — DESIGN SYSTEM
======================================== */

:root {
    color-scheme: light;

    --background: #f4f3ef;
    --surface: #ffffff;
    --surface-secondary: #eeede8;

    --text: #292925;
    --text-secondary: #77766f;

    --border: #deddd6;

    --accent: #b66b42;
    --accent-hover: #995536;
    --accent-contrast: #ffffff;

    --header-background: #292925;
    --header-text: #f4f3ef;

    --footer-background: #292925;
    --footer-text: #e0ded6;

    --radius: 5px;
    --content-width: 1000px;
}

/* ========================================
   DARK THEME
======================================== */

@media (prefers-color-scheme: dark) {
    :root {
        color-scheme: dark;

        --background: #191a19;
        --surface: #222321;
        --surface-secondary: #292a27;

        --text: #e8e6df;
        --text-secondary: #a19f96;

        --border: #383934;

        --accent: #d18a60;
        --accent-hover: #e09a70;
        --accent-contrast: #191a19;

        --header-background: #222321;
        --header-text: #e8e6df;

        --footer-background: #151614;
        --footer-text: #e0ded6;
    }
}

/* ========================================
   RESET
======================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    line-height: 1.7;

    background: var(--background);
    color: var(--text);

    transition:
        background 0.2s,
        color 0.2s;
}

main {
    flex: 1;
}

/* ========================================
   HEADER
======================================== */

autlinx-header {
    display: block;
    background: var(--header-background);
    color: var(--header-text);
}

/* ========================================
   CONTENT
======================================== */

main,
section {
    width: 90%;
    max-width: var(--content-width);
    margin: 50px auto;

    color: var(--text);
}

main > p,
section > p {
    max-width: 780px;
    font-size: 17px;
    line-height: 1.9;
    color: var(--text);
}

/* ========================================
   HEADINGS
======================================== */

h1,
h2,
h3 {
    line-height: 1.3;
    font-weight: 600;
    color: var(--text);
}

h2 {
    margin-bottom: 15px;
    font-size: 23px;
}

h3 {
    margin-bottom: 20px;
    font-size: 20px;
}

/* ========================================
   PROJECTS / SERVICES
======================================== */

main > div {
    padding: 28px 0;
    border-bottom: 1px solid var(--border);
}

main > div:first-child {
    padding-top: 0;
}

.image {
    display: block;
    max-width: 100%;
    max-height: 230px;
    object-fit: contain;
    margin: 20px 0;
}

.description {
    max-width: 700px;
    margin-bottom: 18px;
    color: var(--text);
}

/* ========================================
   LINKS
======================================== */

a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

/* ========================================
   FORM
======================================== */

#solicitar {
    width: 90%;
    max-width: 600px;

    margin: 50px auto;
    padding: 30px;

    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

#solicitar label {
    display: block;
    margin-top: 15px;

    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
}

input,
select,
textarea {
    display: block;
    width: 100%;

    margin-top: 6px;
    padding: 12px;

    font-family: inherit;
    font-size: 14px;

    color: var(--text);
    background: var(--background);

    border: 1px solid var(--border);
    border-radius: var(--radius);
}

input::placeholder,
textarea::placeholder {
    color: var(--text-secondary);
    opacity: 1;
}

textarea {
    min-height: 130px;
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    outline: 1px solid var(--accent);
    border-color: var(--accent);
}

/* ========================================
   BUTTONS
======================================== */

button {
    display: inline-block;

    padding: 11px 22px;

    font-family: inherit;
    font-size: 14px;
    font-weight: 600;

    color: var(--accent-contrast);
    background: var(--accent);

    border: none;
    border-radius: var(--radius);

    cursor: pointer;
    transition: background 0.2s;
}

button:hover {
    background: var(--accent-hover);
}

/* ========================================
   FOOTER
======================================== */

autlinx-footer {
    display: block;
    margin-top: auto;

    background: var(--footer-background);
    color: var(--footer-text);
}

/* ========================================
   RESPONSIVE
======================================== */

@media (max-width: 600px) {
    body {
        font-size: 14px;
    }

    main,
    section {
        width: 88%;
        margin: 35px auto;
    }

    main > p,
    section > p {
        font-size: 15px;
    }

    #solicitar {
        width: 88%;
        padding: 22px;
    }

    h2 {
        font-size: 20px;
    }
}

/* ========================================
   FLOATING CONTACT
======================================== */

.floating-contact {
    width: 58px;
    height: 58px;

    display: flex;
    align-items: center;
    justify-content: center;

    background-color: var(--accent);
    color: #ffffff;

    border: none;
    border-radius: 50%;

    font-size: 26px;
    line-height: 1;
    text-decoration: none;

    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);

    cursor: pointer;

    transition:
        transform 0.2s ease,
        background-color 0.2s ease;
}

.floating-contact:hover {
    color: #ffffff;
    background-color: var(--accent-hover);
    text-decoration: none;
    transform: translateY(-4px);
}

.floating-contact:active {
    transform: scale(0.95);
}

@media (max-width: 600px) {
    .floating-contact {
        right: 18px !important;
        bottom: 18px !important;

        width: 54px;
        height: 54px;

        font-size: 24px;
    }
}
