/*
Theme Name: Cortes Handy
Theme URI: https://buildwithcortes.com/
Author: OpenCode
Description: Sharp, photo-led construction and handyman site for Cortes Handy Man Service.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 8.0
Text Domain: cortes-handy
*/

:root {
  --black: #05070a;
  --navy: #07121f;
  --navy-2: #0b1a2b;
  --steel: #172330;
  --steel-2: #2b3846;
  --silver: #e4ebf1;
  --silver-2: #aebbc7;
  --blue: #0879bd;
  --blue-soft: #0c4167;
  --orange: #f47a18;
  --orange-2: #be5412;
  --paper: #f4efe6;
  --line: rgba(228, 235, 241, 0.16);
  --line-strong: rgba(228, 235, 241, 0.28);
  --max: 1220px;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(rgba(228, 235, 241, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(228, 235, 241, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 12% 0%, rgba(8, 121, 189, 0.22), transparent 28%),
    radial-gradient(circle at 88% 8%, rgba(244, 122, 24, 0.12), transparent 24%),
    var(--black);
  background-size: 42px 42px, 42px 42px, auto, auto, auto;
  color: var(--silver);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.wrap {
  width: min(calc(100% - 34px), var(--max));
  margin: 0 auto;
}

.page-frame {
  overflow: hidden;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 7, 10, 0.9);
  backdrop-filter: blur(14px);
}

.header-grid {
  display: grid;
  grid-template-columns: minmax(250px, 0.5fr) auto minmax(360px, 0.5fr);
  gap: 18px;
  align-items: center;
  min-height: 100px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand img {
  width: 112px;
  height: 86px;
  object-fit: contain;
  filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.45));
}

.brand span {
  display: grid;
  line-height: 1;
}

.brand strong {
  color: #fff;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 1.7rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  white-space: nowrap;
}

.brand small {
  color: var(--orange);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
}

.nav a {
  padding: 13px 13px;
  color: var(--silver-2);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav a:hover,
.nav a:focus-visible {
  background: rgba(8, 121, 189, 0.18);
  color: #fff;
  outline: 1px solid rgba(8, 121, 189, 0.8);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  justify-self: end;
}

.header-contact {
  display: grid;
  gap: 2px;
  text-align: right;
}

.header-contact a {
  color: var(--silver-2);
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.header-contact a:first-child {
  color: #fff;
  font-size: 0.88rem;
  font-weight: 950;
}

.header-contact a:hover,
.header-contact a:focus-visible {
  color: var(--orange);
  outline: none;
}

.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 950;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}

.header-cta {
  border-color: rgba(244, 122, 24, 0.72);
  background: linear-gradient(90deg, var(--orange-2), var(--orange));
  color: #111;
}

.button-primary {
  border-color: rgba(244, 122, 24, 0.78);
  background: linear-gradient(90deg, var(--orange-2), var(--orange));
  color: #111;
}

.button-secondary {
  border-color: rgba(8, 121, 189, 0.82);
  background: rgba(8, 121, 189, 0.12);
  color: #eaf5ff;
}

.button:hover,
.button:focus-visible,
.header-cta:hover,
.header-cta:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
  outline: none;
}

.hero-section {
  position: relative;
  padding: clamp(56px, 7vw, 106px) 0 clamp(46px, 6vw, 84px);
}

.hero-section::before {
  content: "CORTES";
  position: absolute;
  top: 34px;
  right: -2vw;
  z-index: -1;
  color: rgba(228, 235, 241, 0.035);
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(6rem, 18vw, 17rem);
  letter-spacing: -0.05em;
  line-height: 0.75;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(400px, 1fr);
  gap: clamp(34px, 5vw, 70px);
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  color: #acd9f7;
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 30px;
  height: 2px;
  background: var(--orange);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.hero-copy h1,
.section-heading h2,
.compare-feature-copy h3,
.process-copy h2,
.quote-panel h2 {
  color: #fff;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 0.92;
  text-transform: uppercase;
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: none;
}

.hero-copy h1 {
  max-width: 720px;
  margin-bottom: 22px;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
}

.hero-lead {
  max-width: 650px;
  margin-bottom: 28px;
  color: #c2cfda;
  font-size: clamp(1.05rem, 1.6vw, 1.24rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 26px;
}

.capabilities {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
}

.capabilities span {
  padding: 16px 14px;
  border-right: 1px solid var(--line);
  color: var(--silver-2);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.capabilities span:last-child {
  border-right: 0;
}

.hero-proof {
  border: 1px solid var(--line-strong);
  background: rgba(11, 26, 43, 0.72);
  box-shadow: var(--shadow);
}

.proof-rail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line-strong);
}

.hero-shot {
  position: relative;
  margin: 0;
  aspect-ratio: 3 / 4;
  background: #000;
}

.hero-shot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-shot figcaption,
.compare-pair figcaption {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: rgba(5, 7, 10, 0.74);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 950;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-shot-after figcaption,
.compare-pair figure:nth-child(2) figcaption {
  border-color: rgba(244, 122, 24, 0.8);
  background: var(--orange);
  color: #111;
}

.proof-caption {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 18px;
  padding: 18px;
  border-top: 1px solid var(--line);
}

.proof-caption span,
.project-tag,
.card-topline span {
  color: var(--orange);
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.proof-caption strong {
  color: #fff;
  font-size: 1.02rem;
}

.ticker {
  border-block: 1px solid rgba(244, 122, 24, 0.4);
  background: linear-gradient(90deg, var(--orange-2), var(--orange), #f59b42);
  color: #120b06;
  transform: rotate(-0.45deg) scaleX(1.01);
}

.ticker-track {
  display: flex;
  width: max-content;
  min-width: 100%;
  gap: 26px;
  padding: 10px 0;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(1rem, 1.7vw, 1.24rem);
  letter-spacing: 0.13em;
  text-transform: uppercase;
  animation: ticker 26s linear infinite;
}

.ticker-track span::after {
  content: "//";
  margin-left: 26px;
  opacity: 0.46;
}

@keyframes ticker {
  to {
    transform: translateX(-50%);
  }
}

.section {
  padding: clamp(72px, 8vw, 112px) 0;
}

.section-heading {
  max-width: 740px;
  margin-bottom: clamp(28px, 5vw, 48px);
}

.split-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(280px, 0.42fr);
  gap: 32px;
  max-width: none;
  align-items: end;
}

.section-heading h2,
.process-copy h2,
.quote-panel h2 {
  margin-bottom: 16px;
  font-size: clamp(2.2rem, 4.2vw, 3.8rem);
}

.section-heading p,
.compare-feature-copy p,
.process-copy p,
.quote-panel p {
  color: #bbc8d3;
  font-size: 1.04rem;
}

.compare-feature {
  display: grid;
  grid-template-columns: minmax(280px, 0.34fr) minmax(0, 0.66fr);
  gap: 1px;
  margin-bottom: 16px;
  border: 1px solid var(--line-strong);
  background: var(--line-strong);
  box-shadow: var(--shadow);
}

.compare-feature-copy {
  padding: clamp(24px, 4vw, 42px);
  background:
    linear-gradient(135deg, rgba(8, 121, 189, 0.12), transparent 48%),
    var(--navy-2);
}

.compare-feature-copy h3 {
  margin: 16px 0 18px;
  font-size: clamp(1.7rem, 2.8vw, 2.6rem);
}

.compare-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line-strong);
}

.compare-pair figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: #05070a;
}

.compare-pair img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.compare-wide figure {
  aspect-ratio: 16 / 10;
}

@media (min-width: 1081px) {
  .compare-feature {
    align-items: stretch;
  }

  .compare-feature .compare-pair {
    height: 100%;
  }

  .compare-feature .compare-pair figure {
    aspect-ratio: auto;
    height: 100%;
    min-height: 340px;
  }
}

.ratio-landscape figure {
  aspect-ratio: 16 / 10;
}

.ratio-portrait figure {
  aspect-ratio: 4 / 5.5;
}

.ratio-detail figure {
  aspect-ratio: 4 / 3.4;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
}

.project-card {
  grid-column: span 6;
  border: 1px solid var(--line-strong);
  background: rgba(11, 26, 43, 0.72);
}

.project-card-wide {
  grid-column: span 7;
}

.project-card-tall {
  grid-column: span 5;
}

.card-topline {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.card-topline small {
  color: var(--silver-2);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.project-card h3 {
  margin: 0;
  padding: 18px 16px 20px;
  color: #fff;
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  line-height: 1.02;
  text-transform: uppercase;
}

.section-steel {
  border-block: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(8, 121, 189, 0.12) 1px, transparent 1px),
    linear-gradient(rgba(8, 121, 189, 0.12) 1px, transparent 1px),
    linear-gradient(135deg, #07111d, #0d1d2e);
  background-size: 54px 54px, 54px 54px, auto;
}

.services-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.42fr) minmax(0, 0.58fr);
  gap: clamp(30px, 5vw, 64px);
}

.service-list {
  display: grid;
  gap: 1px;
  border: 1px solid var(--line-strong);
  background: var(--line-strong);
}

.service-list article {
  display: grid;
  grid-template-columns: 72px 0.72fr 1fr;
  gap: 18px;
  align-items: center;
  padding: 22px;
  background: rgba(5, 7, 10, 0.62);
}

.service-list span {
  color: rgba(228, 235, 241, 0.28);
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 3.6rem;
  line-height: 0.8;
}

.service-list h3 {
  margin: 0;
  color: #fff;
  font-size: 1.25rem;
  line-height: 1;
  text-transform: uppercase;
}

.service-list p {
  margin: 0;
  color: #bfccd8;
}

.section-process {
  background: var(--paper);
  color: #101820;
}

.section-process .eyebrow,
.section-process .process-copy h2 {
  color: #101820;
}

.section-process .process-copy p {
  color: #4d5964;
}

.process-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.58fr) minmax(320px, 0.42fr);
  gap: 1px;
  border: 1px solid rgba(16, 24, 32, 0.2);
  background: rgba(16, 24, 32, 0.2);
}

.process-image,
.process-copy {
  background: #fffaf1;
}

.process-image img {
  width: 100%;
  height: 100%;
  min-height: 570px;
  object-fit: cover;
}

.process-copy {
  padding: clamp(26px, 5vw, 52px);
}

.steps {
  display: grid;
  gap: 1px;
  margin-top: 30px;
  border: 1px solid rgba(16, 24, 32, 0.16);
  background: rgba(16, 24, 32, 0.16);
}

.steps article {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 18px;
  padding: 18px;
  background: #f4efe6;
}

.steps span {
  color: var(--orange-2);
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 2.2rem;
  line-height: 0.9;
}

.steps h3 {
  margin: 0 0 5px;
  color: #101820;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.steps p {
  margin: 0;
}

.quote-section {
  padding-bottom: clamp(82px, 9vw, 132px);
}

.quote-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  padding: clamp(26px, 5vw, 54px);
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(90deg, rgba(8, 121, 189, 0.16), transparent 48%),
    var(--navy-2);
  box-shadow: var(--shadow);
}

.quote-panel h2 {
  margin-bottom: 14px;
}

.quote-panel p {
  max-width: 720px;
  margin-bottom: 0;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #030506;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 26px 0;
  color: var(--silver-2);
}

.footer-grid strong {
  color: #fff;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  gap: 6px;
}

.footer-contact a {
  color: var(--silver);
  font-weight: 850;
}

.footer-contact a:hover,
.footer-contact a:focus-visible {
  color: var(--orange);
  outline: none;
}

@media (max-width: 1080px) {
  .header-grid {
    grid-template-columns: 1fr auto;
  }

  .nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
  }

  .header-actions {
    justify-self: end;
  }

  .hero-grid,
  .compare-feature,
  .services-layout,
  .process-grid {
    grid-template-columns: 1fr;
  }

  .project-card,
  .project-card-wide,
  .project-card-tall {
    grid-column: span 12;
  }
}

@media (max-width: 760px) {
  .wrap {
    width: min(calc(100% - 26px), var(--max));
  }

  .site-header {
    position: relative;
  }

  .header-grid {
    grid-template-columns: 1fr;
    padding: 12px 0;
  }

  .header-actions {
    align-items: stretch;
    flex-direction: column;
    justify-self: stretch;
  }

  .header-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    text-align: left;
  }

  .brand img {
    width: 88px;
    height: 68px;
  }

  .hero-copy h1 {
    font-size: clamp(2rem, 9.5vw, 3rem);
  }

  .capabilities,
  .proof-rail,
  .compare-pair,
  .split-heading,
  .quote-panel {
    grid-template-columns: 1fr;
  }

  .proof-caption {
    grid-template-columns: 1fr;
  }

  .hero-shot {
    aspect-ratio: 4 / 5;
  }

  .compare-wide figure,
  .ratio-landscape figure,
  .ratio-detail figure {
    aspect-ratio: 4 / 3;
  }

  .ratio-portrait figure {
    aspect-ratio: 4 / 5;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .project-card,
  .project-card-wide,
  .project-card-tall {
    grid-column: auto;
  }

  .service-list article {
    grid-template-columns: 58px 1fr;
  }

  .service-list p {
    grid-column: 2;
  }

  .process-image img {
    min-height: 330px;
  }

  .footer-grid {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-contact {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}
