/*
Theme Name: Cruz Construction
Description: Custom theme built from Roberto's approved homepage mockup.
Version: 1.0
*/

:root {
  --rust: #a9431b;
  --rust-dark: #7f3013;
  --cream: #f4e7cf;
  --paper: #faf2e3;
  --charcoal: #24211f;
  --sand: #c9a57a;
  --stone: #8d6e4f;
}

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

body {
  font-family: 'Montserrat', system-ui, sans-serif;
  font-weight: 500;
  background: var(--paper);
  color: var(--charcoal);
  line-height: 1.6;
}

a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--rust); outline-offset: 3px; }

.cond { font-family: 'Oswald', 'Arial Narrow', sans-serif; font-weight: 500; }

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 5vw;
  background: var(--charcoal);
  color: var(--cream);
  font-size: 0.9rem;
}
.topbar a { text-decoration: none; font-weight: 600; }
.lang {
  display: inline-flex;
  border: 2px solid var(--cream);
  border-radius: 4px;
  overflow: hidden;
}
.lang button {
  font: 600 0.8rem 'Montserrat', sans-serif;
  background: transparent;
  color: var(--cream);
  border: 0;
  padding: 0.35rem 0.8rem;
  cursor: pointer;
}
.lang button[aria-pressed="true"] { background: var(--cream); color: var(--charcoal); }

.phone-big {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 800;
  font-size: clamp(1.5rem, 3.4vw, 2.2rem);
  text-decoration: none;
  color: var(--charcoal);
}
.phone-big .dot {
  width: 2.4rem; height: 2.4rem;
  border-radius: 50%;
  background: var(--rust);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.btn-row { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-top: 1.6rem; }
.btn {
  font: 600 0.95rem 'Montserrat', sans-serif;
  text-decoration: none;
  padding: 0.9rem 1.6rem;
  border-radius: 4px;
  border: 2px solid var(--rust);
}
.btn-solid { background: var(--rust); color: var(--cream); }
.btn-solid:hover { background: var(--rust-dark); border-color: var(--rust-dark); }
.btn-line { color: var(--rust); }
.btn-line:hover { background: var(--rust); color: var(--cream); }

.diamonds {
  height: 36px;
  background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='36'%3E%3Cg fill='none' stroke='%23c9a57a' stroke-width='3'%3E%3Cpath d='M36 4 L52 18 L36 32 L20 18 Z'/%3E%3Cpath d='M36 12 L44 18 L36 24 L28 18 Z' fill='%23a9431b' stroke='none'/%3E%3Cpath d='M0 18 H14 M58 18 H72'/%3E%3C/g%3E%3C/svg%3E") repeat-x center;
  opacity: 0.8;
}

.wrap { max-width: 1040px; margin: 0 auto; padding: 5rem 5vw; }
h2 {
  font-weight: 800;
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  color: var(--rust);
  line-height: 1.1;
  margin-bottom: 0.6rem;
}
.lede { max-width: 55ch; margin-bottom: 2.6rem; }

.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 3px solid var(--rust);
}
.svc {
  padding: 1.8rem 1.4rem 1.8rem 0;
  border-bottom: 1px solid var(--sand);
}
.svc svg { width: 40px; height: 40px; color: var(--rust); margin-bottom: 0.7rem; }
.svc h3 { font-family: 'Oswald', sans-serif; font-weight: 600; font-size: 1.45rem; letter-spacing: 0.01em; margin-bottom: 0.3rem; }
.svc p { font-size: 0.95rem; color: #4d4540; }

.work-bg { background: var(--charcoal); color: var(--cream); }
.work-bg h2 { color: var(--sand); }
.pairs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.pair figure { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.ph {
  aspect-ratio: 3/4;
  background: #3a3531;
  border: 1px dashed var(--stone);
  display: grid; place-items: center;
  font-size: 0.75rem;
  color: var(--sand);
  text-align: center;
  padding: 0.5rem;
}
.pair figcaption { font-family: 'Oswald', sans-serif; font-size: 1.1rem; margin-top: 0.6rem; }
.ph img { width: 100%; height: 100%; object-fit: cover; display: block; border: 0; }
.ph:has(img) { border: none; padding: 0; }

.contact { background: var(--rust); color: var(--cream); text-align: center; }
.contact h2 { color: var(--cream); }
.contact .lede { margin: 0 auto 2rem; }
.contact .phone-big { color: var(--cream); font-size: clamp(2rem, 6vw, 3.4rem); }
.contact .phone-big .dot { background: var(--cream); }
.contact .phone-big .dot svg path { fill: var(--rust); }
.contact .mail { display: block; margin-top: 1rem; font-weight: 600; font-size: 1.1rem; }
.contact .btn-row { justify-content: center; }
.contact .btn { border-color: var(--cream); color: var(--cream); }
.contact .btn:hover { background: var(--cream); color: var(--rust); }

footer {
  padding: 1.6rem 5vw;
  font-size: 0.8rem;
  color: var(--stone);
  text-align: center;
}

@media (max-width: 820px) {
  .services, .pairs { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .services, .pairs { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* =========================================================
   CRUZ CONSTRUCTION HERO (Codex-generated, integrated 2026-10-05)
   ========================================================= */

.cruz-hero {
    --cruz-rust: #a9431b;
    --cruz-charcoal: #24211f;
    --cruz-cream: #f4e7cf;
    --cruz-tan: #c9a57a;

    position: relative;
    isolation: isolate;
    width: 100%;
    min-height: 720px;
    overflow: hidden;

    background:
        radial-gradient(
            circle at 72% 35%,
            rgba(201, 165, 122, 0.10),
            transparent 32%
        ),
        var(--cruz-charcoal);

    color: var(--cruz-cream);

    font-family: Arial, Helvetica, sans-serif;
}

.cruz-hero__stone {
    position: absolute;
    z-index: -3;

    top: 0;
    left: 0;

    width: 39%;
    height: 100%;

    background-image: url("/wp-content/uploads/2026/10/cruz_stone_wall.jpg");

    background-size: cover;
    background-position: center;

    clip-path: polygon(
        0 0,
        82% 0,
        100% 100%,
        0 100%
    );
}

.cruz-hero__stone-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(36, 33, 31, 0.05) 0%,
            rgba(36, 33, 31, 0.15) 60%,
            rgba(36, 33, 31, 0.75) 100%
        ),
        linear-gradient(
            0deg,
            rgba(36, 33, 31, 0.45),
            transparent 50%,
            rgba(36, 33, 31, 0.15)
        );
}

.cruz-hero__diagonal {
    position: absolute;
    z-index: -1;

    pointer-events: none;

    transform: rotate(15deg);
}

.cruz-hero__diagonal--one {
    top: -15%;
    right: 12%;

    width: 4px;
    height: 140%;

    background: var(--cruz-cream);

    opacity: 0.9;
}

.cruz-hero__diagonal--two {
    top: -15%;
    right: 10.8%;

    width: 14px;
    height: 140%;

    background: var(--cruz-rust);

    opacity: 0.9;
}

.cruz-hero__inner {
    position: relative;

    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);

    align-items: center;

    width: min(1400px, 100%);
    min-height: 650px;

    margin: 0 auto;
    padding: 80px clamp(30px, 6vw, 90px) 110px;
}

.cruz-hero__content {
    position: relative;
    z-index: 2;

    max-width: 800px;
    padding-left: clamp(20px, 5vw, 70px);
}

/* =========================================================
   CRUZ CONSTRUCTION — STACKED LOGO LOCKUP
   House / roof sits ABOVE the CRUZ wordmark
   ========================================================= */

.cruz-hero__brand {
    display: flex;
    flex-direction: column;
    align-items: center;

    width: fit-content;
    max-width: 100%;

    text-align: center;

    line-height: 1;
}

.cruz-hero__logo-icon {
    display: block;

    width: clamp(105px, 13vw, 165px);
    height: auto;

    margin: 0 auto -3px;

    color: var(--cruz-cream);

    filter: drop-shadow(0 5px 8px rgba(0, 0, 0, 0.35));
}

.cruz-hero__wordmark {
    display: flex;
    flex-direction: column;
    align-items: center;

    width: 100%;

    line-height: 0.9;
}

.cruz-hero__cruz {
    color: var(--cruz-rust);

    font-family: Impact, Haettenschweiler, "Arial Black", sans-serif;

    font-size: clamp(72px, 9vw, 135px);
    font-weight: 900;
    letter-spacing: -0.055em;

    white-space: nowrap;

    text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.28);
}

.cruz-hero__construction {
    margin-top: 9px;

    color: var(--cruz-cream);

    font-family: Arial, Helvetica, sans-serif;

    font-size: clamp(18px, 2.1vw, 30px);
    font-weight: 800;

    letter-spacing: 0.17em;

    white-space: nowrap;
}

@media (min-width: 901px) {
    .cruz-hero__brand { transform: translateX(-2%); }
}

.cruz-hero__rule {
    width: min(600px, 90%);
    height: 4px;

    margin: 30px 0 25px;

    background:
        linear-gradient(
            90deg,
            var(--cruz-rust) 0%,
            var(--cruz-rust) 72%,
            var(--cruz-tan) 72%,
            var(--cruz-tan) 100%
        );
}

.cruz-hero__tagline {
    max-width: 720px;

    margin: 0;

    color: var(--cruz-cream);

    font-size: clamp(17px, 1.6vw, 22px);
    line-height: 1.65;

    text-shadow: 1px 2px 4px rgba(0, 0, 0, 0.5);
}

.cruz-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;

    margin-top: 35px;
}

.cruz-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;

    min-height: 56px;
    padding: 0 27px;

    border: 2px solid transparent;

    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.02em;

    text-decoration: none;

    transition:
        transform 180ms ease,
        background 180ms ease,
        color 180ms ease,
        border-color 180ms ease,
        box-shadow 180ms ease;
}

.cruz-btn:hover { transform: translateY(-3px); }

.cruz-btn--primary {
    background: var(--cruz-rust);
    color: var(--cruz-cream);

    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.30);
}

.cruz-btn--primary:hover {
    background: #c04d20;
    color: #fff8eb;

    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.cruz-btn--secondary {
    border-color: var(--cruz-cream);

    background: rgba(36, 33, 31, 0.55);

    color: var(--cruz-cream);
}

.cruz-btn--secondary:hover {
    background: var(--cruz-cream);
    color: var(--cruz-charcoal);
}

.cruz-hero__visual {
    position: relative;
    z-index: 2;

    display: flex;
    justify-content: flex-end;
}

.cruz-hero__visual-frame {
    position: relative;

    width: min(360px, 100%);

    padding: 35px;

    border-left: 5px solid var(--cruz-rust);

    background:
        linear-gradient(
            135deg,
            rgba(36, 33, 31, 0.96),
            rgba(36, 33, 31, 0.72)
        );

    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);

    backdrop-filter: blur(4px);
}

.cruz-hero__visual-frame::before {
    content: "";

    position: absolute;

    top: 0;
    right: 0;

    width: 55%;
    height: 5px;

    background: var(--cruz-rust);
}

.cruz-hero__visual-label {
    display: flex;
    align-items: center;
    gap: 10px;

    color: var(--cruz-tan);

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 0.18em;
}

.cruz-hero__visual-label span:first-child {
    display: block;

    width: 28px;
    height: 3px;

    background: var(--cruz-rust);
}

.cruz-hero__visual-title {
    margin-top: 25px;

    color: var(--cruz-rust);

    font-family: Impact, Haettenschweiler, "Arial Black", sans-serif;

    font-size: clamp(50px, 6vw, 80px);
    line-height: 0.84;
    letter-spacing: -0.025em;
}

.cruz-hero__visual-divider {
    width: 100%;
    height: 1px;

    margin: 28px 0 22px;

    background: var(--cruz-tan);

    opacity: 0.5;
}

.cruz-hero__services {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 13px 20px;
}

.cruz-hero__services span {
    color: var(--cruz-cream);

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 0.12em;
}

.cruz-hero__phone {
    position: absolute;
    z-index: 5;

    right: 0;
    bottom: 0;
    left: 0;

    background: var(--cruz-rust);
}

.cruz-hero__phone-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;

    width: min(1400px, 100%);

    min-height: 70px;

    margin: 0 auto;
    padding: 0 clamp(25px, 6vw, 90px);
}

.cruz-hero__phone-label {
    display: flex;
    align-items: center;
    gap: 12px;

    color: var(--cruz-cream);

    font-size: 12px;
    font-weight: 800;

    letter-spacing: 0.16em;
}

.cruz-hero__phone-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 34px;
    height: 34px;

    border-radius: 50%;

    background: var(--cruz-cream);

    color: var(--cruz-rust);

    font-size: 17px;
}

.cruz-hero__phone a {
    color: var(--cruz-cream);

    font-size: clamp(22px, 2.4vw, 32px);
    font-weight: 900;

    letter-spacing: 0.02em;

    text-decoration: none;
}

.cruz-hero__phone a:hover { text-decoration: underline; }

@media (max-width: 900px) {
    .cruz-hero { min-height: auto; }

    .cruz-hero__inner {
        grid-template-columns: 1fr;
        min-height: auto;
        padding-top: 70px;
        padding-bottom: 125px;
    }

    .cruz-hero__stone { width: 48%; opacity: 0.65; }

    .cruz-hero__visual {
        justify-content: flex-start;
        margin-top: 50px;
        margin-left: clamp(20px, 5vw, 70px);
    }

    .cruz-hero__visual-frame { width: 100%; max-width: 480px; }
}

@media (max-width: 600px) {
    .cruz-hero { min-height: auto; }

    .cruz-hero__inner { padding: 55px 22px 135px; }
    .cruz-hero__content { padding-left: 0; }

    .cruz-hero__stone {
        width: 100%;
        height: 330px;
        opacity: 0.38;
        clip-path: polygon(0 0, 100% 0, 82% 100%, 0 100%);
    }

    .cruz-hero__diagonal--one { right: 8%; }
    .cruz-hero__diagonal--two { right: 4%; }

    .cruz-hero__brand { width: 100%; }
    .cruz-hero__logo-icon { width: 90px; margin-bottom: 0; }
    .cruz-hero__cruz { font-size: clamp(62px, 18vw, 90px); }
    .cruz-hero__construction { margin-top: 7px; font-size: 15px; letter-spacing: 0.13em; }
    .cruz-hero__rule { margin-top: 24px; }
    .cruz-hero__tagline { font-size: 16px; line-height: 1.55; }

    .cruz-hero__actions { flex-direction: column; }
    .cruz-btn { width: 100%; }

    .cruz-hero__visual { margin-left: 0; margin-top: 40px; }
    .cruz-hero__visual-frame { padding: 25px; }
    .cruz-hero__visual-title { font-size: 58px; }

    .cruz-hero__phone-inner {
        flex-direction: column;
        justify-content: center;
        gap: 4px;
        min-height: 92px;
        padding: 10px 20px;
    }

    .cruz-hero__phone-label { font-size: 9px; }
    .cruz-hero__phone-icon { width: 26px; height: 26px; font-size: 13px; }
    .cruz-hero__phone a { font-size: 25px; }
}

.cruz-nav { display: flex; gap: 1.5rem; }
.cruz-nav a { color: var(--cream); opacity: 0.85; }
.cruz-nav a:hover { opacity: 1; text-decoration: underline; }
@media (max-width: 640px) { .cruz-nav { gap: 0.9rem; font-size: 0.8rem; } }


/* =========================================================
   WPFORMS — brand override via its own CSS custom properties
   (WPForms Modern markup reads --wpforms-* vars; its defaults
   are declared at :root in an inline block that loads after
   this file, so overriding raw properties here loses the
   cascade tie. Setting the same vars on .wpforms-container
   wins instead, since inherited custom props resolve from the
   nearest ancestor in the DOM, not stylesheet load order.)
   ========================================================= */

.wpforms-container {
  --wpforms-field-border-radius: 4px;
  --wpforms-field-border-style: solid;
  --wpforms-field-border-size: 2px;
  --wpforms-field-background-color: var(--paper);
  --wpforms-field-border-color: var(--stone);
  --wpforms-field-text-color: var(--charcoal);
  --wpforms-label-color: var(--cream);
  --wpforms-label-sublabel-color: var(--cream);
  --wpforms-button-border-radius: 4px;
  --wpforms-button-border-style: solid;
  --wpforms-button-border-size: 2px;
  --wpforms-button-background-color: var(--cream);
  --wpforms-button-background-color-alt: var(--rust-dark);
  --wpforms-button-border-color: var(--cream);
  --wpforms-button-text-color: var(--rust);
  --wpforms-button-text-color-alt: var(--cream);
  --wpforms-container-border-style: none;
}

.wpforms-container input[type="text"]:focus,
.wpforms-container input[type="email"]:focus,
.wpforms-container input[type="tel"]:focus,
.wpforms-container textarea:focus {
  border-color: var(--cream) !important;
  box-shadow: 0 0 0 3px rgba(244, 231, 207, 0.4) !important;
}
