/* =========================
   Stone & Beam Remodeling
   QatanaLabs Portfolio Concept
   ========================= */

:root {
  --bg: #f4f0e9;
  --surface: #fffdf9;
  --text: #20221f;
  --muted: #6f716b;
  --line: #d8d1c6;
  --accent: #9b8062;
  --dark: #242521;
  --max-width: 1180px;
  --radius: 4px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "DM Sans", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

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

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

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

.container {
  width: min(calc(100% - 40px), var(--max-width));
  margin-inline: auto;
}

.section {
  padding: 110px 0;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 18px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
}

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

h1,
h2 {
  font-family: "Playfair Display", serif;
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(3.1rem, 7vw, 6.7rem);
  max-width: 850px;
  margin-bottom: 28px;
}

h2 {
  font-size: clamp(2.5rem, 4.5vw, 4.5rem);
  margin-bottom: 24px;
}

h3 {
  font-size: 1.25rem;
  line-height: 1.3;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border: 1px solid var(--dark);
  border-radius: var(--radius);
  background: var(--dark);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
  background: #11120f;
}

.btn-small {
  min-height: 42px;
  padding: 0 18px;
  font-size: 0.9rem;
}

.text-link {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  font-weight: 600;
}

.text-link span {
  transition: transform 0.2s ease;
}

.text-link:hover span {
  transform: translateX(4px);
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(244, 240, 233, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(32, 34, 31, 0.08);
}

.nav-wrap {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
}

.brand-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid var(--dark);
  font-family: "Playfair Display", serif;
  font-size: 0.85rem;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-copy strong {
  font-size: 1rem;
}

.brand-copy small {
  margin-top: 4px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.56rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.92rem;
}

.main-nav > a:not(.btn) {
  position: relative;
}

.main-nav > a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 100%;
  height: 1px;
  background: var(--dark);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.main-nav > a:not(.btn):hover::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--dark);
  margin: 5px auto;
}

/* Hero */

.hero {
  padding: 72px 0 80px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 64px;
  align-items: center;
}

.hero-copy {
  padding: 30px 0;
}

.hero-lead {
  max-width: 620px;
  font-size: 1.16rem;
  color: var(--muted);
  margin-bottom: 34px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
}

.hero-image {
  position: relative;
  min-height: 690px;
}

.hero-image img {
  width: 100%;
  height: 690px;
  object-fit: cover;
}

.hero-card {
  position: absolute;
  left: -45px;
  bottom: 34px;
  width: 235px;
  padding: 24px;
  background: var(--surface);
  box-shadow: 0 18px 60px rgba(0,0,0,0.12);
}

.hero-card span {
  display: block;
  margin-bottom: 8px;
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.hero-card strong {
  font-family: "Playfair Display", serif;
  font-size: 1.4rem;
  line-height: 1.2;
}

/* Trust */

.trust-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.28);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.trust-grid > div {
  padding: 30px 24px;
  text-align: center;
  border-right: 1px solid var(--line);
}

.trust-grid > div:last-child {
  border-right: 0;
}

.trust-grid strong,
.trust-grid span {
  display: block;
}

.trust-grid strong {
  font-family: "Playfair Display", serif;
  font-size: 1.7rem;
  font-weight: 500;
}

.trust-grid span {
  color: var(--muted);
  font-size: 0.84rem;
}

/* Sections */

.section-heading {
  max-width: 780px;
  margin-bottom: 56px;
}

.section-heading p {
  color: var(--muted);
  max-width: 680px;
}

.split-heading {
  max-width: none;
  display: flex;
  justify-content: space-between;
  gap: 40px;
  align-items: end;
}

.split-heading > div {
  max-width: 650px;
}

.split-heading > p {
  max-width: 370px;
  margin-bottom: 28px;
}

/* Services */

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}

.service-card {
  padding: 34px 28px 20px;
  min-height: 330px;
  border-right: 1px solid var(--line);
}

.service-card:last-child {
  border-right: 0;
}

.service-number {
  display: block;
  margin-bottom: 80px;
  color: var(--accent);
  font-size: 0.78rem;
}

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

/* Projects */

.projects-section {
  background: var(--dark);
  color: #fff;
}

.projects-section .eyebrow {
  color: #c4a786;
}

.projects-section .section-heading p {
  color: #b8bbb3;
}

.projects-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.8fr;
  grid-template-rows: repeat(2, 340px);
  gap: 18px;
}

.project {
  position: relative;
  overflow: hidden;
}

.project-large {
  grid-row: 1 / 3;
}

.project img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.project::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.72), rgba(0,0,0,0.05) 65%);
}

.project:hover img {
  transform: scale(1.035);
}

.project-overlay {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 24px;
  z-index: 2;
}

.project-overlay span {
  display: block;
  margin-bottom: 7px;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: #ddd3c7;
}

.project-overlay h3 {
  margin-bottom: 0;
  font-family: "Playfair Display", serif;
  font-size: 1.8rem;
  font-weight: 500;
}

/* About */

.about-section {
  background: var(--surface);
}

.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: 78px;
}

.about-image img {
  height: 720px;
  object-fit: cover;
}

.about-copy > p {
  max-width: 600px;
  font-size: 1.05rem;
  color: var(--muted);
}

.value-list {
  margin-top: 44px;
  border-top: 1px solid var(--line);
}

.value-list > div {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 24px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.value-list strong {
  font-size: 0.95rem;
}

.value-list span {
  color: var(--muted);
  font-size: 0.92rem;
}

/* Process */

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.process-step {
  min-height: 280px;
  padding: 30px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.18);
}

.process-step > span {
  display: block;
  margin-bottom: 70px;
  color: var(--accent);
  font-size: 0.8rem;
}

.process-step p {
  color: var(--muted);
}

/* Testimonial */

.testimonial-section {
  padding: 100px 0;
  background: #d8c6af;
}

.testimonial {
  max-width: 920px;
  text-align: center;
}

.quote-mark {
  display: block;
  height: 70px;
  font-family: "Playfair Display", serif;
  font-size: 6rem;
  line-height: 1;
}

blockquote {
  margin: 0;
  font-family: "Playfair Display", serif;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  line-height: 1.25;
}

.testimonial p {
  margin: 30px 0 0;
  font-size: 0.84rem;
}

/* Contact */

.contact-section {
  background: var(--surface);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 90px;
  align-items: start;
}

.contact-copy {
  position: sticky;
  top: 130px;
}

.contact-copy p {
  max-width: 500px;
  color: var(--muted);
}

.contact-form {
  display: grid;
  gap: 20px;
  padding: 36px;
  background: var(--bg);
  border: 1px solid var(--line);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

label {
  display: grid;
  gap: 8px;
  font-size: 0.86rem;
  font-weight: 600;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 13px 14px;
  color: var(--text);
  background: #fff;
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
}

textarea {
  resize: vertical;
}

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

/* Footer */

.site-footer {
  padding: 72px 0 26px;
  background: #171815;
  color: #f6f0e8;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 60px;
}

.footer-brand {
  margin-bottom: 24px;
}

.footer-brand .brand-mark {
  border-color: #f6f0e8;
}

.footer-grid p {
  max-width: 420px;
  color: #aaa99f;
}

.footer-grid > div:not(:first-child) {
  display: grid;
  align-content: start;
  gap: 10px;
}

.footer-grid > div:not(:first-child) strong {
  margin-bottom: 8px;
}

.footer-grid > div:not(:first-child) a,
.footer-grid > div:not(:first-child) span {
  color: #aaa99f;
  font-size: 0.9rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 24px;
  border-top: 1px solid #34352f;
  color: #83847c;
  font-size: 0.8rem;
}

/* Scroll animation */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* Responsive */

@media (max-width: 980px) {
  .main-nav {
    position: absolute;
    top: 84px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 16px 20px 24px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a {
    padding: 12px 0;
  }

  .main-nav .btn {
    margin-top: 8px;
  }

  .menu-toggle {
    display: block;
  }

  .hero-grid,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 35px;
  }

  .hero-image {
    min-height: auto;
  }

  .hero-image img {
    height: 590px;
  }

  .hero-card {
    left: 24px;
  }

  .trust-grid,
  .services-grid,
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .trust-grid > div:nth-child(2) {
    border-right: 0;
  }

  .trust-grid > div:nth-child(-n+2) {
    border-bottom: 1px solid var(--line);
  }

  .services-grid {
    border-top: 0;
  }

  .service-card {
    border: 1px solid var(--line);
  }

  .projects-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 520px 320px;
  }

  .project-large {
    grid-column: 1 / 3;
    grid-row: auto;
  }

  .about-image img {
    height: 620px;
  }

  .contact-copy {
    position: static;
  }
}

@media (max-width: 680px) {
  .container {
    width: min(calc(100% - 28px), var(--max-width));
  }

  .section {
    padding: 78px 0;
  }

  .nav-wrap {
    min-height: 74px;
  }

  .main-nav {
    top: 74px;
  }

  h1 {
    font-size: clamp(3rem, 15vw, 4.5rem);
  }

  .hero-grid {
    gap: 34px;
  }

  .hero-image img {
    height: 470px;
  }

  .hero-card {
    left: 16px;
    bottom: 18px;
    width: 210px;
  }

  .trust-grid,
  .services-grid,
  .process-grid,
  .projects-grid,
  .footer-grid,
  .form-row {
    grid-template-columns: 1fr;
  }

  .trust-grid > div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .trust-grid > div:last-child {
    border-bottom: 0;
  }

  .service-card {
    min-height: auto;
  }

  .service-number,
  .process-step > span {
    margin-bottom: 34px;
  }

  .split-heading {
    display: block;
  }

  .projects-grid {
    grid-template-rows: repeat(3, 420px);
  }

  .project-large {
    grid-column: auto;
  }

  .about-image img {
    height: 480px;
  }

  .value-list > div {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .process-step {
    min-height: auto;
  }

  .contact-form {
    padding: 24px;
  }

  .footer-bottom {
    flex-direction: column;
  }
}
