/* Coast Plastering — Design System */

:root {
  --sage:        #8FAF8A;
  --sage-dark:   #6A9070;
  --sage-deep:   #4E7055;
  --sage-tint:   #EEF2EC;
  --linen:       #F8F5F0;
  --linen-warm:  #F2F0ED;
  --charcoal:    #2C2C2A;
  --charcoal-mid:#4A4A47;
  --muted:       #7A7A76;
  --border:      #DDD9D2;

  --font-heading: 'Arvo', serif;
  --font-body:    'Inter', sans-serif;

  --sp-xs: 0.5rem;
  --sp-sm: 1rem;
  --sp-md: 2rem;
  --sp-lg: 4rem;
  --sp-xl: 7rem;

  --radius:  10px;
  --radius-lg: 18px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background-color: var(--linen);
  color: var(--charcoal);
  line-height: 1.75;
  letter-spacing: 0.01em;
  overflow-x: hidden;
}

h1, h2, h3, h4, .font-heading {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container {
  width: 90%;
  max-width: 1160px;
  margin: 0 auto;
}

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: 0.85rem 2.2rem;
  background-color: var(--sage);
  color: #fff;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: background 0.25s var(--ease), transform 0.2s var(--ease), box-shadow 0.25s var(--ease);
  letter-spacing: 0.02em;
}
.btn:hover {
  background-color: var(--sage-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(106,144,112,0.25);
}
.btn-outline {
  background: transparent;
  border: 2px solid var(--sage);
  color: var(--sage-dark);
}
.btn-outline:hover {
  background: var(--sage);
  color: #fff;
}

/* ── Header ── */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 1.1rem 0;
  background: rgba(248,245,240,0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: padding 0.3s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
header.scrolled {
  padding: 0.65rem 0;
  background: rgba(248,245,240,0.97);
  border-color: var(--border);
  box-shadow: 0 2px 20px rgba(44,44,42,0.06);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--sage-deep);
  transition: opacity 0.2s;
}
.logo:hover { opacity: 0.8; }

.logo-svg { width: 36px; height: 36px; flex-shrink: 0; }

.nav-links {
  display: flex;
  gap: 2.2rem;
  align-items: center;
}
.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--charcoal-mid);
  position: relative;
  padding-bottom: 2px;
  transition: color 0.2s;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: var(--sage);
  border-radius: 2px;
  transition: width 0.25s var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--sage-deep); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.nav-cta { margin-left: 0.5rem; }

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--charcoal);
  padding: 0.25rem;
}

/* Mobile drawer */
.mobile-drawer {
  position: fixed;
  top: 0; right: 0;
  width: min(320px, 85vw);
  height: 100vh;
  background: var(--linen);
  z-index: 2000;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transform: translateX(100%);
  transition: transform 0.35s var(--ease);
  box-shadow: -8px 0 40px rgba(44,44,42,0.12);
}
.mobile-drawer.open { transform: translateX(0); }
.mobile-drawer a {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--charcoal);
  border-bottom: 1px solid var(--border);
  padding-bottom: 1rem;
}
.mobile-drawer a:hover { color: var(--sage-dark); }
.drawer-close {
  align-self: flex-end;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  margin-bottom: 0.5rem;
}
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(44,44,42,0.35);
  z-index: 1999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.drawer-overlay.open { opacity: 1; pointer-events: all; }

/* ── Hero ── */
.hero {
  min-height: 88vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(160deg, rgba(238,242,236,0.82) 0%, rgba(248,245,240,0.65) 60%, rgba(248,245,240,0.4) 100%),
    url('assets/landscape/cullercoats-harbour.webp') center/cover no-repeat;
}

/* grain overlay */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.35;
  pointer-events: none;
}

.hero-content {
  max-width: 640px;
  position: relative;
  z-index: 1;
  padding: var(--sp-xl) 0;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage-deep);
  background: rgba(143,175,138,0.15);
  padding: 0.35rem 1rem;
  border-radius: 50px;
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 0.6s var(--ease) 0.1s forwards;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  color: var(--charcoal);
  margin-bottom: 1.4rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.7s var(--ease) 0.25s forwards;
}

.hero p {
  font-size: 1.1rem;
  color: var(--charcoal-mid);
  max-width: 500px;
  margin-bottom: 2.2rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.7s var(--ease) 0.4s forwards;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.7s var(--ease) 0.55s forwards;
}

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ── Wave dividers ── */
.wave-sep {
  display: block;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  margin-bottom: -2px;
}
.wave-sep svg { display: block; width: 100%; }

/* ── Features ── */
.features {
  padding: var(--sp-lg) 0;
  background: var(--linen-warm);
}

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage-dark);
  margin-bottom: 0.6rem;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--charcoal);
  margin-bottom: 0.75rem;
}

.section-intro {
  color: var(--muted);
  max-width: 520px;
  margin-bottom: var(--sp-md);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature-card {
  background: var(--linen);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
  opacity: 0;
  transform: translateY(24px);
}
.feature-card.visible {
  animation: fadeUp 0.6s var(--ease) forwards;
}
.feature-card:nth-child(2) { animation-delay: 0.1s; }
.feature-card:nth-child(3) { animation-delay: 0.2s; }

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(44,44,42,0.07);
  border-color: var(--sage);
}

.feature-icon {
  width: 52px; height: 52px;
  background: var(--sage-tint);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  color: var(--sage-deep);
  margin-bottom: 1.25rem;
}

.feature-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.6rem;
  color: var(--charcoal);
}
.feature-card p { font-size: 0.92rem; color: var(--muted); }

/* ── Parallax divider ── */
.parallax-strip {
  height: 320px;
  position: relative;
  overflow: hidden;
  background: url('assets/landscape/cullercoats-aerial.webp') center/cover no-repeat;
  background-attachment: fixed;
}
.parallax-strip::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(143,175,138,0.25);
}

/* ── About ── */
.about {
  padding: var(--sp-lg) 0;
  background: var(--sage-tint);
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-img-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  position: relative;
}
.about-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.about-img-wrap:hover img { transform: scale(1.04); }

.about-img-wrap::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(143,175,138,0.1);
  pointer-events: none;
}

.about-text .section-title { margin-bottom: 1rem; }
.about-text p { color: var(--charcoal-mid); margin-bottom: 1.25rem; font-size: 1rem; }

/* ── Page headers (inner pages) ── */
.page-hero {
  background: var(--sage-tint);
  padding: var(--sp-lg) 0 var(--sp-md);
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.page-hero h1 { color: var(--charcoal); margin-bottom: 0.6rem; }
.page-hero p { color: var(--muted); font-size: 1.05rem; }

/* ── Services page ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  padding: var(--sp-lg) 0;
}

.service-card {
  background: var(--linen);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
  opacity: 0;
  transform: translateY(20px);
}
.service-card.visible { animation: fadeUp 0.55s var(--ease) forwards; }
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(44,44,42,0.07);
  border-color: var(--sage);
}
.service-card .service-icon {
  width: 46px; height: 46px;
  background: var(--sage-tint);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: var(--sage-deep);
  margin-bottom: 1.1rem;
}
.service-card h2 {
  font-size: 1.15rem;
  color: var(--charcoal);
  margin-bottom: 0.6rem;
}
.service-card p { font-size: 0.92rem; color: var(--muted); }

/* ── Gallery page ── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
  padding: var(--sp-lg) 0;
}

.gallery-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--linen-warm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  opacity: 0;
  transform: translateY(20px);
}
.gallery-item.visible { animation: fadeUp 0.55s var(--ease) forwards; }
.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 36px rgba(44,44,42,0.1);
}
.gallery-item img {
  width: 100%; height: 280px;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item-caption {
  padding: 0.9rem 1.1rem;
  font-size: 0.85rem;
  color: var(--muted);
}

/* ── Contact / Form ── */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  padding: var(--sp-lg) 0;
  align-items: start;
}

.contact-info h2 { color: var(--charcoal); margin-bottom: 1rem; }
.contact-info p { color: var(--muted); margin-bottom: 1.5rem; }
.contact-detail {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.9rem 1rem;
  background: var(--linen-warm);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  font-size: 0.92rem;
  color: var(--charcoal-mid);
}
.contact-detail svg { color: var(--sage-dark); flex-shrink: 0; }

.contact-form-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: 0 4px 32px rgba(44,44,42,0.06);
}

.form-group { margin-bottom: 1.35rem; }
.form-group label {
  display: block;
  margin-bottom: 0.45rem;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--charcoal);
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--charcoal);
  background: var(--linen);
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(143,175,138,0.15);
  background: #fff;
}
.form-group textarea { resize: vertical; min-height: 120px; }

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

.email-status {
  font-size: 0.8rem;
  margin-top: 0.3rem;
  min-height: 1.2em;
}
.email-status.valid   { color: var(--sage-deep); }
.email-status.invalid { color: #b05a3a; }

/* ── Footer ── */
footer {
  background: var(--charcoal);
  color: rgba(255,255,255,0.85);
  padding: var(--sp-lg) 0 var(--sp-md);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand .logo { color: #fff; margin-bottom: 0.75rem; }
.footer-brand p { font-size: 0.88rem; color: rgba(255,255,255,0.55); max-width: 240px; line-height: 1.65; }

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  color: rgba(255,255,255,0.9);
  margin-bottom: 1rem;
}
.footer-col a {
  display: block;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 0.55rem;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--sage); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ── Back to top ── */
#back-to-top {
  position: fixed;
  bottom: 2rem; right: 2rem;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--sage);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(106,144,112,0.35);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s, background 0.2s;
  z-index: 900;
}
#back-to-top.visible { opacity: 1; transform: translateY(0); pointer-events: all; }
#back-to-top:hover { background: var(--sage-dark); }

/* ── Mobile sticky quote ── */
#sticky-quote {
  display: none;
  position: fixed;
  bottom: 1.25rem; right: 1.25rem;
  z-index: 900;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .about-inner { grid-template-columns: 1fr; gap: 2rem; }
  .contact-wrap { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .features-grid { grid-template-columns: 1fr; gap: 1rem; }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .mobile-menu-btn { display: flex; }
  #sticky-quote { display: block; }
  #back-to-top { bottom: 5rem; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
  .parallax-strip { background-attachment: scroll; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 2rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { text-align: center; }
}
