/**
* Wrapier — site styles.
* Started from BootstrapMade "Scaffold"; trimmed to the sections this page uses.
*
* Palette is taken from the product photography: bag paper, uncoated stock,
* black ribbon handles, and a print-ink blue for the one accent.
*/

:root {
  --paper: #ffffff;
  --stock: #f3f3f0;
  --ink: #202226;
  --graphite: #54575e;
  --rule: #dddcd6;
  --field: #cfcec8;
  --reflex: #1f3aa8;
  --reflex-deep: #172c80;

  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --header-h: 76px;
  --section-y: 112px;
}

@media (max-width: 991px) {
  :root {
    --header-h: 64px;
    --section-y: 72px;
  }
}

/*--------------------------------------------------------------
# General
--------------------------------------------------------------*/
body {
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--graphite);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font);
  color: var(--ink);
}

a {
  color: var(--reflex);
  text-decoration: none;
}

a:hover {
  color: var(--reflex-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

:focus-visible {
  outline: 2px solid var(--reflex);
  outline-offset: 3px;
}

strong {
  font-weight: 600;
  color: var(--ink);
}

/*--------------------------------------------------------------
# Back to top button
--------------------------------------------------------------*/
.back-to-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 20px;
  bottom: 20px;
  z-index: 996;
  width: 44px;
  height: 44px;
  border-radius: 6px;
  background: var(--ink);
  transition: opacity 0.3s, visibility 0.3s;
}

.back-to-top i {
  font-size: 26px;
  color: var(--paper);
  line-height: 0;
}

.back-to-top:hover {
  background: var(--reflex);
}

.back-to-top.active {
  visibility: visible;
  opacity: 1;
}

/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/
#header {
  height: var(--header-h);
  z-index: 997;
  /* Solid, no backdrop-filter: a filter would trap the fixed mobile menu inside the header. */
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}

#header.header-scrolled {
  border-bottom-color: var(--rule);
}

#header .logo h1 {
  margin: 0;
  font-size: 25px;
  line-height: 1;
  font-weight: 800;
  font-stretch: 125%;
  letter-spacing: -0.01em;
}

#header .logo h1 a,
#header .logo h1 a:hover {
  color: var(--ink);
  text-decoration: none;
}

/*--------------------------------------------------------------
# Navigation Menu
--------------------------------------------------------------*/
.navbar {
  padding: 0;
}

.navbar ul {
  margin: 0;
  padding: 0;
  display: flex;
  list-style: none;
  align-items: center;
}

.navbar li {
  position: relative;
}

.navbar a,
.navbar a:focus {
  display: flex;
  align-items: center;
  padding: 10px 0 10px 32px;
  font-size: 15px;
  font-weight: 500;
  color: var(--graphite);
  white-space: nowrap;
  transition: color 0.2s;
}

.navbar a:hover,
.navbar .active,
.navbar .active:focus,
.navbar li:hover > a {
  color: var(--ink);
  text-decoration: none;
}

.navbar .active {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 8px;
}

/* Mobile navigation */
.mobile-nav-toggle {
  color: var(--ink);
  font-size: 28px;
  cursor: pointer;
  display: none;
  line-height: 0;
}

.mobile-nav-toggle.bi-x {
  color: var(--paper);
}

@media (max-width: 991px) {
  .mobile-nav-toggle {
    display: block;
  }

  .navbar ul {
    display: none;
  }
}

.navbar-mobile {
  position: fixed;
  overflow: hidden;
  inset: 0;
  background: rgba(32, 34, 38, 0.72);
  z-index: 999;
}

.navbar-mobile .mobile-nav-toggle {
  position: absolute;
  top: 18px;
  right: 16px;
}

.navbar-mobile ul {
  display: block;
  position: absolute;
  top: 64px;
  right: 16px;
  left: 16px;
  padding: 8px 0;
  background: var(--paper);
  border-radius: 8px;
}

.navbar-mobile a,
.navbar-mobile a:focus {
  padding: 14px 20px;
  font-size: 18px;
  color: var(--ink);
}

.navbar-mobile .active {
  text-underline-offset: 6px;
}

/*--------------------------------------------------------------
# Hero
--------------------------------------------------------------*/
#hero {
  margin-top: var(--header-h);
  padding: 96px 0 120px;
  overflow: hidden;
}

#hero h1 {
  margin: 0 0 24px;
  font-size: clamp(42px, 5.4vw, 72px);
  font-weight: 800;
  font-stretch: 125%;
  line-height: 1.02;
  letter-spacing: -0.025em;
  max-width: 9.5em;
}

#hero .hero-reg {
  top: 0;
  vertical-align: top;
  margin-left: 0.06em;
  font-size: 1em;
  line-height: 1;
}

#hero .hero-reg svg {
  width: 0.24em;
  height: 0.24em;
  vertical-align: top;
  margin-top: 0.1em;
}

#hero .hero-lead {
  margin: 0 0 36px;
  max-width: 30em;
  font-size: 20px;
  line-height: 1.55;
}

.btn-quote,
.contact .php-email-form button[type=submit] {
  display: inline-flex;
  align-items: center;
  height: 52px;
  padding: 0 28px;
  border: 0;
  border-radius: 6px;
  background: var(--reflex);
  color: var(--paper);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 600;
  font-stretch: 112%;
  transition: background-color 0.2s;
}

.btn-quote:hover,
.btn-quote:focus-visible,
.contact .php-email-form button[type=submit]:hover {
  background: var(--reflex-deep);
  color: var(--paper);
  text-decoration: none;
}

.btn-quote:active,
.contact .php-email-form button[type=submit]:active {
  transform: translateY(1px);
}

@media (max-width: 991px) {
  #hero {
    padding: 40px 0 72px;
  }

  #hero .hero-lead {
    font-size: 18px;
  }
}

/*--------------------------------------------------------------
# Hang tag — the "What is Wrapier?" dictionary entry
--------------------------------------------------------------*/
.tag-hang {
  --notch: 36px;
  --hole-y: 34px;
  position: relative;
  max-width: 440px;
  margin: 72px 0 0 auto;
  transform-origin: 50% var(--hole-y);
  transform: rotate(-2deg);
  filter:
    drop-shadow(0 1px 1px rgba(32, 34, 38, 0.10))
    drop-shadow(0 20px 28px rgba(32, 34, 38, 0.14));
  animation: tag-settle 1.6s ease-in-out 0.1s both;
}

/* The cord loop, threaded through the eyelet. */
.tag-hang::before {
  content: "";
  position: absolute;
  z-index: 2;
  left: calc(50% - 30px);
  top: calc(var(--hole-y) - 100px);
  width: 60px;
  height: 100px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 100'%3E%3Cpath d='M30 99 C20 70 6 44 14 22 C20 6 42 4 46 20 C51 40 38 70 31 99' fill='none' stroke='%23202226' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / contain;
}

.tag {
  position: relative;
  padding: 76px 40px 36px;
  background: var(--paper);
  clip-path: polygon(var(--notch) 0, calc(100% - var(--notch)) 0, 100% var(--notch), 100% 100%, 0 100%, 0 var(--notch));
  -webkit-mask: radial-gradient(circle at 50% var(--hole-y), transparent 8px, #000 8.5px);
  mask: radial-gradient(circle at 50% var(--hole-y), transparent 8px, #000 8.5px);
}

/* Reinforcement ring around the punched hole. */
.tag::before {
  content: "";
  position: absolute;
  left: calc(50% - 15px);
  top: calc(var(--hole-y) - 15px);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #e9e8e2;
}

.tag p {
  margin: 0 0 14px;
  font-size: 16px;
  line-height: 1.6;
}

.tag .tag-word {
  margin: 0 0 4px;
  font-size: 32px;
  font-weight: 800;
  font-stretch: 125%;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.tag .tag-pron {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px dashed var(--field);
  font-style: italic;
}

.tag .tag-label {
  margin-bottom: 2px;
  font-size: 14px;
  font-weight: 600;
  font-stretch: 112%;
  color: var(--ink);
}

.tag .tag-def {
  color: var(--ink);
}

.tag .tag-def em {
  font-weight: 500;
}

.tag .tag-usage {
  margin-bottom: 0;
  font-style: italic;
}

@keyframes tag-settle {
  0%   { opacity: 0; transform: translateY(-14px) rotate(-9deg); }
  35%  { opacity: 1; transform: translateY(0) rotate(2.5deg); }
  60%  { transform: rotate(-3.5deg); }
  80%  { transform: rotate(-1.2deg); }
  100% { transform: rotate(-2deg); }
}

@media (max-width: 991px) {
  .tag-hang {
    margin: 76px auto 0;
  }

  .tag {
    padding: 72px 28px 28px;
  }
}

@media (max-width: 575px) {
  .tag-hang {
    --notch: 28px;
    --hole-y: 28px;
    max-width: 330px;
    margin-top: 64px;
  }

  .tag {
    padding: 58px 22px 22px;
  }

  .tag .tag-word {
    font-size: 24px;
  }

  .tag .tag-pron {
    margin-bottom: 14px;
    padding-bottom: 14px;
  }

  .tag p {
    margin-bottom: 10px;
    font-size: 14.5px;
    line-height: 1.55;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tag-hang {
    animation: none;
  }
}

/*--------------------------------------------------------------
# Sections general
--------------------------------------------------------------*/
section {
  padding: var(--section-y) 0;
}

.section-bg {
  background-color: var(--stock);
}

.section-title {
  padding-bottom: 40px;
}

.section-title h2 {
  margin: 0;
  font-size: clamp(30px, 3.4vw, 44px);
  font-weight: 800;
  font-stretch: 125%;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

/*--------------------------------------------------------------
# About
--------------------------------------------------------------*/
.about {
  background: var(--stock);
}

.about .row {
  --bs-gutter-x: 5rem;
}

.about .row + .row {
  margin-top: 112px;
}

.about-img {
  display: block;
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  border-radius: 4px;
  background: var(--paper);
}

.about-img--badge {
  object-fit: contain;
  padding: 14%;
}

.about .content {
  max-width: 32em;
}

.about .content h3 {
  margin-bottom: 16px;
  font-size: clamp(26px, 2.6vw, 34px);
  font-weight: 750;
  font-stretch: 118%;
  line-height: 1.15;
  letter-spacing: -0.015em;
}

.about .about-tagline {
  font-style: italic;
  color: var(--ink);
}

.about .content ul {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
}

.about .content ul li {
  position: relative;
  padding: 0 0 10px 30px;
}

.about .content ul i {
  position: absolute;
  left: 0;
  top: 1px;
  font-size: 18px;
  color: var(--ink);
}

.about .content p:last-child {
  margin-bottom: 0;
}

@media (max-width: 991px) {
  .about .row {
    --bs-gutter-x: 1.5rem;
  }

  .about .row + .row {
    margin-top: 64px;
  }
}

/*--------------------------------------------------------------
# Frequently Asked Questions
--------------------------------------------------------------*/
.faq .faq-list {
  max-width: 860px;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--ink);
}

.faq .faq-list > li {
  border-bottom: 1px solid var(--rule);
}

.faq .faq-list .question {
  position: relative;
  display: block;
  width: 100%;
  padding: 22px 48px 22px 0;
  border: 0;
  background: none;
  text-align: left;
  font-family: var(--font);
  font-size: 19px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--ink);
  transition: color 0.2s;
}

.faq .faq-list .question:hover {
  color: var(--reflex);
}

.faq .faq-list .question i {
  position: absolute;
  right: 6px;
  top: 50%;
  font-size: 16px;
  line-height: 1;
  transform: translateY(-50%);
  transition: transform 0.25s ease;
}

.faq .faq-list .question:not(.collapsed) i {
  transform: translateY(-50%) rotate(180deg);
}

.faq .faq-list .collapse > p,
.faq .faq-answer {
  margin: 0;
  padding: 0 48px 24px 0;
  max-width: 44em;
}

.faq .faq-answer p {
  margin: 0 0 12px;
}

.faq .faq-answer p:last-child {
  margin-bottom: 0;
}

.faq .faq-answer ol {
  margin: 0 0 12px;
  padding-left: 1.4em;
}

.faq .faq-answer ol > li {
  margin-bottom: 8px;
  padding-left: 4px;
}

.faq .faq-answer ol > li::marker {
  font-weight: 600;
  color: var(--ink);
}

.faq .faq-answer ul {
  margin: 6px 0 0;
  padding-left: 1.2em;
}

@media (max-width: 575px) {
  .faq .faq-list .question {
    padding-right: 36px;
    font-size: 18px;
  }

  .faq .faq-list .collapse > p,
  .faq .faq-answer {
    padding-right: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .faq .faq-list .question i {
    transition: none;
  }
}

/*--------------------------------------------------------------
# Contact
--------------------------------------------------------------*/
.contact .info,
.contact .php-email-form {
  width: 100%;
  padding: 32px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 8px;
}

.contact .info i {
  float: left;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--stock);
  font-size: 18px;
  color: var(--ink);
}

.contact .info h4 {
  margin-bottom: 2px;
  padding-left: 60px;
  font-size: 17px;
  font-weight: 600;
}

.contact .info p {
  margin-bottom: 24px;
  padding-left: 60px;
  font-size: 15px;
}

.contact .contact-map {
  display: block;
  width: 100%;
  height: 290px;
  border: 0;
  border-radius: 6px;
  filter: grayscale(1) contrast(1.05);
}

.contact .php-email-form label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.contact .php-email-form .form-control {
  height: 48px;
  padding: 10px 14px;
  border: 1px solid var(--field);
  border-radius: 6px;
  background: var(--paper);
  box-shadow: none;
  font-size: 16px;
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.contact .php-email-form textarea.form-control {
  height: auto;
  resize: vertical;
}

.contact .php-email-form .form-control:focus {
  border-color: var(--reflex);
  box-shadow: 0 0 0 3px rgba(31, 58, 168, 0.18);
}

.contact .php-email-form .cf-turnstile {
  margin-top: 24px;
}

.contact .php-email-form .loading,
.contact .php-email-form .error-message,
.contact .php-email-form .sent-message {
  display: none;
  margin-top: 20px;
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 500;
}

.contact .php-email-form .loading {
  padding-left: 0;
  color: var(--graphite);
}

.contact .php-email-form .loading::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 18px;
  margin: 0 10px -4px 0;
  border: 2px solid var(--rule);
  border-top-color: var(--reflex);
  border-radius: 50%;
  animation: animate-loading 0.9s linear infinite;
}

.contact .php-email-form .error-message {
  background: #fbeceb;
  color: #8c1d13;
}

.contact .php-email-form .sent-message {
  background: #e8f3ec;
  color: #1d5a33;
}

.contact .php-email-form .form-actions {
  margin-top: 24px;
}

@keyframes animate-loading {
  to { transform: rotate(360deg); }
}

@media (max-width: 575px) {
  .contact .info,
  .contact .php-email-form {
    padding: 24px 20px;
  }
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
#footer {
  padding: 32px 0;
  border-top: 1px solid var(--rule);
  font-size: 14px;
}

#footer .copyright strong {
  font-weight: 600;
}
