/* =========================================================
   PENHAM CO. LTD — SERVICES PAGE (UPDATED)
   ========================================================= */

/* ---------- GLOBAL RESET ---------- */
* { margin:0; padding:0; box-sizing:border-box; }
:root{
  --gold:#9c8643;
  --gold-2:#d4af37;
  --dark:#1a1a1a;
  --muted:#6b6b6b;
  --bg:#f9f9f9;
  --container:1200px;
}
body{
  font-family: 'Poppins', sans-serif;
  color:var(--dark);
  background:#fff;
  -webkit-font-smoothing:antialiased;
}

/* ---------- UTIL ---------- */
/* .container { max-width:var(--container); margin:0 auto; padding:0 24px; } */

/* ---------- HERO ---------- */
/* ---------- HERO ---------- */
.hero-intro {
  position: relative;
  color: #fff;
  padding:251px 3px 173px;
  overflow: hidden;
}

/* ---------- BACKGROUND IMAGE FADE ---------- */
.hero-intro::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.55)),
    url('../img/F3.png') center/cover no-repeat;
  opacity: 0;
  animation: fadeInBg 1.5s ease forwards;
}

@keyframes fadeInBg {
  0% {
    opacity: 0;
    transform: scale(1.05);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 40px;
  top: -100px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

/* ---------- TEXT AREA ---------- */
.hero-copy {
  flex: 1 1 55%;
  opacity: 0;
  animation: fadeInLeft 1.2s ease forwards;
  animation-delay: 0.3s;
}

.hero-copy h1 {
  font-size: 54px;             /* larger, same as homepage */
  font-weight: 700;
  line-height: 1.15;
  color: #ffffff;              /* pure white for clarity */
  margin-bottom: 18px;
  letter-spacing: -0.5px;
  text-shadow: 0 3px 8px rgba(0,0,0,0.3);
  opacity: 0;
  animation: fadeInUp 1.4s ease forwards;
  animation-delay: 0.5s;
}

.hero-copy p {
  font-size: 19px;
  color: rgba(255,255,255,0.92);
  line-height: 1.7;
  max-width: 640px;
  margin-bottom: 26px;
  letter-spacing: 0.3px;
  opacity: 0;
  animation: fadeInUp 1.6s ease forwards;
  animation-delay: 0.7s;
}

/* ---------- BUTTONS ---------- */
.hero-ctas .btn.primary {
  background: var(--gold);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 6px;
  transition: all 0.3s ease;
}
.hero-ctas .btn.primary:hover {
  background: #b58e3a;
  transform: translateY(-4px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}
.primary-1{
  background: #000000ff;
  color: #ffffffff;
  border: none;
}
.hero-ctas .btn.ghost {
  border: 1.6px solid rgba(255,255,255,0.4);
  color: #fff;
  margin-top: 14px;
  background: transparent;
}

.hero-ctas .btn.ghost:hover {
  background: rgba(255,255,255,0.12);
}
/* ---------- IMAGE ---------- */
.hero-visual {
  flex: 1 1 40%;
  text-align: right;
  opacity: 0;
  animation: fadeInRight 1.5s ease forwards;
  animation-delay: 0.8s;
}

.hero-visual img {
  width: 420px;
  max-width: 100%;
  display: inline-block;
  transform: translateY(5px);
}
@media (max-width:900px){
  .hero-copy h1 {
    font-size: 36px;
    line-height: 1.3;
  }

  .hero-copy p {
    font-size: 16px;
    max-width: 90%;
    margin: 0 auto 20px;
  }

  .hero-ctas {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }

  .hero-ctas .btn {
    width: 80%;
  }
}

@media (max-width:600px){
  .hero-copy h1 {
    font-size: 28px;
    line-height: 1.4;
  }

  .hero-copy p {
    font-size: 15px;
  }
}

/* ---------- ANIMATIONS ---------- */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  0% {
    opacity: 0;
    transform: translateX(-40px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  0% {
    opacity: 0;
    transform: translateX(40px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}


/* BUTTONS */
.btn { display:inline-block; padding:12px 22px; border-radius:8px; text-decoration:none; font-weight:600; transition:all .22s ease; }
.btn.primary { background:#b99746; color:#fff; border: none; }
.btn.ghost { background:transparent; color:#fff; border:1.5px solid rgba(255,255,255,0.12); }
.btn.primary:hover{ transform:translateY(-4px); box-shadow:0 10px 30px rgba(0,0,0,0.18); }
.btn.ghost:hover{ background:rgba(255,255,255,0.08); }

/* ---------- SERVICES GRID ---------- */
.services-grid-section{ background:var(--bg); padding:80px 0; }
.section-title{ text-align:center; font-size:30px; margin-bottom:22px; color:var(--dark); font-weight:700; }
.services-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:30px; margin-top:28px; }
.service-card{ background:#fff; border-radius:14px; text-decoration:none; color:var(--dark); overflow:hidden; display:flex; flex-direction:column; align-items:center; transition:transform .32s ease, box-shadow .32s ease; box-shadow:0 10px 25px rgba(0,0,0,0.05); }
.card-img img{ width:100%; height:160px; object-fit:cover; display:block; }
.service-card i{ font-size:36px; color:var(--gold); margin:18px 20px 6px; }
.service-card h3{ margin:0 20px 10px; font-size:20px; }
.service-card p{ margin:0 20px 18px; color: #555; font-size:14px; line-height:1.6; }
.more-btn{ margin:0 20px 24px; color:var(--gold); font-weight:600; }
.section-title-1{ text-align:center; font-size:30px; margin-bottom:22px; color:var(--dark); font-weight:700; }
/* hover */
.service-card:hover{ transform:translateY(-8px); box-shadow:0 24px 60px rgba(0,0,0,0.12); }
.service-card:hover i{ color:var(--gold-2); transform:scale(1.08); }

/* ---------- OFFSHORE ---------- */
.offshore-section{ padding:72px 0; background:linear-gradient(180deg,#000000,#000000); color:#fff; }
.offshore-inner{ display:flex; align-items:center; gap:36px; flex-wrap:wrap; }
.offshore-copy{ flex:1; }
.offshore-copy h2{ font-size:32px; color:var(--gold-2); margin-bottom:10px; }
.offshore-copy p{ color:rgba(255,255,255,0.9); margin-bottom:16px; }
.staff-list{ list-style:none; display:grid; grid-template-columns:repeat(2, minmax(140px,1fr)); gap:8px 20px; margin-bottom:18px; color:rgba(255,255,255,0.95); }
.offshore-visual{ flex:1; text-align:right; }
.offshore-visual img{ width:420px; max-width:100%; opacity:0.98; }

/* ---------- PROCESS ---------- */
.process-section{ padding:70px 0; background:#fff; }
.process-grid{ display:grid;color: #000000;grid-template-columns:repeat(4,1fr); gap:20px; margin-top:28px; }
.step{ background:#f7f7fb; padding:22px; border-radius:12px; text-align:left; min-height:160px; }
.step-num{ width:44px; height:44px; background:var(--gold); color:#fff; border-radius:8px; display:flex; align-items:center; justify-content:center; font-weight:700; margin-bottom:12px; font-size:18px; }

/* ---------- INDUSTRIES ---------- */
/* --- INDUSTRIES SECTION --- */
.industries-section {
  padding: 37px 20px;
  background: linear-gradient(180deg, #ffffff 0%, #f5f6ff 100%);
  text-align: center;
  position: relative;
}

.section-title {
  font-size: 2.8rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 10px;
  letter-spacing: 0.5px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 50px;
}

.industries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.industry-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.industry-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 16/11;
  transition: transform 0.5s ease;
}

.industry-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.industry-card:hover img {
  transform: scale(1.1);
}

.industry-card .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.1));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 30px;
  color: #fff;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.industry-card:hover .overlay {
  opacity: 1;
}

.industry-card .overlay h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.industry-card .overlay p {
  font-size: 0.95rem;
  color: #e0e0e0;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .section-title {
    font-size: 2.2rem;
    margin-top: 30px;
  }
  .section-title-1 {
    font-size: 2.2rem;
    margin-top: 30px;
  }


  .industry-card .overlay h3 {
    font-size: 1.3rem;
  }

  .industry-card .overlay p {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .industries-section {
    padding: 0px 15px;
    margin-top: 209px;
  }

  .section-subtitle {
    font-size: 1rem;
    margin-bottom: 21px;
  }

  .industries-grid {
    gap: 20px;
  }
}


/* ---------- CASE STUDIES ---------- */
.cases-section{ padding:0px 0; background:var(--bg); }
.cases-grid{ display:flex; gap:20px; justify-content:space-between; margin-top:20px; flex-wrap:wrap; }
.case{ background:#fff; width:32%; border-radius:12px; overflow:hidden; box-shadow:0 10px 30px rgba(0,0,0,0.06); text-decoration:none; color:var(--dark); }
.case img{ width:100%; height:180px; object-fit:cover; display:block; }
.case-body{ padding:16px; }
.case-body h4{ margin-bottom:8px; }
.case-body p{ color:#000000; font-size:19px; margin-bottom:12px; }

/* ---------- FAQ TEASER ---------- */
.faq-teaser{ padding:35px 0; background:#fff; text-align:center; }
.faq-teaser p{ color:#0a1a2a; margin:12px 0 18px; }
.faq-teaser .btn {
  display: inline-block;
  margin: 10px 10px;
}

.faq-teaser .container-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.faq-teaser .btn {
  text-align: center;
}

/* ---------- CTA ---------- */
.cta-banner{ background:linear-gradient(135deg,var(--gold),#b59d54); padding:70px 0; text-align:center; color:#fff; }
.cta-banner h2{ font-size:28px; margin-bottom:16px; font-weight:800; }

/* ---------- RESPONSIVE ---------- */
@media (max-width:1200px){
  .services-grid{ grid-template-columns:repeat(3,1fr); }
  .cases-grid{ flex-direction:column; font-size: 20.9px;}
  .case{ width:100%; }
}

@media (max-width:900px){
  .hero-inner{ flex-direction:column;margin-top: 134px;margin-bottom: -109px; line-height: 1.6; text-align:center; }
  .hero-visual{ text-align:center; }
  .services-grid{ grid-template-columns:repeat(2,1fr); }
  .container-section-1{
    padding:0 20px;
  }
  .services-grid-section{
    padding:300px 0;
  }
  .offshore-inner{ flex-direction:column-reverse; text-align:center; }
  .offshore-visual img{ width:320px; }
  .offshore-section{
    margin-top: -279px;
    border-radius: 39px;
    margin-bottom: 222px;
  }
  .process-grid{ grid-template-columns:repeat(2,1fr); }
}

@media (max-width:600px){
  .hero-copy h1{ font-size:28px; line-height: 1.5; }
  .services-grid{ grid-template-columns:1fr; }
  .process-grid{ grid-template-columns:1fr;margin-top: -50px;line-height: 1.6; }
  .staff-list{ grid-template-columns:1fr; }
  .hero-intro{ padding:80px 0 40px; }
  .offshore-visual img{ width:260px; }
}
