/* Define color palette and other CSS variables */
:root {
    --primary-color: #0e4e59;  /* A vibrant teal */
    --primary-dark: #0f8a92;
    --secondary-color: #b23d13; /* A warm orange accent */
    --dark-color: #2c3e50;      /* A soft, dark charcoal for text */
    --light-color: #f7f9fa;     /* A very light, cool gray for backgrounds */
    --white-color: #ffffff;
    --gray-color: #7f8c8d;

    --viking: #55ced1;
    --edward: #9db4ad;
    --firefly: #091e23;
    --dingley: #6c773f; 
    --dingley-compliment-1: #8894c0;
    --dingley-compliment-2: #9388c0;
    --white-rock: #e7decc;
    --elm: #20717d;
    --woodland: #384322;
    --eden: #0e4e59;
    --eastern-blue: #13a8b2;

    --bulma-primary: var(--primary-color);

    --bulma-primary-h: 188deg;
    --bulma-primary-s: 63%;
    --bulma-primary-l: 20%;

    --bulma-button-h: var(--bulma-primary-h);
    --bulma-button-s: var(--bulma-primary-s);
    --bulma-button-l: var(--bulma-primary-l);

    --bulma-body-color: #2c3e50;
    --bulma-family-primary: 'Montserrat', sans-serif;
    --bulma-family-secondary: 'Roboto', sans-serif;
    --header-height: 8rem;
    --blur: 5px;
    --gap: 3rem;
    --card-radius: 0.75rem;
    --button-radius: 0.5rem;
    
    --quote-width: 30rem;
}

body {
    background-color: f7f9fa;
}

textarea {
  resize: none;
  height: auto !important;
}

.header {
    height: var(--header-height);
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 100;
    padding: 30px;
}

.logo {
  height: 6rem !important;
  min-height: 6rem !important;
  max-height: 6rem !important;
  width: 10rem !important;
  min-width: 10rem !important;
  max-width: 10rem !important;
  border-radius: var(--button-radius);
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.navbar {
    height: var(--header-height);
    padding-left: 10%;
    padding-right: 10%;
    backdrop-filter: blur(var(--blur));
    background-color: rgba(255,255,255, 0.15);
    border-radius: var(--card-radius);
}

.navbar-item .subtitle {
    color: white;   
}

.navbar-end a {
  border-radius: var(--button-radius);
}

.navbar-end a:focus {
  background-color: var(--primary-color);
}

.navbar-end a:hover {
  background-color: var(--primary-color);
}

.button {
    width: 9rem;
    color: white;
}

@media screen and (max-width: 768px) {
  .button {
      width: 8rem;
      color: white;
  }
}

.is-clickable {
    cursor: pointer;
}

.social-link {
  color: white;
}

.navbar-start {
    gap: var(--gap);
    align-items: center;
}

.navbar-end {
    gap: var(--gap);
    align-items: center;
}

.section {
  background-color: var(--light-color);
  padding-right: var(--quote-width) !important;
  padding-top: 8rem !important;
}

@media screen and (max-width: 768px) {
  .section {
    background-color: var(--light-color);
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    padding-top: 2rem !important;
  }
}

/* ==================== HERO SECTION ==================== */
.hero-image-container {
    width: 100%;
    height: 48rem;
    position: relative;
    border-bottom-left-radius: var(--card-radius);
    border-bottom-right-radius: var(--card-radius);
    overflow: hidden;
}

.hero-image-container .blur {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-size: cover;
    background-position: center;
}

.hero-image-container img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;

    /* blurring */
    backdrop-filter: blur(var(--blur));
    -webkit-backdrop-filter: blur(var(--blur));
}

.quote {
    position: fixed !important;
    top: 12rem;
    right: 1rem;
    width: calc(var(--quote-width) - 2rem);
    height: auto;
}

@media screen and (max-width: 768px) {
  .quote {
    position: relative !important;
    top: auto;
    right: auto;
    width: var(--screen-width);
    height: auto;
  }
}

.header > .content blockquote {
  width: 32rem;
  color: white;
  background: transparent;
  backdrop-filter: blur(var(--blur));
}

.header > .content blockquote footer {
  color: white;
}

.content blockquote {
  width: 23rem;
  font-style: italic;
  border-left: 5px solid var(--bulma-primary);
  padding: 1.5rem;
  margin: 2rem 0;
  background: white;
  border-radius: var(--card-radius);
}

.content blockquote footer {
  margin-top: 1rem;
  font-style: normal;
  font-weight: bold;
  font-size: 0.9rem;
  text-align: right;
}

/* ==================== SERVICES SECTION ==================== */
.services-card-container {
  display: flex;
  flex-flow: row wrap;
  column-gap: calc(var(--gap) / 2);
}

#services .card {
  min-width: 30rem !important;
  width: 30rem !important;
  height: 18rem;
}

#services .content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 12rem;
}

@media screen and (max-width: 768px) {
  #services .card {
    min-width: var(--screen-width) !important;
    width: var(--screen-width) !important;
    height: 19rem;
  }

  #services .content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 13rem;
  }
}

.services-image-grid {
  display: grid;
  padding-top: 5rem;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(2, auto);
  gap: calc(var(--gap) / 2);
  margin: 0 auto;
}

.services-image-grid img {
  width: 100%;
  object-fit: cover;
  border-radius: var(--button-radius);
  opacity: 1;
  transition: opacity 1.2s ease;
}

.services-image-grid img.fade {
  opacity: 0;
}

/* ==================== SERVICE AREAS SECTION ==================== */
.service-area-container {
  display: flex;
  justify-content: flex-start;
  align-items: flex-end;
}

.service-area-grid {
    display: inline-table;
}

.service-area-grid > .grid > .cell {
  width: 13rem;
}

@media screen and (max-width: 768px) {
  .service-area-grid > .grid > .cell {
    width: auto !important;
  }
}

.map-container img {
  border-radius: var(--card-radius);
}

/* ==================== SERVICE AREAS SECTION ==================== */
.reviews-container {
    display: flex;
    flex-wrap: wrap;
    gap: calc(var(--gap) / 2);
}

.reviews-container .content blockquote{
    margin: 0;
}

/* ==================== FOOTER ==================== */
.footer {
    background-color: var(--primary-color);
    padding-right: var(--quote-width) !important;
    color: white;
}

@media screen and (max-width: 768px) {
  .footer {
    background-color: var(--primary-color);
    padding-right: 0 !important;
    color: white;
  }
}

#about .container {
    display: flex;
    justify-content: space-evenly;
    align-items: flex-end;
}

@media screen and (max-width: 768px) {
  #about .container {
    display: block;
  }
}