/*! HTML5 Boilerplate v9.0.0-RC1 | MIT License | https://html5boilerplate.com/ */

/* main.css 3.0.0 | MIT License | https://github.com/h5bp/main.css#readme */
/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
  color: #222;
  font-size: 1em;
  line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Customize the background color to match your design.
 */

::-moz-selection {
  background: #b3d4fc;
  text-shadow: none;
}

::selection {
  background: #b3d4fc;
  text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 1em 0;
  padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
  vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
  resize: vertical;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

:root {
  --color-primary: #185f63;
  --color-primary-dark: #10474a;
  --color-accent: #dceceb;
  --color-page: #f5f7f6;
  --color-surface: #ffffff;
  --color-text: #253332;
  --color-muted: #566866;
  --color-border: #d8e1df;
  --shadow: 0 10px 30px rgb(25 57 55 / 8%);
  --radius: 0.75rem;
  --content-width: 68rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  
  background: var(--color-page);
  color: var(--color-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.7;
 
}


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

a {
  color: var(--color-primary-dark);
  text-underline-offset: 0.2em;
}

a:focus-visible {
  outline: 3px solid #efb84d;
  outline-offset: 3px;
}

h1,
h2,
h3 {
  margin-top: 0;
  color: #173c3d;
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  margin-bottom: 1rem;
  color: #ffffff;
  font-size: clamp(2.25rem, 7vw, 4.5rem);
  letter-spacing: -0.04em;
}

h2 {
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 3px solid var(--color-accent);
  font-size: clamp(1.75rem, 4vw, 2.4rem);
  letter-spacing: -0.025em;
}

h3 {
  margin-top: 2rem;
  margin-bottom: 0.5rem;
  font-size: 1.15rem;
}

p,
ul {
  margin-top: 0;
  margin-bottom: 1.15rem;
}

ul {
  padding-left: 1.35rem;
}

li {
  margin-bottom: 0.35rem;
  padding-left: 0.25rem;
}

.header {
  position: relative;
  overflow: hidden;
  padding: clamp(3.5rem, 9vw, 7rem) max(1.25rem, calc((100% - var(--content-width)) / 2));
  
  background:
    radial-gradient(circle at 90% 10%, rgb(255 255 255 / 12%), transparent 28rem),
    linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
  color: #ffffff;
   
}

.header > p {
  max-width: 48rem;
  margin-bottom: 2rem;
  color: #edf7f6;
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
}

nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

nav li {
  margin: 0;
  padding: 0;
}

nav a {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.1rem;
  border: 1px solid rgb(255 255 255 / 55%);
  border-radius: 999px;
  color: #ffffff;
  font-weight: 650;
  line-height: 1;
  text-decoration: none;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

nav a:hover {
  background: #ffffff;
  color: var(--color-primary-dark);
  transform: translateY(-1px);
}

.Contact,
.Services,
.About {
  width: min(calc(100% - 2rem), var(--content-width));
  margin: 1.5rem auto;
  padding: clamp(1.5rem, 4vw, 3rem);
  scroll-margin-top: 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  box-shadow: var(--shadow);
}

.Contact h3 + p {
  color: var(--color-muted);
  
}

.Contact .phone + p {
  color: var(--color-primary-dark);
  font-size: 1.35rem;
  font-weight: 750;
}

.location-map {
  display: block;
  width: 100%;
  max-width: 100%;
 aspect-ratio: 4 / 3;
  height: auto;
  border: 0;
  border-radius: 0.5rem;
}

.Services ul {
  display: grid;
  gap: 0.5rem;
  padding: 0;
  list-style: none;
}

.Services li {
  position: relative;
  margin: 0;
  padding: 0.65rem 0.75rem 0.65rem 2.25rem;
  border-radius: 0.4rem;
  background: #f3f8f7;
}

.Services li::before {
  position: absolute;
  top: 0.65rem;
  left: 0.8rem;
  color: var(--color-primary);
  content: "✓";
  font-weight: 800;
}

.About img {
  width: min(100%, 24rem);
  border-radius: calc(var(--radius) - 0.15rem);
  box-shadow: 0 8px 22px rgb(25 57 55 / 14%);
}

.About p:has(img) {
  margin-bottom: 1.5rem;
}

@media (min-width: 44rem) {
  .Services ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .About {
    display: grid;
    grid-template-columns: minmax(15rem, 0.8fr) minmax(0, 1.2fr);
    column-gap: 2.5rem;
  }

  .About h2 {
    grid-column: 1 / -1;
  }

  .About p:has(img) {
    grid-row: span 2;
    margin: 0;
  }
}

@media (max-width: 30rem) {
  nav ul {
    display: grid;
    grid-template-columns: 1fr;
  }

  nav a {
    width: 100%;
  }
}

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

  nav a {
    transition: none;
  }
}

@media print {
  body {
    background: #ffffff;
    color: #000000;
  }

  .header {
    padding: 1rem 0;
    background: #ffffff;
    color: #000000;
  }

  .header h1,
  .header > p {
    color: #000000;
  }

  nav {
    display: none;
  }

  .Contact,
  .Services,
  .About {
    width: 100%;
    margin: 0;
    padding: 1rem 0;
    border: 0;
    box-shadow: none;
  }
}




/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden,
[hidden] {
  display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 *
 * 1. For long content, line feeds are not interpreted as spaces and small width
 *    causes content to wrap 1 word per line:
 *    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
 */

.visually-hidden {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
  /* 1 */
}

/*
 * Extends the .visually-hidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visually-hidden.focusable:active,
.visually-hidden.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  white-space: inherit;
  width: auto;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
  visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * The use of `table` rather than `block` is only necessary if using
 * `::before` to contain the top-margins of child elements.
 */

.clearfix::before,
.clearfix::after {
  content: "";
  display: table;
}

.clearfix::after {
  clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
  /* Style adjustments for viewports that meet the condition */
}

@media print,
  (-webkit-min-device-pixel-ratio: 1.25),
  (min-resolution: 1.25dppx),
  (min-resolution: 120dpi) {
  /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
  *,
  *::before,
  *::after {
    background: #fff !important;
    color: #000 !important;
    /* Black prints faster */
    box-shadow: none !important;
    text-shadow: none !important;
  }

  a,
  a:visited {
    text-decoration: underline;
  }

  a[href]::after {
    content: " (" attr(href) ")";
  }

  abbr[title]::after {
    content: " (" attr(title) ")";
  }

  /*
   * Don't show links that are fragment identifiers,
   * or use the `javascript:` pseudo protocol
   */
  a[href^="#"]::after,
  a[href^="javascript:"]::after {
    content: "";
  }

  pre {
    white-space: pre-wrap !important;
  }

  pre,
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }

  tr,
  img {
    page-break-inside: avoid;
  }

  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }

  h2,
  h3 {
    page-break-after: avoid;
  }
}

