/* ===== Arch Property Maintenance ===== */
:root {
  --clay: #b85c38;
  --clay-dark: #9c4a2b;
  --ink: #232a26;          /* deep slate-green near-black */
  --ink-deep: #181d1a;
  --cream: #f5f1ea;
  --card: #fffefb;
  --sand: #ece4d6;
  --grey: #6a6e6a;
  --line: #e3ddd1;
  --radius: 12px;
  --arch: 999px;
  --shadow: 0 18px 40px -22px rgba(24, 29, 26, 0.5);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;   /* sticky-safe guard against any horizontal overflow */
}

h1, h2, h3 {
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.5px;
}

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

/* ===== Layout helpers ===== */
section { padding: 100px 24px; }
.section-head { max-width: 760px; margin: 0 auto 60px; text-align: center; }
.section-head h2 { font-size: clamp(2.1rem, 4.4vw, 3.2rem); }
.eyebrow {
  font-family: 'Archivo', sans-serif;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--clay);
  margin-bottom: 14px;
}
.lead { color: var(--grey); font-size: 1.1rem; margin-top: 16px; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: 'Archivo', sans-serif;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 15px 30px;
  border-radius: var(--radius);
  transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
  border: none;
}
.btn-primary { background: var(--clay); color: #fff; }
.btn-primary:hover { background: var(--clay-dark); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-ghost { background: rgba(255,255,255,0.45); color: var(--ink); border: 2px solid rgba(35,42,38,0.32); }
.btn-ghost:hover { border-color: var(--ink); background: rgba(255,255,255,0.7); }
.btn-full { width: 100%; }

/* ===== Nav ===== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245, 241, 234, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1180px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px;
}
.nav-logo { display: flex; align-items: center; }
.nav-logo img { height: 62px; width: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  font-family: 'Archivo', sans-serif;
  text-transform: uppercase; letter-spacing: 1px;
  font-size: 0.85rem; font-weight: 600;
  color: var(--ink); transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--clay); }
.nav-phone { color: var(--clay) !important; }
.nav-cta {
  background: var(--clay); color: #fff !important;
  padding: 10px 20px; border-radius: var(--radius);
}
.nav-cta:hover { background: var(--clay-dark); }
.nav-toggle { display: none; background: none; border: none; flex-direction: column; gap: 5px; cursor: pointer; }
.nav-toggle span { width: 26px; height: 3px; background: var(--ink); border-radius: 2px; }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex; align-items: center;
  padding: 90px 24px;
  background: var(--cream);
  overflow: hidden;
}
/* Athenry arch photo with parchment left; cream gradient lifts the text zone for dark copy */
.hero-bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(247,242,233,0.78) 0%, rgba(247,242,233,0.58) 30%, rgba(247,242,233,0.16) 52%, transparent 66%),
    url('assets/hero.jpg') center right/cover no-repeat,
    var(--cream);
}
.hero-arch { display: none; }
.hero-content { position: relative; max-width: 1180px; margin: 0 auto; width: 100%; color: var(--ink); }
.hero-eyebrow {
  font-family: 'Archivo', sans-serif;
  text-transform: uppercase; letter-spacing: 4px;
  font-size: 0.82rem; color: var(--clay); margin-bottom: 18px; font-weight: 700;
}
.hero h1 {
  font-size: clamp(2.25rem, 6.5vw, 5rem);
  font-weight: 900; color: var(--ink);
}
.hero-sub { font-size: clamp(1.05rem, 2vw, 1.28rem); max-width: 540px; margin: 24px 0 36px; color: rgba(35,42,38,0.82); }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 48px; margin-top: 56px; flex-wrap: wrap; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font-family: 'Archivo', sans-serif; font-weight: 900; font-size: 2.6rem; color: var(--clay); line-height: 1; }
.hero-stats span { text-transform: uppercase; letter-spacing: 1px; font-size: 0.78rem; color: rgba(35,42,38,0.62); margin-top: 8px; }
/* Narrow screens crop onto the dark arch, so wash the whole hero cream for legibility */
@media (max-width: 760px) {
  .hero-bg {
    background:
      linear-gradient(90deg, rgba(247,242,233,0.93) 0%, rgba(247,242,233,0.85) 48%, rgba(247,242,233,0.6) 78%, rgba(247,242,233,0.42) 100%),
      url('assets/hero.jpg') right center/cover no-repeat,
      var(--cream);
  }
}

/* ===== Trust strip ===== */
.trust { background: var(--ink); padding: 18px 24px; }
.trust-inner {
  max-width: 1180px; margin: 0 auto;
  display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap;
  font-family: 'Archivo', sans-serif; text-transform: uppercase;
  letter-spacing: 1.5px; font-size: 0.82rem; font-weight: 600;
  color: rgba(255,255,255,0.75);
}
.trust .dot { color: var(--clay); }

/* ===== Services ===== */
.services { background: var(--cream); }
.service-grid {
  max-width: 1180px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.service-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--clay); }
/* arch-topped icon tile — the signature motif */
.service-icon {
  width: 58px; height: 64px;
  border-radius: 26px 26px 12px 12px;
  background: rgba(184,92,56,0.10); color: var(--clay);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.service-icon svg { width: 28px; height: 28px; }
.service-card:hover .service-icon { background: var(--clay); color: #fff; transform: translateY(-2px); }
.service-card h3 { font-size: 1.18rem; margin-bottom: 8px; font-weight: 700; }
.service-card p { color: var(--grey); font-size: 0.96rem; }

/* ===== Work / feature ===== */
.work { background: var(--ink); color: #fff; overflow: hidden; }
.work-inner {
  max-width: 1180px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center;
}
.work-frame { position: relative; }
/* arch-topped image frame — Pete's real exterior work */
.work-img {
  width: 100%; aspect-ratio: 4 / 5;
  border-radius: var(--arch) var(--arch) var(--radius) var(--radius);
  background: url('assets/pete-exterior.jpg') center/cover no-repeat;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: var(--shadow);
}
/* smaller landscape frame layered over the corner — paving in action */
.work-img-sub {
  position: absolute; left: -26px; bottom: -30px;
  width: 52%; aspect-ratio: 4 / 3;
  border-radius: 14px;
  background: url('assets/paving-work.jpg') center/cover no-repeat;
  border: 4px solid var(--ink);
  box-shadow: var(--shadow);
}
.work-badge {
  position: absolute; right: -16px; top: 26px;
  background: var(--clay); color: #fff;
  border-radius: 20px 20px 10px 10px;
  padding: 18px 22px; text-align: center;
  box-shadow: var(--shadow);
}
.work-badge strong { display: block; font-family: 'Archivo', sans-serif; font-weight: 900; font-size: 2.4rem; line-height: 1; }
.work-badge span { text-transform: uppercase; letter-spacing: 2px; font-size: 0.72rem; }
.work-copy h2 { font-size: clamp(2rem, 4vw, 2.9rem); color: #fff; margin-bottom: 18px; }
.work-copy > p { color: rgba(255,255,255,0.82); margin-bottom: 26px; font-size: 1.05rem; }
.work-list { list-style: none; margin-bottom: 32px; }
.work-list li {
  padding: 16px 0; border-top: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.82);
}
.work-list strong {
  display: block; font-family: 'Archivo', sans-serif; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.5px; color: var(--clay);
  font-size: 0.95rem; margin-bottom: 2px;
}

/* ===== About ===== */
.about { background: var(--card); }
.about-inner {
  max-width: 1180px; margin: 0 auto;
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: center;
}
.about-copy h2 { font-size: clamp(2rem, 4vw, 2.9rem); margin-bottom: 20px; }
.about-copy p { color: var(--grey); margin-bottom: 16px; font-size: 1.06rem; }
.about-points { display: flex; flex-direction: column; gap: 18px; }
.point {
  background: var(--cream); border-left: 4px solid var(--clay);
  border-radius: 0 10px 10px 0; padding: 20px 24px;
}
.point strong { display: block; font-family: 'Archivo', sans-serif; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; font-size: 1.1rem; }
.point span { color: var(--grey); font-size: 0.95rem; }

/* ===== Contact ===== */
.contact { background: var(--ink); color: #fff; }
.contact-inner {
  max-width: 1080px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px;
}
.contact-copy h2 { font-size: clamp(2rem, 4vw, 2.9rem); color: #fff; margin-bottom: 16px; }
.contact-copy > p { color: rgba(255,255,255,0.82); margin-bottom: 32px; }
.contact-details { list-style: none; }
.contact-details li { padding: 18px 0; border-top: 1px solid rgba(255,255,255,0.12); }
.contact-label {
  display: block; font-family: 'Archivo', sans-serif;
  text-transform: uppercase; letter-spacing: 2px; font-size: 0.76rem;
  color: var(--clay); margin-bottom: 4px; font-weight: 700;
}
.contact-details a, .contact-details li > span:last-child { font-size: 1.15rem; color: #fff; }
.contact-form {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius); padding: 32px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 18px; }
.field label {
  display: block; font-family: 'Archivo', sans-serif;
  text-transform: uppercase; letter-spacing: 1px; font-size: 0.78rem; font-weight: 600;
  margin-bottom: 8px; color: rgba(255,255,255,0.8);
}
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 14px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.18);
  border-radius: 8px; color: #fff; font-family: inherit; font-size: 0.98rem;
  resize: vertical;
}
.field select { appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%23b85c38' stroke-width='2'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px;
}
.field select option { color: #1a1a1a; }
.field input::placeholder, .field textarea::placeholder { color: rgba(255,255,255,0.4); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--clay); }
.form-success {
  background: rgba(184,92,56,0.10); border: 1px solid var(--clay);
  border-radius: var(--radius); padding: 40px 32px; text-align: center;
}
.form-success-title { font-size: 1.6rem; color: #fff; margin-bottom: 10px; }
.form-success p { color: rgba(255,255,255,0.85); }
.form-success a { color: var(--clay); font-weight: 600; }

/* ===== Footer ===== */
.footer { background: var(--ink-deep); color: #fff; padding: 52px 24px; }
.footer-inner {
  max-width: 1180px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
}
.footer-brand { display: flex; align-items: center; }
.footer-logo { height: 110px; width: auto; }
.footer-info { text-align: right; }
.footer-info p { color: rgba(255,255,255,0.7); font-size: 0.92rem; }
.footer-info a { color: var(--clay); }
.footer-copy { margin-top: 8px; font-size: 0.82rem !important; color: rgba(255,255,255,0.45) !important; }

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .work-inner, .about-inner, .contact-inner { grid-template-columns: 1fr; gap: 40px; }
  .work-frame { max-width: 420px; margin: 0 auto 30px; }
  .work-img-sub { left: 0; width: 46%; }
  /* decorative badge overlaps the "Our Work" heading once stacked; the "25 years"
     message is already carried by the hero stats and the section heading */
  .work-badge { display: none; }
  .nav-toggle { display: flex; }
  .nav-logo img { height: 52px; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream); border-bottom: 1px solid var(--line);
    padding: 8px 24px 20px; display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px 0; border-bottom: 1px solid var(--line); }
  .nav-phone { padding: 13px 0; }
  .nav-cta { text-align: center; margin-top: 8px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-info { text-align: center; }
}
@media (max-width: 560px) {
  section { padding: 68px 20px; }
  .service-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 30px; }
  .trust-inner { font-size: 0.74rem; gap: 8px; }
}

/* ===== Gallery page ===== */
.is-current { color: var(--clay) !important; }
.gallery-head { text-align: center; padding: 70px 24px 40px; max-width: 820px; margin: 0 auto; }
.gallery-head h1 { font-size: clamp(2.3rem, 5vw, 3.4rem); margin-top: 6px; }
.gallery-head .lead { max-width: 560px; margin: 16px auto 0; }
.gallery-filters {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
  margin-top: 30px;
}
.gallery-filters a {
  font-family: 'Archivo', sans-serif; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px; font-size: 0.76rem;
  padding: 10px 18px; border-radius: var(--arch);
  background: var(--card); border: 1px solid var(--line); color: var(--ink);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.gallery-filters a:hover { background: var(--clay); color: #fff; border-color: var(--clay); }

.gallery-cat { padding: 64px 24px; scroll-margin-top: 96px; }
.gallery-cat--alt { background: var(--sand); }
.gallery-cat-head { max-width: 1180px; margin: 0 auto 30px; }
.gallery-cat-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
.gallery-cat-head p { color: var(--grey); margin-top: 8px; max-width: 620px; }

.gallery-grid {
  max-width: 1180px; margin: 0 auto;
  column-count: 3; column-gap: 16px;
}
.gallery-grid figure { break-inside: avoid; margin: 0 0 16px; }
.gallery-grid img {
  width: 100%; border-radius: var(--radius);
  box-shadow: var(--shadow); cursor: zoom-in;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.gallery-grid img:hover { transform: translateY(-3px); box-shadow: 0 24px 50px -20px rgba(24,29,26,0.55); }

.gallery-cta { text-align: center; background: var(--ink); color: #fff; }
.gallery-cta h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); color: #fff; }
.gallery-cta p { color: rgba(255,255,255,0.8); margin-top: 12px; }
.gallery-cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }

/* ===== Lightbox ===== */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(15, 18, 16, 0.92);
  display: flex; align-items: center; justify-content: center;
}
.lightbox[hidden] { display: none; }
.lb-img { max-width: 90vw; max-height: 86vh; border-radius: 8px; box-shadow: 0 30px 80px -20px rgba(0,0,0,0.8); }
.lightbox button {
  position: absolute; background: rgba(255,255,255,0.12); color: #fff;
  border: none; cursor: pointer; border-radius: 999px;
  width: 52px; height: 52px; font-size: 1.8rem; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s ease;
}
.lightbox button:hover { background: var(--clay); }
.lb-close { top: 20px; right: 20px; }
.lb-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 20px; top: 50%; transform: translateY(-50%); }

/* ===== Homepage "Our Work" category preview ===== */
.work-cats {
  max-width: 1180px; margin: 56px auto 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.work-cat {
  position: relative; display: block; border-radius: var(--radius);
  overflow: hidden; aspect-ratio: 4 / 3; box-shadow: var(--shadow);
}
.work-cat img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.work-cat:hover img { transform: scale(1.06); }
.work-cat::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(15,18,16,0.82) 0%, rgba(15,18,16,0.12) 55%, transparent 100%);
}
.work-cat-label {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  padding: 16px; color: #fff;
}
.work-cat-label strong {
  display: block; font-family: 'Archivo', sans-serif; font-weight: 800;
  font-size: 1.05rem; line-height: 1.15;
}
.work-cat-label span {
  display: inline-flex; align-items: center; gap: 5px; margin-top: 4px;
  font-family: 'Archivo', sans-serif; text-transform: uppercase;
  letter-spacing: 1px; font-size: 0.7rem; font-weight: 700; color: var(--clay);
}
.work-cat:hover .work-cat-label span { color: #fff; }

@media (max-width: 980px) {
  .gallery-grid { column-count: 2; }
  .work-cats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .gallery-grid { column-count: 1; }
  .work-cats { grid-template-columns: 1fr; }
}

/* work section actions + light outline button (on dark bg) */
.work-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-outline-light { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.5); }
.btn-outline-light:hover { border-color: #fff; background: rgba(255,255,255,0.1); transform: translateY(-2px); }

/* ===== Floating action buttons ===== */
.float-actions {
  position: fixed; bottom: 20px; right: 20px; z-index: 90;
  display: flex; flex-direction: column; align-items: flex-end; gap: 14px;
}
.float-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 58px; height: 58px; border-radius: 50%; color: #fff;
  box-shadow: 0 10px 26px -8px rgba(24,29,26,0.55);
  transition: transform 0.15s ease;
}
.float-btn svg { width: 28px; height: 28px; }
.float-btn:hover { transform: scale(1.06); }
.float-call { background: var(--clay); display: none; }   /* mobile only */
.float-wa { position: relative; background: #25D366; }
.float-wa::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(37,211,102,0.55);
  animation: wa-pulse 2.4s ease-out infinite;
}
@keyframes wa-pulse {
  0% { box-shadow: 0 0 0 0 rgba(37,211,102,0.5); }
  70% { box-shadow: 0 0 0 16px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}
.float-label {
  position: absolute; right: calc(100% + 12px); white-space: nowrap;
  background: var(--ink); color: #fff; font-size: 0.85rem; font-weight: 600;
  padding: 8px 14px; border-radius: var(--radius);
  opacity: 0; transform: translateX(6px); pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.float-wa:hover .float-label { opacity: 1; transform: translateX(0); }
@media (max-width: 760px) {
  .float-call { display: inline-flex; }
  .float-label { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .float-wa::after { animation: none !important; }
}

/* long email addresses wrap instead of overflowing */
.contact-details a, .footer-info a { overflow-wrap: anywhere; }
