/* MS Plastering Southwest - Netlify static site */
:root {
  --primary: #084058;
  --primary-2: #0b5d7a;
  --ink: #0b1220;
  --muted: #5b6676;
  --bg: #f6f7f9;
  --card: #ffffff;
  --line: rgba(11, 18, 32, .10);
  --shadow: 0 14px 34px rgba(0,0,0,.10);
  --radius: 18px;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color: var(--ink);
  background: radial-gradient(1000px 500px at 20% -10%, rgba(8,64,88,.12), transparent 55%),
              radial-gradient(900px 500px at 85% 10%, rgba(11,93,122,.10), transparent 60%),
              var(--bg);
  line-height: 1.55;
}

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.skip-link {
  position: absolute; left: -999px; top: auto; width: 1px; height: 1px; overflow: hidden;
}
.skip-link:focus {
  left: 16px; top: 16px; width: auto; height: auto;
  background: #fff; padding: 10px 12px; border-radius: 10px;
  box-shadow: var(--shadow);
  z-index: 9999;
}

header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246,247,249,.75);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0;
  gap: 16px;
}

.brand {
  display: flex; align-items: center; gap: 12px;
  /* Allow the brand block to take available space on small screens */
  min-width: 0;
  flex: 1;
}
.brand img {
  width: 44px; height: 44px; border-radius: 12px;
  object-fit: cover;
  background: #fff;
  border: 1px solid var(--line);
}
.brand .name {
  display: flex; flex-direction: column;
  line-height: 1.15;
}
.brand .name strong {
  font-size: 18px;
  letter-spacing: .2px;
}
.brand .name span {
  font-size: 13px;
  color: var(--muted);
}

nav ul {
  display: flex; align-items: center; gap: 18px;
  list-style: none; padding: 0; margin: 0;
}

nav a {
  padding: 10px 10px;
  border-radius: 12px;
  color: rgba(11,18,32,.92);
  font-weight: 560;
}
nav a[aria-current="page"] {
  background: rgba(8,64,88,.10);
  color: var(--primary);
}

.actions {
  display: flex; align-items: center; gap: 10px;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 11px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  /* Ensure label text is always visible even inside dark hero sections */
  color: var(--ink);
  font-weight: 650;
  box-shadow: 0 10px 22px rgba(0,0,0,.06);
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn.primary {
  border-color: rgba(8,64,88,.25);
  background: linear-gradient(135deg, rgba(8,64,88,.95), rgba(11,93,122,.92));
  color: #fff;
}

.hamburger {
  display: none;
  width: 44px; height: 44px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  align-items: center; justify-content: center;
}
.hamburger svg { width: 22px; height: 22px; }

@media (max-width: 860px) {
  nav ul { display: none; }
  .hamburger { display: inline-flex; }
  /* Keep brand flexible so the business name can use available space */
  .brand { min-width: 0; }
}

.mobile-panel {
  display: none;
  border-top: 1px solid var(--line);
  background: rgba(246,247,249,.92);
  backdrop-filter: blur(10px);
}
.mobile-panel.open { display: block; }
.mobile-panel a {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 650;
}

.hero {
  position: relative;
  padding: 66px 0 42px;
}
.hero-card {
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--radius) + 10px);
  border: 1px solid var(--line);
  background:
    linear-gradient(120deg, rgba(8,64,88,.92), rgba(11,93,122,.70) 40%, rgba(246,247,249,.10) 82%),
    url('https://source.unsplash.com/1600x900/?plastering,render,construction,wall') center/cover no-repeat;
  box-shadow: var(--shadow);
}
.hero-inner {
  padding: 44px 28px;
  color: #fff;
}
/* In some mobile browsers, inherited hero text color can override button labels.
   Force secondary CTA labels to stay readable on the white button background. */
.hero .btn { color: var(--ink) !important; }
.hero .btn.primary { color: #fff !important; }
.kicker {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.18);
  font-weight: 650;
  font-size: 13px;
}
.hero h1 {
  margin: 14px 0 10px;
  font-size: clamp(30px, 4.2vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.hero p {
  margin: 0;
  max-width: 62ch;
  color: rgba(255,255,255,.88);
  font-size: 16px;
}

/* Sponsor links inside the hero paragraph */
.hero a.hero-link {
  color: rgba(255,255,255,.94);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(255,255,255,.45);
}
.hero a.hero-link:hover {
  color: #fff;
  text-decoration-color: rgba(255,255,255,.80);
}
.hero-cta {
  margin-top: 22px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
  margin: 26px 0 10px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: 0 10px 24px rgba(0,0,0,.06);
}

.card h2 {
  margin: 0 0 8px;
  font-size: 18px;
}
.card p {
  margin: 0;
  color: var(--muted);
}

.features .card { grid-column: span 4; }
@media (max-width: 920px) { .features .card { grid-column: span 6; } }
@media (max-width: 620px) { .features .card { grid-column: span 12; } }

.section-title {
  margin-top: 30px;
  display: flex; align-items: baseline; justify-content: space-between; gap: 14px;
}
.section-title h2 {
  margin: 0;
  font-size: 22px;
}
.section-title small {
  color: var(--muted);
}

.services {
  margin-top: 14px;
}
.services .card { grid-column: span 6; }
@media (max-width: 860px) { .services .card { grid-column: span 12; } }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 650;
  color: var(--primary);
  background: rgba(8,64,88,.08);
  border: 1px solid rgba(8,64,88,.14);
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 13px;
}

.split {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 18px;
  margin-top: 22px;
}
@media (max-width: 920px) {
  .split { grid-template-columns: 1fr; }
}

.form {
  display: grid;
  gap: 12px;
}
label {
  display: grid;
  gap: 6px;
  font-weight: 650;
  color: rgba(11,18,32,.92);
}
input, textarea {
  width: 100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  font: inherit;
}
textarea { min-height: 130px; resize: vertical; }
.help {
  color: var(--muted);
  font-size: 13px;
}

footer {
  margin-top: 42px;
  padding: 26px 0 34px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 18px;
}
@media (max-width: 920px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-grid a { color: var(--muted); }
.footer-grid a:hover { color: var(--primary); text-decoration: none; }

.page-hero {
  padding: 34px 0 18px;
}
.section {
  padding: 8px 0 22px;
}
.page-hero h1 {
  margin: 0 0 8px;
  font-size: clamp(26px, 3.4vw, 40px);
}
.breadcrumb {
  color: var(--muted);
  font-size: 13px;
}
.placeholder {
  border: 2px dashed rgba(8,64,88,.25);
  background: rgba(8,64,88,.05);
  border-radius: var(--radius);
  padding: 18px;
  color: rgba(11,18,32,.78);
}

/* Call box (home page contact card) */
.callbox {
  border: 1px solid rgba(8,64,88,.18);
  background: rgba(246,247,249,.9);
  border-radius: var(--radius);
  padding: 16px;
  color: rgba(11,18,32,.78);
}
.callbox strong {
  color: rgba(11,18,32,.92);
}
.call-actions {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}
.call-actions .btn {
  justify-content: center;
}

/* Reviews */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}
.review-card {
  grid-column: span 6;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: 0 10px 24px rgba(0,0,0,.06);
  position: relative;
  overflow: hidden;
}
.review-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, rgba(8,64,88,.0), rgba(8,64,88,.55), rgba(11,93,122,.25), rgba(8,64,88,.0));
}
.review-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.source-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid var(--line);
  background: rgba(246,247,249,.9);
  color: rgba(11,18,32,.82);
}
.source-pill.google { border-color: rgba(8,64,88,.18); }
.source-pill.facebook { border-color: rgba(11,93,122,.20); }

.stars {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: rgba(8,64,88,.88);
}
.star {
  width: 16px;
  height: 16px;
  fill: currentColor;
  opacity: .95;
}

.review-text {
  margin: 0;
  color: rgba(11,18,32,.86);
  font-size: 15px;
  line-height: 1.6;
}
.review-footer {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 920px) {
  .review-card { grid-column: span 12; }
}


/* Customer Photos Gallery */
.gallery-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap:14px;
}
@media (max-width: 900px){
  .gallery-grid{ grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 560px){
  .gallery-grid{ grid-template-columns: 1fr; }
}
.gallery-item{
  display:block;
  border-radius:16px;
  overflow:hidden;
  background: rgba(255,255,255,.75);
  border:1px solid rgba(17,24,39,.10);
  box-shadow: 0 10px 24px rgba(11,18,32,.08);
  transform: translateY(0);
  transition: transform .18s ease, box-shadow .18s ease;
}
.gallery-item:hover{
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(11,18,32,.12);
}
.gallery-item img{
  width:100%;
  height:220px;
  object-fit:cover;
  display:block;
}
@media (max-width: 560px){
  .gallery-item img{ height: 240px; }
}
.small-note{
  margin:14px 0 0;
  color: var(--muted);
  font-size: 14px;
}
