/* ==========================================================================
   Mirusha Company – site styles
   Change the brand colours and fonts in :root below; everything else uses them.
   ========================================================================== */

:root {
  --accent: #b83028;        /* brand red: buttons, links, CTA band */
  --accent-dark: #962620;
  --highlight: #f2b01e;     /* yellow underline on feature boxes */
  --text: #555;
  --heading: #222;
  --muted: #888;
  --border: #e6e6e6;
  --light-bg: #f5f5f5;
  --footer-bg: #222;
  --footer-bottom: #1a1a1a;
  --white: #fff;

  --font: 'Work Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --container: 1170px;
  --gutter: 16px;
  --header-h: 84px;
  --radius: 2px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.75;
  color: var(--text);
  background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent-dark); }
h1, h2, h3, h4, h5, h6 { color: var(--heading); font-weight: 600; line-height: 1.3; margin: 0 0 .6em; }
p { margin: 0 0 1.2em; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 80px 0; }
.center { text-align: center; }
.eyebrow { color: var(--accent); font-size: 14px; font-weight: 500; text-transform: uppercase; letter-spacing: 2px; margin-bottom: .5em; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--accent); color: #fff; padding: 10px 16px; }
.skip-link:focus { left: 16px; top: 16px; color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 32px;
  background: var(--accent);
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  color: #fff;
  font: 600 13px/1.4 var(--font);
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.btn-outline { background: transparent; color: var(--accent); }
.btn-outline:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-light { background: transparent; border-color: #fff; color: #fff; }
.btn-light:hover { background: #fff; border-color: #fff; color: var(--accent); }

/* ---------- Header & navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #fff;
  box-shadow: 0 1px 0 var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); }
.logo img { width: 148px; height: auto; }

.site-nav > ul { display: flex; gap: 4px; }
.site-nav a {
  display: block;
  padding: 10px 12px;
  color: #444;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.site-nav a:hover, .site-nav a[data-active] { color: var(--accent); }
.has-sub { position: relative; }
.sub-toggle { display: none; }
.sub-menu {
  position: absolute; top: 100%; left: 0; min-width: 220px;
  background: #fff; box-shadow: var(--shadow); border-top: 2px solid var(--accent);
  padding: 8px 0;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .2s, transform .2s, visibility .2s;
}
.has-sub:hover > .sub-menu, .has-sub:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.sub-menu a { padding: 8px 20px; text-transform: none; font-size: 14px; letter-spacing: 0; }

.nav-toggle { display: none; }

@media (max-width: 960px) {
  :root { --header-h: 70px; }
  .logo img { width: 120px; }
  .nav-toggle {
    display: flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer;
  }
  .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
    content: ''; display: block; width: 24px; height: 2px; background: var(--heading); position: relative; transition: transform .2s, background .2s;
  }
  .nav-toggle-bars::before { position: absolute; top: -7px; }
  .nav-toggle-bars::after { position: absolute; top: 7px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }

  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; box-shadow: var(--shadow);
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
    display: none;
  }
  .site-nav.is-open { display: block; }
  .site-nav > ul { flex-direction: column; gap: 0; padding: 8px var(--gutter) 16px; }
  .site-nav li { border-bottom: 1px solid var(--border); }
  .site-nav a { padding: 14px 0; font-size: 13px; }
  .has-sub { display: flex; flex-wrap: wrap; align-items: center; }
  .has-sub > a { flex: 1; }
  .sub-toggle {
    display: block; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; position: relative;
  }
  .sub-toggle::after {
    content: ''; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px;
    border-right: 2px solid #444; border-bottom: 2px solid #444;
    transform: translate(-50%, -70%) rotate(45deg); transition: transform .2s;
  }
  .sub-toggle[aria-expanded="true"]::after { transform: translate(-50%, -30%) rotate(-135deg); }
  .sub-menu {
    position: static; flex-basis: 100%; box-shadow: none; border: 0; padding: 0 0 8px 16px;
    opacity: 1; visibility: visible; transform: none; display: none;
  }
  .has-sub:hover > .sub-menu, .has-sub:focus-within > .sub-menu { display: none; }
  .has-sub.is-open > .sub-menu { display: block; }
  .sub-menu li { border: 0; }
  .sub-menu a { padding: 8px 0; }
}

/* ---------- Page title bar ---------- */
.page-title { background: var(--light-bg); padding: 40px 0; }
.page-title-inner { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; justify-content: space-between; }
.page-title h1 { font-size: 26px; margin: 0; }
.breadcrumb { font-size: 13px; color: var(--muted); }
.breadcrumb a { color: var(--heading); }

/* ---------- Home: hero slider ---------- */
.hero { position: relative; height: clamp(420px, 70vh, 640px); overflow: hidden; background: #222; }
.slide {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.65), rgba(0,0,0,.15)), var(--bg) center / cover no-repeat;
  display: flex; align-items: center;
  opacity: 0; visibility: hidden; transition: opacity .8s ease, visibility .8s;
}
.slide.is-active { opacity: 1; visibility: visible; }
.slide-content { color: #fff; padding-bottom: 60px; }
.slide-content > * { max-width: 560px; }
.slide-title { color: #fff; font-size: clamp(32px, 5vw, 56px); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: .3em; }
.slide-content p { font-size: 17px; color: rgba(255,255,255,.9); }
.slide.is-active .slide-content > * { animation: rise .8s ease both; }
.slide.is-active .slide-content > :nth-child(2) { animation-delay: .15s; }
.slide.is-active .slide-content > :nth-child(3) { animation-delay: .3s; }
@keyframes rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(0,0,0,.35); cursor: pointer;
  transition: background .2s;
}
.hero-arrow:hover { background: var(--accent); }
.hero-arrow::after {
  content: ''; position: absolute; left: 50%; top: 50%; width: 12px; height: 12px;
  border-top: 2px solid #fff; border-right: 2px solid #fff;
}
.hero-arrow.prev { left: 16px; }
.hero-arrow.prev::after { transform: translate(-30%, -50%) rotate(-135deg); }
.hero-arrow.next { right: 16px; }
.hero-arrow.next::after { transform: translate(-70%, -50%) rotate(45deg); }
.hero-dots { position: absolute; left: 0; right: 0; bottom: 150px; display: flex; justify-content: center; gap: 10px; z-index: 2; }
.hero-dots button { width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff; background: transparent; padding: 0; cursor: pointer; }
.hero-dots button[aria-current="true"] { background: #fff; }

/* ---------- Home: order steps ---------- */
.steps { position: relative; z-index: 3; margin-top: -120px; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.step { text-align: center; }
.step-photo { width: 100%; aspect-ratio: 504 / 371; object-fit: cover; }
.step-icon {
  display: flex; align-items: center; justify-content: center;
  width: 64px; height: 64px; margin: -32px auto 0; position: relative;
  background: var(--accent); border-radius: 50%; box-shadow: 0 0 0 6px #fff;
}
.step-icon img { width: 34px; height: 34px; }
.step-title { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin: 16px 0 0; }

/* ---------- Home: intro ---------- */
.intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.intro-quote { font-size: clamp(26px, 3.4vw, 38px); font-weight: 500; padding-left: 40px; }
.intro-lead { font-size: 20px; font-weight: 500; }

/* ---------- Home: featured work ---------- */
.featured { padding-bottom: 80px; }
.featured-banner {
  background: linear-gradient(rgba(0,0,0,.55), rgba(0,0,0,.55)), var(--bg) center / cover no-repeat fixed;
  color: rgba(255,255,255,.85);
  text-align: center;
  padding: 90px 0 150px;
}
.featured-banner .eyebrow { color: #fff; opacity: .8; }
.featured-title { color: #fff; font-size: clamp(28px, 4vw, 40px); }
.feature-boxes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin: -90px 0 50px; }
.feature-box {
  background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow);
  padding: 40px 28px 30px; text-align: center; position: relative;
}
.feature-box img { width: 40px; height: 40px; object-fit: contain; margin: 0 auto 20px; }
.feature-box h3 { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.feature-box h3::after { content: ''; display: block; width: 40px; height: 2px; background: var(--highlight); margin: 14px auto 0; }
.feature-box p { margin: 0; font-size: 14px; }

/* ---------- Home: about banner ---------- */
.banner {
  background: linear-gradient(rgba(0,0,0,.55), rgba(0,0,0,.55)), var(--bg) center / cover no-repeat fixed;
  color: #fff; text-align: center; padding: 110px 0;
}
.banner-sub { font-size: 20px; margin-bottom: .4em; }
.banner-title { color: #fff; font-size: clamp(28px, 4.4vw, 48px); font-weight: 700; max-width: 820px; margin: 0 auto 1em; }

/* ---------- CTA band ---------- */
.cta { background: var(--accent); color: #fff; padding: 40px 0; }
.cta-inner { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; justify-content: space-between; }
.cta-text { color: #fff; font-size: 18px; font-weight: 500; margin: 0; flex: 1 1 400px; }
.cta-text a { color: #fff; white-space: nowrap; }

/* ---------- Sidebar layout (services) ---------- */
.with-sidebar { display: grid; grid-template-columns: 270px 1fr; gap: 50px; align-items: start; }
.side-menu { margin-bottom: 40px; }
.side-menu a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 0; border-bottom: 1px solid var(--border); color: var(--text); font-size: 14px;
}
.side-menu a::after { content: '›'; font-size: 18px; line-height: 1; color: var(--muted); }
.side-menu a:hover, .side-menu a[data-active] { color: var(--accent); }
.sidebar-title { font-size: 18px; margin-bottom: 18px; }

.contact-list li { position: relative; padding-left: 30px; margin-bottom: 14px; font-size: 14px; line-height: 1.6; }
.contact-list li::before {
  content: ''; position: absolute; left: 0; top: 2px; width: 16px; height: 16px;
  background: var(--muted); -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat;
}
.contact-list a { color: var(--text); }
.contact-list a:hover { color: var(--accent); }
.icon-pin { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5.25 7 13 7 13s7-7.75 7-13a7 7 0 0 0-7-7zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E"); }
.icon-phone { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.25 11.4 11.4 0 0 0 3.6.57 1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.45.57 3.57a1 1 0 0 1-.25 1z'/%3E%3C/svg%3E"); }
.icon-mail { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 4H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2zm0 4-8 5-8-5V6l8 5 8-5z'/%3E%3C/svg%3E"); }

/* ---------- Services overview ---------- */
.service-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px 30px; }
.service-card img { width: 100%; aspect-ratio: 600 / 378; object-fit: cover; margin-bottom: 20px; transition: opacity .2s; }
.service-card a:hover img { opacity: .85; }
.service-card-title { font-size: 17px; }
.more { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }
.more::after { content: ' ›'; }

/* ---------- Photo mosaic: 1 tall + 2 wide (services, history) ---------- */
.mosaic { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; gap: 20px; margin-bottom: 36px; }
.mosaic a { display: block; overflow: hidden; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.mosaic a:hover img { transform: scale(1.04); }
.mosaic a:first-child { grid-row: span 2; }
.mosaic-history { grid-template-columns: 1fr 1fr 1fr; }
.service-detail-title { font-size: 17px; }

/* ---------- Projects ---------- */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 40px; }
.filter {
  padding: 8px 20px; border: 1px solid var(--border); background: #fff; cursor: pointer;
  font: 500 13px var(--font); text-transform: uppercase; letter-spacing: 1px; color: var(--text);
}
.filter:hover, .filter.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }
.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.project { position: relative; display: block; overflow: hidden; background: #000; }
.project[hidden] { display: none; }
.project img { width: 100%; aspect-ratio: 360 / 267; object-fit: cover; transition: transform .4s, opacity .4s; }
.project-title {
  position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: 40px 20px 18px;
  background: linear-gradient(transparent, rgba(0,0,0,.75)); color: #fff;
  font-size: 15px; text-transform: uppercase; letter-spacing: 1px;
}
.project:hover img { transform: scale(1.05); opacity: .85; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.gallery-item { display: block; overflow: hidden; aspect-ratio: 4 / 3; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery-item:hover img { transform: scale(1.05); }

/* ---------- History ---------- */
.history-grid { display: grid; grid-template-columns: 1fr 270px; gap: 50px; align-items: start; }
.history-lead { font-size: 20px; }
.check-list li { position: relative; padding: 10px 0 10px 28px; border-bottom: 1px solid var(--border); }
.check-list li::before {
  content: ''; position: absolute; left: 2px; top: 17px; width: 12px; height: 7px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg);
}

/* ---------- Contact ---------- */
.map iframe { display: block; width: 100%; height: 420px; border: 0; filter: grayscale(.2); }
.contact-grid { display: grid; grid-template-columns: 1fr 340px; gap: 60px; align-items: start; }
.contact-title { font-size: 26px; }
.contact-form { margin-top: 30px; display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-form label span { display: block; font-size: 13px; font-weight: 500; color: var(--heading); margin-bottom: 6px; }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius);
  font: 15px var(--font); color: var(--heading); background: #fafafa; transition: border-color .2s, background .2s;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--accent); background: #fff; }
.contact-form .btn { justify-self: start; }
.form-note { margin: 0; font-size: 14px; color: var(--muted); }
.contact-details { background: var(--light-bg); padding: 30px; }

/* ---------- 404 ---------- */
.not-found-code { font-size: 96px; font-weight: 700; color: var(--accent); line-height: 1; margin-bottom: 10px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer-bg); color: #aaa; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 50px; padding-top: 70px; padding-bottom: 50px; }
.footer-about { max-width: 380px; }
.footer-about img { width: 126px; margin-bottom: 24px; }
.footer-title { color: #fff; font-size: 15px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 24px; }
.footer-title::after { content: ''; display: block; width: 30px; height: 2px; background: var(--accent); margin-top: 12px; }
.footer-links a { display: block; padding: 8px 0 8px 16px; border-bottom: 1px solid #333; color: #ccc; position: relative; }
.footer-links a::before { content: '›'; position: absolute; left: 0; color: var(--muted); }
.footer-links a:hover, .footer-links a[data-active] { color: #fff; }
.footer-bottom { background: var(--footer-bottom); padding: 20px 0; text-align: center; font-size: 13px; }

.back-to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 40;
  width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.25); background: rgba(34,34,34,.85);
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s, background .2s;
}
.back-to-top::after {
  content: ''; position: absolute; left: 50%; top: 55%; width: 10px; height: 10px;
  border-top: 2px solid #fff; border-left: 2px solid #fff; transform: translate(-50%, -50%) rotate(45deg);
}
.back-to-top.is-visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--accent); }

/* ---------- Lightbox ---------- */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; margin: 0; }
.lightbox::backdrop { background: rgba(0,0,0,.9); }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox img { max-width: min(92vw, 1400px); max-height: 86vh; object-fit: contain; }
.lightbox button {
  position: absolute; border: 0; background: rgba(255,255,255,.1); color: #fff; cursor: pointer;
  width: 48px; height: 48px; font-size: 28px; line-height: 1; border-radius: 50%;
}
.lightbox button:hover { background: var(--accent); }
.lightbox .lb-close { top: 16px; right: 16px; }
.lightbox .lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-count { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; color: #ccc; font-size: 13px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .section { padding: 60px 0; }
  .with-sidebar, .history-grid, .contact-grid { grid-template-columns: 1fr; }
  .with-sidebar .sidebar { order: 2; }
  .intro-grid { grid-template-columns: 1fr; gap: 20px; }
  .intro-quote { padding-left: 0; }
  .projects { grid-template-columns: repeat(2, 1fr); }
  .mosaic-history { grid-template-columns: 1fr 1fr; }
  .featured-banner, .banner { background-attachment: scroll; }
}

@media (max-width: 680px) {
  .hero-dots { bottom: 24px; }
  .hero-arrow { display: none; }
  .slide-content { padding-bottom: 20px; }
  .steps { margin-top: 40px; }
  .steps-grid, .feature-boxes, .service-cards, .projects, .form-row { grid-template-columns: 1fr; }
  .steps-grid { gap: 36px; }
  .feature-boxes { margin-top: -60px; gap: 20px; }
  .featured-banner { padding: 60px 0 100px; }
  .mosaic, .mosaic-history { grid-template-columns: 1fr; }
  .mosaic a:first-child { grid-row: auto; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; padding-top: 50px; }
  .page-title { padding: 28px 0; }
  .map iframe { height: 300px; }
  .contact-details { padding: 24px; }
}

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