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

:root {
  --navy: #0f2a4a;
  --navy-2: #123458;
  --blue: #14508c;
  --accent: #1f8fd6;
  --accent-2: #0aa39e;
  --gold: #e8a13a;
  --light: #f4f7fb;
  --light-2: #eef2f7;
  --border: #e3e8ee;
  --text: #384656;
  --muted: #6b7a8c;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', 'Segoe UI', Arial, Helvetica, sans-serif;
  color: var(--text);
  line-height: 1.65;
  background: #fff;
  overflow-x: hidden;
}
.container { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { font-family: 'Poppins', 'Segoe UI', sans-serif; color: var(--navy); line-height: 1.3; }
ul { margin: 0; }

/* ============ Header ============ */
.site-header { background: #fff; box-shadow: 0 2px 14px rgba(15,42,74,.08); position: sticky; top: 0; z-index: 200; }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 10px 20px; gap: 16px; }
.logo { color: var(--navy); font-size: 1.25rem; font-weight: 800; letter-spacing: .3px; display: flex; align-items: center; flex-shrink: 0; }
.logo img { max-height: 50px; width: auto; display: block; }
.main-nav { display: flex; align-items: center; }
.main-nav > ul { list-style: none; display: flex; align-items: center; gap: 0; margin: 0; padding: 0; }
.main-nav > ul > li { position: relative; }
.main-nav a { display: block; padding: 10px 10px; color: var(--navy); font-weight: 600; font-size: .85rem; white-space: nowrap; border-radius: 6px; }
.main-nav > ul > li > a:hover { color: var(--accent); background: var(--light); }
.main-nav a.active { color: var(--accent); }
.main-nav .active { position: relative; }
.main-nav .active::after { content: ''; position: absolute; left: 13px; right: 13px; bottom: 2px; height: 2px; background: var(--accent); border-radius: 2px; }
.main-nav .caret { font-style: normal; font-size: .65em; margin-left: 3px; opacity: .6; }
.dropdown {
  display: none; position: absolute; left: 50%; transform: translateX(-50%); top: 100%;
  background: #fff; min-width: 240px; max-width: min(320px, 92vw);
  box-shadow: 0 14px 30px rgba(15,42,74,.16); border-radius: 10px; padding: 8px 0; z-index: 220;
  border: 1px solid var(--border);
}
.has-dropdown:hover .dropdown { display: block; }
.dropdown a { color: var(--navy); padding: 9px 18px; font-weight: 500; border-radius: 0; white-space: normal; }
.dropdown a:hover { background: var(--light); color: var(--accent); }
.nav-toggle { display: none; flex-direction: column; justify-content: center; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; flex-shrink: 0; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.btn-admin { background: var(--navy); color: #fff !important; padding: 9px 14px !important; border-radius: 20px; font-size: .78rem !important; margin-left: 4px; }
.btn-admin:hover { background: var(--accent); }

/* ============ Hero slider ============ */
.hero-slider { position: relative; overflow: hidden; height: 460px; background: var(--navy); }
.hero-slider .slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.1s ease; }
.hero-slider .slide.active { opacity: 1; }
.hero-slider .slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-slider .slide::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,42,74,.55), rgba(15,42,74,.75)); }
.hero-slider .slide-caption { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: #fff; padding: 0 20px; z-index: 2; }
.hero-slider .slide-caption .eyebrow { color: #a9d3f2; }
.hero-slider .slide-caption h1 { color: #fff; font-size: 2.7rem; margin: 8px 0 12px; }
.hero-slider .slide-caption p { color: #eaf1fa; font-size: 1.2rem; max-width: 640px; margin: 0 0 22px; }
.hero-slider .dots { position: absolute; bottom: 20px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; z-index: 3; }
.hero-slider .dots button { width: 10px; height: 10px; border-radius: 50%; border: 2px solid #fff; background: transparent; padding: 0; cursor: pointer; opacity: .7; }
.hero-slider .dots button.active { background: #fff; opacity: 1; }
@media (max-width: 700px) { .hero-slider { height: 340px; } .hero-slider .slide-caption h1 { font-size: 1.7rem; } .hero-slider .slide-caption p { font-size: 1rem; } }

/* Missing image placeholder */
.thumb-placeholder { width: 100%; height: 100%; min-height: 130px; display: flex; align-items: center; justify-content: center; color: #8fa0b3; font-size: .8rem; text-align: center; background: repeating-linear-gradient(45deg, #eef2f6, #eef2f6 10px, #e6ebf1 10px, #e6ebf1 20px); border-radius: 10px; }

/* ============ Plain hero (inner pages) ============ */
.hero { background: linear-gradient(120deg, var(--navy), var(--blue)); color: #fff; padding: 75px 0; text-align: center; position: relative; overflow: hidden; }
.hero h1 { color: #fff; font-size: 2.4rem; margin-bottom: 10px; }
.hero p { font-size: 1.1rem; color: #cfe0f0; max-width: 640px; margin: 0 auto; }
.hero-img { position: absolute; inset: 0; z-index: 0; }
.hero-img img { width: 100%; height: 100%; object-fit: cover; opacity: .22; }
.hero .container { position: relative; z-index: 1; }

/* ============ Sections ============ */
.section { padding: 60px 0; border-bottom: 1px solid var(--border); }
.section:last-child { border-bottom: none; }
.section-alt { background: var(--light); }
.section .eyebrow { text-transform: uppercase; letter-spacing: 1.5px; color: var(--accent); font-size: .8rem; font-weight: 700; margin-bottom: 8px; }
.section h2 { font-size: 1.8rem; margin-top: 0; }
.section-head { text-align: center; max-width: 700px; margin: 0 auto 20px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; align-items: center; }
.two-col img { border-radius: 12px; box-shadow: 0 14px 34px rgba(15,42,74,.12); }
.two-col.reverse .img-col { order: 2; }

/* ============ Icon / feature cards (Our Vision, Global Network...) ============ */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 30px; }
.feature-card { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 28px 24px; text-align: center; transition: transform .2s, box-shadow .2s; }
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 16px 30px rgba(15,42,74,.1); }
.feature-card .icon { width: 54px; height: 54px; margin: 0 auto 16px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--light); color: var(--accent); }
.feature-card .icon svg { width: 26px; height: 26px; }
.feature-card h3 { font-size: 1.1rem; margin: 0 0 8px; }
.feature-card p { font-size: .92rem; color: var(--muted); margin: 0; }

/* ============ Banner (team-work style, image + text) ============ */
.banner-photo { position: relative; border-radius: 16px; overflow: hidden; margin-top: 10px; }
.banner-photo img { width: 100%; max-height: 380px; object-fit: cover; }
.banner-photo .overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15,42,74,.82) 0%, rgba(15,42,74,.35) 55%, rgba(15,42,74,0) 100%); display: flex; align-items: center; }
.banner-photo .overlay-text { color: #fff; max-width: 460px; padding: 0 40px; }
.banner-photo .overlay-text h3 { color: #fff; }
.banner-photo .overlay-text p { color: #dce8f3; }
@media (max-width: 700px) { .banner-photo .overlay { background: linear-gradient(180deg, rgba(15,42,74,.85), rgba(15,42,74,.55)); } .banner-photo .overlay-text { max-width: none; padding: 0 24px; } }

/* ============ Strength / portfolio cards with photo ============ */
.strength-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 30px; }
.strength-card { position: relative; border-radius: 14px; overflow: hidden; height: 240px; box-shadow: 0 10px 24px rgba(15,42,74,.1); }
.strength-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.strength-card:hover img { transform: scale(1.06); }
.strength-card .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 16px 18px; background: linear-gradient(0deg, rgba(15,42,74,.9), rgba(15,42,74,0)); color: #fff; font-family: 'Poppins', sans-serif; font-weight: 700; }

/* ============ Values grid ============ */
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 30px; }
.value-card { background: #fff; border: 1px solid var(--border); border-left: 4px solid var(--accent); border-radius: 10px; padding: 22px; }
.value-card:nth-child(2n) { border-left-color: var(--gold); }
.value-card:nth-child(3n) { border-left-color: var(--accent-2); }
.value-card h4 { margin: 0 0 8px; font-size: 1.02rem; text-transform: uppercase; letter-spacing: .5px; }
.value-card p { margin: 0; font-size: .9rem; color: var(--muted); }

/* ============ Testimonial ============ */
.testimonial-card { display: flex; gap: 26px; align-items: center; background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 30px; box-shadow: 0 10px 26px rgba(15,42,74,.08); }
.testimonial-card img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.testimonial-card blockquote { margin: 0 0 10px; font-size: 1.05rem; font-style: italic; color: var(--text); }
.testimonial-card cite { font-style: normal; color: var(--muted); font-size: .88rem; display: block; }
@media (max-width: 700px) { .testimonial-card { flex-direction: column; text-align: center; } }

/* ============ Product grid ============ */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 22px; margin-top: 30px; }
.product-card { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: #fff; transition: box-shadow .2s, transform .2s; }
.product-card:hover { box-shadow: 0 14px 28px rgba(15,42,74,.12); transform: translateY(-3px); }
.product-card .thumb { background: var(--light); display: flex; align-items: center; justify-content: center; height: 180px; padding: 16px; }
.product-card .thumb img { max-height: 150px; object-fit: contain; }
.product-card .body { padding: 16px; }
.product-card h3 { font-size: 1.05rem; margin: 0 0 6px; }
.product-card p { font-size: .9rem; color: var(--muted); margin: 0 0 10px; }
.product-card .btn { display: inline-block; font-size: .85rem; font-weight: 700; color: var(--accent); }

/* ============ Product detail ============ */
.product-hero { display: grid; grid-template-columns: 300px 1fr; gap: 40px; align-items: start; }
.product-hero .thumb { background: var(--light); border-radius: 12px; padding: 20px; text-align: center; }
.product-body h3 { margin-top: 30px; border-bottom: 2px solid var(--light); padding-bottom: 6px; }
.product-body ul, .product-body ol { padding-left: 22px; }
.product-body li { margin-bottom: 6px; }

/* ============ Offices ============ */
.offices { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 30px; padding: 45px 0 25px; }
.office h4 { color: #fff; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.office h4 img.flag { width: 26px; height: auto; border-radius: 2px; box-shadow: 0 0 0 1px rgba(255,255,255,.15); }
.office p { color: #b9c8d8; font-size: .9rem; margin: 0 0 10px; }

/* ============ Footer ============ */
.site-footer { background: var(--navy); margin-top: 20px; }
.site-footer a { color: #cfe0f0; }
.copy { border-top: 1px solid rgba(255,255,255,.12); padding: 16px 0; text-align: center; color: #93a6ba; font-size: .85rem; }

/* ============ Contact ============ */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 24px; margin-top: 30px; }
.contact-card { background: var(--light); border-radius: 10px; padding: 24px; text-align: center; }
.contact-card h3 { margin-top: 0; }
.contact-form { max-width: 620px; margin-top: 30px; }
.contact-form label { display: block; font-weight: 600; margin: 14px 0 6px; }
.contact-form input, .contact-form textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; font-family: inherit; font-size: .95rem; }
.contact-form button { margin-top: 18px; background: var(--accent); color: #fff; border: none; padding: 12px 26px; border-radius: 8px; font-weight: 700; cursor: pointer; }
.contact-form button:hover { background: var(--blue); }

/* ============ Admin ============ */
.admin-wrap { max-width: 1000px; margin: 40px auto; padding: 0 20px; }
.admin-card { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 30px; box-shadow: 0 4px 16px rgba(0,0,0,.05); }
.admin-topbar { background: var(--navy); color: #fff; padding: 14px 0; }
.admin-topbar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.admin-topbar a { color: #dce6f0; margin-left: 16px; font-weight: 600; }
.admin-table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; margin-top: 20px; min-width: 640px; }
.admin-table th, .admin-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.admin-table img { width: 50px; height: 50px; object-fit: contain; background: var(--light); border-radius: 4px; }
.admin-form label { display: block; font-weight: 600; margin: 16px 0 6px; }
.admin-form input[type=text], .admin-form textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 6px; font-family: inherit; font-size: .95rem; }
.admin-form textarea { min-height: 260px; font-family: Consolas, monospace; font-size: .85rem; }
.admin-form input[type=file] { margin-top: 4px; }
.btn-primary { background: var(--accent); color: #fff; border: none; padding: 11px 22px; border-radius: 8px; font-weight: 700; cursor: pointer; font-size: .95rem; }
.btn-primary:hover { background: var(--blue); }
.btn-danger { background: #c0392b; color: #fff; border: none; padding: 7px 14px; border-radius: 5px; font-weight: 600; cursor: pointer; font-size: .82rem; }
.btn-danger:hover { background: #96291d; }
.btn-secondary { background: var(--light); color: var(--navy); border: 1px solid var(--border); padding: 7px 14px; border-radius: 5px; font-weight: 600; cursor: pointer; font-size: .82rem; }
.alert { padding: 12px 16px; border-radius: 8px; margin-bottom: 18px; font-size: .9rem; }
.alert-error { background: #fdecea; color: #c0392b; border: 1px solid #f5c6c2; }
.alert-success { background: #e9f8ee; color: #1e8449; border: 1px solid #bfe8cd; }
.login-box { max-width: 380px; margin: 90px auto; padding: 0 20px; }

/* ============ Responsive ============ */
@media (max-width: 980px) {
  .feature-grid, .strength-grid, .value-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .two-col, .product-hero { grid-template-columns: 1fr; }
  .two-col.reverse .img-col { order: 0; }
}

@media (max-width: 1080px) {
  .nav-toggle { display: flex; }
  .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; box-shadow: 0 12px 20px rgba(15,42,74,.14); border-top: 1px solid var(--border); max-height: calc(100vh - 68px); overflow-y: auto; }
  .main-nav.open { display: block; }
  .main-nav > ul { flex-direction: column; align-items: stretch; padding: 8px 0; }
  .main-nav > ul > li { width: 100%; }
  .main-nav > ul > li > a { padding: 14px 20px; border-radius: 0; }
  .main-nav .active::after { display: none; }
  .main-nav a.active { background: var(--light); }
  .dropdown { position: static; transform: none; box-shadow: none; background: var(--light); display: none; border-radius: 0; padding: 0; max-width: none; border: none; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
  .has-dropdown:hover .dropdown { display: none; }
  .has-dropdown.open .dropdown { display: block; }
  .dropdown a { color: var(--navy); padding: 12px 34px; }
  .dropdown a:hover { background: #e6ecf3; }
  .nav-admin { padding: 14px 20px 18px; }
  .btn-admin { display: inline-block; margin-left: 0; }
}

@media (max-width: 700px) {
  .feature-grid, .strength-grid, .value-grid { grid-template-columns: 1fr; }
  .section { padding: 42px 0; }
  .section h2 { font-size: 1.45rem; }
  .hero { padding: 50px 0; }
  .hero h1 { font-size: 1.7rem; }
  .banner-photo img { max-height: 260px; }
}
