@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@700;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

/* ==========================================
   MOSAM GEOTECH & MATERIAL TESTING LAB
========================================== */

:root{

    --font-primary:'Manrope', Arial, Helvetica, sans-serif;
    --font-heading:'Cinzel', 'Times New Roman', serif;
    --heading-color:#243B8F;

    --primary:#2E8B57;
    --secondary:#1E3A5F;
    --accent:#F4A261;

    --light:#FAFAFA;
    --white:#FFFFFF;
    --dark:#2C3E50;

}

/* ==========================================
   RESET
========================================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    font-family:var(--font-primary);
    background:var(--light);
    color:var(--dark);
    line-height:1.7;
}

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

a{
    text-decoration:none;
}

h1,
h2,
h3,
h4,
h5,
h6{
    font-family:var(--font-heading);
    color:var(--heading-color);
    font-weight:900;
    letter-spacing:0.04em;
}

.container{
    max-width:1200px;
}

/* ==========================================
   SECTIONS
========================================== */

section{
    padding:90px 0;
}

.section-title{
    text-align:center;
    margin-bottom:60px;
}

.section-title h2{
    font-size:2.4rem;
    color:var(--heading-color);
    margin-bottom:10px;
    font-weight:900;
}

.section-title p{
    color:#666;
}

/* ==========================================
   NAVBAR
========================================== */

.navbar {
  background: white;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .08);
  padding: 0;
  min-height: unset;
}

.navbar-two-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding-top: 10px;
  padding-bottom: 0;
}

/* ---- Row 1: Logo + Name ---- */
.navbar-brand-row {
  justify-content: space-between;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(0, 0, 0, .07);
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-right: 0;
  white-space: normal;
  padding: 0;
  min-width: 0;
}

.navbar-brand img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  flex: 0 0 auto;
}

.navbar-brand strong {
  display: block;
  font-family: var(--font-heading);
  color: var(--heading-color);
  font-size: clamp(38px, 2.2vw, 28px);
  font-weight: 900;
  line-height: 1.2;
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  letter-spacing: 0.02em;
}

/* ---- Row 2: Nav Menu ---- */
.navbar-collapse{
  flex-basis:100%;
}

.navbar-nav-row {
  display:flex;
  justify-content:center;
  gap:34px;
  padding:8px 0 10px;
}

.nav-link {
  color: var(--secondary) !important;
  font-weight: 600;
  margin-left: 0;
  padding-top: 6px;
  padding-bottom: 6px;
}

.nav-link:hover {
  color: var(--primary) !important;
}

/* ---- Mobile: stack nav below brand row ---- */
@media (max-width: 991.98px) {
  .navbar-two-row {
    padding-bottom: 0;
  }

  .navbar-brand-row {
    border-bottom: none;
  }

  .navbar-brand {
    max-width:calc(100% - 58px);
  }

  .navbar-brand strong {
    font-size: clamp(14px, 4vw, 20px);
  }

  .navbar-brand img {
    width: 48px;
    height: 48px;
  }

  .navbar-nav-row {
    gap:0;
    justify-content: flex-start;
    border-top: 1px solid rgba(0, 0, 0, .07);
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .nav-link {
    margin-left: 0;
    padding-left: 4px;
  }
}
/* ==========================================
   HERO
========================================== */

.hero{

    background:
    url('../images/material-testing.jpg');

    background-size:cover;
    background-position:center center;

    min-height:85vh;
}

.hero-overlay{

    background:
    rgba(30,58,95,.82);

    min-height:85vh;

    display:flex;
    align-items:center;

    color:white;
}

.hero h1{

    font-size:3.8rem;
    font-weight:900;
    line-height:1.2;
    color:white;

    margin-bottom:20px;
}

.hero p{

    font-size:1.15rem;

    max-width:700px;

    margin-bottom:30px;
}

.hero-btn{

    background:var(--accent);

    color:white;

    padding:14px 32px;

    border-radius:8px;

    font-weight:600;

    transition:.3s;
}

.hero-btn:hover{

    background:#e58f45;

    color:white;
}

/* ==========================================
   ABOUT
========================================== */

.about-img{

    width:100%;
    height:420px;

    object-fit:cover;

    border-radius:15px;

    box-shadow:
    0 10px 25px rgba(0,0,0,.12);
}

/* ==========================================
   SERVICES IMAGES
========================================== */

.service-img{

    width:100%;
    height:240px;

    object-fit:cover;

    border-radius:12px 12px 0 0;
}

/* ==========================================
   CARDS
========================================== */

.custom-card{

    background:white;

    border-radius:15px;

    padding:30px;

    height:100%;

    box-shadow:
    0 5px 20px rgba(0,0,0,.08);

    transition:.3s;
}

.custom-card:hover{

    transform:translateY(-6px);
}

.custom-card h5{

    color:var(--heading-color);

    margin-bottom:15px;
}

/* ==========================================
   WHY CHOOSE US
========================================== */

.feature-icon{

    width:70px;
    height:70px;

    border-radius:50%;

    background:rgba(46,139,87,.12);

    display:flex;
    align-items:center;
    justify-content:center;

    margin:auto auto 20px;

    color:var(--primary);

    font-size:28px;
}

/* ==========================================
   PROCESS
========================================== */

.process-box{
    text-align:center;
}

.process-number{

    width:75px;
    height:75px;

    background:var(--primary);

    color:white;

    border-radius:50%;

    margin:0 auto 20px;

    display:flex;
    align-items:center;
    justify-content:center;

    font-size:24px;
    font-weight:bold;
}

/* ==========================================
   CERTIFICATION
========================================== */

.certification img{

    max-width:220px;

    height:140px;

    object-fit:contain;

    margin:auto;
}

/* ==========================================
   CTA
========================================== */

.cta{

    background:
    linear-gradient(
    135deg,
    var(--primary),
    var(--secondary)
    );

    color:white;

    text-align:center;
}

.cta h2{

    font-size:2.5rem;
    color:white;

    margin-bottom:20px;
}

.cta .btn{

    background:white;

    color:var(--primary);

    font-weight:600;
}

/* ==========================================
   PAGE BANNER
========================================== */

.page-banner{

    background:
    linear-gradient(
    135deg,
    var(--secondary),
    var(--primary)
    );

    color:white;

    text-align:center;

    padding:130px 0 90px;
}

.page-banner h1{

    font-size:3rem;
    color:white;

    margin-bottom:15px;
}

/* ==========================================
   GALLERY
========================================== */

.gallery-item{

    overflow:hidden;

    border-radius:15px;
}

.gallery-item img{

    width:100%;
    height:280px;

    object-fit:cover;

    transition:.4s;
}

.gallery-item:hover img{

    transform:scale(1.05);
}

/* ==========================================
   CONTACT
========================================== */

.contact-box{

    background:white;

    padding:30px;

    border-radius:15px;

    box-shadow:
    0 5px 20px rgba(0,0,0,.08);

    height:100%;
}

.contact-box i{

    color:var(--primary);

    margin-right:10px;
}

.map-frame{
    width:100%;
    height:420px;
    margin-top:25px;
    overflow:hidden;
    border-radius:12px;
    box-shadow:0 5px 20px rgba(0,0,0,.12);
}

.map-frame iframe{
    width:100%;
    height:100%;
    border:0;
    display:block;
}

/* ==========================================
   FOOTER
========================================== */

footer{

    background:var(--secondary);

    color:white;

    padding:60px 0 20px;
}

footer h5{

    color:white;

    margin-bottom:20px;
}

footer a{

    color:white;

    display:block;

    margin-bottom:10px;
}

footer a:hover{

    color:var(--accent);
}

.footer-bottom{

    border-top:
    1px solid rgba(255,255,255,.2);

    margin-top:30px;

    padding-top:20px;

    text-align:center;
}

/* ==========================================
   WHATSAPP
========================================== */

.whatsapp-btn{

    position:fixed;

    right:20px;
    bottom:20px;

    width:60px;
    height:60px;

    border-radius:50%;

    background:#25D366;

    color:white;

    display:flex;
    align-items:center;
    justify-content:center;

    font-size:28px;

    z-index:999;

    box-shadow:
    0 5px 15px rgba(0,0,0,.25);
}

/* ==========================================
   RESPONSIVE
========================================== */

@media(max-width:992px){

.navbar{
    min-height:82px;
}

.navbar-brand img{
    width:64px;
    height:64px;
}

.navbar-brand strong{
    font-size:34px;
}

.navbar-collapse{
    padding-top:12px;
}

.nav-link{
    margin-left:0;
    padding:10px 0;
}

.hero h1{

    font-size:3rem;
}

}

@media(max-width:768px){

section{

    padding:70px 0;
}

.hero{

    min-height:70vh;
}

.hero-overlay{

    min-height:70vh;

    text-align:center;
}

.hero h1{

    font-size:2.2rem;
}

.about-img{

    height:300px;
}

.page-banner h1{

    font-size:2.2rem;
}

.navbar{
    min-height:76px;
}

.navbar-brand{
    gap:10px;
    margin-right:10px;
}

.navbar-brand img{
    width:58px;
    height:58px;
}

.navbar-brand strong{
    font-size:28px;
    max-width:420px;
}

}

@media(max-width:576px){

.hero h1{

    font-size:1.9rem;
}

.hero-btn{

    display:block;
}

.navbar{
    min-height:70px;
}

.navbar-brand{
    max-width:calc(100% - 58px);
}

.navbar-brand img{
    width:50px;
    height:50px;
}

.navbar-brand strong{
    font-size:20px;
    max-width:230px;
}

}/* ==========================================
   TWO ROW NAVBAR FINAL OVERRIDES
========================================== */

@media(max-width:992px){

.navbar{
    min-height:unset;
}

.navbar-collapse{
    padding-top:0;
}

.navbar-nav-row{
    padding-top:8px;
    padding-bottom:8px;
}

.nav-link{
    padding-top:8px;
    padding-bottom:8px;
}

}

@media(max-width:768px){

.navbar-brand img{
    width:48px;
    height:48px;
}

.navbar-brand strong{
    font-size:clamp(14px, 4vw, 20px);
    max-width:100%;
}

}

@media(max-width:576px){

.navbar-brand img{
    width:44px;
    height:44px;
}

.navbar-brand strong{
    font-size:16px;
    max-width:100%;
}

}

/* ==========================================
   ANIMATIONS
========================================== */

.hidden{

    opacity:0;

    transform:translateY(40px);

    transition:
    opacity .8s ease,
    transform .8s ease;

}

.show{

    opacity:1;

    transform:translateY(0);

}

/* ==========================================
   ACTIVE NAV LINK
========================================== */

.nav-link.active{

    color:var(--primary)!important;

}

/* ==========================================
   SCROLL TOP BUTTON
========================================== */

#scrollTopBtn{

    position:fixed;

    bottom:90px;

    right:20px;

    width:50px;

    height:50px;

    border:none;

    border-radius:50%;

    background:var(--secondary);

    color:white;

    font-size:22px;

    cursor:pointer;

    display:none;

    z-index:999;

    box-shadow:
    0 5px 15px rgba(0,0,0,.25);

    transition:.3s;

}

#scrollTopBtn:hover{

    transform:translateY(-3px);

}
