/*
Theme Name: Larios Construction
Description: Roofing, remodeling and new construction in McAllen, Texas.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: larios-construction
*/
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(assets/fonts/poppins-400.woff2) format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(assets/fonts/poppins-500.woff2) format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(assets/fonts/poppins-600.woff2) format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(assets/fonts/poppins-700.woff2) format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(assets/fonts/poppins-800.woff2) format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}
:root {
  --ink: #19191c;
  --muted: #57575e;
  --accent: #b6111b;
  --accent-dark: #8e0b13;
  --paper: #f5f3f0;
  --line: #e5e1df;
  --wrap: 1240px;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}
body {
  margin: 0;
  color: var(--ink);
  font:
    400 16px/1.65 Poppins,
    Arial,
    sans-serif;
}
h1,
h2,
h3,
p,
figure {
  margin-top: 0;
}
h1,
h2,
h3 {
  line-height: 1.09;
  letter-spacing: -0.035em;
  margin-bottom: 0.55em;
}
h1 {
  font-size: clamp(2.65rem, 5.35vw, 5.25rem);
  font-weight: 800;
}
h2 {
  font-size: clamp(2rem, 3.7vw, 3.45rem);
  font-weight: 800;
}
h3 {
  font-size: 1.55rem;
  font-weight: 700;
}
p {
  margin-bottom: 1em;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
summary,
input,
select,
textarea {
  font: inherit;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
:focus-visible {
  outline: 3px solid #d0434b;
  outline-offset: 4px;
}
.wrap {
  width: min(calc(100% - 72px), var(--wrap));
  margin-inline: auto;
}
.section {
  padding-block: clamp(55px, 7.5vw, 108px);
}
.eyebrow {
  font-size: 0.73rem;
  letter-spacing: 0.13em;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.button,
.wpcf7 input[type="submit"] {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--accent);
  color: #fff;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 11px 17px;
  font-size: 0.86rem;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  line-height: 1.25;
  transition:
    background 0.2s,
    color 0.2s,
    border-color 0.2s;
}
.button:hover,
.wpcf7 input[type="submit"]:hover {
  background: var(--accent-dark);
}
.button.outline {
  background: #fff;
  border-color: var(--line);
  color: var(--ink);
}
.button.outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.button.light-outline {
  background: #17171a50;
  border-color: #ffffffa0;
  color: #fff;
}
.button.light-outline:hover {
  background: #fff;
  color: var(--ink);
}
.button.white {
  background: #fff;
  color: var(--accent);
}
.button.white:hover {
  background: #f7e9e9;
}
.skip {
  position: absolute;
  left: 8px;
  top: 8px;
  transform: translateY(-200%);
  z-index: 30;
  background: white;
  padding: 8px;
}
.skip:focus {
  transform: none;
}
.topbar {
  background: #202024;
  color: #fff;
  font-size: 0.76rem;
  font-weight: 500;
}
.top-inner,
.top-inner > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.top-inner {
  min-height: 35px;
  padding-block: 4px;
}
.top-inner a:hover {
  text-decoration: underline;
}
.dot {
  color: #f38188;
  margin-inline: 5px;
}
.site-header {
  position: relative;
  z-index: 10;
  background: white;
  border-bottom: 1px solid var(--line);
}
.nav-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  min-height: 87px;
  position: relative;
}
.brand img {
  width: 145px;
  height: auto;
}
.menu,
.dropdown {
  margin: 0;
}
.menu > summary {
  display: none;
}
.nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.65vw, 25px);
  font-size: 0.82rem;
  font-weight: 700;
}
.nav > a:not(.button):hover,
.dropdown summary:hover,
.dropdown[open] summary {
  color: var(--accent);
}
summary {
  cursor: pointer;
  list-style: none;
}
summary::-webkit-details-marker {
  display: none;
}
.dropdown summary {
  display: flex;
  align-items: center;
  gap: 5px;
  padding-block: 12px;
}
.dropdown summary span {
  font-size: 1.05rem;
}
.drop-panel {
  position: absolute;
  top: calc(100% - 2px);
  right: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  box-shadow: 0 18px 35px #1d171a2b;
  border-radius: 0 0 10px 10px;
}
.mega {
  width: min(890px, 100%);
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 19px;
  padding: 21px;
}
.mega-intro {
  background: var(--paper);
  border-radius: 7px;
  padding: 19px;
}
.mega-intro strong {
  font-size: 1.2rem;
  line-height: 1.25;
  display: block;
  margin-bottom: 12px;
}
.mega-intro a,
.text-link {
  color: var(--accent);
  font-weight: 700;
}
.mega-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}
.mega-grid > a,
.areas > a {
  display: block;
  padding: 12px;
  border-radius: 6px;
}
.mega-grid > a:hover,
.areas > a:hover {
  background: var(--paper);
  color: var(--accent);
}
.drop-panel a span {
  display: block;
  font-size: 0.74rem;
  font-weight: 400;
  color: var(--muted);
}
.areas {
  padding: 8px;
  right: 16%;
  min-width: 265px;
}
.hero {
  position: relative;
  isolation: isolate;
  background: #242429;
  color: #fff;
}
.hero-bg,
.hero::after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  object-fit: cover;
  object-position: 57% 54%;
}
.hero::after {
  content: "";
  z-index: -1;
  background: linear-gradient(
    90deg,
    #131315e8 0%,
    #1313159c 37%,
    #14141617 71%,
    #14141618 100%
  );
}
.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(315px, 350px);
  gap: 34px;
  align-items: center;
  min-height: 610px;
  padding-block: 48px;
}
.hero-copy > p:not(.eyebrow) {
  font-size: clamp(1rem, 1.55vw, 1.23rem);
  max-width: 520px;
  margin-bottom: 26px;
}
.hero-location {
  color: #fff;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  background: #15151865;
  border: 1px solid #ffffff5c;
  border-radius: 4px;
  padding: 5px 9px;
  margin-bottom: 20px;
}
.hero-location span {
  color: #ff8389;
}
.estimate {
  isolation: isolate;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  border-top: 4px solid var(--accent);
  border-radius: 10px;
  padding: 23px;
  box-shadow: 0 20px 45px #1e171935;
  scroll-margin: 16px;
}
.estimate h2 {
  font-size: clamp(1.55rem, 2.15vw, 1.85rem);
}
.estimate p:not(.eyebrow) {
  font-size: 0.87rem;
  color: var(--muted);
}
.wpcf7 p {
  margin: 0 0 8px;
}
.wpcf7 label {
  display: block;
  font-size: 0.74rem;
  font-weight: 700;
}
.wpcf7 :is(input:not([type="submit"]), textarea, select) {
  width: 100%;
  padding: 8px 9px;
  border: 1px solid #d9d4d3;
  background: #faf9f8;
  border-radius: 5px;
  font-size: 0.8rem;
  color: var(--ink);
}
.wpcf7 textarea {
  resize: vertical;
  min-height: 63px;
}
.wpcf7 input[type="submit"] {
  width: 100%;
}
.wpcf7 .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}
.wpcf7 .wpcf7-spinner {
  display: block;
  height: 0;
  margin: 0;
  visibility: hidden;
}
.wpcf7 form.submitting .wpcf7-spinner {
  height: 24px;
  visibility: visible;
}
.wpcf7 .wpcf7-response-output {
  font-size: 0.8rem;
  margin: 8px 0;
}
.service-strip {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.service-strip > .wrap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.service-strip a {
  padding: 17px 16px;
  font-size: 0.86rem;
  font-weight: 700;
  text-align: center;
}
.service-strip a + a {
  border-left: 1px solid var(--line);
}
.service-strip a span {
  color: var(--accent);
  margin-left: 6px;
}
.service-strip a:hover {
  color: var(--accent);
}
.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 28px;
}
.section-heading h2 {
  margin-bottom: 0;
}
.section-heading > p {
  max-width: 390px;
  color: var(--muted);
  margin: 0;
}
.services-grid,
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.service-card,
.photo-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}
.service-card > img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  object-position: center 55%;
}
.card-copy {
  padding: 22px;
}
.checks {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
}
.checks li {
  padding: 4px 0 4px 21px;
  position: relative;
  color: var(--muted);
  font-size: 0.89rem;
}
.checks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 800;
}
.text-link:hover {
  text-decoration: underline;
}
.fence-section,
.inside-hero {
  color: #fff;
  background: #292526
    linear-gradient(90deg, #151418ed, #1e191a8f 65%, #1e191a55);
  background-image:
    linear-gradient(90deg, #151418ed, #1e191a80 65%, #1e191a4d),
    url("assets/dusk.webp");
  background-size: cover;
  background-position: center;
}
.fence-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  gap: 50px;
  align-items: center;
}
.fence-copy > p:not(.eyebrow) {
  max-width: 530px;
  color: #f4eeee;
}
.fence-section .eyebrow {
  color: #ffa2a8;
}
.fence-photo {
  width: min(100%, 430px);
  justify-self: end;
}
.photo-card {
  margin: 0;
}
.photo-link {
  display: block;
  padding: 9px;
  background: #f0eeeb;
}
.photo-link img {
  width: 100%;
  height: clamp(190px, 25vw, 340px);
  object-fit: contain;
}
.photo-link:focus-visible {
  outline-offset: -4px;
}
.photo-card figcaption {
  padding: 12px 15px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink);
}
.photo-card .eyebrow {
  display: block;
  margin-bottom: 3px;
}
.fence-photo .photo-link {
  background: #232125;
}
.fence-photo .photo-link img {
  height: clamp(235px, 28vw, 385px);
}
.local {
  padding: 40px 0;
  background: var(--paper);
}
.local-inner,
.closing-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}
.local h2,
.closing h2 {
  font-size: clamp(1.65rem, 3vw, 2.65rem);
  margin-bottom: 0.25em;
}
.local p:last-child,
.closing p:last-child {
  margin-bottom: 0;
}
.closing {
  background: var(--accent-dark);
  color: white;
  padding: 35px 0;
}
.site-footer {
  background: #1c1b20;
  color: #f3f1ee;
  padding: 50px 0 16px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 0.85fr 1fr;
  gap: 25px;
}
.footer-grid h2 {
  font-size: 1rem;
  letter-spacing: 0;
}
.footer-grid a,
.footer-grid p {
  display: block;
  font-size: 0.82rem;
  margin: 0 0 8px;
  color: #e5dfdf;
}
.footer-grid a:hover,
.footer-bottom a:hover {
  text-decoration: underline;
}
.footer-brand img {
  width: 135px;
  border-radius: 5px;
  margin-bottom: 12px;
}
.footer-bottom {
  border-top: 1px solid #ffffff35;
  margin-top: 26px;
  padding-top: 13px;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  font-size: 0.73rem;
}
.inside-hero {
  padding: 55px 0 65px;
}
.inside-hero h1 {
  margin: 0.3em 0 0;
  font-size: clamp(2.25rem, 5vw, 4.2rem);
}
.inside-hero a {
  text-decoration: underline;
}
.page-layout:has(> .estimate) {
  display: grid;
  grid-template-columns: 1fr minmax(300px, 450px);
  gap: 30px;
  align-items: start;
}
.entry {
  min-width: 0;
}
.entry > p {
  max-width: 760px;
  color: var(--muted);
}
.gallery-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0;
}
.gallery-group {
  margin: 34px 0 48px;
}
.gallery-group h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}
.lightbox {
  border: 0;
  border-radius: 10px;
  padding: 12px;
  width: min(94vw, 1000px);
  background: #1b1a1d;
  color: white;
}
.lightbox::backdrop {
  background: #000b;
}
.lightbox img {
  width: 100%;
  max-height: 77dvh;
  object-fit: contain;
}
.lightbox button {
  display: block;
  margin: 0 0 8px auto;
  background: #fff;
  border: 0;
  border-radius: 4px;
  padding: 5px 12px;
  cursor: pointer;
}
@media (min-width: 981px) {
  .menu:not([open]) > .nav {
    display: flex;
  }
  .menu::details-content {
    display: contents;
    content-visibility: visible;
  }
}
@media (max-width: 980px) {
  .wrap {
    width: calc(100% - 36px);
  }
  .nav-wrap {
    min-height: 72px;
  }
  .brand img {
    width: 113px;
  }
  .menu > summary {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    padding: 6px 10px;
    border: 1px solid var(--line);
    border-radius: 5px;
  }
  .nav {
    position: absolute;
    top: 100%;
    right: 0;
    display: flex;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    width: min(100%, 550px);
    max-height: 72dvh;
    overflow: auto;
    background: #fff;
    border: 1px solid var(--line);
    padding: 12px;
    box-shadow: 0 15px 32px #0002;
  }
  .nav > a:not(.button),
  .dropdown summary {
    padding: 8px;
  }
  .nav-cta {
    margin-top: 7px;
  }
  .drop-panel {
    position: static;
    width: 100%;
    box-shadow: none;
  }
  .mega {
    display: block;
    padding: 8px;
  }
  .mega-intro {
    display: none;
  }
  .mega-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero-layout {
    min-height: 535px;
    gap: 17px;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.75fr);
  }
  .hero h1 {
    font-size: clamp(2.7rem, 6.5vw, 4.6rem);
  }
}
@media (max-width: 680px) {
  .wrap {
    width: calc(100% - 30px);
  }
  .top-inner,
  .top-inner > div {
    gap: 8px;
    font-size: 0.67rem;
  }
  .top-inner > div > a:first-child {
    display: none;
  }
  .hero-bg,
  .hero::after {
    height: 405px;
  }
  .hero-bg {
    object-position: 62% center;
  }
  .hero::after {
    background:
      linear-gradient(90deg, #17171bcd, #17171b2f),
      linear-gradient(0deg, #242429 0%, transparent 43%);
  }
  .hero-layout {
    display: block;
    padding-block: 44px 24px;
    min-height: 0;
  }
  .hero-copy {
    min-height: 332px;
  }
  .estimate {
    padding: 18px;
  }
  .hero h1 {
    font-size: clamp(2.6rem, 10vw, 4.2rem);
  }
  .section-heading,
  .local-inner,
  .closing-inner {
    align-items: start;
    flex-direction: column;
    gap: 14px;
  }
  .fence-layout,
  .services-grid,
  .page-layout:has(> .estimate) {
    grid-template-columns: 1fr;
  }
  .fence-layout {
    gap: 24px;
  }
  .fence-photo {
    justify-self: start;
    width: 100%;
  }
  .photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .photo-link {
    padding: 5px;
  }
  .photo-link img {
    height: 180px;
  }
  .photo-card figcaption {
    padding: 9px;
    font-size: 0.76rem;
  }
  .service-strip a {
    padding: 12px 4px;
    font-size: 0.68rem;
  }
  .service-strip a span {
    display: none;
  }
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
.about-home {
  border-top: 1px solid var(--line);
  padding: clamp(35px, 5vw, 65px) 0;
}
.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: center;
}
.about-layout h2 {
  font-size: clamp(1.85rem, 3.4vw, 3rem);
  margin-bottom: 0;
}
.about-layout p:not(.eyebrow) {
  color: var(--muted);
}
@media (max-width: 680px) {
  .about-layout {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

.arrow {
  display: inline-block;
  position: relative;
  width: 0.72em;
  height: 0.72em;
  flex: none;
}
.arrow::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 0.52em;
  height: 0.52em;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
}
.arrow::after {
  content: "";
  position: absolute;
  top: 0.32em;
  left: -0.07em;
  width: 0.87em;
  border-top: 1.5px solid currentColor;
  transform: rotate(-45deg);
}
.wpcf7 .form-row > div {
  min-width: 0;
}
.wpcf7 select {
  padding-inline: 6px;
  font-size: 0.75rem;
}
