/* ------------------------
   Base Reset + Body
-------------------------*/
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  background: #f5f5f5;
  color: #222;
}


/* ------------------------
   HEADER (Flexbox)
-------------------------*/
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #e2e8f0;
  padding: 1.25rem;
  border-bottom: 1px solid #cbd5e1;
}

.site-title {
  font-size: 1.75rem;
  font-weight: bold;
}

.site-nav {
  list-style: none;
  display: flex;
  gap: 1rem;
}

.site-nav a {
  text-decoration: none;
  color: #1a202c;
}

.site-nav a:hover {
  text-decoration: underline;
}


/* ------------------------
   MAIN CONTENT AREA
-------------------------*/
.page-main {
  max-width: 70rem;
  width: min(100% - 2rem, 70rem); /* relative width */
  margin: 2rem auto;
  font-size: 1rem;
}

.content-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr; /* 3-column grid on desktop */
  gap: 1.25rem;
}

.card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  padding: 1.25rem;
  border-radius: 0.5rem;
}


/* ------------------------
   FLOATED IMAGE WITH TEXT WRAP
-------------------------*/
.wrap-image {
  max-width: 40%;
  height: auto;
  border: 2px solid #2b6cb0;
  border-radius: 0.5rem;
  margin: 0 1rem 1rem 0;
}

.wrap-image.left {
  float: left;
}

.wrap-image.right {
  float: right;
}

.clear {
  clear: both;
}


/* ------------------------
   FOOTER (Flexbox)
-------------------------*/
.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #e2e8f0;
  padding: 1.25rem;
  border-top: 1px solid #cbd5e1;
  margin-top: 2rem;
}

.footer-nav {
  list-style: none;
  display: flex;
  gap: 1rem;
}

.footer-nav a {
  text-decoration: none;
  color: #1a202c;
}

.footer-nav a:hover {
  text-decoration: underline;
}


/* ------------------------
   RESPONSIVE (Tablet)
   Stack grid to 1 column
-------------------------*/
@media (max-width: 768px) {
  .content-grid {
    grid-template-columns: 1fr;
  }

  /* Remove float and make image full width on small screens */
  .wrap-image {
    float: none;
    max-width: 100%;
    margin: 0 0 1rem 0;
    display: block;
  }
}


/* ------------------------
   RESPONSIVE (Small Mobile)
-------------------------*/
@media (max-width: 500px) {
  html {
    font-size: 15px;
  }

  .site-header {
    flex-direction: column;
    gap: 0.5rem;
  }

  .site-title {
    font-size: 1.5rem;
  }
}

/* ---------- FORM STYLES ---------- */

#contactForm {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

#contactForm label {
  font-weight: 600;
}

#contactForm input,
#contactForm select,
#contactForm textarea {
  padding: 0.5rem;
  border-radius: 0.35rem;
  border: 1px solid #cbd5e0;
  font-size: 0.95rem;
}

#contactForm textarea {
  resize: vertical;
  min-height: 120px;
}

#contactForm button {
  margin-top: 0.5rem;
  padding: 0.6rem 1rem;
  background: #1a202c;
  color: #ffffff;
  border: none;
  border-radius: 0.4rem;
  cursor: pointer;
  font-size: 1rem;
}

#contactForm button:hover {
  background: #2d3748;
}

.form-status {
  margin-top: 0.5rem;
  font-size: 0.9rem;
}
/* ---------- JS CONTROLS AREA ---------- */
.controls {
  max-width: 70rem;
  margin: 1rem auto;
  padding: 0.75rem 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
}

#darkModeBtn {
  padding: 0.5rem 1rem;
  border-radius: 0.4rem;
  border: none;
  cursor: pointer;
  background-color: #1a202c;
  color: #ffffff;
  font-size: 0.95rem;
}

#darkModeBtn:hover {
  background-color: #2d3748;
}

#currentDate {
  font-weight: 600;
  font-size: 0.95rem;
}

/* ---------- FORM STATUS ---------- */
.form-status {
  margin-top: 0.5rem;
  font-size: 0.9rem;
}

/* ---------- DARK MODE ---------- */
.dark-mode {
  background-color: #111111;
  color: #f7fafc;
}

.dark-mode .card {
  background-color: #1a202c;
  color: #f7fafc;
}

.dark-mode .site-header,
.dark-mode .site-footer {
  background-color: #111827;
  color: #f7fafc;
}

.dark-mode a {
  color: #90cdf4;
}

