/* Hearth & Tile Renovations: sample website by Zelky (fictional business).
   Palette taken from a tiled bathroom: glazed green, grout, brushed brass, charcoal. */

@font-face { font-family: "Gloock"; src: url("../fonts/gloock-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("../fonts/hanken-grotesk-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("../fonts/hanken-grotesk-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("../fonts/hanken-grotesk-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --green: #24453b;
  --green-deep: #1b352d;
  --grout: #e4e6e1;
  --brass: #b48a42;
  --brass-light: #d9b673;
  --ink: #1a211e;
  --mute: #56605b;
  --white: #ffffff;
  --line: #cfd3cc;

  --serif: "Gloock", Georgia, "Times New Roman", serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --tile: 10px; /* grout width */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; line-height: 1.04; letter-spacing: -0.01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }

:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 50; background: var(--white); padding: 10px 14px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: 4px;
  font: 700 1rem/1 var(--sans); text-decoration: none; border: 2px solid transparent;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-brass { background: var(--brass-light); color: var(--ink); }
.btn-brass:hover { background: #e6c88d; }
.btn-line { border-color: currentColor; }
.btn-line:hover { background: var(--white); color: var(--green); border-color: var(--white); }
.btn-green { background: var(--green); color: var(--white); }
.btn-green:hover { background: var(--green-deep); }

/* Header */
.site-head { background: var(--green); color: var(--white); position: sticky; top: 0; z-index: 20; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; width: 30px; height: 30px; }
.brand-mark span { background: var(--grout); border-radius: 2px; }
.brand-mark span:nth-child(2) { background: var(--brass-light); }
.brand-name { font: 400 1.5rem/1 var(--serif); }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { text-decoration: none; font-weight: 500; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--brass-light); }
.head-call { display: none; }
.menu-btn { display: none; }

@media (max-width: 900px) {
  .menu-btn {
    display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px;
    background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,.5); border-radius: 4px;
    font: 700 1rem var(--sans); cursor: pointer;
  }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--green-deep); padding: 8px var(--gutter) 20px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.12); font-size: 1.125rem; }
  .nav .btn { margin-top: 16px; border-bottom: 0; }
}
@media (min-width: 901px) { .head-call { display: inline-flex; } .nav .nav-call { display: none; } }

/* Hero: a tiled wall. The grout lines run behind everything; the photos sit in the grid like tiles. */
.hero {
  background-color: var(--green);
  background-image:
    linear-gradient(rgba(255,255,255,.06) 2px, transparent 2px),
    linear-gradient(90deg, rgba(255,255,255,.06) 2px, transparent 2px);
  background-size: 96px 96px;
  color: var(--white);
  padding: clamp(40px, 7vw, 88px) 0 clamp(56px, 8vw, 104px);
}
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(2.8rem, 5.6vw, 4.6rem); max-width: 12ch; }
.hero-lede { margin-top: 24px; max-width: 32em; font-size: 1.1875rem; color: #d7e0db; }
.hero-actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { margin-top: 22px; font-size: .9375rem; color: #b8c6bf; }

.mosaic {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(6, 1fr);
  gap: var(--tile);
  padding: var(--tile);
  background: var(--grout);
  border-radius: 6px;
  aspect-ratio: 1 / 1;
}
.mosaic figure { margin: 0; overflow: hidden; border-radius: 3px; background: #c9cdc5; position: relative; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; }
.mosaic .m1 { grid-column: 1 / 5; grid-row: 1 / 5; }
.mosaic .m2 { grid-column: 5 / 7; grid-row: 1 / 3; }
.mosaic .m3 { grid-column: 5 / 7; grid-row: 3 / 5; }
.mosaic .m4 { grid-column: 1 / 3; grid-row: 5 / 7; }
.mosaic .m5 { grid-column: 3 / 5; grid-row: 5 / 7; }
.mosaic .m6 { grid-column: 5 / 7; grid-row: 5 / 7; background: var(--brass-light); display: flex; flex-direction: column; justify-content: flex-end; padding: 14px; color: var(--ink); }
.mosaic .m6 { container-type: inline-size; }
.m6 strong { font: 400 clamp(1rem, 20cqi, 2.4rem)/1 var(--serif); }
.m6 span { font-size: clamp(.6875rem, 8.5cqi, .875rem); font-weight: 500; margin-top: 6px; line-height: 1.25; }
@media (max-width: 520px) { .mosaic .m6 { padding: 10px; } }

/* The one page-load moment: tiles set in one after another, like laying a wall. */
@media (prefers-reduced-motion: no-preference) {
  .mosaic > * { animation: set .6s cubic-bezier(.2,.7,.2,1) both; }
  .mosaic > :nth-child(2) { animation-delay: .08s; }
  .mosaic > :nth-child(3) { animation-delay: .16s; }
  .mosaic > :nth-child(4) { animation-delay: .24s; }
  .mosaic > :nth-child(5) { animation-delay: .32s; }
  .mosaic > :nth-child(6) { animation-delay: .40s; }
  @keyframes set { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
}

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero h1 { max-width: 13ch; }
}

/* Facts row */
.facts { background: var(--grout); border-bottom: 1px solid var(--line); }
.facts dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; }
.facts dl > div { padding: 28px 24px 28px 0; }
.facts dl > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.facts dt { font: 400 1.5rem/1.15 var(--serif); }
.facts dd { margin: 6px 0 0; color: var(--mute); font-size: .9688rem; }
@media (max-width: 760px) {
  .facts dl { grid-template-columns: 1fr; }
  .facts dl > div, .facts dl > div + div { padding: 20px 0; border-left: 0; }
  .facts dl > div + div { border-top: 1px solid var(--line); }
}

/* Sections */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-grout { background: var(--grout); }
.section-head { max-width: 40rem; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head h2 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); }
.section-head p { margin-top: 14px; color: var(--mute); font-size: 1.125rem; }

/* Service rows: photo and words side by side, alternating */
.rooms { display: grid; gap: clamp(48px, 7vw, 88px); }
.room { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.room:nth-child(even) .room-photo { order: 2; }
.room-photo { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 4px; background: var(--grout); }
.room-photo img { width: 100%; height: 100%; object-fit: cover; }
.room h3 { font-size: clamp(2rem, 3.6vw, 2.8rem); }
.room p { margin-top: 14px; color: var(--mute); max-width: 32em; }
.ticks { list-style: none; margin-top: 20px; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 26px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .5em; width: 12px; height: 12px; background: var(--brass); border-radius: 2px; }
.text-link { display: inline-block; margin-top: 24px; font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--brass); padding-bottom: 2px; }
.text-link:hover { border-bottom-color: var(--ink); }
@media (max-width: 800px) {
  .room { grid-template-columns: 1fr; }
  .room:nth-child(even) .room-photo { order: 0; }
}

/* Steps: a real sequence, so numbered */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--tile); background: var(--line); padding: var(--tile); border-radius: 6px; counter-reset: step; }
.steps li { background: var(--white); padding: 28px 24px 32px; border-radius: 3px; counter-increment: step; }
.steps li::before { content: counter(step); display: block; font: 400 3rem/1 var(--serif); color: var(--brass); }
.steps h3 { margin-top: 18px; font-size: 1.6rem; }
.steps p { margin-top: 10px; color: var(--mute); font-size: 1rem; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 540px) { .steps { grid-template-columns: 1fr; } }

/* Projects */
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--tile); }
.gallery figure { margin: 0; }
.gallery .shot { aspect-ratio: 4 / 5; overflow: hidden; border-radius: 4px; background: var(--grout); }
.gallery .shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery figure:hover img { transform: scale(1.03); }
.gallery figcaption { margin-top: 10px; display: flex; justify-content: space-between; gap: 12px; font-weight: 500; }
.gallery figcaption span { color: var(--mute); font-weight: 400; }
.gallery figure[hidden] { display: none; }
@media (max-width: 860px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .gallery { grid-template-columns: 1fr; } .gallery .shot { aspect-ratio: 4 / 3; } }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filters button {
  min-height: 44px; padding: 0 18px; border-radius: 999px; border: 2px solid var(--ink);
  background: transparent; color: var(--ink); font: 700 .9375rem var(--sans); cursor: pointer;
}
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--white); }

/* Team */
.team { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.team-photos { display: grid; grid-template-columns: 1fr 1fr; gap: var(--tile); }
.team-photos figure { margin: 0; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 4px; background: var(--grout); }
.team-photos figure:first-child { margin-top: 48px; }
.team-photos img { width: 100%; height: 100%; object-fit: cover; }
.team h2 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); }
.team p { margin-top: 16px; color: var(--mute); max-width: 32em; }
@media (max-width: 800px) { .team { grid-template-columns: 1fr; } .team-photos figure:first-child { margin-top: 0; } }

/* Call to action band */
.cta-band { background: var(--green); color: var(--white); }
.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px; padding-top: clamp(56px, 7vw, 88px); padding-bottom: clamp(56px, 7vw, 88px); }
.cta-band h2 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); max-width: 14ch; }
.cta-band p { margin-top: 14px; color: #d7e0db; max-width: 30em; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Page hero for inner pages */
.page-hero { background: var(--green); color: var(--white); padding: clamp(48px, 7vw, 88px) 0; }
.page-hero h1 { font-size: clamp(2.8rem, 6vw, 4.8rem); max-width: 14ch; }
.page-hero p { margin-top: 18px; max-width: 34em; font-size: 1.1875rem; color: #d7e0db; }

/* FAQs */
.faqs { border-top: 2px solid var(--ink); }
.faqs details { border-bottom: 1px solid var(--line); }
.faqs summary { cursor: pointer; list-style: none; padding: 22px 40px 22px 0; position: relative; font: 400 1.4rem/1.25 var(--serif); }
.faqs summary::-webkit-details-marker { display: none; }
.faqs summary::after { content: "+"; position: absolute; right: 4px; top: 18px; font: 400 1.8rem/1 var(--sans); color: var(--brass); }
.faqs details[open] summary::after { content: "\2212"; }
.faqs details p { padding: 0 0 22px; color: var(--mute); max-width: 44em; }

/* Contact */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.contact-details dl { margin: 28px 0 0; display: grid; gap: 18px; }
.contact-details dt { font-weight: 700; }
.contact-details dd { margin: 4px 0 0; color: var(--mute); }
.contact-details dd a { color: var(--ink); font-weight: 500; }
.form { background: var(--grout); padding: clamp(24px, 4vw, 40px); border-radius: 6px; display: grid; gap: 18px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form label { display: block; font-weight: 700; margin-bottom: 6px; font-size: .9688rem; }
.form input, .form select, .form textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border: 2px solid var(--line); border-radius: 4px;
  background: var(--white); color: var(--ink); font: 400 1rem var(--sans);
}
.form textarea { min-height: 130px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(180,138,66,.35); }
.form .hint { font-size: .875rem; color: var(--mute); }
.form-status { padding: 14px 16px; border-radius: 4px; background: var(--white); border-left: 6px solid var(--brass); }
.form-status[hidden] { display: none; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .form .row { grid-template-columns: 1fr; } }

/* Footer */
.site-foot { background: var(--ink); color: #c6ccc8; padding: 56px 0 28px; font-size: .9688rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-foot h2 { font: 700 1rem var(--sans); color: var(--white); margin-bottom: 12px; }
.site-foot ul { list-style: none; display: grid; gap: 8px; }
.site-foot a { text-decoration: none; }
.site-foot a:hover { color: var(--white); text-decoration: underline; }
.site-foot .brand-name { color: var(--white); }
.foot-note { margin-top: 40px; padding-top: 20px; border-top: 1px solid #333c37; font-size: .875rem; color: #98a19c; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; } }
