/* ---------------------------------------------------
   COMMON PAGE LAYOUT
--------------------------------------------------- */
body {
  display: grid;
  grid-template-rows: auto 1fr;   /* header + flex column */
  max-width: 1920px;
  margin: 0 auto;
}

.container {
  display: grid;
  width: 100%;
  box-sizing: border-box;
  max-height: 895px;
  background-color: var(--cream);
  margin: 0 auto; /* Centers the container horizontally */
  padding: 72px;
  max-width: 1736px;
}

/* ---------------------------------------------------
   HEADER STYLES (shared across pages)
--------------------------------------------------- */
header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

header h1 {
  font-family: var(--font-plastic);
  font-weight: var(--weight-light);
  font-size: 40px;
  line-height: 1;
  margin: 0;
}

.close {
  width: 42px;
  height: 42px;
}

.close img {
  width: 100%;
  height: auto;
  display: block;
}

/* ---------------------------------------------------
   MAIN CONTENT AREA (shared across pages)
--------------------------------------------------- */
main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: calc(100vh - 200px);
  overflow-y: auto;
  margin-top: 10px;
  padding-top: 72px;
}

/* ---------------------------------------------------
   CONTENT CONTAINER (shared across pages)
--------------------------------------------------- */

.content-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  text-align: center;
}

.content-item img {
  width: auto;
  height: 100px;
}

.content-item p {
  text-align: center;
  color: var(--odo-red);
  font-family: var(--font-mono);
  font-weight: var(--weight-light);
  font-size: 24px;
}

/* Base styles for decorative scissors font elements */
.content-item span {
  display: inline-block;
  width: 100%;
  text-align: center;
  position: relative;
  margin-bottom: 35px;
}

.content-item span::after {
  position: absolute;
  font-family: var(--font-scissors);
  left: 0;
  font-size: 48px;
  width: 100%;
}

/* Style links */
.content-item a {
  font-family: var(--font-plastic-line);
  font-weight: var(--weight-light);
  font-size: 24px;
}

.no-dash {
  margin-bottom: 35px;
}

/* =======================================================
   RESPONSIVE STYLES
======================================================= */

/* Utility classes for responsive design */
/* Hide mobile-only line breaks on larger screens */
i.m-br {
  display: none;
  font-style: normal; /* Ensure no italic styling */
}

/* Tablet-only line breaks */
i.t-br {
  display: none;
  font-style: normal; /* Ensure no italic styling */
}

/* Desktop-only line breaks */
i.d-br {
  display: inline;
  font-style: normal; /* Ensure no italic styling */
}

/* -----------------------------------------------------
   LARGE SCREENS (1201px+)
----------------------------------------------------- */
/* Base styles above apply to large screens */

/* -----------------------------------------------------
  TABLETS (769px-1180px)
----------------------------------------------------- */
@media (min-width: 769px) and (max-width: 1180px) {
  /* Tablet-specific styles */
  .content-container {
    max-width: 990px;
  }
  .container {
    padding: 51px;
  }
  main {
    margin-top: 10px;
    padding-top: 37px;
  }
  .content-item p {
    font-size: 18px;
  }
  .content-item a {
    font-size: 18px;
  }
  .content-item img {
    width: auto;
    height: 75px;
  }
  .content-item span {
    margin-bottom: 30px;
  }
  .content-item span::after {
    font-size: 36px;
  }
  header h1 {
    font-size: 32px;
  }
  .close {
    width: 31px;
    height: 31px;
  }
}

/* -----------------------------------------------------
  TABLETS PORTRAIT (769px-1380px and portrait)
----------------------------------------------------- */
@media (min-width: 769px) and (max-width: 1380px) and (orientation: portrait) {
  /* Tablet portrait-specific styles */
  /* Inherits general tablet styles above */

  .no-dash {
    margin-bottom:20px;
  }
  
  /* Tablet-only line break class */
  i.t-br {
    display: inline;
  }
  
  /* Override tablet styles to ensure text size matches landscape */
  .content-item p {
    font-size: 24px !important;
  }
  
  .content-item a {
    font-size: 24px !important;
  }
  
  /* Ensure contact info items maintain consistent size */
  .contact-info-item {
    font-size: 24px !important;
  }
  
  /* Ensure icons maintain consistent size between landscape and portrait */
  .content-item img {
    width: auto;
    height: 100px !important;
  }
}

/* ---------------------------------------------------
   MOBILE STYLES
--------------------------------------------------- */
@media (max-width: 768px), (orientation: landscape) and (max-width: 932px) {
  /* Mobile-specific styles */
  html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
  }
  
  /* Prevent horizontal scrolling on all containers */
  .container, .content-container, .prices-list {
    max-width: 100%;
    width: 100%;
  }
  
  /* Fix for any content that might cause horizontal overflow */
  * {
    max-width: 100%;
    box-sizing: border-box;
  }
  
  /* Ensure all text content wraps properly */
  p, h1, h2, h3, h4, h5, h6, a, span, div {
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    line-height: 1.3;
  }
  
  /* Fixed header and scrollable content for all pages */
  body {
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
  }
  
  .container {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    padding: 42px 15px 0 15px;
  }
  
  header {
    flex-shrink: 0;
    position: sticky;
    top: 0;
    z-index: 10;
    background-color: var(--cream);
    padding: 0 25px;
  }
  
  main {
    flex: 1;
    overflow-y: auto;
    margin-top: 10px;
    padding-top: 23px;
    -webkit-overflow-scrolling: touch;
  }
  
  .content-container {
    width: 320px;
    line-height: 1.3;
  }
  
  header h1 {
    font-size: 22px;
  }

  .content-item img {
    width: auto;
    height: 55px;
  }

  .content-item span {
    margin-bottom: 15px;
  }

  .content-item p {
    font-size: 14.5px;
  }

  .content-item a {
    font-size: 14.5px;
  }

  .content-item span::after {
    font-size: 24px;
  }

  .close {
    height: 25px;
    width: auto;
  }
  
  .close img {
    height: 25px;
    width: auto;
    display: block;
  }

  .no-dash {
    margin-bottom: 10px;
  }
  
  /* Remove tap highlight color on mobile devices */
  a, button, [role="button"], .close, .nav-link {
    -webkit-tap-highlight-color: transparent;
  }

  /* Mobile-only line break classes */
  i.m-br {
    display: block;
    width: 100%;
    height: 4px;
  }
  
  /* Hide desktop-only line breaks on mobile */
  i.d-br {
    display: none;
  }
}
