/*
Theme Name: AMG Landworks & Construction
Theme URI: https://amgdevelopments.com
Author: AMG Landworks & Construction
Description: Custom land development and construction theme for AMG Landworks & Construction. Charcoal, gold and white brand palette with full-bleed hero sections and numbered story panels.
Version: 1.3.0
Requires at least: 5.6
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: amg-landworks
*/

/* ---------- Tokens ---------- */
:root {
  --charcoal: #3b3d42;
  --charcoal-soft: #55575d;
  --gold: #c9a227;
  --gold-soft: #e2c86b;
  --background: #ffffff;
  --foreground: #3b3d42;
  --muted-foreground: #6e7077;
  --border: #e2e2e4;
  --max: 1500px;
  --font-display: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-sans: "Barlow", system-ui, -apple-system, Segoe UI, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.02;
  margin: 0;
}
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap { max-width: var(--max); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
@media (min-width: 768px) { .wrap { padding-left: 40px; padding-right: 40px; } }

.eyebrow {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}
.gold { color: var(--gold); }
.muted { color: var(--muted-foreground); }

.diagonal-mark { position: relative; overflow: hidden; }
.diagonal-mark::before {
  content: "";
  position: absolute;
  width: 60%;
  max-width: 560px;
  aspect-ratio: 1;
  border: 1px solid rgba(201, 162, 39, 0.35);
  transform: rotate(45deg);
  right: -18%;
  top: -22%;
  pointer-events: none;
}

.link-underline { position: relative; display: inline-block; }
.link-underline::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  height: 1px; width: 100%;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s ease;
}
.link-underline:hover::after { transform: scaleX(1); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  border: 0;
  cursor: pointer;
  transition: background-color .3s ease, color .3s ease, border-color .3s ease;
}
.btn-gold { background: var(--gold); color: var(--charcoal); }
.btn-gold:hover { background: var(--gold-soft); }
.btn-outline-gold { border: 1px solid var(--gold); color: var(--gold); background: transparent; }
.btn-outline-gold:hover { background: var(--gold); color: var(--charcoal); }
.btn-dark { background: var(--charcoal); color: #fff; }
.btn-dark:hover { background: var(--gold); color: var(--charcoal); }
.arrow::after { content: "\2192"; font-size: 1rem; letter-spacing: 0; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background-color .5s ease;
  background: rgba(59, 61, 66, 0.96);
}
.site-header.is-overlay:not(.is-scrolled) { background: transparent; }
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  height: 80px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
@media (min-width: 768px) { .header-inner { padding: 0 40px; } }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 44px; width: 44px; }
.brand-name { display: block; font-family: var(--font-display); font-size: 1.25rem; font-weight: 800; letter-spacing: -0.03em; color: #fff; }
.brand-sub { display: block; margin-top: 4px; font-size: 0.55rem; }

.main-nav ul { display: none; align-items: center; gap: 40px; }
@media (min-width: 768px) { .main-nav ul { display: flex; } }
.main-nav a {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: rgba(255,255,255,0.8);
  transition: color .3s ease;
}
.main-nav a:hover { color: #fff; }
.main-nav .current-menu-item > a,
.main-nav .current_page_item > a { color: var(--gold); }

.menu-toggle {
  display: block;
  background: none;
  border: 0;
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}
@media (min-width: 768px) { .menu-toggle { display: none; } }

.mobile-nav { display: none; background: var(--charcoal); border-top: 1px solid rgba(255,255,255,.1); padding: 16px 24px 32px; }
.mobile-nav.is-open { display: block; }
@media (min-width: 768px) { .mobile-nav, .mobile-nav.is-open { display: none; } }
.mobile-nav a { display: block; padding: 12px 0; font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; color: #fff; }

/* ---------- Heroes ---------- */
.home-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 100vh;
  overflow: hidden;
  background: var(--charcoal);
}
.home-hero > img { position: absolute; inset: 0; height: 100%; width: 100%; object-fit: cover; }
.home-hero .scrim { position: absolute; inset: 0; background: linear-gradient(to top, var(--charcoal), rgba(59,61,66,.55) 55%, rgba(59,61,66,.4)); }
.home-hero .wrap { position: relative; width: 100%; padding-bottom: 56px; }
@media (min-width: 768px) { .home-hero .wrap { padding-bottom: 64px; } }
.home-hero h1.hero-display {
  margin: 0;
  color: #fff;
  font-size: 15vw;
  line-height: .86;
  letter-spacing: -.02em;
  text-transform: uppercase;
  font-weight: 800;
}
@media (min-width: 768px) { .home-hero h1.hero-display { font-size: 11vw; } }
.home-hero h1.hero-display span { display: block; }
.hero-foot {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,.15);
  display: flex;
  flex-direction: column;
  gap: 32px;
}
@media (min-width: 768px) { .hero-foot { flex-direction: row; align-items: flex-end; justify-content: space-between; } }
.home-hero p.lede { margin: 0; max-width: 460px; color: rgba(255,255,255,.7); line-height: 1.7; font-size: .95rem; }
@media (min-width: 768px) { .home-hero p.lede { font-size: 1rem; } }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 32px; }
.hero-mark { margin: 0; font-size: .6rem; text-align: right; line-height: 1.8; }
.scroll-hint { font-size: 0.68rem; text-transform: uppercase; letter-spacing: .24em; color: rgba(255,255,255,.5); }

.footer-widgets { display: grid; gap: 40px; margin-top: 56px; }
@media (min-width: 768px) { .footer-widgets { grid-template-columns: repeat(3, 1fr); } }
.footer-widget + .footer-widget { margin-top: 24px; }

.page-hero { background: var(--charcoal); color: #fff; padding: 160px 0 80px; }
@media (min-width: 768px) { .page-hero { padding: 208px 0 112px; } }
.page-hero h1 { margin-top: 24px; max-width: 900px; font-size: 2.25rem; }
.page-hero .lede { margin-top: 32px; max-width: 640px; color: rgba(255,255,255,.65); line-height: 1.7; }
@media (min-width: 768px) { .page-hero h1 { font-size: 3.75rem; } .page-hero .lede { font-size: 1.125rem; } }
@media (min-width: 1024px) { .page-hero h1 { font-size: 4.5rem; } }

/* ---------- Stats ---------- */
.stats { background: var(--charcoal-soft); color: #fff; }
.stats .grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; }
@media (min-width: 1024px) { .stats .grid { grid-template-columns: repeat(4, 1fr); } }
.stat { padding: 48px 24px 48px 0; }
@media (min-width: 768px) { .stat { padding-top: 64px; padding-bottom: 64px; } }
.stat .value { font-family: var(--font-display); font-size: 2.25rem; font-weight: 800; color: var(--gold); }
@media (min-width: 768px) { .stat .value { font-size: 3rem; } }
.stat .label { margin-top: 16px; color: rgba(255,255,255,.55); }

/* ---------- Story panels ---------- */
.story { border-bottom: 1px solid var(--border); }
.story .grid { max-width: var(--max); margin: 0 auto; display: grid; }
@media (min-width: 1024px) { .story .grid { grid-template-columns: 1fr 1fr; } }
.story .media { position: relative; min-height: 320px; overflow: hidden; }
@media (min-width: 1024px) { .story .media { min-height: 640px; } }
.story .media img { position: absolute; inset: 0; height: 100%; width: 100%; object-fit: cover; }
.story .counter {
  position: absolute; bottom: 24px; left: 24px;
  font-family: var(--font-display); font-size: .75rem; font-weight: 700;
  letter-spacing: .3em; color: #fff;
}
.story .body { display: flex; flex-direction: column; justify-content: center; padding: 64px 24px; }
@media (min-width: 768px) { .story .body { padding: 96px 56px; } }
.story h2 { margin-top: 24px; max-width: 36rem; font-size: 1.875rem; }
@media (min-width: 768px) { .story h2 { font-size: 2.25rem; } }
@media (min-width: 1024px) { .story h2 { font-size: 3rem; } }
.story .body p { margin-top: 32px; max-width: 36rem; line-height: 1.7; color: var(--muted-foreground); }
.story-link {
  margin-top: 40px;
  width: fit-content;
  display: inline-flex; align-items: center; gap: 12px;
  border-bottom: 1px solid var(--charcoal);
  padding-bottom: 8px;
  font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .22em;
  transition: color .3s ease, border-color .3s ease;
}
.story-link:hover { color: var(--gold); border-color: var(--gold); }
.story.flip .media { order: 2; }
@media (max-width: 1023px) { .story.flip .media { order: 0; } }

/* ---------- Generic sections ---------- */
.section { padding: 80px 0; }
@media (min-width: 768px) { .section { padding: 112px 0; } }
.section-dark { background: var(--charcoal); color: #fff; }
.section-dark h2 { font-size: 1.875rem; max-width: 48rem; }
@media (min-width: 768px) { .section-dark h2 { font-size: 3rem; } }

.cards { display: grid; gap: 56px 64px; }
@media (min-width: 768px) { .cards.two { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px) { .cards.three { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cards.three { grid-template-columns: repeat(3, 1fr); } }
.card { border-top: 1px solid var(--charcoal); padding-top: 32px; }
.card .num { font-family: var(--font-display); font-size: .75rem; font-weight: 700; letter-spacing: .3em; color: var(--gold); }
.card h2, .card h3 { margin-top: 20px; font-size: 1.5rem; }
@media (min-width: 768px) { .card h2, .card h3 { font-size: 1.75rem; } }
.card p { margin-top: 20px; line-height: 1.7; color: var(--muted-foreground); }

/* split section (about) */
.split { display: grid; max-width: var(--max); margin: 0 auto; border-bottom: 1px solid var(--border); }
@media (min-width: 1024px) { .split { grid-template-columns: 1fr 1fr; } }
.split .media { position: relative; min-height: 340px; }
@media (min-width: 1024px) { .split .media { min-height: 600px; } }
.split .media img { position: absolute; inset: 0; height: 100%; width: 100%; object-fit: cover; }
.split .body { padding: 64px 24px; }
@media (min-width: 768px) { .split .body { padding: 96px 56px; } }
.split h2 { margin-top: 24px; font-size: 1.875rem; }
@media (min-width: 768px) { .split h2 { font-size: 2.25rem; } }
.split .body p { margin-top: 24px; line-height: 1.7; color: var(--muted-foreground); }

/* projects */
.projects { display: grid; gap: 64px 40px; }
@media (min-width: 768px) { .projects { grid-template-columns: repeat(2, 1fr); } }
.project .frame { position: relative; aspect-ratio: 4/3; overflow: hidden; background: #f2f2f3; }
.project .frame img { position: absolute; inset: 0; height: 100%; width: 100%; object-fit: cover; transition: transform .7s ease; }
.project:hover .frame img { transform: scale(1.05); }
.project .scope { margin-top: 24px; }
.project h2 { margin-top: 12px; font-size: 1.5rem; }
@media (min-width: 768px) { .project h2 { font-size: 1.875rem; } }
.project p.detail { margin-top: 16px; max-width: 32rem; line-height: 1.7; color: var(--muted-foreground); }

/* contact */
.contact-grid { display: grid; gap: 64px; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 1fr 1.2fr; } }
.contact-item { display: flex; gap: 16px; margin-bottom: 40px; }
.contact-item .dot { margin-top: 8px; width: 8px; height: 8px; background: var(--gold); flex: none; }
.contact-item .value { margin-top: 8px; font-size: 1.125rem; line-height: 1.35; }
.field {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--border);
  background: transparent;
  padding: 12px 0;
  font-family: var(--font-sans);
  font-size: .875rem;
  color: var(--foreground);
  outline: none;
  transition: border-color .3s ease;
}
.field:focus { border-color: var(--gold); }
.field::placeholder { color: var(--muted-foreground); }
.field-grid { display: grid; gap: 32px; }
@media (min-width: 768px) { .field-grid { grid-template-columns: repeat(2, 1fr); } }
.contact-form > * + * { margin-top: 32px; }
.form-notice { margin-top: 24px; font-size: .875rem; color: var(--gold); }

/* ---------- Footer ---------- */
.site-footer { background: var(--charcoal); color: #fff; }
.site-footer .wrap { padding-top: 80px; padding-bottom: 80px; }
@media (min-width: 768px) { .site-footer .wrap { padding-top: 112px; padding-bottom: 112px; } }
.footer-grid { display: grid; gap: 48px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; } }
.footer-logo { height: 80px; width: 80px; }
.footer-mark { margin-top: 20px; font-family: var(--font-display); font-size: 2.25rem; font-weight: 800; line-height: 1; }
.footer-blurb { margin-top: 32px; max-width: 24rem; font-size: .875rem; line-height: 1.7; color: rgba(255,255,255,.6); }
.footer-col .eyebrow { color: rgba(255,255,255,.4); }
.footer-col ul { margin-top: 24px; font-size: .875rem; color: rgba(255,255,255,.75); }
.footer-col li + li { margin-top: 12px; }
.footer-bottom {
  margin-top: 80px; padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex; flex-direction: column; gap: 16px;
  font-size: .68rem; text-transform: uppercase; letter-spacing: .2em;
  color: rgba(255,255,255,.4);
}
@media (min-width: 768px) { .footer-bottom { flex-direction: row; align-items: center; justify-content: space-between; } }

/* ---------- WP defaults ---------- */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); }
.entry-content { padding-top: 40px; }
.entry-content p { margin-bottom: 20px; line-height: 1.7; color: var(--muted-foreground); }
.entry-content h2 { margin-top: 40px; font-size: 1.875rem; }
.alignwide, .alignfull { max-width: 100%; }
