
:root {
  --navy: #092b49;
  --deep-navy: #061e34;
  --blue: #0878bd;
  --light-blue: #eaf4fa;
  --silver: #dce3e9;
  --white: #ffffff;
  --text: #253545;
  --muted: #687887;
  --border: #e4e9ee;
  --shadow: 0 12px 35px rgba(9, 43, 73, .09);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 85px;
}

body {
  font-family: "DM Sans", sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
}

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

button, select, input, textarea {
  font: inherit;
}

button, a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1180px, 91%);
  margin: auto;
}

.section-padding {
  padding: 85px 0;
}

/* HEADER */

.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  margin-right: auto;
}

.brand img {
  width: 155px;
  max-height: 62px;
  object-fit: contain;
}

.brand-fallback {
  display: none;
  font-family: "Montserrat", sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.1;
}

.header-cta {
  background: var(--navy);
  color: white;
  padding: 11px 17px;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

/* HAMBURGER MENU */

.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--white);
  cursor: pointer;
  position: relative;
  z-index: 1002;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 3px;
  background: var(--navy);
  border-radius: 3px;
  transition: transform .2s ease, opacity .2s ease;
  pointer-events: none;
}

.menu-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(8px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-8px) rotate(-45deg);
}

/* DROPDOWN NAVIGATION */

.main-nav {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: min(320px, 91vw);
  max-height: min(75vh, 560px);
  overflow-y: auto;
  flex-direction: column;
  background: white;
  border: 1px solid var(--border);
  border-radius: 9px;
  box-shadow: 0 16px 40px rgba(4, 30, 52, .2);
  padding: 8px 0;
  z-index: 1001;
}

.main-nav.open {
  display: flex;
  animation: menuDrop .18s ease-out;
}

@keyframes menuDrop {
  from { opacity: 0; transform: translateY(-7px); }
  to { opacity: 1; transform: translateY(0); }
}

.main-nav a {
  display: block;
  width: 100%;
  padding: 11px 19px;
  color: var(--navy);
  font-size: 14px;
  font-weight: 700;
  border-bottom: 1px solid #edf1f4;
  transition: background .2s, color .2s;
}

.main-nav a:last-child {
  border-bottom: none;
}

.main-nav a:hover,
.main-nav a:focus {
  background: var(--light-blue);
  color: var(--blue);
}

/* HERO SLIDESHOW */

.hero {
  min-height: 590px;
  position: relative;
  display: flex;
  align-items: center;
  background: var(--navy);
  overflow: hidden;
}

.hero-slideshow {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(3,27,48,.91), rgba(5,39,67,.58), rgba(5,39,67,.15)), linear-gradient(0deg, rgba(3,27,48,.3), transparent);
}

.hero-content {
  position: relative;
  z-index: 2;
  color: white;
  padding-top: 65px;
  padding-bottom: 80px;
}

.eyebrow, .section-label {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 2.2px;
  color: #64c4f3;
  display: inline-block;
  margin-bottom: 15px;
}

.hero h1 {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.12;
  letter-spacing: -2px;
  margin-bottom: 20px;
}

.hero h1 span {
  color: #9bd8f5;
}

.hero-content > p {
  max-width: 570px;
  color: #e0eaf2;
  font-size: 17px;
  margin-bottom: 30px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 14px 24px;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 800;
  transition: .25s;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--blue);
  color: white;
}

.btn-primary:hover {
  background: #05649e;
  transform: translateY(-2px);
}

.btn-outline {
  border-color: white;
  color: white;
  background: rgba(255,255,255,.06);
}

.btn-outline:hover {
  background: white;
  color: var(--navy);
}

.btn-outline-dark {
  border-color: var(--navy);
  color: var(--navy);
}

.btn-outline-dark:hover {
  background: var(--navy);
  color: white;
}

.hero-indicators {
  position: absolute;
  z-index: 3;
  bottom: 27px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 9px;
}

.hero-indicators button {
  width: 24px;
  height: 5px;
  border: 0;
  border-radius: 10px;
  background: rgba(255,255,255,.45);
  transition: .3s;
  padding: 0;
}

.hero-indicators button.active {
  background: white;
  width: 40px;
}

/* ABOUT */

.about-section {
  background: white;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 55px;
  align-items: center;
}

.about-content h2,
.section-heading h2,
.quotation-copy h2,
.contact-layout h2 {
  font-family: "Montserrat", sans-serif;
  color: var(--navy);
  font-size: clamp(29px, 3.3vw, 40px);
  line-height: 1.25;
  letter-spacing: -.8px;
  margin-bottom: 17px;
}

.about-content p {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 17px;
}

.about-content .btn {
  margin-top: 8px;
}

.about-highlight {
  min-height: 290px;
  display: grid;
  place-items: center;
  padding: 35px;
  border-radius: 10px;
  background: linear-gradient(140deg, var(--navy), #0878bd);
  color: white;
  text-align: center;
}

.about-mark {
  display: block;
  font-family: "Montserrat", sans-serif;
  font-size: 58px;
  font-weight: 800;
  color: #9bd8f5;
  margin-bottom: 12px;
}

.about-highlight h3 {
  font-size: 22px;
  margin-bottom: 10px;
}

.about-highlight p {
  color: #e0eaf2;
  font-size: 14px;
}

/* CATEGORY SHORTCUTS */

.category-shortcuts {
  background: #f4f8fb;
  padding: 27px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.category-shortcut {
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 22px 13px;
  text-align: center;
  transition: .25s;
}

.category-shortcut:hover {
  border-color: var(--blue);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.category-icon {
  display: block;
  font-size: 30px;
  color: var(--blue);
  margin-bottom: 10px;
}

.category-shortcut strong {
  display: block;
  font-size: 13px;
  color: var(--navy);
}

.category-shortcut small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 5px;
}

/* SECTION HEADINGS */

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 38px;
}

.section-heading p {
  font-size: 15px;
  color: var(--muted);
  margin-top: 9px;
}

.section-label {
  color: var(--blue);
  margin-bottom: 12px;
}

/* PRODUCTS */

.products-section {
  background: white;
}

.product-group {
  margin-bottom: 58px;
  scroll-margin-top: 100px;
}

.group-heading {
  margin-bottom: 22px;
  border-left: 4px solid var(--blue);
  padding-left: 16px;
}

.group-heading h3 {
  color: var(--navy);
  font-family: "Montserrat", sans-serif;
  font-size: 22px;
}

.group-heading p {
  color: var(--muted);
  font-size: 14px;
  margin-top: 4px;
}

.concealed-fix-group {
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 21px;
  align-items: stretch;
}

.product-card {
  border: 1px solid var(--border);
  border-radius: 9px;
  overflow: hidden;
  background: white;
  transition: .3s;
  min-width: 0;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: #c3d9e8;
}

.product-image {
  height: 195px;
  background: linear-gradient(135deg, #eef3f7, #dce7ef);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
}

.product-card:hover .product-image img {
  transform: scale(1.04);
}

.product-info {
  padding: 19px;
}

.product-brand {
  color: var(--blue);
  font-size: 11px;
  letter-spacing: 1.2px;
  font-weight: 800;
}

.product-info h4 {
  color: var(--navy);
  font-size: 18px;
  margin: 8px 0;
}

.product-info p {
  color: var(--muted);
  font-size: 14px;
  min-height: 45px;
}

.text-link {
  display: inline-block;
  margin-top: 12px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
}

/* INDIVIDUAL PRODUCT CALCULATORS */

.product-calculator {
  border-top: 1px solid var(--border);
  background: #f8fbfd;
  padding: 15px;
}

.product-calculator h5 {
  color: var(--navy);
  font-size: 13px;
  margin-bottom: 12px;
}

.product-calculator label {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  margin-bottom: 5px;
}

.product-calculator select {
  width: 100%;
  height: 39px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: white;
  color: var(--text);
  padding: 0 9px;
  margin-bottom: 11px;
  font-size: 12px;
}

.product-calc-quantity {
  display: flex;
  align-items: center;
  width: 100%;
  height: 39px;
  border: 1px solid var(--border);
  border-radius: 5px;
  overflow: hidden;
  background: white;
  margin-bottom: 12px;
}

.product-calc-quantity button {
  width: 38px;
  height: 100%;
  border: 0;
  background: #eaf2f7;
  color: var(--navy);
  font-size: 20px;
  font-weight: 700;
}

.product-calc-quantity button:hover {
  background: #d7e8f3;
}

.product-calc-quantity input {
  width: 100%;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: 0;
  text-align: center;
  color: var(--navy);
  font-weight: 800;
  font-size: 13px;
  background: white;
}

.product-calc-results {
  border-top: 1px solid var(--border);
  padding-top: 10px;
}

.product-calc-results > div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 11px;
}

.product-calc-results span {
  color: var(--muted);
}

.product-calc-results strong {
  color: var(--navy);
  text-align: right;
}

.product-calc-results .calc-total strong {
  color: var(--blue);
  font-size: 15px;
}

.product-calc-note {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
  margin-top: 8px;
}

/* ACCESSORIES */

.accessories-section {
  background: #f3f7fa;
}

.accessory-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 19px;
}

.accessory-card {
  background: white;
  padding: 29px;
  border-radius: 8px;
  border: 1px solid var(--border);
  transition: .25s;
}

.accessory-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.accessory-symbol {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: var(--light-blue);
  color: var(--blue);
  font-size: 27px;
  margin-bottom: 17px;
}

.accessory-card h3 {
  color: var(--navy);
  font-size: 18px;
  margin-bottom: 9px;
}

.accessory-card p {
  color: var(--muted);
  font-size: 14px;
  min-height: 48px;
}

.accessory-card a {
  display: inline-block;
  color: var(--blue);
  font-weight: 800;
  font-size: 13px;
  margin-top: 16px;
}

/* COLOURS */

.colours-section {
  background: white;
}

.colour-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 18px;
  margin-top: 32px;
}

.colour-grid > div {
  text-align: center;
  font-size: 13px;
  color: var(--navy);
}

.colour-swatch {
  display: block;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 4px solid white;
  box-shadow: 0 0 0 1px var(--border);
  margin: 0 auto 11px;
}

.small-note {
  color: var(--muted);
  font-size: 12px;
  margin-top: 24px;
}

/* OUR PROJECTS */

.gallery-section {
  background: #f3f7fa;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 19px;
}

.gallery-placeholder {
  height: 255px;
  border-radius: 8px;
  background: linear-gradient(0deg, rgba(4,30,52,.8), transparent 70%), linear-gradient(135deg, #8198aa, #d1dce5);
  display: flex;
  align-items: end;
  padding: 22px;
  color: white;
  font-size: 17px;
  font-weight: 800;
  overflow: hidden;
}

/* QUOTATION FORM */

.quotation-section {
  background: #f3f7fa;
}

.quotation-layout {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 65px;
  align-items: start;
}

.quotation-copy h2 {
  margin-bottom: 17px;
}

.quotation-copy > p {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 15px;
}

.quotation-note {
  font-size: 13px !important;
  color: #718394 !important;
}

.quotation-form {
  background: white;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 30px;
  box-shadow: var(--shadow);
}

.quotation-form h3 {
  color: var(--navy);
  font-family: "Montserrat", sans-serif;
  font-size: 22px;
  margin-bottom: 22px;
}

.quotation-form label {
  display: block;
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  margin: 14px 0 7px;
}

.quotation-form input,
.quotation-form select,
.quotation-form textarea {
  display: block;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: white;
  color: var(--text);
  padding: 12px;
  outline-color: var(--blue);
  font-size: 14px;
}

.quotation-form input,
.quotation-form select {
  min-height: 47px;
}

.quotation-form textarea {
  resize: vertical;
  min-height: 105px;
}

.quotation-submit {
  width: 100%;
  margin-top: 22px;
}

/* FAQ */

.faq-section {
  background: white;
}

.faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: 7px;
  margin-bottom: 13px;
  background: white;
  overflow: hidden;
  transition: .25s;
}

.faq-item[open] {
  border-color: #b8d7e9;
  box-shadow: 0 5px 18px rgba(9,43,73,.06);
}

.faq-item summary {
  position: relative;
  cursor: pointer;
  list-style: none;
  padding: 19px 48px 19px 20px;
  color: var(--navy);
  font-size: 15px;
  font-weight: 800;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--blue);
  font-size: 25px;
  font-weight: 400;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-answer {
  padding: 0 20px 20px;
  color: var(--muted);
  font-size: 14px;
}

.faq-answer p + p {
  margin-top: 10px;
}

/* CONTACT */

.contact-section {
  background: white;
}

.contact-layout {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 35px;
}

.contact-layout > div:first-child {
  max-width: 620px;
}

.contact-layout p {
  color: var(--muted);
  margin-top: 16px;
  font-size: 15px;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
}

/* FOOTER */

.site-footer {
  background: var(--deep-navy);
  color: white;
  padding-top: 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 35px;
  padding-bottom: 45px;
}

.footer-brand h2 {
  font-family: "Montserrat", sans-serif;
  font-size: 25px;
  color: white;
}

.footer-brand p {
  color: #aec2d3;
  font-size: 13px;
  max-width: 290px;
  margin-top: 16px;
}

.footer-grid h3 {
  font-size: 15px;
  margin-bottom: 18px;
}

.footer-grid > div:not(:first-child) a {
  display: block;
  color: #aec2d3;
  font-size: 13px;
  margin-bottom: 11px;
}

.footer-grid a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.14);
  min-height: 65px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  color: #9bb1c4;
  font-size: 12px;
}

/* FLOATING WHATSAPP: ICON ONLY, REPEATS EVERY 5 SECONDS */

.floating-whatsapp {
  position: fixed;
  right: 22px;
  bottom: 23px;
  z-index: 1100;
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #159d58;
  color: white;
  border-radius: 50%;
  box-shadow: 0 8px 25px rgba(0,0,0,.2);
  transition: background .25s, box-shadow .25s;
  animation: whatsappBounce 5s ease-in-out infinite;
}

.floating-whatsapp:hover {
  background: #0c8246;
  box-shadow: 0 10px 28px rgba(0,0,0,.25);
}

.whatsapp-icon {
  width: 32px;
  height: 32px;
  display: block;
}

@keyframes whatsappBounce {
  0%, 82%, 100% { transform: translateY(0); }
  87% { transform: translateY(-8px); }
  92% { transform: translateY(0); }
}

/* TABLETS */

@media (max-width: 1050px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .colour-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .quotation-layout {
    gap: 35px;
  }
}

/* MOBILE */

@media (max-width: 760px) {
  .section-padding {
    padding: 62px 0;
  }

  .header-inner {
    min-height: 68px;
    gap: 10px;
  }

  .brand img {
    width: 125px;
    max-height: 53px;
  }

  .header-cta {
    display: none;
  }

  .menu-toggle {
    width: 42px;
    height: 42px;
  }

  .main-nav {
    width: min(320px, 91vw);
    max-height: calc(100vh - 85px);
  }

  .hero {
    min-height: 530px;
  }

  .hero-content {
    padding-top: 55px;
    padding-bottom: 75px;
  }

  .hero h1 {
    font-size: 44px;
    letter-spacing: -1.3px;
  }

  .hero-content > p {
    font-size: 15px;
  }

  .about-grid,
  .quotation-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .about-highlight {
    min-height: 230px;
  }

  .category-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 11px;
  }

  .category-shortcut {
    padding: 17px 9px;
  }

  .category-shortcut strong {
    font-size: 12px;
  }

  .section-heading {
    display: block;
    margin-bottom: 28px;
  }

  .section-heading p {
    font-size: 14px;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .product-image {
    height: 150px;
  }

  .product-info {
    padding: 13px;
  }

  .product-brand {
    font-size: 9px;
  }

  .product-info h4 {
    font-size: 15px;
  }

  .product-info p {
    font-size: 12px;
    min-height: 45px;
  }

  .text-link {
    font-size: 12px;
  }

  .product-calculator {
    padding: 11px;
  }

  .product-calculator h5 {
    font-size: 12px;
  }

  .product-calc-results > div {
    font-size: 10px;
  }

  .accessory-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .accessory-card {
    padding: 18px;
  }

  .accessory-card h3 {
    font-size: 15px;
  }

  .accessory-card p {
    font-size: 12px;
  }

  .colour-grid {
    grid-template-columns: repeat(4, 1fr);
    row-gap: 25px;
  }

  .colour-swatch {
    width: 49px;
    height: 49px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-placeholder {
    height: 210px;
  }

  .quotation-form {
    padding: 22px;
  }

  .faq-item summary {
    font-size: 14px;
    padding: 17px 43px 17px 15px;
  }

  .faq-answer {
    font-size: 13px;
    padding: 0 15px 17px;
  }

  .contact-layout {
    flex-direction: column;
    align-items: flex-start;
  }

  .contact-actions {
    width: 100%;
  }

  .contact-actions .btn {
    flex: 1;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 20px;
  }

  .footer-bottom {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    padding: 17px 0;
  }

  .floating-whatsapp {
    right: 14px;
    bottom: 16px;
    width: 54px;
    height: 54px;
  }

  .whatsapp-icon {
    width: 30px;
    height: 30px;
  }
}

/* SMALL PHONES */

@media (max-width: 390px) {
  .hero h1 {
    font-size: 37px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .product-image {
    height: 195px;
  }

  .accessory-grid {
    grid-template-columns: 1fr;
  }

  .category-shortcut {
    padding: 15px 7px;
  }

  .category-icon {
    font-size: 25px;
  }
}

/* REDUCED MOTION ACCESSIBILITY */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ROOFING ACCESSORY PHOTOS */

.accessory-card {
  padding: 0 0 24px;
  overflow: hidden;
}

.accessory-image {
  width: 100%;
  height: 190px;
  overflow: hidden;
  background: #eaf0f5;
  margin-bottom: 20px;
}

.accessory-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.accessory-card:hover .accessory-image img {
  transform: scale(1.05);
}

.accessory-card h3,
.accessory-card p,
.accessory-card > a {
  margin-left: 22px;
  margin-right: 22px;
}

/* =========================================
   OUR PROJECTS - THREE CATEGORY GALLERIES
========================================= */

.project-categories {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.project-category-card {
  display: block;
  width: 100%;
  padding: 0;
  text-align: left;
  border: 1px solid var(--border);
  border-radius: 9px;
  overflow: hidden;
  background: white;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease;
}

.project-category-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.project-category-image {
  position: relative;
  height: 235px;
  overflow: hidden;
  background: #eaf0f5;
}

.project-category-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.project-category-card:hover .project-category-image img {
  transform: scale(1.05);
}

.project-photo-count {
  position: absolute;
  right: 13px;
  bottom: 13px;
  padding: 6px 11px;
  border-radius: 4px;
  background: var(--navy);
  color: white;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
}

.project-category-info {
  padding: 21px;
}

.project-category-info h3 {
  color: var(--navy);
  font-family: "Montserrat", sans-serif;
  font-size: 18px;
  margin-bottom: 8px;
}

.project-category-info p {
  color: var(--muted);
  font-size: 13px;
  min-height: 45px;
}

.project-category-info > span {
  display: inline-block;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  margin-top: 12px;
}

/* INDIVIDUAL PROJECT GALLERY */

.project-gallery-view {
  margin-top: 15px;
}

.project-gallery-view[hidden] {
  display: none !important;
}

.project-gallery-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 22px;
}

.project-gallery-heading h3 {
  color: var(--navy);
  font-family: "Montserrat", sans-serif;
  font-size: 24px;
}

.project-gallery-heading p {
  color: var(--muted);
  font-size: 14px;
  margin-top: 5px;
}

.gallery-back-button {
  flex-shrink: 0;
  border: 1px solid var(--navy);
  border-radius: 5px;
  background: white;
  color: var(--navy);
  padding: 11px 15px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.gallery-back-button:hover {
  background: var(--navy);
  color: white;
}

.project-slider {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
}

.project-gallery-track {
  display: flex;
  width: 100%;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  border-radius: 9px;
}

.project-gallery-track::-webkit-scrollbar {
  display: none;
}

.project-gallery-slide {
  flex: 0 0 100%;
  min-width: 0;
  height: 420px;
  scroll-snap-align: start;
  overflow: hidden;
  border-radius: 9px;
  background: #eaf0f5;
}

.project-gallery-slide img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.project-arrow {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: var(--navy);
  color: white;
  font-size: 29px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background .2s ease;
}

.project-arrow:hover {
  background: var(--blue);
}

.project-gallery-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  margin-top: 20px;
}

.project-gallery-dots button {
  width: 9px;
  height: 9px;
  border: 0;
  border-radius: 50%;
  padding: 0;
  background: #bdcbd6;
  cursor: pointer;
  transition: .2s ease;
}

.project-gallery-dots button.active {
  width: 25px;
  border-radius: 10px;
  background: var(--blue);
}

/* PROJECT GALLERY MOBILE LAYOUT */

@media (max-width: 760px) {
  .project-categories {
    grid-template-columns: 1fr;
    gap: 17px;
  }

  .project-category-image {
    height: 220px;
  }

  .project-category-info {
    padding: 17px;
  }

  .project-category-info p {
    min-height: 0;
  }

  .project-gallery-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .project-gallery-heading h3 {
    font-size: 21px;
  }

  .gallery-back-button {
    width: 100%;
  }

  .project-slider {
    gap: 6px;
  }

  .project-arrow {
    width: 34px;
    height: 34px;
    font-size: 24px;
  }

  .project-gallery-track {
    gap: 8px;
  }

  .project-gallery-slide {
    height: 260px;
  }
}

@media (max-width: 390px) {
  .project-category-image {
    height: 195px;
  }

  .project-gallery-slide {
    height: 220px;
  }

  .project-arrow {
    width: 30px;
    height: 30px;
  }
}
