
/* =========================================
   DR. ANDRÉS BUCKSOT
   RESPONSIVE DESIGN
   ========================================= */

/* TABLETS */

@media (max-width: 1100px) {

  :root {
    --page-padding: 6%;
    --section-space: 105px;
  }

  .main-nav {
    gap: 17px;
  }

  .main-nav a {
    font-size: 8px;
    letter-spacing: 1px;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-card {
    padding: 30px !important;
    border-bottom: 1px solid rgba(243,240,233,.16);
  }

  .service-card:nth-child(2) {
    border-right: 0;
  }

  .service-card:nth-child(3),
  .service-card:nth-child(4) {
    border-bottom: 0;
  }

  .focus-layout,
  .prayer-layout,
  .about-layout {
    gap: 6%;
  }
}


/* MOBILE NAVIGATION */

@media (max-width: 850px) {

  .site-header {
    padding: 22px 7%;
  }

  .menu-toggle {
    position: relative;
    z-index: 110;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 7px;
    width: 42px;
    height: 42px;
    padding: 8px;
    border: 1px solid rgba(243,240,233,.35);
    background: transparent;
    cursor: pointer;
  }

  .menu-toggle span {
    display: block;
    width: 100%;
    height: 1px;
    background: var(--ivory);
    transition: transform .3s, width .3s;
  }

  .menu-toggle.active span:first-child {
    transform: translateY(4px) rotate(45deg);
  }

  .menu-toggle.active span:last-child {
    transform: translateY(-4px) rotate(-45deg);
  }

  .main-nav {
    position: fixed;
    inset: 0;
    z-index: 105;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 25px;
    padding: 100px 10%;
    background: var(--black);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-15px);
    transition: opacity .35s, visibility .35s, transform .35s;
  }

  .main-nav.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .main-nav a {
    display: block;
    font-family: var(--font-display);
    font-size: 32px;
    letter-spacing: 0;
  }

  .main-nav .nav-contact {
    font-family: var(--font-body);
    font-size: 11px;
    letter-spacing: 2px;
    margin-top: 15px;
  }

  .main-nav .language {
    font-family: var(--font-body);
    font-size: 11px;
  }
}


/* MOBILE */

@media (max-width: 600px) {

  :root {
    --page-padding: 7%;
    --section-space: 85px;
  }

  html {
    scroll-padding-top: 75px;
  }

  .logo {
    font-size: 21px;
  }

  /* HERO */

  .hero {
    min-height: 760px;
    height: 100svh;
    padding: 100px 7% 90px;
  }

  .hero-image {
    background-position: 67% center;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg,
        rgba(15,15,14,.88),
        rgba(15,15,14,.38)),
      linear-gradient(0deg,
        rgba(15,15,14,.88),
        transparent 80%);
  }

  .hero-title {
    font-size: clamp(72px, 19vw, 100px);
    letter-spacing: -3px;
    line-height: .82;
    margin-bottom: 30px;
  }

  .hero-content .eyebrow {
    max-width: 270px;
    font-size: 8px;
    letter-spacing: 2px;
    margin-bottom: 25px;
  }

  .hero-statement {
    font-size: 32px;
    line-height: 1.05;
  }

  .hero-description {
    max-width: 310px;
    font-size: 11px;
    line-height: 1.8;
  }

  .hero-bottom {
    left: 7%;
    right: 7%;
    bottom: 25px;
    font-size: 7px;
    letter-spacing: 1px;
  }

  .hero-bottom span:first-child {
    max-width: 140px;
    line-height: 1.6;
  }

  .hero-index {
    display: none;
  }

  /* GENERAL */

  .section-label {
    font-size: 7px;
    letter-spacing: 1px;
    gap: 12px;
  }

  .section-label span:last-child {
    text-align: right;
  }

  .text-link {
    font-size: 8px;
    letter-spacing: 1.5px;
  }

  /* FOCUS */

  .focus-layout {
    grid-template-columns: 1fr;
    gap: 35px;
    padding: 75px 0;
  }

  .focus-heading h2,
  .services-intro h2,
  .prayer-heading h2,
  .books-heading h2,
  .about-heading h2 {
    font-size: clamp(58px, 15vw, 78px);
    letter-spacing: -1px;
  }

  .focus-copy {
    padding-top: 0;
  }

  .large-copy {
    font-size: 29px;
  }

  .focus-copy > p:not(.large-copy),
  .about-copy > p:not(.large-copy) {
    font-size: 12px;
  }

  .focus-words {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 18px 25px;
    font-size: 8px;
  }

  /* SERVICES */

  .services-intro {
    padding: 75px 0 55px;
  }

  .services-intro p {
    font-size: 12px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: 255px;
    padding: 28px 0 !important;
    border-right: 0;
    border-bottom: 1px solid rgba(243,240,233,.16) !important;
  }

  .service-card:last-child {
    border-bottom: 0 !important;
  }

  .service-card h3 {
    font-size: 34px;
    margin: 22px 0 14px;
  }

  .service-card p {
    max-width: 330px;
    font-size: 11px;
  }

  /* MCM */

  .mcm-section {
    min-height: 700px;
    padding: 90px 7%;
  }

  .mcm-image {
    background-position: 60% center;
  }

  .mcm-content h2 {
    font-size: clamp(60px, 15vw, 82px);
  }

  .mcm-content p,
  .tiffany-content p {
    font-size: 12px;
  }

  .section-watermark {
    font-size: 180px;
  }

  /* PRAYER */

  .prayer-layout {
    grid-template-columns: 1fr;
    gap: 35px;
    padding: 60px 0;
  }

  .prayer-copy {
    padding-top: 0;
  }

  .prayer-heading h2 {
    font-size: clamp(55px, 14vw, 76px);
  }

  /* BOOKS */

  .books-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 30px;
    margin-bottom: 50px;
  }

  .books-placeholder {
    min-height: auto;
    flex-direction: column;
    gap: 30px;
    padding: 45px 20px;
    align-items: flex-start;
  }

  .book-symbol {
    width: 120px;
    height: 160px;
    font-size: 60px;
  }

  .books-placeholder p {
    font-size: 24px;
  }

  /* ABOUT */

  .about-layout {
    grid-template-columns: 1fr;
    gap: 35px;
    padding: 45px 0;
  }

  /* TIFFANY */

  .tiffany-section {
    min-height: 680px;
    padding: 90px 7%;
  }

  .tiffany-image {
    background-position: 63% center;
  }

  .tiffany-content h2 {
    font-size: 90px;
  }

  /* CONTACT */

  .contact-section {
    padding: 110px 7%;
  }

  .contact-section h2 {
    font-size: clamp(53px, 13vw, 75px);
    margin: 30px auto;
  }

  .contact-section > p {
    font-size: 11px;
  }

  .contact-cta {
    padding: 16px 18px;
    font-size: 8px;
    letter-spacing: 1px;
  }

  /* FOOTER */

  .site-footer {
    padding: 40px 7% 22px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    margin-top: 35px;
    font-size: 7px;
  }
}


/* REDUCED MOTION */

@media (prefers-reduced-motion: reduce) {

  .main-nav,
  .menu-toggle span {
    transition: none !important;
  }

}
