/*
Theme Name: Reefuel Water
Theme URI: https://www.reefuelwater.com/
Author: Reefuel
Description: A self-contained, responsive WordPress theme for Reefuel Drinking Water, faithfully rebuilt from the supplied website capture.
Version: 1.0.1
Requires at least: 6.2
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: reefuel-water
Tags: one-column, custom-background, custom-logo, custom-colors, featured-images, full-width-template
*/

@font-face {
  font-family: "Eudoxus Sans";
  src: url("assets/fonts/EudoxusSans.ttf") format("truetype-variations");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --reefuel-deep-blue: #274a61;
  --reefuel-teal: #35a5b5;
  --reefuel-sky: #79c5e0;
  --reefuel-ice: #d1e7ed;
  --reefuel-white: #ffffff;
  --reefuel-content: 1280px;
  --reefuel-copy: 1024px;
  --reefuel-font: "Eudoxus Sans", "Avenir Next", Avenir, "Segoe UI", sans-serif;
}

html {
  scroll-behavior: smooth;
  box-sizing: border-box;
  -webkit-text-size-adjust: 100%;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

body {
  margin: 0;
  color: var(--reefuel-deep-blue);
  background: var(--reefuel-white);
  font-family: var(--reefuel-font);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
}

body,
button,
input,
select,
textarea,
h1,
h2,
h3,
h4,
h5,
h6,
p,
a,
li,
label,
blockquote,
figcaption {
  font-family: var(--reefuel-font) !important;
}

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

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

a:focus-visible {
  outline: 3px solid #48d1cc;
  outline-offset: 5px;
}

p,
h1,
h2,
h3,
address {
  margin-top: 0;
}

.screen-reader-text {
  position: absolute;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  z-index: 100000;
  top: 8px;
  left: 8px;
  display: block;
  clip: auto !important;
  width: auto;
  height: auto;
  padding: 12px 18px;
  color: var(--reefuel-deep-blue);
  background: var(--reefuel-white);
  font-weight: 700;
}

.reefuel-site {
  overflow: clip;
}

.reefuel-container {
  position: relative;
  z-index: 2;
  width: min(calc(100% - 48px), var(--reefuel-content));
  margin-inline: auto;
}

.reefuel-section {
  position: relative;
}

/* Hero */
.reefuel-hero {
  display: flex;
  min-height: 100vh;
  min-height: 100svh;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: #9bd7e8;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
  user-select: none;
}

.reefuel-hero__link {
  display: block;
  width: 100%;
}

.reefuel-hero__link picture {
  display: block;
  width: 100%;
}

.reefuel-hero__art {
  width: min(100%, 1280px);
  max-height: 100svh;
  margin-inline: auto;
  aspect-ratio: 1800 / 1009;
  object-fit: contain;
}

/* Mission */
.reefuel-mission {
  display: flex;
  min-height: 100vh;
  min-height: 100svh;
  align-items: center;
  justify-content: center;
  color: var(--reefuel-white);
  background: var(--reefuel-deep-blue);
}

.reefuel-mission__grid {
  display: grid;
  width: min(calc(100% - 48px), var(--reefuel-copy));
  grid-template-columns: 47fr 53fr;
  align-items: center;
  margin-inline: auto;
}

.reefuel-mission__title,
.reefuel-mission__copy {
  margin: 0;
  padding: 16px;
}

.reefuel-mission__title {
  border-right: 1px solid #fff9eb;
  font-size: clamp(30px, 3vw, 36px);
  font-weight: 400;
  line-height: 1.34;
}

.reefuel-mission__copy {
  font-size: 20px;
  line-height: 1.4;
}

.reefuel-mission a,
.reefuel-impact a,
.reefuel-action a {
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 0.16em;
  transition: text-decoration-color 180ms ease;
}

.reefuel-mission a:hover,
.reefuel-impact a:hover,
.reefuel-action a:hover {
  text-decoration-color: currentColor;
}

/* Paper-boxed water section */
.reefuel-impact {
  display: flex;
  min-height: 100vh;
  min-height: 100svh;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--reefuel-deep-blue);
  background: radial-gradient(circle, var(--reefuel-ice) 30%, var(--reefuel-sky) 100%);
}

.reefuel-impact__main {
  display: grid;
  width: 100%;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding-top: 64px;
}

.reefuel-impact__product {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.reefuel-impact__carton {
  width: 208px;
  margin-inline: auto;
  object-fit: contain;
}

.reefuel-impact__heading {
  margin: 14px 0 0;
  font-size: clamp(24px, 2.2vw, 36px);
  font-weight: 400;
  line-height: 1.35;
}

.reefuel-impact__heading strong {
  display: block;
  font-size: clamp(26px, 2.6vw, 40px);
  font-weight: 700;
}

.reefuel-impact__features {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 16px;
}

.reefuel-feature {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 16px;
  align-items: center;
  font-size: 18px;
}

.reefuel-feature__icon {
  width: 80px;
  max-height: 86px;
  object-fit: contain;
}

.reefuel-feature p {
  margin: 0;
}

.reefuel-impact__promise {
  position: relative;
  z-index: 2;
  width: min(100%, 1152px);
  margin: 80px auto 8px;
  padding: 32px 80px;
  color: var(--reefuel-white);
  background: linear-gradient(90deg, transparent 5%, #35a5b5 50%, transparent 100%);
  font-size: 16px;
  text-align: center;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.reefuel-impact__wave {
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 384px;
  object-fit: cover;
  object-position: center bottom;
  pointer-events: none;
}

/* Action */
.reefuel-action {
  display: flex;
  min-height: 100vh;
  min-height: 100svh;
  align-items: center;
  justify-content: center;
  background: linear-gradient(to top, var(--reefuel-sky) 30%, var(--reefuel-ice) 100%);
}

.reefuel-action__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 16px;
}

.reefuel-action__copy,
.reefuel-action__visual {
  padding: 32px;
}

.reefuel-action__title {
  margin-bottom: 16px;
  font-size: clamp(24px, 2.5vw, 30px);
  font-weight: 800;
  line-height: 1.25;
}

.reefuel-action__copy p {
  margin-bottom: 16px;
}

.reefuel-action__copy p:last-child {
  margin-bottom: 0;
}

.reefuel-action__visual img {
  width: 100%;
  border-radius: 24px;
}

/* Coral restoration */
.reefuel-restoration {
  display: flex;
  min-height: 100vh;
  min-height: 100svh;
  align-items: center;
  justify-content: center;
  padding: 64px 0 48px;
  color: var(--reefuel-white);
  background: var(--reefuel-deep-blue);
}

.reefuel-restoration__header {
  text-align: center;
}

.reefuel-restoration__title {
  margin-bottom: 12px;
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 400;
}

.reefuel-restoration__title span {
  color: #2dd4bf;
}

.reefuel-restoration__intro {
  margin-bottom: 0;
}

.reefuel-restoration__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.reefuel-restoration__card {
  margin: 0;
  text-align: center;
}

.reefuel-restoration__card img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.reefuel-restoration__card figcaption {
  padding: 8px 8px 0;
  font-size: 14px;
}

/* Footer */
.reefuel-footer {
  position: relative;
  display: flex;
  min-height: 100vh;
  min-height: 100svh;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: #f3fbfc;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.reefuel-footer__inner {
  display: flex;
  min-height: 100vh;
  min-height: 100svh;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 80px 24px 36px;
}

.reefuel-footer__logo {
  width: min(320px, 64vw);
}

.reefuel-footer__content {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--reefuel-deep-blue);
  text-align: center;
}

.reefuel-footer__title {
  margin-bottom: 8px;
  color: #14b8a6;
  font-size: 30px;
  font-weight: 400;
  backdrop-filter: blur(8px);
}

.reefuel-footer__tagline {
  margin-bottom: 8px;
}

.reefuel-footer address {
  margin: 0;
  font-style: normal;
}

.reefuel-footer__social {
  display: flex;
  gap: 16px;
  margin: 16px 0;
}

.reefuel-footer__social a {
  display: block;
  border-radius: 50%;
  transition: transform 180ms ease;
}

.reefuel-footer__social a:hover {
  transform: translateY(-3px);
}

.reefuel-footer__social img {
  width: 56px;
  height: 56px;
}

.reefuel-footer__copyright {
  margin-bottom: 0;
}

/* Standard WordPress content */
.reefuel-standard-header,
.reefuel-standard-content {
  width: min(calc(100% - 48px), 900px);
  margin-inline: auto;
}

.reefuel-standard-header {
  padding: 32px 0 16px;
}

.reefuel-standard-header__logo {
  width: 180px;
}

.reefuel-standard-content {
  min-height: 70vh;
  padding: 64px 0;
}

.reefuel-standard-content h1 {
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.1;
}

.reefuel-standard-content a {
  color: #168da0;
  text-decoration: underline;
}

.reefuel-standard-content > article + article {
  margin-top: 56px;
}

.reefuel-standard-footer {
  padding: 32px 24px;
  color: var(--reefuel-white);
  background: var(--reefuel-deep-blue);
  text-align: center;
}

@media (max-width: 767px) {
  .reefuel-container,
  .reefuel-mission__grid {
    width: min(calc(100% - 32px), var(--reefuel-content));
  }

  .reefuel-hero {
    min-height: 100svh;
    background-attachment: scroll;
  }

  .reefuel-hero__art {
    width: min(100%, 768px);
    aspect-ratio: 768 / 1365;
  }

  .reefuel-mission {
    min-height: 100svh;
    padding: 64px 0;
  }

  .reefuel-mission__grid {
    grid-template-columns: 1fr;
  }

  .reefuel-mission__title {
    border-right: 0;
    border-bottom: 1px solid #fff9eb;
    font-size: 30px;
  }

  .reefuel-mission__copy {
    font-size: 18px;
  }

  .reefuel-impact {
    min-height: 0;
    padding-top: 40px;
  }

  .reefuel-impact__main {
    grid-template-columns: 1fr;
    padding-top: 0;
  }

  .reefuel-impact__carton {
    width: 178px;
  }

  .reefuel-impact__features {
    padding: 40px 8px 16px;
  }

  .reefuel-feature {
    grid-template-columns: 72px 1fr;
    font-size: 16px;
  }

  .reefuel-feature__icon {
    width: 72px;
  }

  .reefuel-impact__promise {
    margin-top: 32px;
    padding: 28px 24px 110px;
    font-size: 14px;
  }

  .reefuel-impact__wave {
    height: 210px;
  }

  .reefuel-action {
    min-height: 0;
    padding: 56px 0;
  }

  .reefuel-action__grid {
    grid-template-columns: 1fr;
  }

  .reefuel-action__copy,
  .reefuel-action__visual {
    padding: 16px;
  }

  .reefuel-action__visual {
    padding-top: 4px;
  }

  .reefuel-restoration {
    min-height: 0;
    padding: 64px 0;
  }

  .reefuel-restoration__cards {
    grid-template-columns: 1fr;
  }

  .reefuel-restoration__card img {
    height: auto;
    aspect-ratio: 16 / 10;
  }

  .reefuel-footer__inner {
    padding-top: 56px;
  }

  .reefuel-footer__copyright {
    font-size: 14px;
  }
}

@media (min-width: 768px) and (max-height: 760px) {
  .reefuel-impact,
  .reefuel-restoration {
    min-height: 760px;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

body.admin-bar .reefuel-hero,
body.admin-bar .reefuel-mission,
body.admin-bar .reefuel-impact,
body.admin-bar .reefuel-action,
body.admin-bar .reefuel-restoration,
body.admin-bar .reefuel-footer,
body.admin-bar .reefuel-footer__inner {
  min-height: calc(100svh - 32px);
}

@media screen and (max-width: 782px) {
  body.admin-bar .reefuel-hero,
  body.admin-bar .reefuel-mission,
  body.admin-bar .reefuel-footer,
  body.admin-bar .reefuel-footer__inner {
    min-height: calc(100svh - 46px);
  }
}
