/* ===================================================
   Font
=================================================== */
@font-face {
  font-family: 'pinar';
  src: url('../fonts/pinar-400.woff2') format('woff2'),
    url('../fonts/pinar-400.ttf') format('truetype');
}

@font-face {
  font-family: 'pinarB';
  src: url('../fonts/pinar-700.woff2') format('woff2'),
    url('../fonts/pinar-700.ttf') format('truetype');
}

/* ===================================================
   Root Variables
=================================================== */
:root {
  --brand-color: rgb(40, 71, 65);
  --brand-dark: rgb(30, 55, 50);
  --warm-accent: #d8a15d;
}

/* ===================================================
   Base Reset
=================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'pinar', system-ui, sans-serif;
  font-size: 16.5px;
  line-height: 2;
  margin: 0;
  background-color: #f6f8f7;
  color: #1f2d2a;
}

h1,
h2,
h3 {
  font-weight: 900;
}

h1 {
  font-size: 2.6rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.25rem;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ===================================================
   Page Loader
=================================================== */
body.loading {
  overflow: hidden;
}

.page-loader {
  position: fixed;
  inset: 0;
  background: #ffffff;
  display: grid;
  place-items: center;
  z-index: 9999;
}

.page-loader span {
  width: 44px;
  height: 44px;
  border: 3px solid rgba(40, 71, 65, .25);
  border-top-color: var(--brand-color);
  border-radius: 50%;
  animation: spin .9s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ===================================================
   Header / Navbar (Fixed)
=================================================== */
header {
  position: fixed;
  top: 0;
  inset-inline: 0;
  background: #ffffff;
  z-index: 1000;
  box-shadow: 0 8px 25px rgba(0, 0, 0, .08);
  border-bottom: 2px solid var(--brand-dark);
}

.navbar {
  padding: 1.1rem 0;
}

.navbar-brand {
  font-size: 1.3rem;
  font-weight: 900;
}

.brand-black {
  font-family: 'pinarB';
  color: #000;
}

.brand-accent {
  font-family: 'pinarB';
  color: var(--warm-accent);
}

.nav-link {
  font-family: 'pinarB';
  font-size: .9rem;
  color: #2b3d39;
  position: relative;
  transition: color .3s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  right: 0;
  width: 0;
  height: 2px;
  background: var(--warm-accent);
  transition: width .3s ease;
}

.nav-link:hover,
.nav-link:focus {
  color: var(--brand-color);
}

.nav-link:hover::after,
.nav-link:focus::after {
  width: 100%;
}

@media screen and (max-width:992px) {
  .navbar {
    padding: 1.1rem 1.5rem;
  }

  .nav-link {
    text-align: center;
  }
}

/* Offset for fixed header */
main {
  margin-top: 89px;
  min-height: calc(100dvh - (89px + 112.8px));
}

/* ===================================================
   Sections
=================================================== */
section {
  padding: 6.5rem 0;
}

/* ===================================================
   Hero
=================================================== */
.hero {
  height: calc(100dvh - 89px);
  background: linear-gradient(135deg,
      var(--brand-color),
      rgb(60, 95, 90));
  color: #ffffff;
}

.hero-dir {
  flex-direction: row;
}

.hero p.lead {
  font-size: 1.15rem;
}

.hero-text {
  animation-name: hero-text-anim;
  animation-timing-function: ease-in-out;
  animation-duration: 0.75s;
  animation-fill-mode: forwards;
}

@keyframes hero-text-anim {
  from {
    transform: translateX(150px);
    opacity: 0;
  }

  to {
    transform: translateX(0px);
    opacity: 1;
  }
}

/* Hero Image */
.hero-image {
  max-width: 58%;
  margin-inline: auto;
  filter: drop-shadow(0 22px 35px rgba(0, 0, 0, .35));
  animation-name: hero-image-anim;
  animation-timing-function: ease-in-out;
  animation-duration: 0.75s;
  animation-fill-mode: forwards;
  transition:
    scale .75s cubic-bezier(.34, 1.56, .64, 1),
    filter .75s ease;
}

.hero-image:hover,
.hero-image:focus {
  scale: 1.045;
  filter: drop-shadow(0 32px 55px rgba(0, 0, 0, .45));
}

@keyframes hero-image-anim {
  from {
    transform: translateX(-150px);
    opacity: 0;
  }

  to {
    transform: translateX(0px);
    opacity: 1;
  }
}

/* ===================================================
   Buttons
=================================================== */
.btn {
  font-weight: 800;
  font-size: .9rem;
  padding: .65rem 1.6rem;
}

/* ===================================================
   Section Titles
=================================================== */
.section-title {
  font-weight: 900;
  margin-bottom: 3rem;
}

.section-title .black {
  font-family: 'pinarB';
  color: #000;
}

.section-title .accent {
  font-family: 'pinarB';
  color: var(--warm-accent);
}

/* ===================================================
   Services
=================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}

.service-card {
  background: #ffffff;
  border-radius: 22px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, .1);
  overflow: hidden;
  height: 100%;
  transition: transform .4s ease, box-shadow .4s ease;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 32px 65px rgba(0, 0, 0, .18);
}

.service-image {
  height: 150px;
  background: linear-gradient(135deg,
      rgba(40, 71, 65, .08),
      rgba(216, 161, 93, .22));
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-image img {
  max-width: 90px;
  max-height: 90px;
  object-fit: contain;
}

.service-content {
  padding: 2.2rem 2rem;
  text-align: center;
}

/* ===================================================
   About
=================================================== */
.about p {
  font-size: 1.08rem;
  text-align: justify;
}

.about-img {
  max-width: 100%;
  border-radius: 22px;
  box-shadow: 0 22px 50px rgba(0, 0, 0, .18);
}

/* ===================================================
   Scroll To Top
=================================================== */
.scroll-top {
  position: fixed;
  bottom: 25px;
  left: 25px;
  width: 46px;
  height: 46px;
  background: var(--brand-color);
  color: #ffffff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .25);
  border: 3px solid var(--warm-accent);
  opacity: 0;
  pointer-events: none;
  transition: all .3s ease;
  z-index: 999;
}

.scroll-top.show {
  opacity: 1;
  pointer-events: auto;
}

@media screen and (max-width:768px) {
  .scroll-top {
    bottom: 100px;
  }
}

/* ===================================================
   Footer
=================================================== */
footer {
  font-family: 'pinarB';
  font-size: .95rem;
  text-align: center;
  color: #fff;
  background-color: var(--brand-color);
}

/* ===================================================
   Mobile Optimizations
=================================================== */
@media screen and (max-width: 768px) {

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.6rem;
  }

  section {
    padding: 5.5rem 0;
  }

  .hero,
  .about,
  section {
    overflow-x: hidden;
  }

  .hero-dir {
    flex-direction: column-reverse;
  }

  .hero-text {
    text-align: center;
  }

  .hero-image {
    max-width: 50%;
    filter: drop-shadow(0 18px 28px rgba(0, 0, 0, .35));
  }

  .about-img {
    max-width: 92%;
    margin: 2rem auto 0;
  }

  .hero .btn {
    display: block;
    margin: 2rem auto 0;
  }
}

/* ===================================================
   Social Media Section (Safe Add-on)
=================================================== */
/* .socials {
  background: #fff;
} */

.social-grid {
  display: grid;
  grid-template-columns: 1fr;
  /* Mobile */
  gap: 2rem;
  justify-items: center;
}

.social-item {
  width: 100%;
  max-width: 260px;
  /* background: #f6f8f7; */
  background: #fff;
  border-radius: 20px;
  padding: 2rem 1.5rem;
  text-align: center;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 14px 30px rgba(0, 0, 0, .025);
  transition: transform .3s ease, box-shadow .3s ease;
}

.social-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, .12);
}

.social-item img {
  width: 68px;
  height: 68px;
  object-fit: contain;
  transition: transform .3s ease;
}

.social-item span {
  margin-top: 1rem;
  font-weight: 800;
  font-size: .9rem;
  color: #2b3d39;
}

/* Tablet */
@media (min-width: 768px) {
  .social-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Desktop */
@media (min-width: 1200px) {
  .social-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ===================================================
   certificate Section (Safe Add-on)
=================================================== */
/* .certificate {
  background: #fff;
} */

.certificate-flex {
  display: flex;
  /* Mobile */
  gap: 2rem;
  justify-content: center;
}

.certificate-item {
  width: 100%;
  max-width: 260px;
  /* background: #f6f8f7; */
  background: #fff;
  border-radius: 20px;
  padding: 2rem 1.5rem;
  text-align: center;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 14px 30px rgba(0, 0, 0, .025);
  transition: transform .3s ease, box-shadow .3s ease;
}

.certificate-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, .12);
}

.certificate-item img {
  width: 120px;
  height: 200px;
  object-fit: contain;
  transition: transform .3s ease;
}

/* ===================================================
   Hero Image Fix (Safe)
=================================================== */
@media (max-width: 768px) {
  .hero-image {
    margin-bottom: 3rem;
  }
}

@media (min-width: 768px) and (max-width: 992px) {
  .hero-image {
    max-width: 90%;
  }
}