
* { box-sizing: border-box; }
body { margin: 0; font-family: Arial, Helvetica, sans-serif; line-height: 1.6; color: #1f2933; background: #f7f8fa; }
a { color: inherit; }
.container { width: min(1100px, 92%); margin: 0 auto; }
.site-header { background: #111827; color: white; position: sticky; top: 0; z-index: 10; }
.nav-wrapper { display: flex; align-items: center; justify-content: space-between; padding: 1rem 0; }
.logo { font-weight: 700; text-decoration: none; font-size: 1.1rem; }
.site-nav { display: flex; gap: 1rem; align-items: center; }
.site-nav a { text-decoration: none; opacity: .9; }
.site-nav a:hover { opacity: 1; }
.portal-link { background: #f59e0b; color: #111827; padding: .45rem .75rem; border-radius: 999px; font-weight: 700; }
.nav-toggle { display: none; background: transparent; color: white; border: 0; font-size: 1.5rem; }
.hero { background: linear-gradient(135deg, #111827, #374151); color: white; padding: 5rem 0; }
.hero-content { max-width: 750px; }
.hero h1, .page-header h1 { font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.1; margin-bottom: 1rem; }
.button-row { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn { display: inline-block; border: 0; background: #f59e0b; color: #111827; padding: .8rem 1.1rem; border-radius: .5rem; font-weight: 700; text-decoration: none; cursor: pointer; }
.btn-secondary { background: white; }
.page-header, .content-block { padding: 3rem 0 1.5rem; }
.section-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; padding: 2rem 0 4rem; }
.two-col { grid-template-columns: repeat(2, 1fr); }
.card, .form-card { background: white; padding: 1.5rem; border-radius: .75rem; box-shadow: 0 8px 20px rgba(0,0,0,.06); }
.link-card { text-decoration: none; transition: transform .2s ease; }
.link-card:hover { transform: translateY(-3px); }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; padding-bottom: 4rem; }
.image-placeholder { min-height: 220px; display: grid; place-items: center; border: 2px dashed #9ca3af; background: white; border-radius: .75rem; color: #6b7280; }
.form-card { display: grid; gap: 1rem; margin-bottom: 4rem; }
label { display: grid; gap: .35rem; font-weight: 700; }
input, select, textarea { width: 100%; padding: .7rem; border: 1px solid #cbd5e1; border-radius: .4rem; font: inherit; }
textarea { min-height: 130px; }
.result { font-weight: 700; }
.data-table { width: 100%; border-collapse: collapse; background: white; margin-bottom: 4rem; }
.data-table th, .data-table td { padding: .85rem; border-bottom: 1px solid #e5e7eb; text-align: left; }
.data-table th { background: #111827; color: white; }
.metric span { display: block; font-size: 2.5rem; font-weight: 800; }
.site-footer { background: #111827; color: white; padding: 2rem 0; margin-top: 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 2rem; }
@media (max-width: 800px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; flex-direction: column; align-items: flex-start; padding: 1rem 0; }
  .site-nav.open { display: flex; }
  .nav-wrapper { align-items: flex-start; flex-wrap: wrap; }
  .site-nav { width: 100%; }
  .section-grid, .two-col, .gallery-grid, .footer-grid { grid-template-columns: 1fr; }
}

.quote-section {
  max-width: 700px;
  margin: 40px auto;
  padding: 20px;
}

.quote-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: #f4f4f4;
  padding: 24px;
  border-radius: 10px;
}

.quote-form label {
  font-weight: bold;
}

.quote-form input,
.quote-form select {
  padding: 10px;
  border: 1px solid #bbb;
  border-radius: 6px;
}

.quote-form button {
  padding: 12px;
  border: none;
  background: #222;
  color: white;
  border-radius: 6px;
  cursor: pointer;
}

.quote-form button:hover {
  background: #444;
}

.quote-result {
  margin-top: 20px;
  padding: 18px;
  border-radius: 8px;
  background: #e9f5e9;
  font-size: 1.1rem;
}

.hidden {
  display: none;
}

.time-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.time-row input {
  flex: 1;
}

.small-btn {
  width: auto;
  padding: 10px 12px;
  white-space: nowrap;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  background: white;
}

.data-table th,
.data-table td {
  border: 1px solid #ccc;
  padding: 10px;
  text-align: left;
}

.data-table th {
  background: #222;
  color: white;
}

.delete-btn {
  background: #9b1c1c;
  color: white;
  border: none;
  padding: 8px 10px;
  border-radius: 5px;
  cursor: pointer;
}

.portal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.portal-card {
  display: block;
  padding: 24px;
  background: #f4f4f4;
  color: #222;
  text-decoration: none;
  border-radius: 10px;
  border: 1px solid #ddd;
}

.portal-card:hover {
  background: #eaeaea;
}

@media print {
  header,
  footer,
  .site-header,
  .site-footer,
  .no-print {
    display: none;
  }

  body {
    background: white;
    color: black;
  }

  .container {
    max-width: none;
    width: 100%;
  }

  .data-table {
    font-size: 12px;
  }
}

.hero-slider {
  position: relative;
  height: min(720px, 78vh);
  min-height: 520px;
  overflow: hidden;
  background: #111827;
}

.hero-slide {
  position: absolute;
  inset: 0;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.hero-slide.active {
  visibility: visible;
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  background: linear-gradient(
    90deg,
    rgba(8, 17, 32, 0.9) 0%,
    rgba(8, 17, 32, 0.65) 48%,
    rgba(8, 17, 32, 0.15) 100%
  );
}

.hero-content {
  color: white;
  padding-right: 90px;
}

.hero-content h1,
.hero-content h2 {
  max-width: 800px;
  margin: 0 0 18px;
  color: white;
  font-size: clamp(2.25rem, 5vw, 4.5rem);
  line-height: 1.05;
}

.hero-content p {
  max-width: 690px;
  margin-bottom: 26px;
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  line-height: 1.7;
}

.hero-eyebrow {
  margin-bottom: 12px !important;
  color: #f5a000;
  font-size: 0.9rem !important;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.btn-secondary:hover {
  background: white;
  color: #111827;
}

.slider-button {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: rgba(8, 17, 32, 0.7);
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  transform: translateY(-50%);
}

.previous-slide {
  left: 22px;
}

.next-slide {
  right: 22px;
}

.slider-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  z-index: 5;
  display: flex;
  gap: 10px;
  transform: translateX(-50%);
}

.slider-dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 2px solid white;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.slider-dot.active {
  background: #f5a000;
  border-color: #f5a000;
}

@media (max-width: 700px) {
  .hero-slider {
    height: 640px;
    min-height: 0;
  }

  .hero-overlay {
    align-items: flex-end;
    background: linear-gradient(
      0deg,
      rgba(8, 17, 32, 0.95) 0%,
      rgba(8, 17, 32, 0.62) 65%,
      rgba(8, 17, 32, 0.2) 100%
    );
  }

  .hero-content {
    padding: 40px 24px 90px;
  }

  .hero-content h1,
  .hero-content h2 {
    font-size: 2.25rem;
  }

  .previous-slide {
    left: 10px;
  }

  .next-slide {
    right: 10px;
  }
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
  padding-bottom: 50px;
}

.gallery-card {
  margin: 0;
  overflow: hidden;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gallery-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.gallery-card img {
  width: 100%;
  height: 280px;
  display: block;
  object-fit: cover;
}

.gallery-card figcaption {
  padding: 16px;
  font-weight: 700;
  text-align: center;
  color: #172033;
}

@media (max-width: 600px) {
  .gallery-card img {
    height: 230px;
  }
}

/* Dynamic gallery and admin gallery management */
.gallery-card figcaption { padding: 18px; text-align: left; }
.gallery-card figcaption h2 { margin: 0 0 8px; font-size: 1.2rem; }
.gallery-card figcaption p { margin: 0; color: #555; line-height: 1.5; }
.admin-gallery-list { display: grid; gap: 20px; margin-bottom: 50px; }
.admin-gallery-item { display: grid; grid-template-columns: 220px 1fr; gap: 22px; padding: 18px; background: #fff; border: 1px solid #ddd; border-radius: 10px; }
.admin-gallery-item img { width: 100%; height: 150px; object-fit: cover; border-radius: 8px; }
.admin-gallery-content h3 { margin-top: 0; }
.gallery-admin-preview { width: min(360px, 100%); max-height: 220px; object-fit: cover; border-radius: 8px; margin: 10px 0; }
@media (max-width: 700px) { .admin-gallery-item { grid-template-columns: 1fr; } .admin-gallery-item img { height: 220px; } }


/* ========================================
   VACATION REQUEST
======================================== */

.vacation-request-section {
  margin-bottom: 45px;
}

.vacation-form-card {
  max-width: 850px;
  margin: 0 auto;

  background: #ffffff;

  border: 1px solid #e2e6ea;
  border-radius: 12px;

  box-shadow:
    0 4px 8px rgba(0, 0, 0, 0.04),
    0 12px 30px rgba(0, 0, 0, 0.07);

  overflow: hidden;
}

/* Header */

.vacation-form-header {
  padding: 30px 35px 25px;

  border-bottom: 1px solid #e5e7eb;
}

.vacation-form-header .section-label {
  display: block;

  margin-bottom: 7px;

  font-size: 0.75rem;
  font-weight: 700;

  letter-spacing: 1.5px;

  color: #c98b00;
}

.vacation-form-header h2 {
  margin: 0 0 8px;

  font-size: 1.7rem;

  color: #172033;
}

.vacation-form-header p {
  max-width: 650px;

  margin: 0;

  color: #667085;

  line-height: 1.6;
}


/* Form */

#vacationForm {
  padding: 30px 35px 35px;
}


/* Date fields side-by-side */

.vacation-date-row {
  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 22px;

  margin-bottom: 24px;
}


/* Form fields */

.vacation-field {
  display: flex;
  flex-direction: column;

  gap: 8px;

  margin-bottom: 24px;
}

.vacation-field span {
  font-size: 0.9rem;
  font-weight: 700;

  color: #344054;
}

.vacation-field small {
  font-weight: 400;

  color: #98a2b3;
}


/* Inputs */

.vacation-field input,
.vacation-field textarea {
  width: 100%;

  box-sizing: border-box;

  padding: 13px 14px;

  border: 1px solid #d0d5dd;
  border-radius: 7px;

  background: #ffffff;

  color: #172033;

  font-family: inherit;
  font-size: 1rem;

  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}


/* Focus */

.vacation-field input:focus,
.vacation-field textarea:focus {
  outline: none;

  border-color: #c98b00;

  box-shadow: 0 0 0 3px rgba(201, 139, 0, 0.12);
}


/* Textarea */

.vacation-field textarea {
  min-height: 110px;

  resize: vertical;
}


/* Footer */

.vacation-form-footer {
  display: flex;

  align-items: center;

  gap: 20px;

  padding-top: 5px;
}

.vacation-submit {
  min-width: 170px;
}


/* Success/error message */

.vacation-form-footer .result {
  margin: 0;

  font-size: 0.9rem;
}


/* ========================================
   MOBILE
======================================== */

@media (max-width: 650px) {

  .vacation-form-header {
    padding: 25px 22px 20px;
  }

  #vacationForm {
    padding: 25px 22px;
  }

  .vacation-date-row {
    grid-template-columns: 1fr;

    gap: 0;
  }

  .vacation-form-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .vacation-submit {
    width: 100%;
  }

}

/* Employee Portal Forgot Password Button */
#forgotPasswordButton {
  background: transparent;
  color: #17263a;
  border: 2px solid #17263a;
  margin-left: 12px;
}

#forgotPasswordButton:hover {
  background: #17263a;
  color: #ffffff;
}

.quote-result:empty {
  display: none;
}