/*
Theme Name: Cornish Lime Builders
Theme URI: http://localhost:8080
Author: Cornish Lime Builders
Description: Restored site theme for Cornish Lime Builders
Version: 1.0.0
Text Domain: cornish-lime-builders
*/

:root {
  --stone: #3a3f45;
  --granite: #5c636b;
  --lime: #e8e4dc;
  --lime-deep: #d2cbbd;
  --sea: #1f4e5f;
  --sea-bright: #2a6f82;
  --slate: #1a1d21;
  --foam: #f7f5f1;
  --accent: #8a734a;
  --font-display: "Fraunces", "Palatino Linotype", Palatino, serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--slate);
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(42, 111, 130, 0.12), transparent 60%),
    radial-gradient(900px 400px at 100% 0%, rgba(138, 115, 74, 0.1), transparent 50%),
    linear-gradient(180deg, var(--foam), var(--lime) 45%, #e3ddd2);
  line-height: 1.65;
  min-height: 100vh;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sea); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--sea-bright); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: rgba(247, 245, 241, 0.9);
  border-bottom: 1px solid rgba(58, 63, 69, 0.12);
}
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 1.35rem;
  color: var(--slate);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.brand small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--granite);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-top: 0.15rem;
}
.nav-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-menu a {
  text-decoration: none;
  color: var(--stone);
  font-size: 0.92rem;
  font-weight: 600;
}
.nav-menu a:hover { color: var(--sea); }

.hero {
  position: relative;
  min-height: min(88vh, 700px);
  display: grid;
  align-items: end;
  color: #fff;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(26, 29, 33, 0.2), rgba(26, 29, 33, 0.75)),
    linear-gradient(135deg, #1f4e5f, #3a3f45 55%, #8a734a);
}
.hero.has-image {
  background:
    linear-gradient(180deg, rgba(26, 29, 33, 0.25), rgba(26, 29, 33, 0.78)),
    var(--hero-image) center / cover no-repeat,
    linear-gradient(135deg, #1f4e5f, #3a3f45 55%, #8a734a);
}
.hero-inner {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: 4.5rem 1.25rem 3.25rem;
}
.brand-hero {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4.1rem);
  line-height: 1.05;
  margin: 0 0 0.75rem;
  letter-spacing: -0.03em;
  animation: rise 0.9s ease both;
}
.hero p {
  max-width: 36rem;
  font-size: 1.1rem;
  margin: 0 0 1.5rem;
  color: rgba(255, 255, 255, 0.92);
  animation: rise 0.9s ease 0.12s both;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  animation: rise 0.9s ease 0.22s both;
}
.btn {
  display: inline-block;
  padding: 0.8rem 1.25rem;
  background: var(--lime);
  color: var(--slate);
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease;
}
.btn:hover {
  transform: translateY(-2px);
  background: #fff;
  color: var(--slate);
}
.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}
.section-lead {
  color: var(--granite);
  max-width: 40rem;
  margin: 0 0 1.75rem;
}

.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.service-link {
  display: block;
  padding: 1.25rem 1.1rem;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(58, 63, 69, 0.1);
  text-decoration: none;
  color: var(--slate);
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}
.service-link:hover {
  border-color: var(--sea);
  transform: translateY(-3px);
  background: #fff;
}
.service-link strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 0.35rem;
}
.service-link span {
  color: var(--granite);
  font-size: 0.92rem;
}

.grid-posts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}
.post-teaser {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(58, 63, 69, 0.1);
  overflow: hidden;
  transition: transform 0.25s ease;
}
.post-teaser:hover { transform: translateY(-4px); }
.post-teaser a { text-decoration: none; color: inherit; }
.post-teaser .thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: linear-gradient(135deg, var(--lime-deep), var(--granite));
}
.post-teaser .pad { padding: 1rem 1rem 1.2rem; }
.post-teaser h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 0 0 0.4rem;
  line-height: 1.25;
}
.post-teaser p {
  margin: 0;
  color: var(--granite);
  font-size: 0.92rem;
}

.page-hero {
  padding: 3rem 1.25rem 1rem;
  max-width: 1100px;
  margin: 0 auto;
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0;
  letter-spacing: -0.02em;
}
.content { max-width: 760px; }
.content p { margin: 0 0 1rem; }
.content img {
  margin: 1rem 0;
  border: 1px solid rgba(58, 63, 69, 0.12);
}

.site-footer {
  background: var(--slate);
  color: rgba(255, 255, 255, 0.82);
  padding: 2.5rem 1.25rem;
  margin-top: 2rem;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  gap: 1rem;
}
.site-footer a { color: #fff; }
.site-footer h2 {
  font-family: var(--font-display);
  color: #fff;
  margin: 0 0 0.4rem;
  font-size: 1.4rem;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 720px) {
  .header-inner { flex-direction: column; align-items: flex-start; }
  .hero-inner { padding-top: 5rem; }
}
