/* =============================================================================
   FONT DECLARATIONS
   ============================================================================= */

@font-face {
    font-family: "Lora";
    src: url('../../files/fonts/Lora-VariableFont_wght.ttf');
    font-display: swap;
}

@font-face {
    font-family: "";
    src: url('../../files/fonts/palatino.woff2');
    font-display: swap;
}

/* =============================================================================
   CSS RESET & NORMALIZATION
   ============================================================================= */

html, body, nav, footer, a, button, h1, h2, h3, h4, hr, div, span, p, img, 
figure, ol, ul, menu, li, dl, dt, dd, form, fieldset, input, legend, select, 
textarea, table, thead, tbody, tfoot, th, tr, td, section, header, aside, pre, 
canvas, figure, figcaption, blockquote, cite, iframe {
    border: 0;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
}

body {
    background-color: #2b2b2b;
    font-family: Lora, serif;
    min-width: 320px;
}

a, abbr {
    text-decoration: none;
}

button {
    cursor: pointer;
}

table {
    border-spacing: 0;
}

textarea {
    resize: none;
}

ul, menu {
    list-style-type: none;
}

/* =============================================================================
   CUSTOM SCROLLBAR
   ============================================================================= */

::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background-color: #f5f5f5;
    border-radius: 10px;
    box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.1);
}

::-webkit-scrollbar-thumb {
    background: #eab978;
    border-radius: 10px;
    box-shadow: inset 0 0 4px rgba(65, 66, 78, 0.5);
}

::-webkit-scrollbar-thumb:window-inactive {
    background: rgba(254, 137, 0, 0.5);
}

::-webkit-scrollbar-corner {
    background-color: transparent;
}

/* =============================================================================
   REUSABLE COMPONENTS
   ============================================================================= */

/* Button Component */
.btn {
    background-color: #1b4251;
    border: 2px solid #1b4251;
    border-radius: 4px;
    box-sizing: border-box;
    color: #fff;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 1px;
    padding: 12px 24px;
    text-decoration: none;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
    background-color: #18def8;
	border: 2px solid #18def8;
    color: #1b4251;
}

/* =============================================================================
   LAYOUT STRUCTURE
   ============================================================================= */

#screen {
    box-sizing: border-box;
}

/* =============================================================================
   HEADER & NAVIGATION
   ============================================================================= */

#screen > header {
  background: #1b4251 url('/files/images/pattern.webp') repeat;
  background-size: 600px;
  box-shadow: 0 1px 15px rgba(0, 0, 0, 0.12);
  box-sizing: border-box;
  display: flex;
  align-items: center;
  font-size: 32px;
  min-width: 320px;
  min-height: 5em;
  padding: 0 30px;
  position: sticky;
  top: 0;
  right: 0;
  left: 0;
  transition: box-shadow 0.3s ease, padding 0.2s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  z-index: 3;
}

#screen > header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 10px;
  border-bottom: 10px solid #2e618a;
  display: block;
  pointer-events: none;
}

#screen > header > nav > ul {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 0;
}

#screen > header > nav > ul > li {
  display: block;
}

#screen > header > nav > ul > li > a {
  color: white;
  display: inline-flex;
  align-items: center;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 1px;
  padding: 0 6px;
  height: 100%;
  transition: color 0.2s ease;
  white-space: nowrap;
  background-color: #2e618a;
  border-radius: 10px;
}

#screen > header > nav > ul > li > a:hover,
#screen > header > nav > ul > li > a:active {
  color: #94b0da;
}

/* Mobile: center the nav + allow wrapping so it always fits */
@media screen and (max-width: 500px) {
  #screen > header {
    flex-direction: column;
    align-items: center;
    padding: 12px 16px;
    min-height: auto;
  }

  #screen > header > nav {
    justify-content: center;
  }

  #screen > header > nav > ul {
    justify-content: center;
    flex-wrap: wrap;        /* key: wraps instead of overflowing */
    gap: 8px 12px;          /* row/column gap */
  }

  #screen > header > nav > ul > li > a {
    font-size: 18px;        /* slightly smaller to help fit */
    letter-spacing: 0.5px;
    padding: 6px 8px;
  }
}

/* Extra-small phones: make it even tighter if needed */
@media screen and (max-width: 360px) {
  #screen > header > nav > ul > li > a {
    font-size: 16px;
    padding: 6px 6px;
  }
}


/* =============================================================================
   MAIN CONTENT
   ============================================================================= */

#screen > main {
    background-color: #fff;
    display: inline-block;
    position: relative;
    text-align: center;
    width: 100%;
    z-index: 1;
}

#screen > main > div,
#screen > main .content {
    margin: auto;
    padding: 24px .75em;
    text-align: left;
    max-width: 1160px;
}

/* Headings */
#screen > section h2,
#screen > main h1 {
    color: #41424e;
    font-family: Lora, serif;
    font-size: 100px;
    font-weight: bolder;
    margin-bottom: 20px;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

#screen > main div.content h1 {
    font-size: 30px;
    text-align: center;
}

#screen > main div.content h2 {
    font-size: 1.5em;
}

#screen > section h2::after,
#screen h1::after {
    content: "";
    display: block;
    width: 100%;
    height: 14px;
    background: url('../../files/images/divider.webp') no-repeat;
    background-size: 100% 100%;
    left: 0;
    margin-top: 10px;
}

/* Error Container */
#screen > main .error-container {
    background: #fff;
    border: 1px solid #c0c0b7;
    padding: 30px;
    max-width: 500px;
    margin: 30px auto;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    text-align: center;
}

#screen > main .error-container h2 {
    text-align: left;
}

#screen > main .error-container p {
    margin: 15px 0;
    font-size: 18px;
}

#screen > main .error-container div {
    margin-top: 20px;
    font-size: 14px;
    color: #414141;
}

#screen > main .error-container a {
    color: #41424e;
}

#screen > main .error-container a:hover {
    color: #fe8900;
}

/* =========================
   Contact Section
   ========================= */

section#contact .content {
    max-width: 720px;
    margin: 0 auto;
}

/* Headings */

section#contact h1 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

section#contact h2 {
    font-size: 1.1rem;
    font-weight: 500;
    color: #666;
    margin-bottom: 2rem;
}

/* Form Wrapper */

.contact {
    padding: 2rem;
}

/* Form Layout */

#contactForm {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

/* Labels */

#contactForm label {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #333;
}

/* Inputs & Textarea */

.contact-input {
    width: 100%;
    padding: 0.75rem 0rem;
    font-size: 0.95rem;
    border-radius: 10px;
    border: 1px solid #ccc;
    background-color: #fafafa;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease;
}

.contact-input--textarea {
    min-height: 160px;
    resize: vertical;
    line-height: 1.5;
}

/* Focus States */

.contact-input:focus {
    outline: none;
    border-color: #5a67d8; /* accent color */
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(90, 103, 216, 0.15);
}

/* Response Message */

#form-response {
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: 1.2rem;
}

/* Responsive Adjustments */

@media (max-width: 600px) {
    section#contact {
        padding: 3rem 1rem;
    }

    .contact {
        padding: 1.5rem;
    }
}

/* =============================================================================
   FOOTER
   ============================================================================= */

#screen > footer {
  position: relative;
  background: #1b4251 url("/files/images/pattern.webp") repeat;
  background-size: 1400px;
  width: 100%;
  min-width: 320px;
  z-index: 2;
}

#screen > footer::before {
  content: "";
  display: block;
  background-color: #2e618a;
  width: 100%;
  height: 10px;
}

#screen > footer a { color: #eab978; }

#screen > footer > div {
  width: 70%;
  padding: 20px 0 10px 0;
  margin: auto;
}

#screen > footer > div > div {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 1200px;
  margin: auto;
}

/* Social list (the only ul you have) */
#screen > footer ul {
  display: flex;
  justify-content: center;
  gap: 12px;
}

#screen > footer ul > li > a {
  border-radius: 50%;
  background-color: #424242;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 18px;
  display: block;
  width: 25px;
  height: 25px;
  padding: 5px;
}

#screen > footer ul > li > a > span { display: none; }

/* Icon images mapped to your 3 list items */
#screen > footer ul > li:nth-child(1) > a {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 512 512'%3E%3Cpath fill='%23ffffff' d='M298.158 216.797 484.663 0h-44.196L278.525 188.242 149.182 0H0l195.592 284.655L0 512h44.198l171.016-198.79L351.809 512h149.182L298.147 216.797zm-60.536 70.366-19.818-28.345L60.124 33.272h67.885L255.26 215.295l19.817 28.345 165.411 236.601h-67.886l-134.98-193.067z'/%3E%3C/svg%3E");
}

#screen > footer ul > li:nth-child(2) > a {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -3.268 64 68.414' width='16' height='16'%3E%3Cpath fill='%23ffffff' d='M13.873 3.805C21.21 9.332 29.103 20.537 32 26.55v15.882c0-.338-.13.044-.41.867-1.512 4.456-7.418 21.847-20.923 7.944-7.111-7.32-3.819-14.64 9.125-16.85-7.405 1.264-15.73-.825-18.014-9.015C1.12 23.022 0 8.51 0 6.55 0-3.268 8.579-.182 13.873 3.805zm36.254 0C42.79 9.332 34.897 20.537 32 26.55v15.882c0-.338.13.044.41.867 1.512 4.456 7.418 21.847 20.923 7.944 7.111-7.32 3.819-14.64-9.125-16.85 7.405 1.264 15.73-.825 18.014-9.015C62.88 23.022 64 8.51 64 6.55c0-9.818-8.578-6.732-13.873-2.745z'/%3E%3C/svg%3E");
}

#screen > footer ul > li:nth-child(3) > a {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='37.29 0 80.559 155.139'%3E%3Cpath fill='%23ffffff' d='M89.584 155.139V84.378h23.742l3.562-27.585H89.584V39.184c0-7.984 2.208-13.425 13.67-13.425l14.595-.006V1.08C115.325.752 106.661 0 96.577 0 75.52 0 61.104 12.853 61.104 36.452v20.341H37.29v27.585h23.814v70.761z'/%3E%3C/svg%3E");
}

/* Copyright */
#screen > footer > div > div > div:last-child {
  color: #bdb4a1;
  text-align: center;
}

/* =============================================================================
   RESPONSIVE DESIGN
   ============================================================================= */

@media screen and (max-width: 500px) {
	#screen > header {
		flex-direction: column;
		align-items: center;
	}
}