/* Styles for FAQ.html: shared header/footer and alternating FAQ cards. */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Site-wide colors and typography tokens */
:root {
    --color-1: #23513AFF;
    --color-2: #740C00FF;
    --color-3: #FDCD00FF;
    --color-4: #F0eFF4FF;
    --color-5: #212529FF;
    --font-1: 'Roboto Mono', monospace;
    --font-2: 'Inter', sans-serif;
    font-size: 16px;
}

/* Default text color */
body {
    background-color: var(--color-4);
    font-family: var(--font-1);
    color: var(--color-5);
}

/* Header and brand layout */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--color-4);
    padding: 10px 20px;
}

#logo {
    height: 75px;
    width: auto;
    padding: 5;
    margin: 0;
}

/* Brand name and slogan */
.brand {
    display: flex;
    flex-direction: column;
}

.brand h1 {
    color: var(--color-1);
}

.brand p  {
    color: var(--color-2);
}

.brand a {
    text-decoration: none;
}

/* Main navigation links */
.nav {
    list-style: none;
    display: flex;
    align-items: center;
}

.nav-item a {
    color: var(--color-1);
    text-decoration: none;
    padding: 14px 16px;
    font-size: 1rem;
    display: block;
}

.nav-item a:hover {
    background-color: var(--color-2);
    color: var(--color-3);
}

/* Portfolio dropdown menu */
.dropdown {
    position: relative;
}

.dropdown-item {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 160px;
    list-style: none;
    background-color: var(--color-4);
    z-index: 100;
}

.dropdown:hover .dropdown-item,
.dropdown:focus-within .dropdown-item {
    display: block;
}

#faq-title {
    background-color: var(--color-1);
    color: var(--color-4);
    text-align: center;
    margin-bottom: 2rem;
    border-radius: 1rem;
    padding-top: 1rem;
}

/* Main FAQ layout and alternating question-and-answer cards. */
.faq-page {
    margin: 0 3rem;
    padding: 3rem 0 3rem;
}
 
.faq-information h2 {
    font-size: 1.5rem;
    padding-bottom: 1.5rem;
}
 
/* The list stacks the blocks vertically. Each block can then be
   pushed to the left or right with align-self. */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
 
/* One question + answer block */
.faq-item {
    width: 85%;
    padding: clamp(1.25rem, 3vw, 2rem);
    border-radius: 1rem;
    background: var(--color-4);
}
 
/* Odd blocks (1, 3, 5, ...) on the left, even blocks (2, 4, 6, ...) on the right */
.faq-item:nth-child(odd)  { align-self: flex-start; border: 2px solid var(--color-1); }
.faq-item:nth-child(even) { align-self: flex-end; border: 2px solid var(--color-2);  text-align: right;}

.faq-item:nth-child(odd) .question { color: var(--color-1); }
.faq-item:nth-child(even) .question { color: var(--color-2);}

.faq-item .question {
    margin-bottom: .75rem;
    font-size: 1.125rem;
    color: var(--color-1);
}
 
.faq-item .answer {
    font-family: var(--font-2);
    line-height: 1.6;
}
 
/* Tablet and phone: blocks use the full width, so they no longer alternate */
@media (max-width: 900px) {
    .faq-item { width: 100%; }
}
 
/* Shared site footer. */
.site-footer { 
    background: var(--color-5); 
    color: var(--color-4); 
}
 
/* Four columns on desktop, fewer on smaller screens (see bottom) */
.site-footer__inner {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 2rem auto;
    margin-bottom: 0.5rem;
    padding-top: 2rem;
}

.site-footer h2 { 
    margin: 0 0 1rem; 
    font-size: 1rem; 
    font-weight: 700; 
    color: var(--color-3); 
}

.site-footer p  { 
    margin: 0;
}

.site-footer ul {
    margin: 0;
    padding: 0; 
    list-style: none; 
}

.site-footer li { 
    margin-bottom: .625rem;
    line-height: 1;
    font-size: 0.75rem; 
}
 
.site-footer__logo { 
    margin-bottom: .75rem !important; 
    font-size: 1.75rem; 
    font-weight: 700;
    color: var(--color-3); 
}

#site-footer__slogan {
    font-size: 0.75rem;
    color: var(--color-4);
}
 
/* Links */
.site-footer a { 
    color: var(--color-4);
    text-decoration: none; 
    border-bottom: 1px solid transparent;
}

.site-footer a:hover { 
    color: var(--color-3);
    border-bottom-color: var(--color-3); 
}

.site-footer a:focus-visible { 
    outline: 3px solid var(--color-3); 
    outline-offset: 3px; 
}
 
/* Bottom bar */
.site-footer__bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem;
    border-top: 2px solid var(--color-1);
    font-size: .8125rem;
}
.site-footer__bottom ul { 
    display: flex; 
    gap: 1.5rem; 
}

.site-footer__bottom li { 
    margin: 0; 
}


/* Tablet: two columns, brand block on its own row */
@media (max-width: 900px) {
  .site-footer__inner { grid-template-columns: 1fr 1fr; }
  .site-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 700px) {
  .faq-page { margin: 0 1rem; }
}
 
/* Phone: one column */
@media (max-width: 500px) {
  .site-footer__inner { grid-template-columns: 1fr; }
}

/* Wrap shared navigation and reduce the FAQ page's outer margins on phones. */
@media (max-width: 800px) {
  header {
    flex-wrap: wrap;
    gap: .75rem 1rem;
  }

  header > .nav {
    flex-basis: 100%;
    justify-content: center;
  }

  header > .nav > .nav {
    justify-content: center;
    flex-wrap: wrap;
  }
}

@media (max-width: 600px) {
  header { padding: .75rem 1rem; }
  .nav-item a { padding: .6rem .75rem; }
  .site-footer__inner { padding-left: 1.5rem; padding-right: 1.5rem; }
  .faq-page { margin: 0 1rem; padding: 2rem 0; }
  .faq-item { padding: 1rem; }
  .site-footer__bottom { justify-content: center; text-align: center; padding: 1rem; }
}