/* ===========================
   RESPONSIVE CSS - Father Eugene Brown Theme
   Mobile-First Approach
   =========================== */

/* Small devices (landscape phones, 576px and up) */
@media (max-width: 575.98px) {
  :root {
    --site-header-height: 58px;
  }
  
  /* HEADER */
  .site-header {
    padding: 10px 14px;
  }

  .container {
    flex-direction: column;
    padding: 0px 0px;
  }

  .logo a {
    font-size: 22px;
    text-align: center;
  }

  .logo p {
    font-size: 10px;
    padding: 3px 0px 0px 0px;
  }

  /* NAVIGATION */
  .nav-menu {
    display: none;
    position: relative;
    margin-top: 10px;
    width: 100%;
    border-top: 1px solid rgba(133, 117, 71, 0.7);
    text-align: center;
    z-index: 100;
  }

  .nav-menu ul {
    background: rgba(202, 195, 174, 0.92);
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 6px;
    padding: 10px 6px;
    margin: 0;
    border-radius: 0 0 12px 12px;
  }

  .nav-menu li {
    margin-left: 0;
    margin-bottom: 5px;
  }

  .nav-menu a {
    color: #1f170d;
    font-size: 14px;
    display: block;
    padding: 10px 8px;
    border-radius: 8px;
  }

  .nav-menu .current-menu-item > a {
    color: #fffffd;
    border: none;
    padding: 10px 8px;
    background-color: #6b5517;
    border-radius: 8px;
    font-weight: bold;
  }

  .menu-toggle {
    display: block;
    font-size: 26px;
    cursor: pointer;
    color: rgb(3, 0, 0);
    background: none;
    border: none;
    /* padding: 5px; */
    margin: 0;
            margin-top: -6px;
  }

  .nav-menu.active {
    display: block;
  }

  /* HERO SECTIONS */
  .hero {
    height: 250px;
    padding: 20px;
    flex-direction: column;
    justify-content: flex-end;
  }

  .hero h1 {
    font-size: 24px;
    margin-bottom: 8px;
    margin-top: 0;
  }

  .hero h3 {
    font-size: 14px;
    margin-bottom: 8px;
    font-weight: normal;
  }

  .hero p {
    font-size: 12px;
    margin: 5px 0;
  }

  .hero hr {
    margin: 5px 0;
  }

  .hero-buttons {
    padding: 8px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .hero-buttons .btn {
    padding: 8px 15px;
    font-size: 12px;
    display: block;
    width: 100%;
    text-align: center;
    border-radius: 4px;
  }

  .hero2 {
    height: auto;
    flex-direction: column;
    padding: 20px;
    background-position: center top;
    background-size: cover;
    align-items: center;
    justify-content: center;
    gap: 15px;
  }

  .hero2 .img {
    width: 100%;
    margin: 0;
    text-align: center;
    display: flex;
    justify-content: center;
  }

  .hero2 .img img {
    width: 100%;
    max-width: 280px;
    height: auto;
    border-radius: 20px;
  }

  .hero2 .p {
    width: 100%;
    font-size: 16px;
    margin: 0;
    text-align: center;
    color: rgb(3, 0, 0);
    background: rgba(255, 255, 255, 0.95);
    padding: 20px;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .hero2 .p q {
    display: block;
    font-style: italic;
    line-height: 1.6;
  }

  /* Book page (mobile) */
  @media (max-width: 768px) {
    .book-page {
      padding: 40px 20px 60px;
    }

    .book-card {
      padding: 28px 20px;
      border-radius: 14px;
    }

    .book-hero {
      flex-direction: column;
      align-items: center;
      gap: 20px;
      text-align: center;
    }

    .book-cover {
      width: 200px;
      padding: 12px;
    }

    .book-info {
      width: 100%;
      padding: 0;
    }

    .book-info h1,
    .book-info h2 {
      font-size: 26px;
    }

    .book-tagline {
      font-size: 14px;
    }

    .book-divider {
      margin: 0 0 18px;
    }

    .book-highlights h3 {
      font-size: 16px;
    }

    .book-highlights h3::before,
    .book-highlights h3::after {
      width: 40px;
    }

    .book-highlights ul {
      grid-template-columns: 1fr;
      gap: 12px;
    }

    .book-buttons {
      flex-direction: column;
      gap: 10px;
    }

    .book-buttons .btn {
      width: 100%;
      min-width: auto;
    }
  }

  .hero3 {
    height: auto;
    padding: 20px;
    flex-direction: column;
    align-items: center;
  }

  .hero3 .p {
    width: 100%;
    text-align: center;
  }

  .hero3 .p .cont {
    padding: 20px 0;
  }

  .hero3 .p .cont h3 {
    font-size: 22px;
    margin: 10px 0;
  }

  div.p .cont {
    padding: 20px 0;
  }

  div.p .cont div {
    width: 100%;
    height: auto;
  }

  div.img {
    width: 100%;
    margin: 10px 0;
    text-align: center;
  }

  div.img img {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 15px;
    margin: 10px 0;
  }

  /* PAGE CONTENT */
  .page-content {
    margin: auto;
    padding: 20px 15px;
    max-width: 100%;
  }

  .page-content h2 {
    font-size: 20px;
    margin-top: 0;
  }

  .page-content p {
    font-size: 14px;
    line-height: 1.6;
  }

  /* FOOTER */
  .site-footer {
    padding: 30px 15px 10px 15px;
  }

  .footer-container {
    flex-direction: column;
    text-align: center;
    max-width: 100%;
  }

  .footer-col {
    flex: 100%;
    min-width: auto;
    margin-bottom: 20px;
  }

  .footer-col h3 {
    font-size: 16px;
    margin-bottom: 10px;
  }

  .footer-col p {
    font-size: 13px;
  }

  .footer-col ul {
    flex-direction: column;
    gap: 5px;
    justify-content: center;
  }

  .footer-col ul li {
    margin-bottom: 0;
  }

  .footer-col ul li a {
    font-size: 13px;
  }

  .quick-links ul {
    flex-direction: column;
    gap: 8px;
    justify-content: center;
  }

  .quick-links ul li {
    margin-bottom: 0;
  }

  .footer-bottom {
    font-size: 12px;
    padding-top: 8px;
    margin-top: 15px;
  }

  /* CTA section (mobile) */
  .cta-inner {
    padding: 24px 18px;
  }

  .btn.cta {
    width: 100%;
    max-width: 320px;
  }
}

/* Medium devices (tablets, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  :root {
    --site-header-height: 60px;
  }
  
  /* HEADER */
  .site-header {
    padding: 12px 18px;
  }

  .container {
    padding: 0px 18px;
  }

  .logo a {
    font-size: 20px;
  }

  .logo p {
    font-size: 11px;
  }

  /* NAVIGATION */
  .nav-menu {
    display: none;
    position: relative;
    margin-top: 10px;
    width: 100%;
    border-top: 1px solid #857547;
    text-align: center;
    z-index: 100;
  }

  .nav-menu ul {
    background: #cac3ae;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    padding: 10px;
    justify-content: center;
  }

  .nav-menu li {
    margin-left: 0;
  }

  .nav-menu a {
    color: rgb(7, 0, 0);
    font-size: 13px;
  }

  .menu-toggle {
    display: block;
    font-size: 22px;
    cursor: pointer;
  }

  .nav-menu.active {
    display: block;
  }

  /* HERO SECTIONS */
  .hero {
    height: 350px;
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero h3 {
    font-size: 15px;
  }

  .hero-buttons .btn {
    padding: 10px 20px;
    font-size: 13px;
  }

  .hero2 {
    height: auto;
    flex-direction: column;
    padding: 30px;
    align-items: center;
    gap: 20px;
  }

  .hero2 .img {
    width: 100%;
    margin: 0;
    text-align: center;
    display: flex;
    justify-content: center;
  }

  .hero2 .img img {
    width: 100%;
    max-width: 320px;
    height: auto;
    border-radius: 20px;
  }

  .hero2 .p {
    width: 100%;
    font-size: 20px;
    margin: 0;
    text-align: center;
    background: rgba(255, 255, 255, 0.9);
    padding: 30px;
    border-radius: 10px;
    line-height: 1.8;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .hero3 {
    height: auto;
    padding: 40px;
    flex-direction: column;
    align-items: center;
  }

  .hero3 .p {
    width: 100%;
    text-align: center;
  }

  .hero3 .p .cont h3 {
    font-size: 26px;
  }

  /* PAGE CONTENT */
  .page-content {
    padding: 30px 20px;
  }

  .page-content h2 {
    font-size: 24px;
  }

  /* FOOTER */
  .footer-container {
    flex-direction: column;
    text-align: center;
  }

  .footer-col {
    flex: 100%;
    min-width: auto;
  }

  .quick-links ul {
    justify-content: center;
  }

  /* Book page - tablet */
  .book-card {
    padding: 32px 28px;
  }

  .book-cover {
    width: 240px;
  }

  .book-info h1 {
    font-size: 28px;
  }

  .book-highlights ul {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Large devices (desktops, 768px and up) */
@media (min-width: 768px) and (max-width: 1199.98px) {
  
  /* HEADER */
  .container {
    padding: 0px 25px;
  }

  /* NAVIGATION */
  .nav-menu {
    display: block;
    position: relative;
    top: auto;
    margin-top: 0;
    left: auto;
    width: auto;
    border-top: none;
    text-align: left;
  }

  .nav-menu ul {
    background: transparent;
    display: flex;
    flex-wrap: nowrap;
    gap: 20px;
    padding: 0;
  }

  .nav-menu li {
    margin-left: 10px;
  }

  .nav-menu a {
    font-size: 16px;
  }

  .menu-toggle {
    display: none;
  }

  /* HERO SECTIONS */
  .hero {
    height: 450px;
  }

  .hero h1 {
    font-size: 42px;
  }

  .hero h3 {
    font-size: 18px;
  }

  .hero-buttons .btn {
    padding: 10px 22px;
  }

  .hero2 {
    height: 400px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    position: relative;
    overflow: hidden;
    gap: 30px;
  }

  .hero2 .img {
    position: relative;
    width: auto;
    margin: 0;
    text-align: center;
    z-index: 2;
    display: flex;
    justify-content: center;
    flex-shrink: 0;
  }

  .hero2 .img img {
    /* width: 280px; */
    height: auto;
    border-radius: 20px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  }

  .hero2 .p {
    position: relative;
    width: 45%;
    font-size: 35px;
    margin: 0;
    text-align: right;
    background: none;
    padding: 20px;
    color: rgb(3, 0, 0);
    z-index: 1;
    line-height: 1.6;
    display: flex;
    justify-content: flex-end;
    align-items: center;
  }

  .hero2 .p q {
    font-style: italic;
    font-weight: normal;
  }

  .hero3 {
    height: auto;
    padding: 60px 40px;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .hero3 .p {
    width: 100%;
    text-align: center;
  }

  .hero3 .p .cont h3 {
    font-size: 32px;
  }

  /* FOOTER */
  .footer-container {
    flex-direction: row;
    text-align: left;
  }

  .footer-col {
    flex: 1;
    min-width: 200px;
  }

  .quick-links ul {
    justify-content: flex-start;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  
  /* Default styles already handle this */
  
  .container {
    padding: 0px 30px;
  }

  .nav-menu {
    display: block;
    position: relative;
  }

  .nav-menu ul {
    gap: 30px;
  }

  .nav-menu li {
    margin-left: 20px;
  }

  .hero h1 {
    font-size: 80px;
  }

  .hero h3 {
    font-size: 18px;
  }

  .hero2 {
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    gap: 40px;
    position: relative;
  }

  .hero2 .img {
    position: relative;
    width: auto;
    margin: 0;
    text-align: center;
    z-index: 2;
    display: flex;
    justify-content: center;
    flex-shrink: 0;
    order: -1;
  }

  .hero2 .img img {
    width: 300px;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
  }

  .hero2 .p {
    position: relative;
    width: 45%;
    font-size: 40px;
    margin: 0;
    text-align: left;
    background: none;
    padding: 30px;
    color: rgb(3, 0, 0);
    z-index: 1;
    line-height: 1.8;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    top:-150px;
  }

  .hero2 .p q {
    font-style: italic;
  }

  .hero3 {
    height: auto;
    min-height: 500px;
    padding: 80px 40px;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .hero3 .p {
    width: 100%;
    text-align: center;
  }

  .hero3 .p .cont h3 {
    font-size: 36px;
  }
}

/* ===========================
   Utility Classes for Responsiveness
   =========================== */

/* Image responsiveness */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Text scaling */
@media (max-width: 575.98px) {
  body {
    font-size: 14px;
  }

  h1 { font-size: 24px; }
  h2 { font-size: 20px; }
  h3 { font-size: 16px; }
  h4 { font-size: 14px; }
  h5 { font-size: 12px; }
}

@media (min-width: 576px) and (max-width: 767.98px) {
  body {
    font-size: 15px;
  }

  h1 { font-size: 32px; }
  h2 { font-size: 24px; }
  h3 { font-size: 18px; }
}

@media (min-width: 768px) {
  body {
    font-size: 16px;
  }
}

/* ===========================
   Overflow and Touch Optimization
   =========================== */

/* Prevent overflow on smaller devices */
@media (max-width: 767.98px) {
  body {
    overflow-x: hidden;
  }

  .site-header,
  .site-footer {
    /* overflow-x: hidden; */
  }
}

/* Touch-friendly button sizing */
@media (max-width: 767.98px) {
  button,
  .btn,
  a {
    /* min-height: 44px; */
    min-width: 44px;
  }
}

/* ===========================
   Print Styles
   =========================== */

@media print {
  .site-header,
  .site-footer,
  .menu-toggle,
  .nav-menu {
    display: none;
  }

  body {
    font-size: 12pt;
    color: #000;
    background: #fff;
  }
}
@media (max-width: 768px) {
    .gallery img {
        width: 90px;
        height: 70px;
    }

    .description {
        font-size: 14px;
    }
}

/* Footer refresh overrides */
@media (max-width: 991.98px) {
  .site-footer .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .site-footer .footer-col:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 575.98px) {
  .site-footer {
    padding: 34px 16px 14px;
  }

  .site-footer .footer-container {
    grid-template-columns: 1fr;
    gap: 16px;
    text-align: center;
  }

  .site-footer .footer-col h3 {
    font-size: 24px;
    margin-bottom: 8px;
  }

  .site-footer .footer-col p {
    font-size: 15px;
  }

  .site-footer .quick-links .menu {
    justify-content: center;
  }

  .site-footer .quick-links .menu-item a {
    min-width: 88px;
    padding: 9px 12px;
    font-size: 14px;
  }

  .site-footer .footer-bottom {
    margin-top: 20px;
    font-size: 14px;
  }
}
