
/*
Theme Name: HQ DW Welding
Theme URI: https://hq-dw.com/
Author: HQ DW
Description: Professional responsive website for High Quality Doors & Welding, LLC.
Version: 1.0.1
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: hq-dw-welding
*/

/* VARIABLES GENERALES */
:root {
    --orange: #ff7518;
    --dark: #101114;
    --light: #f4f3f0;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 110px;
}

body {
    margin: 0;
    background: var(--dark);
    color: #fff;
    font: 16px/1.65 Arial, sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
}

.wrap {
    max-width: 1150px;
    margin: auto;
    padding: 0 24px;
}

/* ENCABEZADO */
header {
    background: #101114f2;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #333;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 22px;
    min-height: 105px;
}

/* LOGOTIPO */
.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    line-height: 1;
}

.hqdw-logo {
    display: block;
    width: 285px;
    max-width: 100%;
    height: auto;
    max-height: 95px;
    object-fit: contain;
    object-position: left center;
}

/* MENÚ */
nav {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

nav a {
    font-size: 15px;
    font-weight: 600;
    transition: color 0.3s ease;
}

nav a:hover,
nav a:focus-visible {
    color: var(--orange);
}

/* BOTONES */
.btn {
    display: inline-block;
    background: var(--orange);
    color: #111;
    font-weight: 800;
    padding: 13px 22px;
    border-radius: 3px;
    text-align: center;
    transition: background 0.3s ease,
                transform 0.3s ease;
}

.btn:hover {
    background: #ff934d;
    transform: translateY(-2px);
}

.btn.alt {
    background: transparent;
    color: white;
    border: 1px solid #aaa;
}

.btn.alt:hover {
    background: #292b30;
}

/* PORTADA */
.hero {
    background:
        linear-gradient(
            90deg,
            #090909f5,
            #101114a0
        ),
        url(
            'https://images.unsplash.com/photo-1504917595217-d4dc5ebe6122?auto=format&fit=crop&w=1800&q=80'
        ) center / cover no-repeat;

    min-height: 650px;
    display: flex;
    align-items: center;
}

.eyebrow {
    color: var(--orange);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: bold;
}

.hero h1 {
    font-size: clamp(42px, 7vw, 84px);
    line-height: 1.05;
    max-width: 830px;
    margin: 15px 0;
}

.hero p {
    max-width: 630px;
    color: #ddd;
    font-size: 19px;
}

.accent {
    color: var(--orange);
}

.actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 30px;
}

/* SECCIONES */
section {
    padding: 88px 0;
    scroll-margin-top: 110px;
}

h2 {
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.1;
    margin: 10px 0 24px;
}

.muted {
    color: #c4c4c4;
}

/* SERVICIOS */
.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.service {
    padding: 30px;
    background: #1c1e22;
    border: 1px solid #36383c;
    transition: transform 0.3s ease,
                border-color 0.3s ease;
}

.service:hover {
    transform: translateY(-5px);
    border-color: var(--orange);
}

.service b {
    color: var(--orange);
    font-size: 25px;
}

.service h3 {
    font-size: 23px;
    line-height: 1.3;
}

/* SOBRE NOSOTROS */
.band {
    background: #1a1c20;
}

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.photo {
    width: 100%;
    height: 380px;
    object-fit: cover;
    border-radius: 3px;
}

/* GALERÍA DE PROYECTOS */
.projects {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.projects img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 3px;
    transition: transform 0.3s ease;
}

.projects img:hover {
    transform: scale(1.02);
}

/* CONTACTO */
.cta {
    background: var(--orange);
    color: #111;
    text-align: center;
}

.cta h2 {
    color: #111;
}

.cta .btn {
    background: #111;
    color: white;
}

.cta .btn:hover {
    background: #303030;
}

/* PIE DE PÁGINA */
footer {
    padding: 35px 0;
    border-top: 1px solid #333;
    color: #bbb;
}

footer .wrap {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

/* TABLET */
@media (max-width: 1024px) {

    .nav {
        gap: 15px;
    }

    .hqdw-logo {
        width: 220px;
        max-height: 85px;
    }

    nav {
        gap: 12px;
    }

    nav a {
        font-size: 13px;
    }

    .grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .split {
        gap: 30px;
    }
}

/* CELULARES */
@media (max-width: 760px) {

    .nav {
        align-items: center;
        padding-top: 15px;
        padding-bottom: 15px;
        flex-direction: column;
        gap: 15px;
    }

    .logo {
        justify-content: center;
    }

    .hqdw-logo {
        width: 200px;
        max-height: 100px;
        object-position: center;
    }

    nav {
        justify-content: center;
        gap: 12px;
        font-size: 14px;
    }

    nav a {
        font-size: 13px;
    }

    .nav > .btn {
        padding: 10px 20px;
    }

    .grid,
    .split,
    .projects {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: 570px;
        padding: 60px 0;
    }

    .hero h1 {
        font-size: clamp(36px, 9vw, 54px);
    }

    .hero p {
        font-size: 17px;
    }

    section {
        padding: 60px 0;
    }

    .photo {
        height: 280px;
    }

    .projects img {
        height: 250px;
    }

    footer .wrap {
        flex-direction: column;
        text-align: center;
    }
}

/* BARRA ADMINISTRATIVA WORDPRESS */
body.admin-bar header {
    top: 32px;
}

@media (max-width: 782px) {
    body.admin-bar header {
        top: 46px;
    }
}

/* ACCESIBILIDAD */
a:focus-visible {
    outline: 2px solid var(--orange);
    outline-offset: 4px;
}
