/*! HTML5 Boilerplate v7.2.0 | MIT License | https://html5boilerplate.com/ */

/* main.css 2.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: #000000;
  font-size: 18px;
  line-height: 1.4;
  font-family: 'Roboto', sans-serif;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Vendor-prefixed and regular ::selection selectors cannot be combined:
 * https://stackoverflow.com/a/16982510/7133471
 *
 * 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;
}

/* ==========================================================================
   Browser Upgrade Prompt
   ========================================================================== */

.browserupgrade {
  margin: 0.2em 0;
  background: #ccc;
  color: #000;
  padding: 0.2em 0;
}

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

/*
 * Variables
 */
:root {
  --accent-color: #c71f3a;
  --main-color: #254996;
}

body {
  background-color: #ffffff;
  background-image: url(../img/shapes-all.png);
  background-repeat: no-repeat;
  background-position: center;
}

.container {
  max-width: 1100px;
  padding: 0 1em;
  margin: 0 auto;
}

.header {
  background-image: url(../img/header-bg.jpg);
  background-repeat: no-repeat;
  background-position: center top;
  min-height: 700px;
  padding-top: 3em;
  text-align: center;
}

.nav {
  flex: 1;
}

.menu {
  display: flex;
  justify-content: center;
  gap: 2em;
  margin: 0 auto;
  padding: 0;
  margin-bottom: 5em;
  white-space: nowrap;
}

.menu__item {
  list-style: none;
  border-bottom: 4px solid rgba(0, 0, 0, 0);
  transition: border 300ms;
}

.menu__item:hover {
  border-bottom: 4px solid var(--accent-color);
}

.menu__link {
  color: #ffffff;
  text-decoration: none;
}

.title {
  font-size: 3em;
  color: #ffffff;
  margin: 0;
  margin-top: 45px;
  margin-bottom: 75px;
  font-weight: 900;
  text-transform: uppercase;
}

.button {
  border: none;
  background: var(--accent-color);
  color: #ffffff;
  font-weight: 700;
  font-size: 1.3em;
  padding: 16px 32px;
  border-radius: 28px;
  cursor: pointer;
  opacity: 0.9;
  text-decoration: none;
  display: block;
  max-width: 200px;
  width: 100%;
  box-sizing: border-box;
  margin: 0 auto;
}

.button:hover {
  opacity: 1;
}

.development {
  padding: 1.5em 0 0.3em 0;
}

.development .card__wrapper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1em;
}

@media screen and (max-width: 768px) {
  .development .card__wrapper {
    grid-template-columns: 1fr;
  }
}

.services {
  background-color: #dfe9fa;
  background-image: url(../img/shapes.png);
  background-position: center;
  background-repeat: no-repeat;
  padding: 50px 0;
}

.stack {
  background-color: #dfe9fa;
  padding: 50px 0;
}

.pricing {
  background-color: #dfe9fa;
  padding: 50px 0;
}


.subtitle {
  margin: 0;
  text-align: center;
  color: var(--main-color);
  font-size: 2em;
  margin-bottom: 1.5em;
}

.card {
  display: flex;
  align-items: flex-start;
  flex: 1 1 360px;
  padding: 1em;
  min-width: 0;
}

.card--simple {
  background-color: #ffffff;
  margin: 0.5em 1em;
  padding: 1.5em;
}

.card__wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.card__inner {
  min-width: 0;
}

.card__icon {
  margin-right: 1em;
}

.card__title {
  font-weight: 700;
  text-transform: uppercase;
  overflow-wrap: break-word;
}

.card__text {
  overflow-wrap: break-word;
}

.card__title--simple {
  color: var(--accent-color);
}

.card__text--simple {
  color: #3b3b3b;
}

.footer {
  background-color: var(--main-color);
  padding: 2em 0;
}

.footer__inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2em;
}

.footer__inner .nav {
  flex: none;
}

.address {
  color: #fff;
  font-size: 13px;
  text-align: left;
  width: 100%;
  overflow-wrap: break-word;
}

.logo {
  width: 163px;
  max-width: 100%;
}

.logo__footer {
  width: 120px;
  max-width: 100%;
}

.footer__menu {
  width: auto;
  margin-bottom: 0;
  text-align: left;
}

.form__input {
  display: block;
  margin: 1em auto;
  padding: 1em;
  border-radius: 28px;
  outline: none;
  width: 100%;
  border: 1px solid #333;
}

.form__title {
  margin-bottom: 1em;
  font-size: 1.5em;
}

.label {
  text-align: center;
  width: 100%;
  display: block;
  margin-top: 1.5em;
}

@media screen and (max-width: 768px) {
  html {
    font-size: 14px;
  }

  .container {
    padding: 0.5em;
  }

  .nav {
    width: 100%;
  }

  .menu {
    white-space: normal;
    flex-wrap: wrap;
    gap: 0.75em 1.5em;
  }

  .title {
    font-size: min(2.5em, 10vw);
  }

  .subtitle {
    font-size: min(2em, 8vw);
  }

  .card {
    flex: 1 1 100%;
    min-width: 0;
  }

  .card--simple {
    margin: 0.5em 0;
    padding: 1em;
  }

  .card__title,
  .card__text {
    overflow-wrap: break-word;
  }

  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer__menu {
    margin: 20px 0;
    order: 0;
  }

  .logo__footer {
    order: 1;
    margin: 20px auto;
  }

  .address {
    order: 2;
  }
}


@media screen and (max-width: 320px) {
  .button {
    padding: 12px 16px;
    font-size: 1em;
  }

  .card--simple {
    padding: 0.5em;
  }

  .card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .card__icon {
    margin-right: 0;
    margin-bottom: 0.5em;
  }
}

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

/*
 * Hide visually and from screen readers
 */

.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
*/

.sr-only {
  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 .sr-only class to allow the element
* to be focusable when navigated to via the keyboard:
* https://www.drupal.org/node/897638
*/

.sr-only.focusable:active,
.sr-only.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
*
* For modern browsers
* 1. The space content is one way to avoid an Opera bug when the
*    `contenteditable` attribute is included anywhere else in the document.
*    Otherwise it causes space to appear at the top and bottom of elements
*    that receive the `clearfix` class.
* 2. 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: ' ';
  /* 1 */
  display: table;
  /* 2 */
}

.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: transparent !important;
    color: #000 !important;
    /* Black prints faster */
    -webkit-box-shadow: none !important;
    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;
  }

  /*
       * Printing Tables:
       * https://web.archive.org/web/20180815150934/http://css-discuss.incutio.com/wiki/Printing_Tables
       */
  thead {
    display: table-header-group;
  }

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

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

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

.cookie-panel-row {
  position: sticky;
  left: 0;
  right: 0;
  bottom: 0;
  min-height: 56px;
  background-color: #dae6f9;
  justify-content: space-between;
  padding: 17px;
  font-weight: 400;
  align-items: center;
  color: #21408b;
  display: none;
  text-align: left;
  font-size: 16px;
}

.wrapper-accept-btn {
  width: fit-content;
  margin-left: 20px;
}

.access-cookie-btn {
  border: 1px solid #21408b;
  border-radius: 30px;
  background: none;
  padding: 12px 0;
  font-size: 16px;
  letter-spacing: 0.02em;
  font-weight: 700;
  color: #21408b;
  cursor: pointer;
  min-width: 123px;
}

@media screen and (max-width: 480px) {
  .cookie-panel-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .wrapper-accept-btn {
    margin-left: 0;
    width: 100%;
  }

  .access-cookie-btn {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }
}

@media screen and (min-width: 769px) {
  .cookie-panel-row {
    justify-content: center;
  }

  .wrapper-accept-btn {
    margin-left: 50px;
  }

  .access-cookie-btn {
    min-width: 133px;
  }
}
