/* ==========================================================================
   Page-Specific Styles (Home & Contact Us)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Home Page (index.html - Post 288)
   -------------------------------------------------------------------------- */

/* Home Hero Section */
.home-hero {
  position: relative;
  overflow: hidden;
  background-color: var(--color-hero-tint);
  background-image: url('../images/backgrounds/pattern-top-left.png');
  background-position: top left;
  background-repeat: no-repeat;
  background-size: 28% auto;
  padding: 180px 0 0 0;
  transition: background 0.3s, border 0.3s, border-radius 0.3s, box-shadow 0.3s;
}

.home-hero__overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url('../images/backgrounds/pattern-bottom-right.png');
  background-position: bottom right;
  background-repeat: no-repeat;
  background-size: 23% auto;
  opacity: 0.35;
  transition: background 0.3s, border-radius 0.3s, opacity 0.3s;
}

.home-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 15px 40px 25px;
  display: flex;
  align-items: center;
}

.home-hero__content {
  width: 48.337%;
  padding-right: 60px;
  padding-bottom: 60px;
}

.home-hero__title {
  font-family: var(--font-heading);
  font-size: 40px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--color-accent);
  margin: 0 0 16px 0;
}

.home-hero__subtitle {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  color: var(--color-text);
  margin: 0 0 16px 0;
}

.home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  margin-top: 10px;
  padding-bottom: 80px;
}

.home-hero__visual {
  width: 51.663%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
}

.home-hero__badge-wrap {
  order: -1;
  align-self: flex-end;
  margin-right: 258px;
  margin-bottom: -72px;
  position: relative;
  z-index: 2;
}

.home-hero__image {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Home About Section */
.home-about {
  position: relative;
  overflow: hidden;
  background-color: var(--color-secondary);
  background-image: url('../images/backgrounds/pattern-top-left.png');
  background-position: -10% 0px;
  background-repeat: no-repeat;
  background-size: 33% auto;
  transition: background 0.3s, border 0.3s, border-radius 0.3s, box-shadow 0.3s;
}

.home-about__overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url('../images/backgrounds/pattern-bottom-right.png');
  background-position: 100% 120%;
  background-repeat: no-repeat;
  background-size: 31% auto;
  opacity: 0.52;
  transition: background 0.3s, border-radius 0.3s, opacity 0.3s;
}

.home-about__inner {
  position: relative;
  z-index: 1;
  max-width: 1319px;
  margin: 0 auto;
  padding: 110px 15px 140px 15px;
  display: flex;
  align-items: center;
}

.home-about__visual {
  width: 50%;
  padding: 20px 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
}

.home-about__badge-wrap {
  order: -1;
  align-self: flex-end;
  margin-right: 113px;
  position: relative;
  z-index: 2;
}

.home-about__image {
  width: 100.303%;
  max-width: 100.303%;
  height: auto;
  display: block;
  filter: brightness(100%) contrast(100%) saturate(33%) blur(0px) hue-rotate(0deg);
}

.home-about__content {
  width: 50%;
  padding: 0 20px 0 60px;
}

.home-about__tag {
  display: inline-block;
  min-width: 140px;
  background-color: var(--color-accent);
  color: #FFFFFF;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  text-align: center;
  padding: 8px 14px;
  border-radius: 2px;
  margin: 0 0 20px 0;
}

.home-about__title {
  font-family: var(--font-heading);
  font-size: 40px;
  font-weight: 700;
  line-height: 1.1em;
  letter-spacing: -0.1px;
  color: var(--color-accent);
  padding: 0 0 20px 0;
  margin: 0;
}

.home-about__text {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.7em;
  color: var(--color-text);
  margin: 0 0 20px 0;
}

.home-about__text p {
  margin: 0 0 16px 0;
}

.home-about__text p:last-child {
  margin-bottom: 0;
}

/* Home CTA Section */
.home-cta {
  position: relative;
  background-color: #FFFFFF;
  background-image: url('../images/backgrounds/cta-logistics-bg.jpg');
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  padding: 100px 0;
  transition: background 0.3s, border 0.3s, border-radius 0.3s, box-shadow 0.3s;
}

@media (min-width: 1025px) {
  .home-cta {
    background-attachment: fixed;
  }
}

.home-cta__overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-color: #181818;
  opacity: 0.64;
  transition: background 0.3s, border-radius 0.3s, opacity 0.3s;
}

.home-cta__inner {
  position: relative;
  z-index: 1;
  max-width: 1019px;
  margin: 0 auto;
  padding: 0 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.home-cta__title {
  font-family: var(--font-heading);
  font-size: 60px;
  font-weight: 700;
  line-height: 1.1em;
  color: var(--color-secondary);
  margin: 0 0 16px 0;
}

.home-cta__text {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.7em;
  color: var(--color-secondary);
  margin: 0 0 18px 0;
  max-width: 780px;
}

/* Home Page Responsive */
@media (max-width: 1024px) {
  .home-hero {
    background-size: 42% auto;
    margin-top: 40px;
    padding: 90px 20px 0 20px;
  }

  .home-hero__overlay {
    background-size: 41% auto;
    opacity: 0.3;
  }

  .home-hero__inner {
    max-width: 562px;
    flex-direction: column;
    padding: 0 0 40px 0;
  }

  .home-hero__content {
    width: 100%;
    padding: 0;
    margin-top: 40px;
    text-align: center;
  }

  .home-hero__title {
    font-size: 30px;
    text-align: center;
  }

  .home-hero__subtitle {
    text-align: center;
  }

  .home-hero__actions {
    justify-content: center;
    padding-bottom: 50px;
  }

  .home-hero__visual {
    width: 100%;
    align-items: center;
    margin-top: 20px;
  }

  .home-hero__badge-wrap {
    margin-right: 144px;
    margin-bottom: -20px;
  }

  .home-hero__image {
    max-width: 72%;
  }

  .home-about {
    background-position: 0% 0px;
    background-size: 215px auto;
    padding: 70px 0 0 0;
  }

  .home-about__overlay {
    background-position: 100% 100%;
  }

  .home-about__inner {
    max-width: 562px;
    flex-direction: column;
    padding: 0 15px 100px 15px;
  }

  .home-about__visual {
    width: 100%;
    padding: 0 0 20px 0;
    align-items: center;
  }

  .home-about__badge-wrap {
    margin-right: 113px;
    margin-bottom: -15px;
  }

  .home-about__content {
    width: 100%;
    padding: 0;
    text-align: center;
  }

  .home-about__title {
    font-size: 30px;
    text-align: center;
  }

  .home-about__text {
    text-align: center;
  }

  .home-cta {
    padding: 80px 20px;
  }

  .home-cta__inner {
    max-width: 692px;
  }

  .home-cta__title {
    font-size: 30px;
    margin-bottom: 20px;
  }

  .home-cta__text {
    margin-bottom: 20px;
  }
}

@media (max-width: 767px) {
  .home-hero {
    background-size: 65% auto;
    margin-top: 20px;
    padding: 74px 20px 0 20px;
  }

  .home-hero__overlay {
    background-size: 100% auto;
  }

  .home-hero__content {
    margin-top: 20px;
  }

  .home-hero__title {
    font-size: 20px;
  }

  .home-hero__subtitle {
    padding-bottom: 10px;
  }

  .home-hero__actions {
    flex-direction: column;
    gap: 12px;
    padding-bottom: 40px;
  }

  .home-hero__actions .btn {
    width: 100%;
    font-size: 12px;
  }

  .home-hero__image {
    max-width: 86%;
  }

  .home-hero__badge-wrap {
    margin-right: 39%;
    margin-bottom: -15px;
  }

  .home-about {
    padding: 0 0 40px 0;
  }

  .home-about__inner {
    padding: 60px 20px 0 20px;
  }

  .home-about__badge-wrap {
    margin-right: 34%;
  }

  .home-about__tag {
    width: 100%;
    margin-bottom: 12px;
    padding: 10px 5px;
  }

  .home-about__title {
    font-size: 20px;
    letter-spacing: 0;
  }

  .home-about__text {
    font-size: 16px;
    padding-bottom: 20px;
  }

  .home-cta {
    padding: 40px 10px;
  }

  .home-cta__title {
    font-size: 20px;
    letter-spacing: -1px;
    margin: 10px 0 20px 0;
  }

  .home-cta__text {
    font-size: 16px;
  }

  .home-cta .btn {
    width: 100%;
    font-size: 16px;
  }
}

/* --------------------------------------------------------------------------
   2. Contact Us Page (contact-us.html - Post 991)
   -------------------------------------------------------------------------- */

.contact-section {
  max-width: 1140px;
  margin: 8px auto 0 auto;
  padding: 40px 15px 30px 15px;
}

.contact-section__header {
  text-align: center;
  margin-bottom: 20px;
}

.contact-section__title {
  font-family: var(--font-heading);
  font-size: 30px;
  font-weight: 600;
  color: var(--color-accent);
  margin: 0 0 12px 0;
  transition: color 0.3s ease;
}

.contact-section__title:hover {
  color: var(--color-primary);
}

.contact-split {
  display: flex;
  justify-content: space-evenly;
  align-items: stretch;
  gap: 30px;
}

.contact-form-panel {
  width: 60%;
  background-color: #FFFFFF;
  padding: 50px 36px;
}

.contact-map-panel {
  width: 40%;
  display: flex;
  flex-direction: column;
}

.contact-map-embed {
  width: 100%;
  height: 100%;
}

.contact-map-embed iframe {
  width: 100%;
  height: 550px;
  border: 0;
  display: block;
}

/* Contact Form & Validation Styles (validate-input-after-interaction) */
.contact-form {
  width: 100%;
}

.form-field {
  margin-bottom: 22px;
}

.form-field label {
  display: block;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 4px;
}

.hint {
  display: block;
  color: #5f6368;
  font-size: 0.85rem;
  margin-bottom: 0.35rem;
}

.error-msg {
  display: none;
  color: #d93025;
  font-size: 0.875rem;
  margin-top: 0.35rem;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  color: var(--color-primary);
  background-color: #FFFFFF;
  border: 1px solid #CBD5E0;
  border-radius: 3px;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control::placeholder {
  color: #A0AEC0;
}

.form-control:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(198, 143, 51, 0.15);
}

/*
  Only show error styles after user interaction (:user-invalid + JS fallback).
  Use multiple indicators (border/background shift + icon/text) to avoid color-only states.
*/
input:user-invalid,
select:user-invalid,
input.user-invalid-fallback,
select.user-invalid-fallback {
  border-color: #d93025;
  background-color: #fce8e6;
}

/* Reveal the error message using the adjacent sibling selector */
input:user-invalid + .error-msg,
select:user-invalid + .error-msg,
input.user-invalid-fallback + .error-msg,
select.user-invalid-fallback + .error-msg {
  display: block;
}

/* Provide a clear success indication on :user-valid */
input:user-valid,
select:user-valid,
input.user-valid-fallback,
select.user-valid-fallback {
  border-color: #188038;
}

.form-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-primary);
  color: var(--color-secondary);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  padding: 14px 32px;
  border: 1px solid var(--color-primary);
  border-radius: 2px;
  cursor: pointer;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.form-submit-btn:hover,
.form-submit-btn:focus {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
}

.form-response {
  display: none;
  margin-top: 20px;
  padding: 14px 18px;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
}

.form-response.is-visible {
  display: block;
  background-color: #e6f4ea;
  color: #137333;
  border: 1px solid #ceead6;
}

/* Contact Info Cards Grid (3 Columns) */
.contact-cards-section {
  max-width: 1140px;
  margin: 0 auto 80px auto;
  padding: 0 15px;
}

.contact-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.contact-card {
  background-color: #F7F7F7;
  padding: 37px 24px 40px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border: 1px solid #f5f5f5;
  border-radius: 5px;
}

.contact-card__icon {
  color: var(--color-accent);
  fill: var(--color-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.contact-card__icon svg {
  width: 45px;
  height: 45px;
  fill: currentColor;
}

.contact-card__title {
  font-family: var(--font-alt);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.2px;
  color: #121A24;
  margin: 10px 0 0 0;
}

.contact-card__title--primary {
  color: var(--color-primary);
}

.contact-card__divider {
  padding: 4px 0 0 0;
  display: flex;
  justify-content: center;
  color: #D6D6D6;
  fill: #D6D6D6;
}

.contact-card__divider svg {
  width: 30px;
  height: 30px;
  fill: #D6D6D6;
}

.contact-card__subtitle {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  color: #4A5568;
  margin: 0;
  line-height: 1.5;
}

.contact-card__location {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  color: var(--color-primary);
  margin: 10px 0 0 0;
  transition: color 0.3s ease;
}

.contact-card__location:hover {
  color: var(--color-accent);
}

.contact-card__link {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  color: var(--color-text);
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-card__link--primary {
  color: var(--color-primary);
}

.contact-card__link:hover {
  color: var(--color-accent);
}

/* Contact Us Page Responsive */
@media (max-width: 1024px) {
  .contact-split {
    flex-direction: column;
  }

  .contact-form-panel,
  .contact-map-panel {
    width: 100%;
  }
}

@media (max-width: 767px) {
  .contact-section {
    padding: 20px 15px;
  }

  .contact-section__title {
    font-size: 36px;
  }

  .contact-form-panel {
    padding: 30px 20px;
  }

  .contact-map-embed iframe {
    height: 350px;
  }

  .contact-cards-section {
    padding: 20px 15px 80px 15px;
    margin-bottom: 0;
  }

  .contact-cards-grid {
    grid-template-columns: 1fr;
  }

  .contact-card {
    padding: 24px 15px;
  }
}
