* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  color: #2f2f2e;
  background: #fff;
}


/* ========================================
   HEADER
   ======================================== */

.site-header {
  height: 202px;
  background: #fff;
}

.header-inner {
  width: 980px;
  height: 202px;
  margin: 0 auto;
  position: relative;
}

.logo {
  position: absolute;
  left: 0;
  top: 36px;
}

.logo img {
  display: block;
  width: 375px;
  height: 131px;
  object-fit: contain;
}

.header-right {
  position: absolute;
  right: 0;
  top: 72px;
  width: 515px;
}

nav {
  height: 45px;
  display: flex;
  align-items: center;
}

nav a {
  height: 45px;
  line-height: 45px;
  padding: 0 22px;
  color: #9e969f;
  text-decoration: none;
  font-size: 14px;
  white-space: nowrap;
  text-align: center;
}

nav a.active,
nav a:hover {
  color: #2f2f2e;
}


/* ========================================
   SEARCH REMOVED
   ======================================== */

.search,
.search-box,
.site-search,
input[type="search"] {
  display: none !important;
}


/* ========================================
   WORK PAGE
   ======================================== */

.work-page {
  width: 100%;
  background: #efeeea;

  min-height: 0;

  padding: 64px 0 80px;
  margin: 0;
}

.work-page h1 {
  margin: 0 0 80px;
  padding: 0;

  text-align: center;

  font-size: 40px;
  line-height: 1.35;
  font-weight: 700;
}


/* ========================================
   WORK GALLERY

   269 + 10 + 269 + 10 + 269 = 827px

   Every gutter is exactly 10px.
   ======================================== */

.gallery {
  width: 827px;
  max-width: calc(100% - 40px);

  margin: 0 auto;
  padding: 0;

  display: grid;

  grid-template-columns: repeat(3, 269px);

  /*
    Do NOT use the old:
    grid-template-rows: repeat(3, 316px);

    Each row is now exactly the same
    height as each image.
  */

  grid-template-rows: none;
  grid-auto-rows: 269px;

  column-gap: 10px;
  row-gap: 10px;

  justify-content: center;
  align-content: start;
  align-items: start;

  border: 0;
  outline: 0;

  position: static;
}


/* ========================================
   GALLERY IMAGES
   ======================================== */

.gallery img {
  display: block;

  width: 269px;
  height: 269px;

  min-width: 269px;
  max-width: 269px;

  min-height: 269px;
  max-height: 269px;

  margin: 0;
  padding: 0;

  object-fit: cover;
  object-position: center center;

  border: 0;
  outline: 0;

  position: static;
  transform: none;

  vertical-align: top;
}


/* Remove anything generated around gallery */

.gallery::before,
.gallery::after,
.gallery img::before,
.gallery img::after {
  content: none;
  display: none;
}


/* ========================================
   CTA
   ======================================== */

.cta {
  width: 100%;
  height: 340px;

  margin: 0;
  padding: 0;

  background: #cdcbc1;
  color: #fff;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  text-align: center;
}

.cta h2 {
  margin: 0 0 18px;
  padding: 0;

  font-size: 25px;
}

.cta .phone {
  margin: 0;
  padding: 0;

  font-size: 18px;
  text-align: center;
}

.cta .phone a {
  color: inherit;
  text-decoration: none;
}


/* ========================================
   FOOTER
   ======================================== */

footer {
  height: 170px;
  padding-top: 50px;

  color: #8f8e8c;
  text-align: center;
}

.socials {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.socials img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

footer p {
  font-size: 12px;
}


/* ========================================
   TABLET
   ======================================== */

@media (max-width: 1000px) {

  .site-header {
    height: auto;
  }

  .header-inner {
    width: 100%;
    height: auto;

    padding: 18px;

    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .logo,
  .header-right {
    position: static;
  }

  .logo img {
    width: 260px;
    height: auto;
  }

  .header-right {
    width: auto;
  }

  nav a {
    padding: 0 10px;
  }

  .work-page {
    min-height: 0;
    padding: 60px 0;
  }

  .gallery {
    width: calc(100% - 40px);
    max-width: none;

    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: none;
    grid-auto-rows: auto;

    column-gap: 10px;
    row-gap: 10px;
  }

  .gallery img {
    width: 100%;
    height: auto;

    min-width: 0;
    max-width: 100%;

    min-height: 0;
    max-height: none;

    aspect-ratio: 1 / 1;
  }
}


/* ========================================
   MOBILE
   ======================================== */

@media (max-width: 700px) {

  .header-inner {
    display: block;
  }

  .logo img {
    margin: 0 auto;
  }

  nav {
    justify-content: center;
    flex-wrap: wrap;
    height: auto;
  }

  .work-page h1 {
    font-size: 34px;
    margin-bottom: 55px;
  }

  .gallery {
    width: calc(100% - 30px);

    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
    grid-auto-rows: auto;

    column-gap: 10px;
    row-gap: 10px;
  }

  .gallery img {
    width: 100%;
    height: auto;

    min-width: 0;
    max-width: 100%;

    min-height: 0;
    max-height: none;

    aspect-ratio: 1 / 1;
  }
}


/* ========================================
   UNIFIED OAKWATERS HEADER
   ======================================== */

header,
.site-header,
.header {
  width: 100% !important;
  max-width: none !important;

  box-sizing: border-box !important;
}

header {
  min-height: 225px !important;
  height: 225px !important;

  background: #fff !important;

  display: flex !important;
  align-items: center !important;
}

header > * {
  box-sizing: border-box !important;
}

header .header-inner,
header .nav-wrap,
header .container,
header > div {
  width: 100% !important;
  max-width: 1800px !important;

  margin-left: auto !important;
  margin-right: auto !important;
}


/* Search intentionally removed */

header form,
header input[type="search"],
header input[placeholder="Search..."],
header .search,
header .search-box,
header .site-search,
header [class*="search"] {
  display: none !important;
}


/* Prevent page-specific logo sizing */

header img {
  max-height: 190px !important;
  width: auto !important;

  object-fit: contain !important;
}


@media (max-width: 800px) {

  header {
    height: auto !important;
    min-height: 150px !important;
  }

}
