/* ==========================================================================
   Gdovic Construction — warm stone & earth design system
   Mobile-first. No build step.
   ========================================================================== */

:root {
  --bg: #faf8f4;
  --bg-alt: #f2ede4;
  --bg-deep: #e9e1d3;
  --ink: #2b2723;
  --ink-soft: #4a443d;
  --muted: #6e675e;
  --clay: #a4502b;
  --clay-dark: #86401f;
  --clay-soft: #f3e2d8;
  --stone: #d8cfc0;
  --line: #e3dccf;
  --footer-bg: #26221e;
  --footer-text: #b5aca0;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 14px 40px rgba(43, 39, 35, 0.1);
  --shadow-sm: 0 4px 14px rgba(43, 39, 35, 0.08);
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --header-h: 64px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

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

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--ink);
}

h1 {
  font-size: clamp(2.1rem, 6vw, 3.4rem);
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(1.6rem, 4.5vw, 2.3rem);
}

h3 {
  font-size: 1.2rem;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--clay);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.container {
  width: min(1120px, 100% - 2.5rem);
  margin-inline: auto;
}

.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: -3rem;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 0;
}

/* --------------------------------------------------------------------------
   Reveal-on-scroll (elements start hidden only when JS is running: html.js)
   -------------------------------------------------------------------------- */

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s cubic-bezier(0.2, 0.7, 0.3, 1) var(--d, 0s),
    transform 0.65s cubic-bezier(0.2, 0.7, 0.3, 1) var(--d, 0s);
}

.js .reveal.in {
  opacity: 1;
  transform: none;
}

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

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.78rem 1.5rem;
  border-radius: 999px;
  border: 2px solid transparent;
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease,
    border-color 0.15s ease, transform 0.1s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--clay);
  color: #fff;
}

.btn-primary:hover {
  background: var(--clay-dark);
  color: #fff;
}

.btn-outline {
  border-color: var(--ink);
  color: var(--ink);
  background: transparent;
}

.btn-outline:hover {
  background: var(--ink);
  color: var(--bg);
}

.btn-light {
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.btn-light:hover {
  background: var(--bg-alt);
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 248, 244, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.18rem;
  color: var(--ink);
  line-height: 1.2;
}

.logo:hover {
  text-decoration: none;
}

.logo span {
  color: var(--clay);
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

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

.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);
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  flex-direction: column;
  padding: 0.75rem 1.25rem 1.25rem;
  gap: 0.25rem;
}

.nav-list.is-open {
  display: flex;
}

.nav-list a {
  display: block;
  padding: 0.6rem 0.25rem;
  color: var(--ink-soft);
  font-weight: 500;
}

/* :not(.btn) — on a filled button this would paint clay text on a clay
   background, making the label invisible. */
.nav-list a[aria-current="page"]:not(.btn) {
  color: var(--clay);
  font-weight: 600;
}

.nav-list .btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 0.5rem;
  color: #fff;
  text-align: center;
  line-height: 1.2;
}

.nav-list .btn:hover {
  color: #fff;
}

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

  .nav-list {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 1.6rem;
    background: none;
    border: 0;
    box-shadow: none;
    padding: 0;
  }

  .nav-list a {
    padding: 0.25rem 0;
  }

  .nav-list .btn {
    margin-top: 0;
    padding: 0.55rem 1.2rem;
    color: #fff;
    width: auto;
  }
}

/* --------------------------------------------------------------------------
   Hero (home)
   -------------------------------------------------------------------------- */

.hero {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
  padding: 3rem 0 3.5rem;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  gap: 2.25rem;
  align-items: center;
}

.kicker {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 0.9rem;
}

.hero-copy .lead {
  font-size: 1.12rem;
  color: var(--ink-soft);
  max-width: 34rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.6rem 0 1.8rem;
}

.trust-chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
}

.trust-chips li {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.4rem 0.95rem;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--ink-soft);
  box-shadow: var(--shadow-sm);
}

.hero-media {
  position: relative;
}

.hero-slideshow {
  display: grid;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-slide {
  grid-area: 1 / 1;
  position: relative;
  margin: 0;
  opacity: 0;
  pointer-events: none; /* hidden slides must not intercept clicks */
  transition: opacity 0.8s ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero-slide-link {
  display: block;
}

.hero-slide-link:hover {
  text-decoration: none;
}

.hero-slide img {
  width: 100%;
  max-height: 560px;
  object-fit: cover;
}

/* Anchored project sections clear the sticky header when deep-linked */
section[id] {
  scroll-margin-top: 84px;
}

.hero-dots {
  display: flex;
  justify-content: center;
  gap: 0.15rem;
  margin-top: 0.5rem;
}

.hero-dot {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.hero-dot::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--stone);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.hero-dot:hover::after {
  background: var(--muted);
}

.hero-dot.is-active::after {
  background: var(--clay);
  transform: scale(1.15);
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide {
    transition: none;
  }
}

.hero-badge {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  background: rgba(38, 34, 30, 0.85);
  color: #fff;
  backdrop-filter: blur(4px);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 600;
}

@media (min-width: 860px) {
  .hero {
    padding: 4.5rem 0 5rem;
  }

  .hero-inner {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3.5rem;
  }
}

/* --------------------------------------------------------------------------
   Page hero (interior pages)
   -------------------------------------------------------------------------- */

.page-hero {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
  padding: 2.75rem 0 3rem;
  border-bottom: 1px solid var(--line);
}

.page-hero p {
  max-width: 40rem;
  color: var(--ink-soft);
  font-size: 1.08rem;
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.section {
  padding: 3.25rem 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-header {
  max-width: 44rem;
  margin-bottom: 2.25rem;
}

.section-header p {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 0;
}

.section-cta {
  margin-top: 2.25rem;
}

@media (min-width: 860px) {
  .section {
    padding: 4.5rem 0;
  }
}

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */

.cards {
  display: grid;
  gap: 1.25rem;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
}

.card-media-placeholder {
  height: 210px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: repeating-linear-gradient(
    45deg,
    var(--bg-alt),
    var(--bg-alt) 12px,
    var(--bg-deep) 12px,
    var(--bg-deep) 24px
  );
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.card-body {
  padding: 1.35rem 1.4rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
}

.card-body p {
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.card-body .card-link {
  margin-top: auto;
  font-weight: 600;
}

.card ul {
  margin: 0 0 0.75rem;
  padding-left: 1.1rem;
  color: var(--muted);
}

.card ul li {
  margin-bottom: 0.3rem;
}

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

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

/* --------------------------------------------------------------------------
   Gallery
   -------------------------------------------------------------------------- */

.gallery-grid {
  display: grid;
  gap: 1.25rem;
}

.gallery-item {
  margin: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.025);
}

/* "More coming soon" gallery tile — matches the 4/5 photo tiles */
.gallery-placeholder {
  width: 100%;
  aspect-ratio: 4 / 5;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: repeating-linear-gradient(
    45deg,
    var(--bg-alt),
    var(--bg-alt) 12px,
    var(--bg-deep) 12px,
    var(--bg-deep) 24px
  );
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  line-height: 1.5;
}

.gallery-item figcaption {
  padding: 0.85rem 1.1rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
  font-weight: 500;
}

.gallery-item a.gallery-link {
  display: block;
}

.gallery-item a.gallery-link:hover {
  text-decoration: none;
}

.ig-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.4rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--clay);
}

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

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

/* --------------------------------------------------------------------------
   Checklist ("what to expect")
   -------------------------------------------------------------------------- */

.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.checklist li {
  position: relative;
  padding-left: 2.1rem;
  color: var(--ink-soft);
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.18rem;
  width: 1.3rem;
  height: 1.3rem;
  border-radius: 50%;
  background: var(--clay-soft) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23a4502b" stroke-width="3.5" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"/></svg>')
    center / 0.75rem no-repeat;
}

/* --------------------------------------------------------------------------
   Two-column utility
   -------------------------------------------------------------------------- */

.two-column {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 860px) {
  .two-column {
    grid-template-columns: 1fr 1fr;
  }
}

/* --------------------------------------------------------------------------
   Owner section
   -------------------------------------------------------------------------- */

.owner-card {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}

/* The owner card is shorter than the text column beside it — center it in the
   row rather than letting it hang from the top with dead space underneath.
   (.two-column sets align-items: start for the text columns.) */
.owner-card {
  align-self: center;
}

.owner-photo {
  width: 132px;
  height: 132px;
  flex-shrink: 0;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--bg-alt);
  box-shadow: var(--shadow-sm);
}

.owner-card h3 {
  margin-bottom: 0.2rem;
}

.owner-card .owner-role {
  color: var(--clay);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

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

@media (max-width: 480px) {
  .owner-card {
    flex-direction: column;
    text-align: center;
  }
}

/* --------------------------------------------------------------------------
   CTA banner
   -------------------------------------------------------------------------- */

.cta-banner {
  background: var(--footer-bg);
  border-radius: var(--radius);
  color: #fff;
  padding: 2.5rem 1.75rem;
  display: grid;
  gap: 1.5rem;
}

.cta-banner h2 {
  color: #fff;
  margin-bottom: 0.4rem;
}

.cta-banner p {
  color: var(--footer-text);
  margin: 0;
  max-width: 36rem;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

@media (min-width: 860px) {
  .cta-banner {
    grid-template-columns: 1.4fr 1fr;
    align-items: center;
    padding: 3rem;
  }

  .cta-actions {
    justify-content: flex-end;
  }
}

/* --------------------------------------------------------------------------
   Contact page
   -------------------------------------------------------------------------- */

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

@media (min-width: 900px) {
  .contact-layout {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

.contact-form {
  display: grid;
  gap: 1.1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}

.form-status {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.45;
}

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

.form-field label {
  font-weight: 600;
  font-size: 0.92rem;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--stone);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--ink);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 2px solid var(--clay);
  outline-offset: 1px;
  border-color: var(--clay);
}


.contact-aside {
  display: grid;
  gap: 1.25rem;
  align-content: start;
}

.contact-tile {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
  box-shadow: var(--shadow-sm);
}

.contact-tile h3 {
  margin-bottom: 0.4rem;
}

.contact-tile p {
  margin: 0;
  color: var(--muted);
}

.contact-tile .big-link {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--clay);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 3rem 0 5.5rem;
  margin-top: 3rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
}

.footer-col h3 {
  color: #fff;
  font-size: 0.95rem;
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}

.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.footer-list a {
  color: var(--footer-text);
}

.footer-list a:hover {
  color: #fff;
}

.footer-brand .logo {
  color: #fff;
  display: inline-block;
  margin-bottom: 0.6rem;
}

.site-footer .logo span {
  color: inherit;
}

.footer-tagline {
  max-width: 22rem;
  font-size: 0.95rem;
}

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  justify-content: space-between;
}

.footer-bottom p {
  margin: 0;
}

@media (min-width: 800px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  }

  .site-footer {
    padding-bottom: 3rem;
  }
}

/* --------------------------------------------------------------------------
   Sticky mobile call bar
   -------------------------------------------------------------------------- */

.call-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}

.call-bar a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 0.5rem;
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
}

.call-bar .call-bar-call {
  background: var(--clay);
  color: #fff;
}

.call-bar .call-bar-text {
  background: var(--footer-bg);
  color: #fff;
}

@media (min-width: 800px) {
  .call-bar {
    display: none;
  }
}
