/* Loova Marketing — static site
   Brand: cream #F4EFEA, brown #422520
   Fonts: Distrampler (headings) + Montserrat (body)
   Put your Distrampler font file in /fonts as Distrampler.woff2 (or .otf/.ttf and update below). */

@font-face {
  font-family: "Distrampler";
  src: url("fonts/Distrampler.woff2") format("woff2"),
       url("fonts/Distrampler.otf") format("opentype"),
       url("fonts/Distrampler.ttf") format("truetype");
  font-display: swap;
}

:root {
  --cream: #F4EFEA;
  --cream-deep: #EAE1D8;
  --brown: #422520;
  --brown-soft: #6B4A42;
  --white: #FFFDFB;
  --max: 1120px;
  --head: "Distrampler", "Playfair Display", Georgia, serif;
  --body: "Montserrat", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--body);
  background: var(--cream);
  color: var(--brown);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--head); font-weight: 400; line-height: 1.15; }
h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
h3 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
h4 { font-size: 1.35rem; margin-bottom: .5rem; }
p + p { margin-top: 1rem; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--brown); color: var(--cream); padding: .5rem 1rem; z-index: 99; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; }
.narrow { max-width: 760px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--cream);
  border-bottom: 1px solid rgba(66,37,32,.12);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.logo img { height: 46px; width: auto; }
.nav { display: flex; gap: 2rem; list-style: none; }
.nav a {
  text-decoration: none; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 500;
  padding-bottom: 3px; border-bottom: 1px solid transparent; transition: border-color .2s;
}
.nav a:hover, .nav a[aria-current="page"] { border-color: var(--brown); }
.menu-btn { display: none; background: none; border: 0; cursor: pointer; padding: .5rem; }
.menu-btn span { display: block; width: 24px; height: 2px; background: var(--brown); margin: 5px 0; transition: .2s; }

@media (max-width: 760px) {
  .menu-btn { display: block; }
  .nav {
    position: absolute; top: 84px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--cream); border-bottom: 1px solid rgba(66,37,32,.12);
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .nav.open { max-height: 400px; }
  .nav li a { display: block; padding: 1rem 1.5rem; border: 0; }
}

/* Hero */
.hero { position: relative; min-height: 72vh; display: grid; place-items: center; text-align: center; color: var(--cream); overflow: hidden; }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: rgba(66,37,32,.42); }
.hero .inner { position: relative; z-index: 1; padding: 4rem 1.5rem; max-width: 900px; }
.hero h1, .hero h2 { color: var(--cream); }
.hero.short { min-height: 46vh; }
.eyebrow { font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; font-weight: 600; margin-bottom: 1rem; display: block; }

/* Sections */
section.block { padding: 6rem 0; }
section.alt { background: var(--white); }
section.dark { background: var(--brown); color: var(--cream); }
section.dark h2, section.dark h3, section.dark h4 { color: var(--cream); }
.center { text-align: center; }
.lead { font-size: 1.12rem; }
.section-head { margin-bottom: 3.5rem; }
.section-head p { margin-top: 1rem; }

.btn {
  display: inline-block; margin-top: 2rem; padding: 1rem 2.2rem;
  background: var(--brown); color: var(--cream); text-decoration: none;
  font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 600;
  border: 1px solid var(--brown); transition: .2s; cursor: pointer; font-family: var(--body);
}
.btn:hover { background: transparent; color: var(--brown); }
.dark .btn, .hero .btn { background: var(--cream); color: var(--brown); border-color: var(--cream); }
.dark .btn:hover, .hero .btn:hover { background: transparent; color: var(--cream); }

/* Grids / cards */
.grid { display: grid; gap: 2rem; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); align-items: center; gap: 4rem; }
.card { background: var(--cream); padding: 2.4rem 2rem; border: 1px solid rgba(66,37,32,.1); }
.alt .card { background: var(--cream); }
section:not(.alt) .card { background: var(--white); }
.card .num { font-family: var(--head); font-size: 2.4rem; opacity: .35; display: block; margin-bottom: .5rem; }

/* Testimonial */
.quote { font-family: var(--head); font-size: clamp(1.4rem, 2.8vw, 2rem); line-height: 1.4; max-width: 860px; margin: 0 auto; }
.quote-by { margin-top: 1.5rem; font-size: .82rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 600; }
.testimonial-img { aspect-ratio: 4/5; object-fit: cover; width: 100%; }

/* Growth chart */
.chart { display: flex; gap: 3rem; justify-content: center; align-items: flex-end; height: 260px; margin-top: 3rem; }
.bar { width: 110px; background: var(--brown); display: flex; flex-direction: column; justify-content: flex-start; align-items: center; color: var(--cream); padding-top: 1rem; }
.bar strong { font-family: var(--head); font-size: 2rem; font-weight: 400; }
.bar-label { text-align: center; margin-top: .8rem; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; }
.bar-col { display: flex; flex-direction: column; justify-content: flex-end; height: 100%; }

/* About */
.story h3 { margin: 3rem 0 .8rem; }
.story h3:first-child { margin-top: 0; }
.signoff { margin-top: 3rem; font-family: var(--head); font-size: 1.5rem; }
.signoff small { display: block; font-family: var(--body); font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; margin-top: .3rem; }

/* Blog */
.post-card { text-decoration: none; display: block; background: var(--white); border: 1px solid rgba(66,37,32,.1); transition: transform .2s; }
.post-card:hover { transform: translateY(-4px); }
.post-card img { aspect-ratio: 3/2; object-fit: cover; width: 100%; background: var(--cream-deep); }
.post-card .ph { aspect-ratio: 3/2; background: var(--cream-deep); display: grid; place-items: center; font-family: var(--head); font-size: 2rem; }
.post-card .body { padding: 1.5rem; }
.post-card time { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; opacity: .7; }
.post-card h3 { font-size: 1.35rem; margin-top: .5rem; }

/* Form */
form.contact { display: grid; gap: 1.2rem; margin-top: 2rem; text-align: left; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
@media (max-width: 560px) { .row-2 { grid-template-columns: 1fr; } }
label { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; display: block; margin-bottom: .4rem; }
input, textarea, select {
  width: 100%; padding: .9rem 1rem; font: inherit; color: var(--brown);
  background: var(--white); border: 1px solid rgba(66,37,32,.25); border-radius: 0;
}
input:focus, textarea:focus { outline: 2px solid var(--brown); outline-offset: -1px; }
textarea { min-height: 150px; resize: vertical; }
.contact-details { font-size: 1.15rem; }
.contact-details a { text-decoration: none; border-bottom: 1px solid currentColor; }

/* Footer */
.site-footer { background: var(--brown); color: var(--cream); padding: 4.5rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2.5rem; }
.site-footer h4 { font-style: italic; color: var(--cream); }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: .4rem; }
.site-footer a { text-decoration: none; opacity: .9; }
.site-footer a:hover { opacity: 1; text-decoration: underline; }
.footer-logo img { height: 42px; width: auto; filter: brightness(0) invert(94%) sepia(6%) saturate(300%); }
.copyright { margin-top: 3.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(244,239,234,.2); font-size: .82rem; font-style: italic; opacity: .8; }

/* If an image is missing, hide it cleanly */
img.noimg { display: none; }
.hero { background: var(--brown); }
.logo img.noimg, .footer-logo img.noimg { display: none; }
.logo:has(img.noimg)::after { content: "LOOVA"; font-family: var(--head); font-size: 1.8rem; letter-spacing: .08em; }
.footer-logo:has(img.noimg)::after { content: "LOOVA"; font-family: var(--head); font-size: 1.8rem; letter-spacing: .08em; }
.testimonial-img.noimg + div { grid-column: 1 / -1; text-align: center; }
.logo, .footer-logo a { text-decoration: none; }
