/**
 * Elisa Maria Bertucci, portfolio
 * Based on Thomson by Themefisher (https://themefisher.com), MIT licence
 */

@import url("https://fonts.googleapis.com/css?family=Lato:400,600,700|Work+Sans:400,700,800");

/*------------------------------------------------------------------
  PALETTE
  A tonal material board. Change a colour here and it updates everywhere.
-------------------------------------------------------------------*/
:root {
  --plaster:    #F5F0EA; /* page background */
  --paper:      #FBF8F4; /* menus, inputs, card labels */
  --travertine: #E8DFD3; /* soft surfaces, borders, bar tracks */
  --oak:        #C4A88A; /* fine lines, highlights on dark */
  --walnut:     #7A5C44; /* accent: links, buttons, headline words */
  --stone:      #B9AE9F; /* text on dark backgrounds */
  --taupe:      #685E55; /* body text */
  --espresso:   #2E2823; /* headings, footer, dark buttons */
}

html {
  overflow-x: hidden;
}

body {
  font-family: "Lato", sans-serif;
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.166667px;
  line-height: 1.7em;
  color: var(--taupe);
  background-color: var(--plaster);
}

::selection {
  background: var(--oak);
  color: var(--espresso);
}

p {
  color: var(--taupe);
}

h1, .h1, h2, .h2, h3, .h3, h4, .h4, h5, .h5, h6, .h6 {
  font-family: "Work Sans", sans-serif;
  color: var(--espresso);
  font-weight: 600;
}

h1, .h1 {
  font-size: 45px;
  text-transform: none;
}

h2, .h2 {
  font-size: 42px;
  line-height: 52px;
}

h3, .h3 {
  font-size: 24px;
  line-height: 34px;
}

h4, .h4 {
  font-size: 20px;
  line-height: 30px;
}

h5, .h5 {
  font-size: 16px;
  line-height: 26px;
}

h6, .h6 {
  font-size: 14px;
}

.text-sm {
  font-size: 14px;
}

.section {
  padding: 120px 0px;
}

.section-sm {
  padding: 60px 0px;
}

/*------------------------------------------------------------------
  BUTTONS
-------------------------------------------------------------------*/
.btn {
  padding: 18px 38px;
  border: 2px solid transparent;
  text-transform: uppercase;
  border-radius: 0px;
  font-size: 14px;
  line-height: 14px;
  font-weight: 600;
  box-shadow: none;
}
.btn:focus {
  outline: 0px;
  border: 0px;
  box-shadow: none;
}
.btn:focus-visible {
  outline: 2px solid var(--oak);
  outline-offset: 3px;
}

.btn-main {
  background: var(--walnut);
  color: #fff;
}
.btn-main:hover {
  color: var(--plaster) !important;
  background: var(--espresso);
}

.btn-black,
.btn-dark {
  background: var(--espresso);
  border-color: var(--espresso);
  color: var(--plaster);
}
.btn-black:hover,
.btn-dark:hover,
.btn-dark:focus {
  background: var(--walnut);
  border-color: var(--walnut);
  color: #fff;
}

.btn-white {
  background: var(--paper);
  color: var(--espresso);
  border-color: var(--paper);
}
.btn-white:hover {
  background: transparent;
  color: #fff;
}

/*------------------------------------------------------------------
  LINKS, HELPERS, BOOTSTRAP COLOUR OVERRIDES
-------------------------------------------------------------------*/
a {
  color: var(--espresso);
  transition: all 0.25s ease;
}
a:hover {
  color: var(--walnut);
  text-decoration: none;
  outline: none;
}

.bg-primary {
  background: var(--walnut) !important;
}

.bg-secondary,
.bg-extra {
  background: var(--travertine) !important;
}

/* "Hiring for a service or UX design role?" band on the About page */
.cta .bg-dark {
  background: var(--walnut) !important;
}

.border-top,
.border-bottom {
  border-color: var(--travertine) !important;
}

.text-color {
  color: var(--walnut);
}

.text-black {
  color: var(--espresso);
}

.page-title h1 {
  position: relative;
  padding-bottom: 30px;
}
.page-title h1:after {
  position: absolute;
  content: "";
  left: 50%;
  bottom: 0px;
  width: 40px;
  height: 2px;
  margin-left: -20px;
  background: var(--oak);
}

@media (max-width: 575px) {
  h2, .h2 {
    font-size: 32px;
    line-height: 43px;
  }
}
@media (max-width: 400px) {
  h2, .h2 {
    font-size: 32px;
    line-height: 43px;
  }
}

.cd-headline.clip span {
  padding: 0px;
}

.cd-headline.clip .cd-words-wrapper::after {
  background-color: var(--oak);
}

.banner .cd-headline {
  font-size: 56px;
  line-height: 70px;
}

.banner-3 {
  position: relative;
}

/*------------------------------------------------------------------
  NAVIGATION
-------------------------------------------------------------------*/
.main-nav .header-top-socials a {
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 14px;
  padding: 20px 6px;
}

.navbar-nav .nav-link {
  padding: 20px 15px !important;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 1px;
  font-weight: 700;
}

.navbar-toggler {
  color: var(--espresso);
}

ul.dropdown-menu {
  background: var(--paper);
  border-radius: 0px;
  margin: 0px;
  padding: 0px;
}

ul.dropdown-menu > li > a, .navbar ul ul ul.dropdown-menu li .nav-link {
  font-size: 12px;
  line-height: 22px;
  display: block;
  position: relative;
  z-index: 1;
  padding-left: 15px;
  transition: all 0.3s ease-in-out;
  padding-top: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--travertine);
  color: var(--espresso);
  text-transform: uppercase;
}
ul.dropdown-menu > li:last-child > a {
  border-bottom: 0;
}
ul.dropdown-menu > li > a:hover, .navbar ul ul ul.dropdown-menu li .nav-link:hover {
  color: var(--walnut);
}

.dropdown-item:focus, .dropdown-item:hover {
  color: var(--walnut);
  text-decoration: none;
  background-color: transparent;
}

.dropdown-menu {
  border-radius: 0;
  -moz-border-radius: 0;
  -webkit-border-radius: 0;
  -o-border-radius: 0;
  -ms-border-radius: 0;
  padding: 0;
  border: 0;
  display: block;
  opacity: 0;
  visibility: hidden;
  min-width: 210px;
  transform: scaleY(0);
  -webkit-transform: scaleY(0);
  -moz-transform: scaleY(0);
  -ms-transform: scaleY(0);
  -o-transform: scaleY(0);
  transform-origin: center top 0;
  -webkit-transform-origin: center top 0;
  -moz-transform-origin: center top 0;
  -ms-transform-origin: center top 0;
  -o-transform-origin: center top 0;
  transition: all 0.3s ease-in-out 0s;
  -webkit-transition: all 0.3s ease-in-out 0s;
  -moz-transition: all 0.3s ease-in-out 0s;
  -ms-transition: all 0.3s ease-in-out 0s;
  -o-transition: all 0.3s ease-in-out 0s;
  box-shadow: 0 10px 24px rgba(46, 40, 35, 0.12);
  -webkit-box-shadow: 0 10px 24px rgba(46, 40, 35, 0.12);
  -moz-box-shadow: 0 10px 24px rgba(46, 40, 35, 0.12);
  -ms-box-shadow: 0 10px 24px rgba(46, 40, 35, 0.12);
  -o-box-shadow: 0 10px 24px rgba(46, 40, 35, 0.12);
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  -webkit-transform: scaleY(1);
  -moz-transform: scaleY(1);
  -ms-transform: scaleY(1);
  -o-transform: scaleY(1);
}

@media (max-width: 575px) {
  .navbar-nav .dropdown-menu {
    position: absolute;
  }
  .banner .cd-headline {
    font-size: 32px;
    line-height: 42px;
  }
  .btn-group, .btn-group-vertical {
    display: block;
  }
  .btn-group > .btn {
    padding: 20px;
  }
}
@media (max-width: 400px) {
  .navbar-nav .dropdown-menu {
    position: absolute;
  }
  .banner .cd-headline {
    font-size: 32px;
    line-height: 42px;
  }
  .btn-group, .btn-group-vertical {
    display: block;
  }
  .btn-group > .btn {
    padding: 20px;
  }
}
@media (max-width: 767px) {
  .navbar-nav .dropdown-menu {
    position: absolute;
  }
  .banner .cd-headline {
    font-size: 32px;
    line-height: 42px;
  }
  .btn-group, .btn-group-vertical {
    display: block;
  }
  .btn-group > .btn {
    padding: 20px;
  }
}
@media (max-width: 991px) {
  .navbar-nav .dropdown-menu {
    position: absolute;
  }
  .banner .cd-headline {
    font-size: 32px;
    line-height: 42px;
  }
  .btn-group, .btn-group-vertical {
    display: block;
  }
  .btn-group > .btn {
    padding: 20px;
  }
}

/*------------------------------------------------------------------
  PROJECT GRID (home page)
-------------------------------------------------------------------*/
.portfolio {
  padding-bottom: 100px;
}
.portfolio .btn:focus, .portfolio .btn:hover, .portfolio .btn.focus.active {
  box-shadow: none !important;
  outline: 0 !important;
}
.portfolio .btn-group .btn {
  border-radius: 0px !important;
  padding-left: 0px;
  font-weight: 700;
  color: var(--taupe);
}
.portfolio .btn-group .btn:hover {
  color: var(--walnut);
}
.portfolio .btn-group:not(:first-child) > .btn, .portfolio .btn-group > .btn:not(:first-child) {
  border-top-left-radius: 0px;
  border-bottom-left-radius: 0px;
}
.portfolio .btn.active {
  color: var(--walnut);
}

.inner-box {
  position: relative;
}

.inner-box .image {
  position: relative;
  overflow: hidden;
  background: var(--travertine);
}

.inner-box .image img {
  position: relative;
  width: 100%;
  display: block;
  transition: all 0.3s;
}

.inner-box .image .overlay-box {
  position: absolute;
  left: 0px;
  bottom: 0px;
  right: 0px;
  top: 0px;
  z-index: 2;
  opacity: 0;
  display: block;
  transition: all 0.6s ease;
  overflow: hidden;
}

.inner-box .image .overlay-box:before {
  position: absolute;
  content: "";
  left: -450px;
  top: 0px;
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0;
  transition: all 0.4s;
  background-color: rgba(46, 40, 35, 0.55);
}

.inner-box:hover .image img {
  transform: scale(1.06);
}

.inner-box:hover .image .overlay-box:before {
  opacity: 1;
  left: 0px;
}

.inner-box:hover .image .overlay-box {
  opacity: 1;
}

.inner-box:hover .image .overlay-box .overlay-content h5 {
  transform: translateX(0px);
}

.inner-box:hover .image .overlay-box .overlay-content p {
  transform: translateX(0px);
}

.inner-box .image .overlay-box .overlay-inner {
  position: absolute;
  left: 0px;
  bottom: 30px;
  z-index: 1;
  padding: 10px 40px;
}

.inner-box .image .overlay-box .overlay-inner .overlay-content i {
  font-size: 28px;
}

.inner-box .image h3 {
  color: #fff;
}

.overlay-content h5 {
  text-transform: capitalize;
  background: rgba(251, 248, 244, 0.95);
  color: var(--espresso);
  padding: 0px 8px;
  margin-bottom: 0px;
  transform: translateX(-150px);
  transition: all 0.3s;
}
.overlay-content p {
  font-size: 14px;
  margin-bottom: 0px;
  padding: 0px 8px;
  margin-top: 2px;
  text-transform: capitalize;
  background: rgba(251, 248, 244, 0.95);
  color: var(--walnut);
  transform: translateX(-150px);
  transition: all 0.5s;
}

@media (prefers-reduced-motion: reduce) {
  .inner-box:hover .image img {
    transform: none;
  }
  .overlay-content h5,
  .overlay-content p {
    transition: none;
  }
}

.portfolio-image {
  width: 60px;
  height: 60px;
  display: inline-block;
  text-align: center;
  background: var(--espresso);
  color: var(--plaster);
  padding-top: 16px;
  position: absolute;
  top: 40%;
  font-size: 22px;
  margin-left: -28px;
  left: 50%;
}

/*------------------------------------------------------------------
  CASE STUDIES, SERVICES, QUESTIONS, SKILLS
-------------------------------------------------------------------*/
.info a {
  margin-right: 10px;
}

.service-home {
  position: relative;
}

.service-item i {
  font-size: 35px;
  float: left;
  width: 65px;
  height: 120px;
  color: var(--walnut);
}

.testimonial-content {
  text-align: center;
  padding: 25px;
  position: relative;
}
.testimonial-content i {
  font-size: 60px;
}
.testimonial-content p {
  margin-top: 30px;
  margin-bottom: 25px;
}

.about-info span {
  color: var(--walnut);
}

.about-info h3 {
  margin-top: 15px;
}

.progress-bar-content {
  margin-bottom: 25px;
}
.progress-bar-content .progress-title {
  text-transform: capitalize;
  font-size: 14px;
  color: var(--espresso);
  font-weight: 600;
}
.progress-bar-content .progress-label {
  margin-bottom: 15px;
}
.progress-bar-content .progress-bar {
  background: var(--walnut);
}
.progress-bar-content .progress-bar-units {
  color: var(--taupe);
}

.about-list {
  line-height: 40px;
}
.about-list li {
  text-transform: capitalize;
  color: var(--espresso);
}

.progress {
  width: 100%;
  overflow: visible;
  position: relative;
  margin: 0 0 35px 0;
  border-radius: 0px;
  height: 7px;
  background-color: var(--travertine);
}

.progress-bar {
  position: absolute;
  width: 0;
  top: 0;
  left: 0;
  height: 100%;
  background: var(--walnut);
  border-radius: 0px;
  transition: all 3s ease-in-out;
}

@media (max-width: 575px) {
  .cta {
    padding-bottom: 0px;
  }
}
@media (max-width: 400px) {
  .cta {
    padding-bottom: 0px;
  }
}
@media (max-width: 767px) {
  .cta {
    padding-bottom: 0px;
  }
}

/*------------------------------------------------------------------
  FOOTER
-------------------------------------------------------------------*/
.footer {
  padding: 60px 0px;
  background: var(--espresso);
}

.footer p {
  color: var(--stone);
}

.footer .text-white {
  color: var(--plaster) !important;
}

.footer-widget a {
  color: var(--stone);
  text-transform: capitalize;
}
.footer-widget a:hover {
  color: var(--oak);
}
.navbar-brand img { height: 40px; width: auto; }

/* Case study hero: never wider than the page column, and a calmer height */
.case-hero {
  aspect-ratio: 12 / 5;
  margin: 0 0 64px;
  overflow: hidden;
  background: var(--travertine);
}
.case-hero img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 100%;
  object-fit: contain;
}
/* Edge-to-edge artwork fills the frame instead of floating in it */
.case-hero img[src*="zilvermeer"],
.case-hero img[src*="materialdata"] {
  object-fit: cover;
}
@media (max-width: 767px) {
  .case-hero {
    aspect-ratio: 16 / 10;
    margin-bottom: 40px;
  }
}

/*------------------------------------------------------------------
  ADDITIONS (October 2026)
  Paste at the very end of css/style.css. Nothing above needs to change.
-------------------------------------------------------------------*/

/* The footer sits at the bottom of the window on short pages */
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body > main {
  flex: 1 0 auto;
}

/* Menus open on tap and keyboard too, not only on mouse hover */
.dropdown-menu.show,
.dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  -webkit-transform: scaleY(1);
  transform: scaleY(1);
}

/* The page you are on is marked in the menu */
.navbar-nav .nav-item.active > .nav-link,
.dropdown-item[aria-current="page"] {
  color: var(--walnut);
}

/* Visible focus for keyboard users */
a:focus-visible,
.dropdown-item:focus-visible {
  outline: 2px solid var(--oak);
  outline-offset: 3px;
}

/* Used by case study buttons; the template referenced it but never defined it */
.btn-small {
  padding: 15px 28px;
}

/* Calmer vertical rhythm on phones (the template uses 120px everywhere) */
@media (max-width: 767px) {
  .section {
    padding: 72px 0;
  }
}

/* Short line under a page title */
.page-title .page-subtitle {
  max-width: 640px;
  margin: 22px auto 0;
  font-size: 18px;
  line-height: 1.65;
}

/*------------------------------------------------------------------
  ABOUT
-------------------------------------------------------------------*/
.about-intro .lead {
  color: var(--espresso);
}
.about-intro p:last-child {
  margin-bottom: 0;
}
.about-signature {
  display: block;
  width: 130px;
  height: auto;
  margin-top: 28px;
}
.about-list {
  margin-bottom: 32px;
}
.about-list li {
  position: relative;
  padding-left: 22px;
}
.about-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 10px;
  height: 2px;
  background: var(--oak);
}
.about-group {
  margin-bottom: 28px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--travertine);
  color: var(--walnut);
}
.about-info + .about-info {
  margin-top: 40px;
}
.about-info .about-org {
  margin: 0 0 10px;
  font-weight: 700;
  color: var(--taupe);
}
.about-info p:last-child {
  margin-bottom: 0;
}

/*------------------------------------------------------------------
  CONTACT
-------------------------------------------------------------------*/
.contact-email {
  display: inline-block;
  font-family: "Work Sans", sans-serif;
  font-weight: 600;
  font-size: clamp(22px, 4.2vw, 40px);
  line-height: 1.25;
  color: var(--walnut);
  border-bottom: 2px solid var(--oak);
  overflow-wrap: anywhere;
}
.contact-email:hover {
  color: var(--espresso);
  border-color: var(--espresso);
}
.contact-details {
  margin-top: 72px;
  padding-top: 40px;
  border-top: 1px solid var(--travertine);
}
.contact-details .contact-label {
  margin-bottom: 6px;
  font-size: 15px;
  line-height: 1.4;
  color: var(--espresso);
}
.contact-details p {
  margin-bottom: 0;
  overflow-wrap: anywhere;
}
.contact-details a {
  color: var(--walnut);
  border-bottom: 1px solid var(--oak);
}
.contact-details a:hover {
  color: var(--espresso);
}

/*------------------------------------------------------------------
  CASE STUDIES (one layout for every project)
-------------------------------------------------------------------*/
.case-hero {
  margin: 0 0 64px;
  background: var(--travertine);
}
.case-hero img {
  display: block;
  width: 100%;
  height: auto;
}
.case-body p {
  max-width: 62ch;
  font-size: 17px;
  line-height: 1.75;
}
.case-body p:first-child {
  font-size: 19px;
  line-height: 1.7;
  color: var(--espresso);
}
.case-body p:last-child {
  margin-bottom: 0;
}
.case-facts {
  margin: 0;
  padding-top: 24px;
  border-top: 1px solid var(--travertine);
}
.case-facts dt {
  margin-top: 22px;
  font-family: "Work Sans", sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--espresso);
}
.case-facts dt:first-child {
  margin-top: 0;
}
.case-facts dd {
  margin: 4px 0 0;
  color: var(--taupe);
  line-height: 1.6;
}
.case-pdf {
  margin-top: 36px;
}
.case-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  margin-top: 96px;
  padding-top: 40px;
  border-top: 1px solid var(--travertine);
}
@media (max-width: 575px) {
  .case-nav .btn {
    flex: 1 1 100%;
    text-align: center;
  }
}
/* Experience & education: a little round icon per entry */
.about-info {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}
.about-text {
  min-width: 0;
}
.about-icon {
  flex: 0 0 54px;
  width: 54px;
  height: 54px;
  margin-top: 2px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: transform .35s cubic-bezier(.34, 1.56, .64, 1);
}
.about-icon svg {
  width: 38px;
  height: 38px;
  fill: none;
  stroke: var(--espresso);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  overflow: visible;
}
.about-info:hover .about-icon {
  transform: rotate(-8deg) scale(1.08);
}
.about-icon--blush  { background: #EDD6CC; }
.about-icon--butter { background: #EFE2C3; }
.about-icon--sage   { background: #DCE0CB; }
.about-icon--mist   { background: #D7DFE1; }
@media (prefers-reduced-motion: reduce) {
  .about-icon { transition: none; }
}

/* CiLAB hero: the image, then three videos, in one 16:9 frame */
.case-hero--slides {
  aspect-ratio: auto;
  overflow: visible;
  background: none;
}
.case-slides img,
.case-slides video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: var(--travertine);
}
.case-slides .owl-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
}
.case-slides .owl-dot span {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--travertine);
  transition: background .2s;
}
.case-slides .owl-dot.active span,
.case-slides .owl-dot:hover span {
  background: var(--walnut);
}
.case-slides .owl-dot:focus { outline: 0; }
.case-slides .owl-dot:focus-visible { outline: 2px solid var(--oak); outline-offset: 3px; }
