/* Reset default browser spacing and sizing */
/* Styles for Contact.html: shared header/footer and the main contact card. */
* {
    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;
}

/* Contact card, available hours, and responsive contact-method rows. */
.contact {
    margin: 0 3rem;
    padding: 3rem 0 1rem;
}

.contact-information {
    padding: clamp(1.25rem, 3vw, 2rem);
    background: var(--color-1);
    border: 2px solid var(--color-1);
    border-radius: 1rem;
}

.contact h2 {
    font-size: 1.5rem;
    padding-bottom: 1.25rem;
    color: var(--color-3);
}

.contact-information p {
    margin-bottom: 1.25rem;
    color: var(--color-4);
}

.contact-information ul {
    display: grid;
    gap: .75rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.contact-information li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    font-family: var(--font-2);
    padding: .875rem 1rem;
    border-bottom: 1px solid var(--color-4);
    color: var(--color-4);
}

.contact-information li a {
    overflow-wrap: anywhere;
    text-align: right;
    color: var(--color-3);
}

/*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; }
}
 
/* Phone: one column */
@media (max-width: 500px) {
  .site-footer__inner { grid-template-columns: 1fr; }
}

/* Allow the shared header navigation to wrap on tablet-width screens. */
@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;
  }
}

/* Make contact details and page margins fit narrow phone screens. */
@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; }
  .contact { margin: 0 1rem; padding-top: 2rem; }
  .contact-information li { align-items: flex-start; flex-direction: column; gap: .25rem; }
  .contact-information li a { text-align: left; }
  .site-footer__bottom { justify-content: center; text-align: center; padding: 1rem; }
}