/* ===== S Andrews Plastering – v2 (warm, soft palette) ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ink: #3a3430;            /* warm charcoal for headings */
  --text: #4a443f;           /* body text – softer than black */
  --text-light: #6f665e;     /* muted warm grey */
  --bg: #fbf8f3;             /* warm cream */
  --bg-alt: #f3ece2;         /* soft sand */
  --card: #ffffff;
  --border: #e8dfd3;
  --accent: #c96f45;         /* friendly terracotta */
  --accent-hover: #b25e37;
  --accent-soft: #f6e4d8;
  --deep: #4b4038;           /* warm dark for bands/footer */
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 6px 24px rgba(74, 56, 40, 0.08);
  --shadow-lg: 0 14px 40px rgba(74, 56, 40, 0.13);
  --max-width: 1140px;
  --header-h: 76px;
}

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
  font-family: 'Nunito Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 1.0625rem;
  color: var(--text);
  line-height: 1.7;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: 'Nunito', 'Nunito Sans', system-ui, sans-serif; color: var(--ink); line-height: 1.25; }

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

.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; font-size: 1rem; font-weight: 700; font-family: inherit;
  border-radius: 999px; border: none; cursor: pointer;
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 4px 14px rgba(201, 111, 69, .25); }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: 0 8px 22px rgba(201, 111, 69, .32); }
.btn-secondary { background: rgba(255,255,255,.14); color: #fff; border: 2px solid rgba(255,255,255,.55); }
.btn-secondary:hover { background: rgba(255,255,255,.24); border-color: #fff; }
.btn-full { width: 100%; }

/* ===== Header ===== */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(251, 248, 243, .94);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .2s, border-color .2s;
}
.header.scrolled { box-shadow: var(--shadow); border-color: var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: var(--header-h); }

.logo { display: flex; align-items: center; gap: 12px; font-weight: 800; color: var(--ink); font-family: 'Nunito', sans-serif; }
.logo-img { width: 48px; height: auto; flex-shrink: 0; }
.logo-text { font-size: 1.1rem; line-height: 1.15; }
.logo-text small { font-weight: 600; color: var(--text-light); font-size: .82rem; }

.nav { display: flex; gap: 30px; }
.nav a { font-weight: 600; color: var(--text); font-size: 1rem; padding: 4px 0; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s; }
.nav a:hover { color: var(--accent); border-color: var(--accent-soft); }

.header-phone {
  display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--accent-hover);
  background: var(--accent-soft); padding: 10px 18px; border-radius: 999px; transition: background .2s;
}
.header-phone:hover { background: #f0d5c4; }

.menu-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 10px; border-radius: 10px; }
.menu-toggle span { width: 24px; height: 2.5px; background: var(--ink); border-radius: 2px; transition: transform .25s, opacity .2s; }
.menu-toggle.active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  position: relative; overflow: hidden; color: #fff;
  padding: calc(var(--header-h) + 80px) 0 90px;
  background:
    linear-gradient(95deg, rgba(52, 41, 34, .9) 0%, rgba(52, 41, 34, .78) 42%, rgba(52, 41, 34, .3) 75%, rgba(52, 41, 34, .15) 100%),
    url('images/hero.jpg') 65% 30% / cover no-repeat, var(--deep);
}
.hero-content { position: relative; }
.hero-content > * { max-width: 640px; }
.hero-badge {
  display: inline-block; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.25);
  padding: 6px 16px; border-radius: 999px; font-size: .9rem; font-weight: 600; margin-bottom: 22px;
}
.hero h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.3rem); font-weight: 800; line-height: 1.15; margin-bottom: 18px; }
.hero-sub { font-size: 1.2rem; color: rgba(255,255,255,.92); margin-bottom: 34px; max-width: 540px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 48px; }
.hero-stats { display: flex; gap: 16px; flex-wrap: wrap; }
.stat { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18); border-radius: var(--radius-sm); padding: 12px 20px; backdrop-filter: blur(4px); }
.stat strong { display: block; font-family: 'Nunito', sans-serif; font-size: 1.5rem; font-weight: 800; color: #ffd2b8; line-height: 1.2; }
.stat span { font-size: .92rem; color: rgba(255,255,255,.88); }

/* ===== Trust Bar ===== */
.trust-bar { background: var(--bg-alt); padding: 26px 0; }
.trust-items { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
.trust-item { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); font-size: 1rem; }
.trust-item svg { color: var(--accent); flex-shrink: 0; }

/* ===== Sections ===== */
section { scroll-margin-top: var(--header-h); }
.section-header { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.section-header h2 { font-size: clamp(1.9rem, 3vw, 2.4rem); font-weight: 800; margin-bottom: 12px; }
.section-header h2::after { content: ''; display: block; width: 56px; height: 4px; border-radius: 4px; background: var(--accent); opacity: .8; margin: 14px auto 0; }
.section-header p { color: var(--text-light); font-size: 1.1rem; }

/* ===== Services ===== */
.services { padding: 96px 0; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 24px; }
.service-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px 26px; box-shadow: 0 2px 10px rgba(74,56,40,.04); transition: transform .25s ease, box-shadow .25s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.service-icon {
  font-size: 1.7rem; width: 56px; height: 56px; display: flex; align-items: center; justify-content: center;
  background: var(--accent-soft); border-radius: 16px; margin-bottom: 16px;
}
.service-card h3 { font-size: 1.2rem; font-weight: 800; margin-bottom: 10px; }
.service-card p { font-size: 1rem; color: var(--text-light); line-height: 1.65; }

/* ===== Gallery ===== */
.gallery { padding: 96px 0; background: var(--bg-alt); }
.before-after { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-bottom: 22px; }
.ba-item { background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.ba-item a { display: block; overflow: hidden; }
.ba-item img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .4s ease; }
.ba-item a:hover img { transform: scale(1.03); }
.ba-item figcaption { padding: 14px 18px; font-weight: 700; color: var(--ink); display: flex; align-items: center; gap: 10px; }
.tag { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; padding: 3px 10px; border-radius: 999px; }
.tag-before { background: #ece5db; color: var(--text-light); }
.tag-after { background: var(--accent-soft); color: var(--accent-hover); }

.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.gallery-item {
  display: block; position: relative; border-radius: var(--radius-sm); overflow: hidden;
  box-shadow: var(--shadow); background: var(--border); aspect-ratio: 4 / 3;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery-item::after {
  content: attr(data-caption); position: absolute; left: 0; right: 0; bottom: 0;
  padding: 26px 14px 12px; color: #fff; font-size: .92rem; font-weight: 600; line-height: 1.35;
  background: linear-gradient(transparent, rgba(40,30,24,.72)); opacity: 0; transition: opacity .3s;
}
.gallery-item:first-child { grid-column: span 2; aspect-ratio: auto; }
.gallery-item:first-child img { position: absolute; inset: 0; }
.gallery-item:hover img, .gallery-item:focus-visible img { transform: scale(1.05); }
.gallery-item:hover::after, .gallery-item:focus-visible::after { opacity: 1; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 2000; background: rgba(30, 24, 20, .92);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.lightbox[hidden] { display: none; }
.lightbox figure { max-width: min(1200px, 92vw); text-align: center; }
.lightbox img { max-width: 100%; max-height: 80vh; margin: 0 auto; border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.4); }
.lightbox figcaption { color: #f3ece2; margin-top: 14px; font-weight: 600; }
.lightbox button {
  position: absolute; background: rgba(255,255,255,.14); color: #fff; border: none; cursor: pointer;
  width: 48px; height: 48px; border-radius: 50%; font-size: 2rem; line-height: 1; display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.lightbox button:hover { background: rgba(255,255,255,.28); }
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 18px; top: 50%; transform: translateY(-50%); }
body.lb-open { overflow: hidden; }

/* ===== About ===== */
.about { padding: 96px 0; }
.about-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 64px; align-items: center; }
.about-content h2 { font-size: clamp(1.9rem, 3vw, 2.3rem); font-weight: 800; margin-bottom: 8px; }
.about-content .lead { font-size: 1.2rem; font-weight: 700; color: var(--accent-hover); margin-bottom: 20px; }
.about-content p { margin-bottom: 16px; color: var(--text-light); }
.motto {
  font-style: italic; font-weight: 700; color: var(--ink) !important; font-size: 1.1rem;
  background: var(--accent-soft); border-left: 4px solid var(--accent); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 16px 20px; margin: 28px 0 !important;
}
.about-side { display: flex; flex-direction: column; gap: 20px; align-items: center; }
.about-features { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; width: 100%; }
.feature { background: var(--card); padding: 22px 20px; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--border); }
.feature strong { display: block; font-family: 'Nunito', sans-serif; font-size: 1.12rem; color: var(--ink); margin-bottom: 4px; }
.feature span { font-size: .95rem; color: var(--text-light); }
.kingfisher-badge { width: 200px; border-radius: var(--radius-sm); box-shadow: var(--shadow); }

/* ===== Why Us ===== */
.why-us { padding: 96px 0; background: var(--bg-alt); }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.why-card { background: var(--card); padding: 34px 30px; border-radius: var(--radius); box-shadow: var(--shadow); position: relative; }
.why-card::before { content: ''; position: absolute; top: 0; left: 30px; width: 44px; height: 4px; border-radius: 0 0 4px 4px; background: var(--accent); }
.why-card h3 { font-size: 1.22rem; margin-bottom: 12px; }
.why-card p { color: var(--text-light); font-size: 1rem; }

/* ===== Areas ===== */
.areas { padding: 72px 0; background: var(--deep); color: #f6efe6; text-align: center; }
.areas h2 { color: #fff; font-size: 1.9rem; margin-bottom: 14px; }
.areas p { color: rgba(246,239,230,.9); max-width: 620px; margin: 0 auto 8px; }
.areas strong { color: #ffd2b8; }
.areas-note { font-size: 1rem; color: rgba(246,239,230,.75) !important; margin-top: 12px !important; }

/* ===== Contact ===== */
.contact { padding: 96px 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 52px; align-items: start; }
.contact-details { display: flex; flex-direction: column; gap: 26px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; }
.contact-icon {
  font-size: 1.4rem; width: 52px; height: 52px; background: var(--accent-soft); border-radius: 16px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contact-item strong { display: block; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-light); margin-bottom: 4px; }
.contact-item a, .contact-item span { display: block; font-weight: 700; color: var(--ink); font-size: 1.08rem; word-break: break-word; }
.contact-item a:hover { color: var(--accent); }

.contact-form { background: var(--card); padding: 38px; border-radius: var(--radius); box-shadow: var(--shadow-lg); border: 1px solid var(--border); }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 700; font-size: .95rem; margin-bottom: 6px; color: var(--ink); }
.form-group input, .form-group textarea {
  width: 100%; padding: 13px 16px; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-family: inherit; font-size: 1rem; color: var(--text); background: var(--bg);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.form-group textarea { resize: vertical; }
.form-group input::placeholder, .form-group textarea::placeholder { color: #a99e93; }
.form-group input:focus, .form-group textarea:focus { outline: none; background: #fff; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(201, 111, 69, .15); }
.form-note { margin-top: 14px; font-size: .92rem; color: var(--text-light); text-align: center; }

/* ===== Footer ===== */
.footer { background: var(--deep); color: #f6efe6; padding-top: 52px; }
.footer-inner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 32px; padding-bottom: 38px; }
.footer-brand { display: flex; gap: 14px; align-items: center; }
.footer-brand .logo-img { background: #fff; border-radius: 12px; padding: 4px; width: 52px; }
.footer-brand p { font-size: .95rem; opacity: .75; margin-top: 2px; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; align-items: center; justify-content: center; }
.footer-links a { opacity: .82; font-size: 1rem; transition: opacity .2s, color .2s; }
.footer-links a:hover { opacity: 1; color: #ffd2b8; }
.footer-contact { text-align: right; }
.footer-contact a { font-size: 1.25rem; font-weight: 800; color: #ffd2b8; }
.footer-contact p { font-size: .9rem; opacity: .75; margin-top: 6px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 18px 0; text-align: center; font-size: .9rem; opacity: .7; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .about-grid, .contact-grid, .why-grid { grid-template-columns: 1fr; }
  .about-grid { gap: 40px; }
  .footer-contact { text-align: left; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .footer-links { justify-content: flex-start; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .nav { gap: 20px; }
}

@media (max-width: 860px) {
  :root { --header-h: 68px; }
  .nav {
    display: none; position: absolute; top: var(--header-h); left: 12px; right: 12px;
    background: #fff; flex-direction: column; padding: 14px 20px; gap: 4px;
    border-radius: var(--radius); box-shadow: var(--shadow-lg); border: 1px solid var(--border);
  }
  .nav.open { display: flex; }
  .nav a { padding: 10px 0; border-bottom: 1px solid var(--border); }
  .nav a:last-child { border-bottom: none; }
  .header-phone { display: none; }
  .menu-toggle { display: flex; }
}

@media (max-width: 768px) {
  body { font-size: 1.03rem; }
  .hero { padding: calc(var(--header-h) + 48px) 0 64px; background:
    linear-gradient(rgba(52, 41, 34, .8), rgba(52, 41, 34, .86)), url('images/hero.jpg') 40% center / cover no-repeat, var(--deep); }
  .hero-sub { font-size: 1.1rem; }
  .trust-items { justify-content: center; text-align: center; }
  .trust-item { flex: 1 1 40%; justify-content: center; font-size: .95rem; }
  .services, .gallery, .about, .why-us, .contact { padding: 68px 0; }
  .section-header { margin-bottom: 38px; }
  .before-after { grid-template-columns: 1fr; gap: 16px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .gallery-item:first-child { grid-column: span 2; aspect-ratio: 16 / 9; }
  .gallery-item::after { display: none; }
  .contact-form { padding: 26px 22px; }
  .lb-prev, .lb-next { top: auto; bottom: 18px; transform: none; }
}

@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .about-features { grid-template-columns: 1fr 1fr; gap: 12px; }
  .feature { padding: 16px 14px; }
  .hero-ctas { flex-direction: column; }
  .hero-stats { gap: 10px; }
  .hero-stats { flex-wrap: nowrap; }
  .stat { padding: 10px 12px; flex: 1 1 0; min-width: 0; }
  .stat strong { font-size: 1.3rem; }
  .stat span { font-size: .82rem; display: block; line-height: 1.3; }
  .btn { width: 100%; }
}

/* ===== Featured project ===== */
.featured-project {
  background: var(--card); border: 1px solid var(--border); border-radius: calc(var(--radius) + 6px);
  box-shadow: var(--shadow); padding: 34px; margin-bottom: 56px;
}
.featured-head { max-width: 720px; margin-bottom: 26px; }
.featured-tag {
  display: inline-block; background: var(--accent-soft); color: var(--accent-hover); font-weight: 700;
  font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; padding: 4px 12px; border-radius: 999px; margin-bottom: 10px;
}
.featured-head h3 { font-size: clamp(1.5rem, 2.6vw, 1.9rem); font-weight: 800; margin-bottom: 8px; }
.featured-head p { color: var(--text-light); }
.project-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.project-item {
  display: block; position: relative; overflow: hidden; border-radius: var(--radius-sm);
  background: var(--border); aspect-ratio: 4 / 3; box-shadow: 0 3px 12px rgba(74,56,40,.08);
}
.project-item[hidden] { display: none; }
.project-item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.project-item:hover img, .project-item:focus-visible img { transform: scale(1.05); }
.project-lead { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.project-wide { grid-column: span 2; aspect-ratio: auto; }
.project-item::after {
  content: attr(data-caption); position: absolute; left: 0; right: 0; bottom: 0;
  padding: 26px 12px 10px; color: #fff; font-size: .88rem; font-weight: 600; line-height: 1.35;
  background: linear-gradient(transparent, rgba(40,30,24,.72)); opacity: 0; transition: opacity .3s;
}
.project-lead::after { opacity: 1; font-size: 1rem; padding: 40px 18px 14px; }
.project-item:hover::after, .project-item:focus-visible::after { opacity: 1; }
.featured-more { text-align: center; margin-top: 24px; }
.btn-outline { background: transparent; color: var(--accent-hover); border: 2px solid var(--accent); }
.btn-outline:hover { background: var(--accent-soft); }
.gallery-subhead { font-size: 1.4rem; font-weight: 800; margin-bottom: 20px; }

@media (max-width: 900px) {
  .project-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .featured-project { padding: 22px 16px; margin-bottom: 40px; }
  .project-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .project-lead { grid-column: span 2; aspect-ratio: 4 / 3; }
  .project-wide { grid-column: span 2; aspect-ratio: 16 / 9; }
  .project-item:not(.project-lead)::after { display: none; }
  .featured-more .btn { width: 100%; }
}
