@import url("brand.css");

:root {
  --page-gutter: max(9%, calc((100% - 96rem) / 2));
  font: 400 1rem/1.55 var(--brand-font);
  color: var(--kbs-charcoal);
  background: var(--kbs-white);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--kbs-white); }
img { display: block; max-width: 100%; }
p { margin: 0 0 1em; }
h1, h2, h3 { line-height: 1.13; margin: 0 0 .6em; letter-spacing: -.025em; }
h1 { font-weight: 700; font-size: clamp(2.45rem, 4.05vw, 4rem); }
h2, h3 { font-weight: 500; }
h2 { font-size: clamp(1.85rem, 2.9vw, 2.8rem); }
h3 { font-size: clamp(1.23rem, 2vw, 1.95rem); }
.shell { width: min(82%, 96rem); margin-inline: auto; }
.skip { position: absolute; top: .5rem; left: .5rem; z-index: 5; background: var(--kbs-white); padding: .5rem 1rem; transform: translateY(-200%); }
.skip:focus { transform: none; }
.header { min-height: 5rem; padding-block: 1rem; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem 2rem; }
.brand { display: flex; align-items: center; gap: .8rem; text-decoration: none; font-weight: 700; }
.brand small { display: block; font-size: .76rem; font-weight: 500; }
nav { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem 1.6rem; }
nav a { text-decoration: none; font-weight: 500; }
nav a:hover, nav [aria-current="page"] { text-decoration: underline; }
.hero { background: var(--kbs-hero); border-bottom: 3px solid var(--kbs-primary); padding-block: clamp(4rem, 7vw, 8rem); }
.home .hero {
  min-height: clamp(29rem, 48vw, 44rem);
  display: grid;
  align-items: center;
  color: var(--kbs-white);
  background:
    linear-gradient(to bottom, transparent 55%, #33313B80),
    linear-gradient(90deg, #33313BD9, #33313BBF 62%, #33313B33),
    var(--kbs-charcoal) url("assets/kouga-beach-hero.webp") center / cover no-repeat;
}
.home .hero :is(h1, .eyebrow) { color: inherit; }
.home .hero h1 { max-width: 19ch; }
.home .hero p:not(.eyebrow) { max-width: 49ch; }
.home .hero .pill:focus-visible { outline-color: var(--kbs-white); }
.home .hero .action:hover { border-color: var(--kbs-white); }

@media (max-width: 850px) {
  .home .hero {
    background:
      linear-gradient(to bottom, #33313BBF 55%, #33313BE6),
      var(--kbs-charcoal) url("assets/kouga-tower-hero.webp") 50% center / cover no-repeat;
  }
}
.hero p:not(.eyebrow), .accent p:not(.eyebrow) { font-size: clamp(1.08rem, 1.32vw, 1.32rem); }
.eyebrow { margin-bottom: 1.3rem; text-transform: uppercase; letter-spacing: .17em; font-size: .88rem; font-weight: 700; color: var(--kbs-charcoal); }
.actions { display: flex; flex-wrap: wrap; gap: .85rem 1.2rem; margin-top: 2.1rem; }
.pill { border-radius: var(--kbs-border-radius); border: 2px solid transparent; background: var(--kbs-white); color: var(--kbs-charcoal); display: inline-block; padding: .8rem 1.65rem; text-decoration: none; font-weight: 500; }
.pill:hover { text-decoration: underline; }
.action:focus-visible { outline-color: var(--kbs-charcoal); }
.cta .action:focus-visible { outline-color: var(--kbs-white); }
.outline { border-color: currentColor; }
.service-band { background: var(--kbs-charcoal); color: var(--kbs-white); border-block: 1px solid var(--kbs-primary); padding-block: 1.35rem; }
.service-band .shell { display: flex; flex-wrap: wrap; justify-content: center; gap: .25rem .8rem; }
.service-band a { color: inherit; font-weight: 500; text-decoration: none; }
.service-band a:hover { text-decoration: underline; }
.service-band a + a::before { content: "•"; margin-right: .8rem; }
.section { padding-block: clamp(3.5rem, 6.4vw, 7.5rem); }
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; gap: clamp(1.6rem, 3vw, 3.5rem); }
.split p:not(.eyebrow) { font-size: 1.08rem; }
.photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: .6rem; }
.overview { background: var(--kbs-background); }
.overview h2, .details > h2 { text-align: center; margin-bottom: clamp(2rem, 4vw, 4rem); }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.card { padding: clamp(1.25rem, 2vw, 2.1rem); background: var(--kbs-white); border-radius: var(--kbs-border-radius); border: 1px solid var(--kbs-dusty-pink); border-bottom: 3px solid var(--kbs-primary); box-shadow: var(--kbs-shadow); }
.card:hover, .card:focus-within { box-shadow: 0 .65rem 1.5rem #33313B28; }
.card h3 { font-size: 1.25rem; padding-bottom: .95rem; border-bottom: 2px solid var(--kbs-primary); }
.card h3 a { text-decoration: none; }
.card h3 a:hover { text-decoration: underline; }
.ticks { list-style: none; padding: 0; margin: 1.25rem 0 0; }
.ticks li { position: relative; padding-left: 1.15rem; margin-block: .42rem; }
.ticks li::before { content: ""; position: absolute; top: .58em; left: .1em; width: .38em; height: .38em; transform: rotate(45deg); border-top: 2px solid var(--kbs-primary); border-right: 2px solid var(--kbs-primary); }
.cta { text-align: center; background: var(--kbs-charcoal); color: var(--kbs-white); padding-block: clamp(3.5rem, 5vw, 6rem); border-top: 5px solid var(--kbs-primary); }
.cta .pill { margin-top: .75rem; }
.cta h2, .contact-section .contact > div :is(h1, h2) { color: var(--kbs-white); }
.cta .eyebrow { color: var(--kbs-dusty-pink); }
.cta .action:hover { background: var(--kbs-dusty-pink); color: var(--kbs-charcoal); }
.accent { background: var(--kbs-background); }
.services-hero {
  position: relative;
  isolation: isolate;
  color: var(--kbs-white);
  background: var(--kbs-charcoal);
}
.services-hero .services-background {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.services-hero::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background: linear-gradient(90deg, #33313BD9, #33313BBF 50%, #33313B26 80%);
}
.services-hero :is(h1, .eyebrow) { color: inherit; }
.services-hero .pill:focus-visible { outline-color: var(--kbs-white); }

@media (max-width: 620px) {
  .services-hero::before {
    background: linear-gradient(180deg, #33313BCF 55%, #33313B26);
  }
}
.about-hero {
  color: var(--kbs-white);
  background:
    linear-gradient(90deg, #33313BE6, #33313BBF),
    var(--kbs-charcoal) url("assets/IMG-20180810-WA0054.jpg") center / cover no-repeat;
}
.about-hero :is(h1, h2, .eyebrow) { color: inherit; }
@media (min-width: 621px) {
  .home .about-hero .split > div { grid-column: 2; }
}
.accent .photo, .brief { box-shadow: 0 .35rem 1.5rem #33313B22; }
.detail + .detail { margin-top: clamp(3rem, 5.5vw, 6.5rem); }
.detail { scroll-margin-top: 1.25rem; }
.detail h3::after { display: block; content: ""; width: 5rem; height: 3px; margin-top: .8rem; background: var(--kbs-primary); }
.detail:not(.reverse) .photo { grid-column: 1; grid-row: 1; }
.detail .ticks li::before, .brief .ticks li::before { border-color: var(--kbs-primary); }
.text-only { display: block; }
.text-only > div { max-width: 45rem; }
.contact { align-items: start; }
address { display: grid; gap: .7rem; font-style: normal; font-weight: 500; overflow-wrap: anywhere; margin-top: 1.8rem; }
.contact-location { display: grid; gap: .25rem; justify-items: start; }
.brief { background: var(--kbs-white); border-radius: .75rem; padding: clamp(1.5rem, 3vw, 3rem); }
.brief h2 { font-size: clamp(1.4rem, 2vw, 2rem); }
.brief .pill { margin-top: 1.1rem; }
.footer { padding-block: 1.5rem 4rem; }
.help { position: fixed; right: clamp(.65rem, 2vw, 1.6rem); bottom: .75rem; background: var(--kbs-white); color: var(--kbs-charcoal); border-radius: 5rem; padding: .45rem .8rem; box-shadow: 0 2px 12px #33313B33; text-decoration: none; font-weight: 500; font-size: .85rem; }
.help:hover { text-decoration: underline; }
@media (max-width: 850px) {
  :root { --page-gutter: 5.5%; }
  .shell { width: 89%; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .header nav { width: 100%; gap: .2rem 1rem; }
  .split, .cards { grid-template-columns: minmax(0, 1fr); }
  .detail:not(.reverse) .photo { grid-row: auto; }
  .service-band a + a::before { content: none; }
  .service-band .shell { gap: .4rem 1rem; }
}

.enquiry label { display: block; margin-top: .85rem; font-weight: 500; }
.enquiry input, .enquiry select, .enquiry textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  margin-top: .25rem;
  padding: .65rem .75rem;
  border: 1px solid var(--kbs-charcoal);
  border-radius: .45rem;
  background: var(--kbs-white);
  color: var(--kbs-charcoal);
  font: inherit;
}
.enquiry :is(input, select, textarea, button):focus-visible {
  outline: 3px solid var(--kbs-charcoal);
  outline-offset: 3px;
  box-shadow: 0 0 0 3px var(--kbs-primary);
}
.enquiry textarea { resize: vertical; }
.enquiry #enquiry-note { margin: .85rem 0 0; font-size: .875rem; }
.enquiry button { font: inherit; font-weight: 500; cursor: pointer; }

.contact-section { background: var(--kbs-charcoal); }
.contact-section .contact > div a { color: var(--kbs-dusty-pink); }
.contact-section .contact > div { color: var(--kbs-white); }
.contact-section .eyebrow { color: var(--kbs-dusty-pink); }
.contact-section .enquiry { border-top: .35rem solid var(--kbs-primary); }

.contact-socials {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}
.contact-socials :is(a, li > span) {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  min-height: 2.75rem;
  font-weight: 500;
}
.contact-socials svg { flex: none; }
