/* Precision Millwork & General Contracting — warm craft aesthetic */

:root {
  --charcoal: #1c1a17;
  --charcoal-soft: #2a2622;
  --oak: #8b6914;
  --oak-light: #a67c1a;
  --oak-deep: #6b5010;
  --cream: #f7f1e6;
  --cream-dark: #ebe3d4;
  --forest: #2d4a3e;
  --forest-light: #3d6354;
  --ink: #1c1a17;
  --muted: #5c564c;
  --white: #fffcf7;
  --shadow: 0 12px 40px rgba(28, 26, 23, 0.12);
  --radius: 10px;
  --header-h: 4.6rem;
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Source Sans 3", system-ui, -apple-system, sans-serif;
  --max: 70rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.75rem);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--forest);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color 0.2s var(--ease);
}

a:hover {
  color: var(--oak-deep);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--oak);
  outline-offset: 3px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--charcoal);
}

h1 { font-size: clamp(2.4rem, 6vw, 3.75rem); margin: 0 0 1rem; }
h2 { font-size: clamp(1.85rem, 4vw, 2.6rem); margin: 0 0 0.75rem; }
h3 { font-size: 1.35rem; margin: 0 0 0.5rem; }

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

ul { margin: 0; padding: 0; list-style: none; }

address { font-style: normal; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100%;
  z-index: 1000;
  background: var(--oak);
  color: var(--white);
  padding: 0.6rem 1rem;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

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

.section {
  padding: clamp(3.5rem, 8vw, 5.5rem) 0;
}

.section-header {
  max-width: 38rem;
  margin-bottom: 2.5rem;
}

.section-header-center {
  margin-inline: auto;
  text-align: center;
}

.section-intro {
  color: var(--muted);
  font-size: 1.1rem;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--oak);
  margin: 0 0 0.65rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.btn:hover { transform: translateY(-1px); }
.btn-icon { flex-shrink: 0; }

.btn-primary {
  background: var(--oak);
  color: var(--white);
  border-color: var(--oak);
}

.btn-primary:hover {
  background: var(--oak-deep);
  border-color: var(--oak-deep);
  color: var(--white);
}

.btn-secondary {
  background: transparent;
  color: var(--cream);
  border-color: rgba(247, 241, 230, 0.45);
}

.btn-secondary:hover {
  background: rgba(247, 241, 230, 0.1);
  border-color: var(--cream);
  color: var(--cream);
}

.contact .btn-secondary,
.contact-ctas .btn-secondary {
  color: var(--charcoal);
  border-color: rgba(28, 26, 23, 0.25);
}

.contact .btn-secondary:hover,
.contact-ctas .btn-secondary:hover {
  background: var(--cream-dark);
  border-color: var(--charcoal);
  color: var(--charcoal);
}

.btn-nav {
  background: var(--forest);
  color: var(--white);
  border-color: var(--forest);
  padding: 0.55rem 1.1rem;
  font-size: 0.875rem;
}

.btn-nav:hover {
  background: var(--forest-light);
  border-color: var(--forest-light);
  color: var(--white);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 241, 230, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(139, 105, 20, 0.15);
}

.header-inner {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--charcoal);
  min-width: 0;
  flex-shrink: 0;
}

.logo:hover { color: var(--charcoal); }

.logo-img {
  display: block;
  height: 3.15rem;
  width: auto;
  max-height: calc(var(--header-h) - 0.9rem);
  border-radius: 6px;
  object-fit: cover;
  object-position: center 46%;
  box-shadow: 0 1px 2px rgba(28, 26, 23, 0.14);
  border: 1px solid rgba(107, 80, 16, 0.18);
}

@media (min-width: 900px) {
  .logo-img {
    height: 3.55rem;
  }
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0.55rem;
  background: transparent;
  border: 1px solid rgba(28, 26, 23, 0.15);
  border-radius: 8px;
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--charcoal);
  border-radius: 1px;
  transition: transform 0.25s var(--ease), opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--cream);
  border-bottom: 1px solid rgba(139, 105, 20, 0.15);
  padding: 1rem 1.25rem 1.35rem;
  box-shadow: var(--shadow);
}

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

.site-nav ul {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin-bottom: 1rem;
}

.site-nav a {
  display: block;
  padding: 0.65rem 0.5rem;
  color: var(--charcoal);
  text-decoration: none;
  font-weight: 500;
  border-radius: 6px;
}

.site-nav a:hover {
  background: var(--cream-dark);
  color: var(--oak-deep);
}

.site-nav .btn-nav {
  width: 100%;
}

@media (min-width: 900px) {
  .nav-toggle { display: none; }

  .site-nav {
    display: flex;
    position: static;
    align-items: center;
    gap: 0.35rem 1.25rem;
    background: transparent;
    border: 0;
    padding: 0;
    box-shadow: none;
  }

  .site-nav ul {
    flex-direction: row;
    align-items: center;
    gap: 0.15rem;
    margin: 0;
  }

  .site-nav a {
    padding: 0.4rem 0.55rem;
    font-size: 0.92rem;
  }

  .site-nav a:hover { background: transparent; }

  .site-nav .btn-nav { width: auto; }
}

/* Hero */
.hero {
  position: relative;
  min-height: min(88vh, 42rem);
  display: flex;
  align-items: center;
  padding: clamp(3rem, 10vw, 6rem) 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(139, 105, 20, 0.22), transparent 55%),
    radial-gradient(ellipse 50% 40% at 15% 80%, rgba(45, 74, 62, 0.35), transparent 50%),
    linear-gradient(160deg, #1a1815 0%, #2a2420 40%, #1e2a24 100%);
  color: var(--cream);
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      -12deg,
      transparent,
      transparent 8px,
      rgba(255, 252, 247, 0.015) 8px,
      rgba(255, 252, 247, 0.015) 9px
    );
  pointer-events: none;
}

.hero-content {
  position: relative;
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  max-width: 38rem;
}

.hero .eyebrow {
  color: var(--oak-light);
}

.hero h1 {
  color: var(--white);
}

.hero-lead {
  font-size: 1.125rem;
  color: rgba(247, 241, 230, 0.88);
  margin-bottom: 1.75rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Services */
.services {
  background: var(--cream);
}

.service-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 600px) {
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .service-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  background: var(--white);
  border: 1px solid rgba(139, 105, 20, 0.12);
  border-radius: var(--radius);
  padding: 1.5rem 1.35rem 1.6rem;
  box-shadow: 0 4px 20px rgba(28, 26, 23, 0.04);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.service-card:hover {
  border-color: rgba(139, 105, 20, 0.35);
  box-shadow: var(--shadow);
}

.service-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1rem;
  border-radius: 8px;
  background: linear-gradient(145deg, var(--cream-dark), var(--cream));
  color: var(--oak-deep);
}

.service-card p {
  color: var(--muted);
  font-size: 0.98rem;
  margin: 0;
}

/* About */
.about {
  background: var(--cream-dark);
}

.about-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 800px) {
  .about-grid {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 3.5rem;
  }
}

.about-panel {
  position: relative;
  aspect-ratio: 4 / 5;
  max-height: 28rem;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--charcoal);
  box-shadow: var(--shadow);
}

.wood-grain {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, transparent 40%, rgba(166, 124, 26, 0.15) 50%, transparent 60%),
    repeating-linear-gradient(
      90deg,
      #3d2e18 0px,
      #5a4420 2px,
      #8b6914 4px,
      #6b5010 8px,
      #4a3818 12px,
      #2a2214 16px,
      #3d2e18 20px
    );
  opacity: 0.95;
}

.about-panel-label {
  position: absolute;
  left: 1.25rem;
  bottom: 1.25rem;
  margin: 0;
  padding: 0.45rem 0.85rem;
  background: rgba(28, 26, 23, 0.75);
  color: var(--cream);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: 4px;
  backdrop-filter: blur(6px);
}

.about-copy p {
  color: var(--muted);
}

.about-highlights {
  margin: 1.5rem 0;
  display: grid;
  gap: 0.65rem;
}

.about-highlights li {
  position: relative;
  padding-left: 1.5rem;
  font-weight: 500;
  color: var(--charcoal);
}

.about-highlights li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--forest);
}

.about-social {
  font-size: 0.98rem;
}

/* Service area */
.area {
  background:
    linear-gradient(180deg, var(--forest) 0%, #243d33 100%);
  color: var(--cream);
}

.area h2 { color: var(--white); }
.area .eyebrow { color: var(--oak-light); }
.area .section-intro { color: rgba(247, 241, 230, 0.85); }

.area-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.area-list li {
  padding: 0.65rem 1.25rem;
  background: rgba(255, 252, 247, 0.08);
  border: 1px solid rgba(247, 241, 230, 0.2);
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--white);
}

.area-note {
  text-align: center;
  color: rgba(247, 241, 230, 0.75);
  margin: 0;
}

.area-note a {
  color: var(--oak-light);
  font-weight: 600;
}

.area-note a:hover { color: var(--cream); }

/* Gallery */
.gallery {
  background: var(--cream);
}

.gallery-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 560px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.gallery-item figure {
  margin: 0;
}

.gallery-placeholder {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(139, 105, 20, 0.12);
}

.gallery-item-a .gallery-placeholder {
  background:
    linear-gradient(145deg, rgba(45, 74, 62, 0.35), transparent 60%),
    linear-gradient(30deg, #3d2e18, #8b6914 45%, #ebe3d4);
}

.gallery-item-b .gallery-placeholder {
  background:
    linear-gradient(160deg, rgba(28, 26, 23, 0.2), transparent),
    repeating-linear-gradient(90deg, #6b5010 0 3px, #a67c1a 3px 6px, #4a3818 6px 10px);
}

.gallery-item-c .gallery-placeholder {
  background:
    radial-gradient(circle at 30% 40%, rgba(247, 241, 230, 0.5), transparent 45%),
    linear-gradient(135deg, #2d4a3e, #1c1a17 70%);
}

.gallery-item-d .gallery-placeholder {
  background:
    linear-gradient(180deg, #2a2622 0%, #3d2e18 40%, #8b6914 100%);
}

.gallery-item-e .gallery-placeholder {
  background:
    linear-gradient(45deg, #ebe3d4 25%, transparent 25%),
    linear-gradient(-45deg, #ebe3d4 25%, transparent 25%),
    linear-gradient(135deg, #5c564c, #2d4a3e);
  background-size: 24px 24px, 24px 24px, auto;
}

.gallery-item-f .gallery-placeholder {
  background:
    linear-gradient(120deg, #1c1a17, #2d4a3e 50%, #8b6914);
}

.gallery-item figcaption {
  margin-top: 0.55rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
}

/* Contact */
.contact {
  background: var(--white);
  border-top: 1px solid rgba(139, 105, 20, 0.1);
}

.contact-grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 800px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
  }
}

.contact-intro p {
  color: var(--muted);
  max-width: 28rem;
}

.contact-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.contact-card {
  background: var(--cream);
  border: 1px solid rgba(139, 105, 20, 0.15);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  box-shadow: 0 4px 24px rgba(28, 26, 23, 0.05);
}

.contact-details {
  margin: 0;
  display: grid;
  gap: 1.25rem;
}

.contact-details dt {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--oak);
  margin-bottom: 0.25rem;
}

.contact-details dd {
  margin: 0;
  font-weight: 500;
  color: var(--charcoal);
}

.contact-details a {
  color: var(--charcoal);
  text-decoration: none;
  font-weight: 600;
}

.contact-details a:hover {
  color: var(--oak-deep);
  text-decoration: underline;
}

.social-links {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}


/* Quote form */
.quote-form {
  margin-top: 2rem;
  display: grid;
  gap: 1rem;
  max-width: 28rem;
}

.quote-form .form-row {
  display: grid;
  gap: 0.35rem;
}

.quote-form label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--oak-deep);
}

.quote-form .req {
  color: var(--oak);
}

.quote-form .optional {
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--muted);
  font-size: 0.85em;
}

.quote-form input,
.quote-form select,
.quote-form textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid rgba(139, 105, 20, 0.28);
  border-radius: 8px;
  background: var(--cream);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.4;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.quote-form input::placeholder,
.quote-form textarea::placeholder {
  color: rgba(92, 86, 76, 0.65);
}

.quote-form input:hover,
.quote-form select:hover,
.quote-form textarea:hover {
  border-color: rgba(139, 105, 20, 0.5);
}

.quote-form input:focus,
.quote-form select:focus,
.quote-form textarea:focus {
  outline: none;
  border-color: var(--oak);
  box-shadow: 0 0 0 3px rgba(139, 105, 20, 0.18);
  background: var(--white);
}

.quote-form input.is-invalid,
.quote-form textarea.is-invalid {
  border-color: #9a3b2f;
  box-shadow: 0 0 0 3px rgba(154, 59, 47, 0.15);
}

.quote-form textarea {
  resize: vertical;
  min-height: 7.5rem;
}

.quote-form select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--oak-deep) 50%),
    linear-gradient(135deg, var(--oak-deep) 50%, transparent 50%);
  background-position:
    calc(100% - 1.15rem) calc(50% - 0.15rem),
    calc(100% - 0.75rem) calc(50% - 0.15rem);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 2.25rem;
}

.quote-form .honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.quote-form .btn-submit {
  justify-self: start;
  margin-top: 0.25rem;
  border: 2px solid var(--oak);
}

.form-note {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.form-error {
  margin: 0;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  background: rgba(154, 59, 47, 0.08);
  border: 1px solid rgba(154, 59, 47, 0.25);
  color: #7a2e24;
  font-size: 0.92rem;
  font-weight: 500;
}

.quote-success {
  margin-top: 1.75rem;
  max-width: 28rem;
  padding: 1.15rem 1.25rem;
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(45, 74, 62, 0.08), rgba(139, 105, 20, 0.08));
  border: 1px solid rgba(45, 74, 62, 0.25);
}

.contact-intro .quote-success-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--forest);
  margin: 0 0 0.4rem;
}

.quote-success p {
  color: var(--muted);
}

.quote-form[hidden],
.quote-success[hidden] {
  display: none !important;
}

@media (max-width: 480px) {
  .quote-form .btn-submit {
    width: 100%;
    justify-self: stretch;
  }
}

/* Footer */
.site-footer {
  background: var(--charcoal);
  color: rgba(247, 241, 230, 0.75);
  padding: 2.5rem 0 2rem;
}

.footer-inner {
  display: grid;
  gap: 1.25rem;
  text-align: center;
}

.footer-logo {
  display: block;
  width: 4.75rem;
  height: auto;
  margin: 0 auto 0.85rem;
  border-radius: 8px;
  border: 1px solid rgba(247, 241, 230, 0.12);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.footer-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--white);
  margin: 0 0 0.25rem;
}

.footer-tag {
  margin: 0;
  font-size: 0.9rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.25rem;
}

.footer-nav a {
  color: rgba(247, 241, 230, 0.8);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
}

.footer-nav a:hover {
  color: var(--oak-light);
}

.footer-domain {
  margin: 0;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--oak-light);
  font-size: 0.9rem;
}

.footer-copy {
  margin: 0;
  font-size: 0.8rem;
  color: rgba(247, 241, 230, 0.5);
}

@media (min-width: 700px) {
  .footer-inner {
    grid-template-columns: 1fr auto;
    text-align: left;
    align-items: start;
  }

  .footer-logo {
    margin-inline: 0;
  }

  .footer-nav {
    justify-content: flex-end;
  }

  .footer-domain,
  .footer-copy {
    grid-column: 1 / -1;
  }

  .footer-domain { text-align: left; }
  .footer-copy { text-align: left; }
}

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