/*
Theme Name: ALES General
Theme URI: https://alesgeneral.com/
Author: ALES General Construction
Description: Lightweight, conversion-focused theme for ALES General Construction.
Version: 1.1.1
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: ales
*/

:root {
  --ink: #171918;
  --ink-soft: #323634;
  --paper: #f5f2ec;
  --white: #fff;
  --muted: #626965;
  --line: #d9d5cc;
  --red: #a7282d;
  --red-dark: #842126;
  --shell: min(1180px, calc(100vw - 48px));
  --display: "Iowan Old Style", Baskerville, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--white); font-family: var(--sans); font-size: 17px; line-height: 1.6; text-rendering: optimizeLegibility; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
button, input, textarea, select { font: inherit; }
:focus-visible { outline: 3px solid #e6a4a7; outline-offset: 4px; }
.shell { width: var(--shell); margin-inline: auto; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 9999; padding: 10px 14px; color: var(--white); background: var(--red); transform: translateY(-160%); }
.skip-link:focus { transform: none; }

.site-header { position: absolute; inset: 0 0 auto; z-index: 50; color: var(--white); border-bottom: 1px solid rgb(255 255 255 / 22%); }
.admin-bar .site-header { top: 32px; }
.header-inner { min-height: 76px; display: flex; align-items: center; gap: 28px; }
.brand { width: 174px; flex: 0 0 auto; text-decoration: none; }
.brand img, .brand .custom-logo { width: 174px; height: auto; max-height: 68px; object-fit: contain; }
.desktop-nav { margin-left: auto; }
.menu { display: flex; align-items: center; gap: 26px; margin: 0; padding: 0; list-style: none; }
.menu a { color: inherit; font-size: 14px; font-weight: 700; letter-spacing: .03em; text-decoration: none; }
.menu a:hover { color: #f0b2b4; }
.header-actions { display: flex; align-items: center; gap: 20px; }
.phone-link { font-size: 14px; font-weight: 700; white-space: nowrap; text-decoration: none; }
.mobile-nav { display: none; margin-left: auto; }
.mobile-nav summary { width: 44px; height: 44px; display: grid; place-content: center; gap: 5px; cursor: pointer; list-style: none; border: 1px solid rgb(255 255 255 / 35%); }
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav summary span { width: 21px; height: 2px; display: block; background: currentColor; }
.mobile-nav nav { position: absolute; top: 76px; left: 0; right: 0; padding: 24px; color: var(--ink); background: var(--white); box-shadow: 0 18px 40px rgb(0 0 0 / 16%); }
.mobile-nav .menu { display: grid; gap: 0; }
.mobile-nav .menu a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
.mobile-nav .button { margin-top: 18px; color: var(--white); }

.button { min-height: 50px; display: inline-flex; align-items: center; justify-content: center; padding: 0 23px; border: 0; color: var(--white); background: var(--red); font-size: 13px; font-weight: 800; letter-spacing: .08em; text-decoration: none; text-transform: uppercase; transition: background .18s ease, transform .18s ease; }
.button:hover { background: var(--red-dark); transform: translateY(-1px); }
.button-small { min-height: 42px; padding-inline: 18px; font-size: 11px; }
.text-link { display: inline-flex; gap: 9px; align-items: center; color: var(--red); font-size: 14px; font-weight: 800; letter-spacing: .04em; text-decoration: none; text-transform: uppercase; }
.text-link:hover { text-decoration: underline; }
.text-link.light { color: var(--white); }
.eyebrow { margin: 0 0 18px; color: var(--red); font-size: 12px; font-weight: 800; letter-spacing: .17em; text-transform: uppercase; }
.eyebrow.light { color: #f1b9bb; }
h1, h2, h3 { margin-top: 0; font-family: var(--display); font-weight: 500; line-height: 1.05; text-wrap: balance; }
h1 { font-size: clamp(3.25rem, 7vw, 6.1rem); letter-spacing: -.045em; }
h2 { margin-bottom: 22px; font-size: clamp(2.3rem, 4.5vw, 4.7rem); letter-spacing: -.035em; }
h3 { font-size: clamp(1.55rem, 2.4vw, 2.25rem); letter-spacing: -.025em; }

.hero { min-height: min(780px, 100dvh); position: relative; display: flex; align-items: flex-end; overflow: hidden; color: var(--white); background: var(--ink); }
.hero-media, .hero-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-media { object-fit: cover; object-position: center; }
.hero-shade { background: linear-gradient(90deg, rgb(15 17 16 / 85%) 0%, rgb(15 17 16 / 53%) 48%, rgb(15 17 16 / 13%) 78%), linear-gradient(0deg, rgb(15 17 16 / 58%), transparent 48%); }
.hero-content { position: relative; z-index: 1; padding-block: 170px 80px; }
.hero h1 { max-width: 930px; margin-bottom: 30px; }
.hero-copy { max-width: 600px; margin: 0 0 38px; color: #f1f1ed; font-size: clamp(1.12rem, 2vw, 1.35rem); }
.hero-actions { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }
.proof-band { color: var(--white); background: var(--ink); }
.proof-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.proof-grid > div { min-height: 126px; display: grid; align-content: center; gap: 3px; padding: 24px 40px; border-right: 1px solid rgb(255 255 255 / 16%); }
.proof-grid > div:first-child { border-left: 1px solid rgb(255 255 255 / 16%); }
.proof-grid strong { font-family: var(--display); font-size: 30px; font-weight: 500; }
.proof-grid span { color: #b9bfbb; font-size: 13px; letter-spacing: .04em; }

.section { padding-block: clamp(80px, 10vw, 145px); }
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(60px, 10vw, 140px); align-items: start; }
.split h2 { max-width: 690px; }
.lead { margin: 10px 0 30px; color: var(--ink-soft); font-family: var(--display); font-size: clamp(1.35rem, 2.3vw, 1.8rem); line-height: 1.45; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 54px; }
.section-heading h2 { margin: 0; }
.services-section { background: var(--paper); }
.service-grid { display: grid; grid-template-columns: 1.25fr .75fr; grid-template-rows: repeat(2, minmax(230px, auto)); gap: 24px; }
.service-card { min-width: 0; color: inherit; background: var(--white); text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.service-card:hover { transform: translateY(-5px); box-shadow: 0 18px 45px rgb(20 24 21 / 10%); }
.service-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.service-card:first-child { grid-row: 1 / 3; }
.service-card:first-child img { aspect-ratio: 4 / 3; }
.service-card:not(:first-child) { display: grid; grid-template-columns: minmax(180px, .9fr) 1.1fr; }
.service-card:not(:first-child) img { height: 100%; aspect-ratio: auto; }
.service-card > div { padding: 28px; }
.service-card h3 { margin: 0 0 12px; }
.service-card p { margin: 0; color: var(--muted); font-size: 15px; }
.projects-section { color: var(--white); background: var(--ink); }
.project-grid { display: grid; grid-template-columns: 1.7fr 1fr; grid-template-rows: repeat(2, minmax(250px, 1fr)); gap: 18px; }
.project-grid figure { position: relative; min-width: 0; min-height: 0; margin: 0; overflow: hidden; background: #252826; }
.project-grid .project-main { grid-row: 1 / 3; }
.project-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.project-grid figure:hover img { transform: scale(1.025); }
.project-grid figcaption { position: absolute; left: 22px; bottom: 18px; padding: 8px 11px; color: var(--white); background: rgb(15 17 16 / 82%); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.process { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.process li { max-width: 780px; display: block; padding: 35px 0; border-bottom: 1px solid var(--line); }
.process h3 { margin: 0 0 9px; }
.process p { max-width: 660px; margin: 0; color: var(--muted); }
.testimonial { color: var(--ink); background: var(--paper); }
.quote-wrap { max-width: 1000px; }
.testimonial blockquote { margin: 0 0 28px; font-family: var(--display); font-size: clamp(2rem, 4.3vw, 4rem); line-height: 1.18; letter-spacing: -.025em; }
.testimonial cite { font-size: 13px; font-style: normal; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.area-section { background: var(--paper); }
.area-list { color: var(--red); font-size: 14px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.final-cta { padding-block: clamp(100px, 13vw, 180px); color: var(--white); text-align: center; background: linear-gradient(rgb(18 20 19 / 88%), rgb(18 20 19 / 88%)), url("assets/images/project-interior.jpg") center / cover; }
.final-cta h2 { max-width: 850px; margin-inline: auto; }
.final-cta p:not(.eyebrow) { margin-bottom: 34px; color: #d4d7d4; }
.final-cta > .shell > div { display: flex; align-items: center; justify-content: center; gap: 28px; flex-wrap: wrap; }

.site-footer { padding: 80px 0 28px; color: #d9dcda; background: #0f1110; }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr 1fr; gap: 80px; padding-bottom: 60px; }
.footer-grid > div { min-width: 0; }
.footer-logo { width: 190px; margin-bottom: 22px; }
.footer-grid h2 { margin-bottom: 20px; color: var(--white); font-family: var(--sans); font-size: 12px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.footer-grid p, .footer-grid a { display: block; max-width: 360px; color: #abb1ad; font-size: 14px; }
.footer-grid a { margin-bottom: 10px; text-decoration: none; }
.footer-grid .menu { display: grid; gap: 8px; }
.footer-grid .menu a { margin: 0; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 24px; border-top: 1px solid rgb(255 255 255 / 13%); color: #7e8580; font-size: 12px; }

.content-page { min-height: 70vh; }
.page-hero { padding: 180px 0 80px; color: var(--white); background: var(--ink); }
.page-hero h1 { margin: 0; font-size: clamp(3rem, 6vw, 5.8rem); }
.page-summary { max-width: 700px; margin: 28px 0 0; color: #d4d8d5; font-size: 1.2rem; }
.page-showcase { padding: 150px 0 80px; color: var(--white); background: var(--ink); }
.page-showcase-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(45px, 8vw, 110px); align-items: center; }
.page-showcase h1 { margin-bottom: 26px; font-size: clamp(3.2rem, 6vw, 5.8rem); }
.page-showcase .lead { max-width: 650px; color: #d4d8d5; }
.page-showcase figure { margin: 0; }
.page-showcase img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.service-detail { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(50px, 10vw, 130px); }
.service-detail h2 { font-size: clamp(2.4rem, 4vw, 4.2rem); }
.benefit-list, .trust-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.benefit-list li, .trust-list li { padding: 20px 0 20px 28px; position: relative; border-bottom: 1px solid var(--line); }
.benefit-list li::before, .trust-list li::before { content: ""; width: 8px; height: 8px; position: absolute; top: 29px; left: 0; background: var(--red); }
.project-callout { padding: 90px 0; color: var(--white); background: var(--ink); }
.project-callout h2 { max-width: 800px; margin-bottom: 18px; }
.project-callout p { max-width: 680px; color: #c5cac7; }
.service-list { display: grid; gap: 80px; }
.service-row { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(40px, 8vw, 100px); align-items: center; }
.service-row:nth-child(even) img { order: 2; }
.service-row img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.service-row h2 { margin-bottom: 16px; font-size: clamp(2.2rem, 4vw, 4rem); }
.portfolio-grid { display: grid; grid-template-columns: 1.35fr .65fr; gap: 32px; align-items: start; }
.portfolio-grid figure { margin: 0; }
.portfolio-grid figure:nth-child(4n + 2), .portfolio-grid figure:nth-child(4n + 3) { margin-top: 75px; }
.portfolio-grid img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.portfolio-grid figcaption { padding-top: 12px; color: var(--muted); font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.about-grid, .contact-layout, .estimate-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(55px, 10vw, 130px); align-items: start; }
.about-grid img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.contact-layout aside { position: sticky; top: 40px; }
.contact-layout aside h2 { font-size: clamp(2.4rem, 4vw, 4rem); }
.estimate-section { background: var(--paper); scroll-margin-top: 20px; }
.estimate-form { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; padding: clamp(26px, 5vw, 52px); background: var(--white); border: 1px solid var(--line); }
.form-field { min-width: 0; }
.form-field.full, .form-submit.full { grid-column: 1 / -1; }
.form-field label { display: block; margin-bottom: 7px; font-size: 13px; font-weight: 800; }
.form-field input, .form-field select, .form-field textarea { width: 100%; min-height: 50px; padding: 12px 14px; color: var(--ink); background: var(--white); border: 1px solid #9aa09c; border-radius: 0; }
.form-field textarea { resize: vertical; }
.form-submit { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.form-submit p { margin: 0; color: var(--muted); font-size: 14px; }
.website-field { width: 1px; height: 1px; position: absolute; left: -9999px; overflow: hidden; }
.form-alert { margin-bottom: 18px; padding: 14px 16px; border-left: 4px solid; }
.form-alert.success { color: #174b2c; background: #eaf7ef; border-color: #2f7b4b; }
.form-alert.error { color: #72232a; background: #fff0f1; border-color: var(--red); }
.quote-page { max-width: 950px; }
.quote-page blockquote { margin: 0 0 30px; font-family: var(--display); font-size: clamp(2rem, 4vw, 3.8rem); line-height: 1.2; }
.quote-page cite { font-size: 13px; font-style: normal; font-weight: 800; text-transform: uppercase; }
.prose, .article { max-width: 780px; padding-top: 70px; }
.prose > * { max-width: 100%; }
.prose img { height: auto; }
.prose h2, .article h2 { margin-top: 2em; font-size: clamp(2rem, 3vw, 3rem); }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; padding-top: 70px; }
.post-card { min-width: 0; padding-bottom: 30px; border-bottom: 1px solid var(--line); }
.post-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin-bottom: 24px; }
.post-card h2 { font-size: 2rem; }
.post-card h2 a { text-decoration: none; }
.article { padding-top: 180px; }
.article h1 { font-size: clamp(3rem, 6vw, 5.5rem); }
.article-image { width: 100%; margin: 44px 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

@media (max-width: 1050px) {
  .desktop-nav, .phone-link { display: none; }
  .header-actions { margin-left: auto; }
  .service-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .service-card:first-child { grid-row: auto; grid-column: 1 / -1; }
  .service-card:first-child img { aspect-ratio: 2 / 1; }
  .service-card:not(:first-child) { display: block; }
  .service-card:not(:first-child) img { height: auto; aspect-ratio: 4 / 3; }
}

@media (max-width: 760px) {
  :root { --shell: min(100% - 34px, 1180px); }
  body { font-size: 16px; }
  .admin-bar .site-header { top: 46px; }
  .header-inner { min-height: 74px; }
  .brand, .brand img, .brand .custom-logo { width: 138px; }
  .header-actions { display: none; }
  .mobile-nav { display: block; }
  .mobile-nav nav { top: 74px; }
  .hero { min-height: min(680px, 100dvh); }
  .hero-shade { background: linear-gradient(0deg, rgb(15 17 16 / 88%) 10%, rgb(15 17 16 / 42%) 75%, rgb(15 17 16 / 62%)); }
  .hero-media { object-position: 62% center; }
  .hero-content { padding-block: 170px 68px; }
  .hero h1 { font-size: clamp(3.2rem, 16vw, 5rem); }
  .proof-grid { grid-template-columns: 1fr; }
  .proof-grid > div, .proof-grid > div:first-child { min-height: 94px; padding: 20px 0; border: 0; border-bottom: 1px solid rgb(255 255 255 / 16%); }
  .proof-grid strong { font-size: 25px; }
  .split, .footer-grid { grid-template-columns: 1fr; gap: 38px; }
  .section-heading { display: grid; align-items: start; margin-bottom: 36px; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card:first-child { grid-column: auto; }
  .service-card:first-child img { aspect-ratio: 4 / 3; }
  .project-grid { grid-template-columns: 1fr; grid-template-rows: none; }
  .project-grid .project-main { grid-row: auto; }
  .project-grid figure { aspect-ratio: 4 / 3; }
  .page-showcase-grid, .service-detail, .service-row, .about-grid, .contact-layout, .estimate-layout { grid-template-columns: 1fr; }
  .page-showcase { padding-top: 125px; }
  .service-row:nth-child(even) img { order: 0; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .portfolio-grid figure:nth-child(4n + 2), .portfolio-grid figure:nth-child(4n + 3) { margin-top: 0; }
  .contact-layout aside { position: static; }
  .estimate-form { grid-template-columns: 1fr; }
  .form-field.full, .form-submit.full { grid-column: auto; }
  .footer-bottom { display: grid; }
  .post-grid { grid-template-columns: 1fr; }
  .page-hero { padding-top: 145px; }
  .article { padding-top: 145px; }
}
