/*
Theme Name: Willis Custom Woodworks
Theme URI: https://example.com/
Author: Willis Custom Woodworks
Description: A warm, lightweight, responsive classic WordPress theme for a small woodworking business.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: willis-custom-woodworks
*/

:root {
  --background: #f7f2e9;
  --surface: #fffdf9;
  --surface-alt: #eee5d8;
  --text: #292720;
  --text-soft: #685f55;
  --accent: #435337;
  --accent-dark: #2f3c27;
  --wood: #7a5940;
  --border: #d9cfc1;
  --footer: #27251f;
  --heading-font: Georgia, "Times New Roman", serif;
  --body-font: Arial, Helvetica, sans-serif;
  --page-width: 1200px;
  --transition: 220ms ease;
}

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

html {
  scroll-behavior: smooth;
}

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

body.admin-bar .site-header {
  top: 32px;
}

img {
  display: block;
  width: 100%;
  height: auto;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

.container {
  width: min(calc(100% - 2rem), var(--page-width));
  margin-inline: auto;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

.skip-link:focus {
  width: auto;
  height: auto;
  clip: auto;
  top: 10px;
  left: 10px;
  z-index: 99999;
  padding: .75rem 1rem;
  background: #fff;
  color: #111;
}

:focus-visible {
  outline: 3px solid rgba(67, 83, 55, .4);
  outline-offset: 4px;
}

/* Header */

.site-header {
  position: relative;
  z-index: 100;
  background: rgba(247, 242, 233, .97);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  min-height: 92px;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  line-height: 1.1;
}

.custom-logo {
  width: auto;
  max-height: 65px;
}

.site-name {
  font-family: var(--heading-font);
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 500;
}

.site-tagline {
  margin-top: .4rem;
  color: var(--wood);
  font-family: var(--heading-font);
  font-size: .82rem;
  font-style: italic;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  position: relative;
  padding-block: .55rem;
  color: var(--text-soft);
  font-family: var(--heading-font);
  font-size: 1rem;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: var(--accent);
  content: "";
  transform: scaleX(0);
  transition: transform var(--transition);
}

.site-nav a:hover,
.site-nav .current-menu-item > a {
  color: var(--text);
}

.site-nav a:hover::after,
.site-nav .current-menu-item > a::after {
  transform: scaleX(1);
}

/* Hero */

.hero {
  position: relative;
  min-height: clamp(560px, 69vw, 730px);
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  background: #3f392f center / cover no-repeat;
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(25, 22, 18, .82) 0%, rgba(25, 22, 18, .55) 47%, rgba(25, 22, 18, .12) 100%);
  content: "";
}

.hero-content {
  max-width: 760px;
  padding-block: 6rem;
  color: #fff;
}

.hero-eyebrow {
  margin: 0 0 .9rem;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 700px;
  margin: 0 0 1.35rem;
  color: #fff;
  font-family: var(--heading-font);
  font-size: clamp(3rem, 7vw, 5.7rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -.035em;
}

.hero-copy {
  max-width: 620px;
  margin: 0;
  color: rgba(255,255,255,.9);
  font-family: var(--heading-font);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

/* Projects */

.projects {
  padding: 5.8rem 0 6.2rem;
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 2.8rem;
  text-align: center;
}

.section-eyebrow {
  margin: 0 0 .5rem;
  color: var(--wood);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.section-heading h2 {
  margin: 0;
  font-family: var(--heading-font);
  font-size: clamp(2.25rem, 4vw, 3.55rem);
  font-weight: 500;
  line-height: 1.15;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

.project-card {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 5px 18px rgba(39, 33, 26, .06);
  transition: box-shadow var(--transition), transform var(--transition);
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(39, 33, 26, .11);
}

.project-image {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #d5c3aa;
}

.project-image img {
  height: 100%;
  object-fit: cover;
  transition: transform 520ms ease, filter 520ms ease;
}

.project-card:hover .project-image img {
  transform: scale(1.035);
  filter: brightness(1.03);
}

.project-info {
  padding: 1.25rem 1rem 1.35rem;
  text-align: center;
}

.project-info h3 {
  margin: 0;
  font-family: var(--heading-font);
  font-size: 1.35rem;
  font-weight: 500;
}

.projects-action {
  display: flex;
  justify-content: center;
  margin-top: 2.75rem;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: .8rem 1.8rem;
  background: var(--accent);
  border: 1px solid var(--accent);
  color: #fff;
  cursor: pointer;
  font-size: .92rem;
  font-weight: 700;
  transition: background var(--transition), transform var(--transition);
}

.button:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

/* Information blocks */

.information {
  padding: 5rem 0;
  background: var(--surface-alt);
  border-top: 1px solid var(--border);
}

.information-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3.25rem;
}

.information-block {
  text-align: center;
}

.information-icon {
  display: block;
  margin-bottom: .7rem;
  color: var(--wood);
  font-family: var(--heading-font);
  font-size: 1.65rem;
}

.information-block h2 {
  margin: 0 0 1rem;
  font-family: var(--heading-font);
  font-size: 1.8rem;
  font-weight: 500;
}

.information-block h2::after {
  display: block;
  width: 45px;
  height: 1px;
  margin: .75rem auto 0;
  background: var(--accent);
  content: "";
}

.information-block p {
  margin: 0;
  color: var(--text-soft);
}

.information-block a {
  color: var(--accent);
  font-weight: 700;
}

/* Standard pages */

.page-shell {
  padding: 5rem 0 6rem;
}

.page-content {
  max-width: 820px;
  margin-inline: auto;
}

.entry-title {
  margin: 0 0 1.5rem;
  font-family: var(--heading-font);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 500;
}

.entry-content a {
  color: var(--accent);
  text-decoration: underline;
}

.entry-content img {
  margin-block: 2rem;
}

/* Footer */

.site-footer {
  padding: 1.8rem 0;
  background: var(--footer);
  color: rgba(255,255,255,.76);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .8rem;
  text-align: center;
  font-family: var(--heading-font);
  font-size: .9rem;
}

.footer-inner p {
  margin: 0;
}

/* Responsive */

.menu-toggle {
  display: none;
}

@media (max-width: 950px) {
  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .information-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .information-block {
    max-width: 660px;
    margin-inline: auto;
  }
}

@media (max-width: 720px) {
  body.admin-bar .site-header {
    top: 46px;
  }

  .header-inner {
    min-height: 78px;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .55rem .8rem;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
    cursor: pointer;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    padding: 1rem;
    background: var(--background);
    border-bottom: 1px solid var(--border);
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    align-items: flex-start;
    flex-direction: column;
    gap: .35rem;
  }

  .site-nav a {
    display: block;
    width: 100%;
    padding: .65rem 0;
  }

  .hero {
    min-height: 570px;
    background-position: 58% center;
  }

  .hero::before {
    background: rgba(25,22,18,.63);
  }

  .hero-content {
    padding-block: 4.7rem;
  }
}

@media (max-width: 620px) {
  .project-grid {
    grid-template-columns: 1fr;
  }

  .project-image {
    aspect-ratio: 4 / 3;
  }

  .projects,
  .information,
  .page-shell {
    padding-block: 4rem;
  }
}

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


/* =========================================================
   Version 2 refinements
   ========================================================= */

.site-header {
  position: sticky;
  top: 0;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.header-inner {
  min-height: 88px;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: .85rem;
  min-width: 0;
}

.brand-mark {
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.brand-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.brand-copy .site-name {
  white-space: nowrap;
}

.site-tagline {
  margin-top: .28rem;
  font-size: .76rem;
}

.site-nav a {
  font-size: .98rem;
}

.hero-content {
  padding-block: 6.6rem;
}

.hero h1 {
  font-size: clamp(3.2rem, 7.4vw, 6.2rem);
}

.project-card {
  border-radius: 2px;
}

.project-info {
  padding-block: 1.15rem 1.25rem;
}

.information-grid {
  align-items: start;
}

.information-block {
  padding: 0 1rem;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 700ms ease,
    transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.project-card.reveal:nth-child(2) {
  transition-delay: 80ms;
}

.project-card.reveal:nth-child(3) {
  transition-delay: 160ms;
}

.project-card.reveal:nth-child(4) {
  transition-delay: 240ms;
}

.footer-branding {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
}

.footer-branding img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: .9;
}

@media (max-width: 720px) {
  .brand-mark {
    width: 42px;
    height: 42px;
  }

  .brand-copy .site-name {
    font-size: 1.12rem;
  }

  .site-tagline {
    display: none;
  }

  .header-inner {
    min-height: 72px;
  }

  .menu-toggle {
    border-radius: 2px;
  }

  .hero-content {
    padding-block: 5rem;
  }
}

@media (max-width: 420px) {
  .brand-copy .site-name {
    max-width: 185px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }
}
