/* SWA Family Office - styles */

:root {
  --green: #c1cd23;
  --dark: #252525;
  --text: #252525;
  --border: #d8dee3;
  --font-sans: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Bitter", Georgia, "Times New Roman", serif;
  --container: 1170px;
  --gutter: 22px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.43;
  color: var(--text);
  background-color: #fff;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--green);
  text-decoration: none;
}

a:hover,
a:focus {
  text-decoration: underline;
}

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

h1,
h2,
h3 {
  font-family: var(--font-serif);
  margin-top: 0;
}

h1 {
  font-size: 50px;
  line-height: 1.12;
  font-weight: 400;
  color: #fff;
  margin-bottom: 30px;
}

h2 {
  font-size: 34px;
  line-height: 1;
  font-weight: 400;
  color: var(--green);
  margin-bottom: 30px;
}

h3 {
  font-size: 18px;
  line-height: 1;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}

p {
  font-size: 16px;
  line-height: 1.35;
  margin: 0 0 15px;
}

.highlight {
  color: var(--green);
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  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: 8px;
  top: -60px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--green);
  color: var(--dark);
  font-weight: 600;
}

.skip-link:focus {
  top: 8px;
}

/* ---------- Header ---------- */

.header {
  position: relative;
  z-index: 100;
  background-color: var(--dark);
}

.header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

.header__logo {
  display: block;
  margin: 24px;
}

.header__logo img {
  display: block;
}

.header__toggle {
  margin-right: 24px;
  padding: 9px 10px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
}

.header__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 1px;
  background-color: var(--green);
}

.header__toggle span + span {
  margin-top: 4px;
}

.header__toggle:hover,
.header__toggle:focus-visible,
.header__toggle[aria-expanded="true"] {
  background-color: var(--green);
}

.header__toggle:hover span,
.header__toggle:focus-visible span,
.header__toggle[aria-expanded="true"] span {
  background-color: #fff;
}

.nav {
  display: none;
  flex-basis: 100%;
}

.nav.is-open {
  display: block;
}

.nav a {
  display: block;
  padding: 10px 15px;
  border-top: 1px solid #fff;
  text-align: center;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--green);
}

.nav a:hover,
.nav a:focus {
  background-color: var(--green);
  color: #fff;
  text-decoration: none;
}

@media (min-width: 992px) {
  .header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: transparent;
  }

  .header::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-color: var(--dark);
    opacity: 0;
    transition: opacity 500ms;
  }

  body.is-scrolled .header::before {
    opacity: 1;
  }

  .header__toggle {
    display: none;
  }

  .nav,
  .nav.is-open {
    display: flex;
    flex-basis: auto;
    margin: 20px 10px 0 0;
  }

  .nav a {
    padding: 20px;
    border-top: 0;
    color: #fff;
  }

  .nav a span {
    padding-bottom: 3px;
    border-bottom: 2px solid transparent;
  }

  .nav a:hover,
  .nav a:focus {
    background-color: transparent;
    color: #fff;
  }

  .nav a:hover span,
  .nav a:focus span {
    border-bottom-color: var(--green);
  }
}

.nav a[aria-current="page"] {
  color: var(--green);
}

/* ---------- Home hero slideshow ---------- */

.hero {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  background-color: var(--dark);
  color: #fff;
}

@media (min-width: 768px) {
  .hero {
    min-height: max(600px, 53.6vw);
  }
}

.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}

.hero__slide.is-active {
  opacity: 1;
}

.hero__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 75% center;
}

.hero__content {
  position: relative;
  z-index: 1;
  padding-top: 50px;
  padding-bottom: 50px;
}

@media (min-width: 992px) {
  .hero__content {
    padding-top: 160px;
  }
}

.hero h1 {
  font-size: 46px;
}

@media (min-width: 768px) {
  .hero h1 {
    font-size: 55px;
  }
}

.hero__description {
  font-family: var(--font-serif);
  font-size: 20px;
  line-height: 31px;
  font-style: italic;
  color: #fff;
}

.arrow-link {
  display: inline-block;
  padding: 25px 0 0 35px;
  background: url("../images/arrow-green.png") 0 25px no-repeat;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 25px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--green);
}

.arrow-link:hover,
.arrow-link:focus {
  background-image: url("../images/arrow-white.png");
  color: #fff;
  text-decoration: none;
}

@media (prefers-reduced-motion: reduce) {
  .hero__slide,
  .header::before {
    transition: none;
  }
}

/* ---------- Inner page top ---------- */

.page-top {
  padding: 70px 0 35px;
  background-color: var(--dark);
  background-position: right top;
  background-repeat: no-repeat;
  background-size: cover;
  color: #fff;
}

@media (min-width: 992px) {
  .page-top {
    padding-top: 150px;
  }
}

.page-top--01 { background-image: url("../images/inner-background-01.jpg"); }
.page-top--02 { background-image: url("../images/inner-background-02.jpg"); }
.page-top--03 { background-image: url("../images/inner-background-03.jpg"); }

.page-introduction {
  margin-top: 12px;
  padding-left: 22px;
  border-left: 2px solid var(--green);
  font-family: var(--font-serif);
  font-size: 22px;
  line-height: 31px;
  font-style: italic;
  color: #fff;
}

/* ---------- Grid ---------- */

.grid-4-8 {
  display: grid;
  grid-template-columns: 1fr;
  column-gap: 30px;
}

@media (min-width: 768px) {
  .grid-4-8 {
    grid-template-columns: 1fr 2fr;
  }
}

.two-col {
  padding-top: 60px;
}

.two-col__left,
.two-col__right {
  padding-bottom: 30px;
}

.two-col__icon {
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
}

.arrow-list {
  margin: 0 0 15px;
  padding-left: 0;
  list-style: none;
}

.arrow-list li {
  padding-left: 25px;
  background: url("../images/bullet-arrow.png") 0 7px no-repeat;
  font-family: var(--font-serif);
  font-size: 17px;
  line-height: 27px;
  font-style: italic;
  font-weight: 500;
  color: #1a1a1a;
}

/* ---------- Bottom cards ---------- */

.cards {
  background-color: var(--dark);
  color: #fff;
}

.cards__grid {
  display: grid;
  grid-template-columns: 1fr;
  max-width: var(--container);
  margin: 0 auto;
}

@media (min-width: 768px) {
  .cards__grid {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto 1fr;
  }
}

.card {
  display: block;
  padding: 40px 22px 97px;
  background: url("../images/arrow-green-large.png") left 22px bottom 40px no-repeat;
  color: #fff;
  transition: background-color 200ms;
}

@media (min-width: 768px) {
  /* Subgrid keeps headings and body text on shared rows across all three cards. */
  .card {
    display: grid;
    grid-row: span 2;
    grid-template-rows: subgrid;
    row-gap: 0;
  }
}

a.card:hover,
a.card:focus-visible {
  background-color: var(--green);
  background-image: url("../images/arrow-white-large.png");
  text-decoration: none;
  outline: none;
}

.card h2 {
  font-size: 27px;
  line-height: 1.1;
}

a.card:hover h2,
a.card:focus-visible h2 {
  color: #fff;
}

.card p {
  margin-bottom: 16px;
  font-size: 16px;
  line-height: 20px;
  color: #fff;
}

/* ---------- Contact ---------- */

.contact-details h3 {
  margin-bottom: 10px;
}

.contact-details p {
  margin-bottom: 30px;
}

.contact-details a {
  color: inherit;
}

.contact-form h2 {
  margin-bottom: 15px;
}

.contact-form__intro {
  margin-bottom: 30px;
}

.form-group {
  margin-bottom: 15px;
}

.form-group--hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-control {
  display: block;
  width: 100%;
  height: 50px;
  padding: 15px 12px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--text);
  background-color: #fff;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
}

.form-control:focus {
  border-color: var(--green);
  outline: 0;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px rgba(193, 205, 35, 0.6);
}

textarea.form-control {
  height: 150px;
  padding-top: 10px;
  resize: vertical;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.required-note {
  margin: 0;
  font-size: 16px;
  font-style: italic;
}

.btn-primary {
  padding: 16px 60px;
  border: 0;
  border-radius: 4px;
  background-color: var(--green);
  font-family: var(--font-sans);
  font-size: 25px;
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
  cursor: pointer;
}

@media (min-width: 480px) {
  .btn-primary {
    padding-left: 100px;
    padding-right: 100px;
  }
}

.btn-primary[disabled] {
  background-color: var(--dark);
  cursor: wait;
}

.form-message {
  margin-top: 15px;
  padding: 12px 15px;
  border-radius: 4px;
  font-size: 16px;
}

.form-message:empty {
  display: none;
}

.form-message--success {
  background-color: #f3f6d3;
  border: 1px solid var(--green);
}

.form-message--error {
  background-color: #fbeaea;
  border: 1px solid #c0392b;
  color: #8a1f14;
}

/* ---------- Footer ---------- */

.footer {
  padding: 24px 0;
  font-size: 14px;
  line-height: 20px;
}

.footer p {
  margin: 0;
  font-size: 14px;
  line-height: 20px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px 30px;
}

@media (min-width: 768px) {
  .footer__grid {
    grid-template-columns: 2fr 1fr;
  }

  .footer__right {
    text-align: right;
  }
}

.footer__location img {
  vertical-align: middle;
  margin-right: 6px;
}

.footer__legal {
  margin-top: 16px;
  color: #6b6b6b;
}

.footer__legal p {
  font-size: 12px;
  line-height: 18px;
}
