/* =========================================
   CONTACT.CSS (FULL)
   Brand: Plain Plant Logistics and Supply
   Colors (already defined in your global :root):
   --primary, --secondary, --accent, --white, --dark-text, --muted
========================================= */

/* ---- Contact page safety reset (prevents only-contact spacing issue) ---- */
/* This will NOT affect other pages unless they load contact.css */
html, body{
  margin: 0;
  padding: 0;
}

/* ================= CONTACT HERO ================= */
/* (Keep your existing hero here if you already set it. Included for completeness.) */
.contact-hero{
  position: relative;
  padding: 110px 0 95px;
  text-align: center;
  color: var(--white);

  background-image: url("https://images.unsplash.com/photo-1521791136064-7986c2920216?auto=format&fit=crop&w=2000&q=80");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.contact-hero-overlay{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.65);
  z-index: 0;
}

.contact-hero-content{
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.contact-hero-content h1{
  margin: 0 0 14px;
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 800;
  letter-spacing: .2px;
}

.contact-hero-content p{
  margin: 0 auto;
  max-width: 760px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
}

@media (max-width: 768px){
  .contact-hero{
    padding: 90px 0 75px;
  }
  .contact-hero-content h1{
    font-size: clamp(30px, 8vw, 44px);
  }
}




/* =========================================
   CONTACT INFO CARDS
   Scoped safely for contact page only
========================================= */

.pp-contact-cards{
  padding: 70px 0 45px;
  background: #eef3ff;
}

.pp-contact-cards__grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.pp-contact-card{
  background: #ffffff;
  border-radius: 14px;
  padding: 26px 22px;
  display: flex;
  align-items: center;
  gap: 18px;
  border: 1px solid rgba(0,0,0,.06);
}

.pp-contact-card__icon{
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1.5px solid rgba(28,88,141,.35);
  color: var(--primary);
  font-size: 22px;
  flex: 0 0 64px;
}

.pp-contact-card__text{
  flex: 1;
  min-width: 0;
}

.pp-contact-card__text h4{
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 800;
  color: var(--dark-text);
}

.pp-contact-card__text p{
  margin: 0;
  font-size: 14px;
  color: rgba(31,41,51,.75);
  line-height: 1.4;
  word-break: break-word;
}

.pp-contact-card__text a{
  color: rgba(31,41,51,.75);
  text-decoration: none;
}

.pp-contact-card__text a:hover{
  color: var(--primary);
  text-decoration: underline;
}

/* ---------- MOBILE ---------- */
@media (max-width: 900px){
  .pp-contact-cards{
    padding: 45px 0 30px;
  }

  .pp-contact-cards__grid{
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .pp-contact-card{
    padding: 20px 16px;
    gap: 14px;
  }

  .pp-contact-card__icon{
    width: 56px;
    height: 56px;
    font-size: 20px;
    flex: 0 0 56px;
  }

  .pp-contact-card__text h4{
    font-size: 16px;
  }

  .pp-contact-card__text p{
    font-size: 13px;
  }
}



/* =========================================
   CONTACT FORM SECTION
========================================= */

.pp-contact-form{
  padding: 70px 0 90px;
  background: #ffffff;
}

.pp-contact-form__head{
  text-align: center;
  margin-bottom: 28px;
}

.pp-contact-form__kicker{
  display: inline-block;
  font-weight: 700;
  color: var(--dark-text);
  letter-spacing: .3px;
  position: relative;
  padding-top: 12px;
}

.pp-contact-form__kicker::before{
  content:"";
  display:block;
  width: 46px;
  height: 2px;
  background: rgba(31,41,51,.25);
  margin: 0 auto 10px;
  border-radius: 3px;
}

.pp-contact-form__head h2{
  margin: 0;
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 900;
  color: var(--dark-text);
}

.pp-contact-form__head h2 span{
  color: #000;
}

/* FORM BOX */
.pp-contact-form__box{
  max-width: 1050px;
  margin: 26px auto 0;
  padding: 38px;
  border-radius: 16px;
  border: 1px solid rgba(28,88,141,.12);
  background: #ffffff;
  text-align: center;
}

/* GRID */
.pp-grid-2{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}

.pp-field{
  text-align: left;
}

.pp-field label{
  display:block;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 8px;
  color: var(--dark-text);
}

.pp-field input,
.pp-field textarea{
  width: 100%;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 12px;
  padding: 14px 15px;
  font-size: 14px;
  outline: none;
  background: #ffffff;
}

.pp-field textarea{
  min-height: 180px;
  resize: vertical;
}

.pp-field input:focus,
.pp-field textarea:focus{
  border-color: rgba(28,88,141,.45);
}

/* BUTTON */
.pp-contact-btn{
  margin-top: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 220px;
  height: 54px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 800;
  color: #ffffff;
  background: var(--secondary);
}

.pp-contact-btn:hover{
  filter: brightness(0.95);
}

/* ---------- MOBILE ---------- */
@media (max-width: 900px){
  .pp-contact-form{
    padding: 50px 0 70px;
  }

  .pp-contact-form__box{
    padding: 20px 36px;
    
  }

  .pp-grid-2{
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 14px;
  }

  .pp-field textarea{
    min-height: 160px;
  }

  .pp-contact-btn{
    width: 100%;
    height: 52px;
  }
}




/* ================= BRANCHES SECTION ================= */
.branches-section{
  padding: 80px 0;
  background: #ffffff;
}

.branches-container{
  max-width: 1200px;
  margin: auto;
  padding: 0 20px;
}

.branches-header{
  text-align: center;
  margin-bottom: 50px;
}

.branches-subtitle{
  display: block;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #94a3b8;
  margin-bottom: 8px;
}

.branches-header h2{
  font-size: 42px;
  font-weight: 800;
  color: #0f172a;
}

/* GRID */
.branches-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

/* CARD */
.branch-card{
  background: #ffffff;
  border-radius: 18px;
  padding: 28px 26px;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
  transition: all .35s ease;
}

.branch-card:hover{
  transform: translateY(-8px);
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.12);
}

/* FLAG */
.branch-flag img{
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 14px;
}

/* TEXT */
.branch-card h4{
  font-size: 18px;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 10px;
}

.branch-address{
  font-size: 14px;
  line-height: 1.6;
  color: #64748b;
  margin-bottom: 10px;
}

.branch-email{
  font-size: 14px;
  font-weight: 500;
  color: #0c3183;
  margin-bottom: 14px;
}

/* LINK */
.branch-link{
  font-size: 13px;
  font-weight: 500;
  color: #2563eb;
  text-decoration: none;
}

.branch-link:hover{
  text-decoration: underline;
}

/* RESPONSIVE */
@media (max-width: 600px){
  .branches-header h2{
    font-size: 32px;
  }
}
