/* ============================================================
   Drilling Solutions Services — public design system
   Palette: deep navy + steel blue + safety amber
   Fonts: Space Grotesk (display) + Inter (body)
   ============================================================ */

:root {
  --bg: #ffffff;
  --fg: #1b2230;
  --surface: #f7f9fb;
  --surface-muted: #eef2f6;
  --navy: #223150;
  --navy-deep: #141d31;
  --steel: #4f74a8;
  --amber: #eaa23c;
  --amber-fg: #141d31;
  --muted-fg: #64707f;
  --border: #e2e7ee;
  --card: #ffffff;
  --primary-fg: #fbfcfd;

  --radius: 12px;
  --radius-sm: 8px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-full: 999px;

  --shadow-sm: 0 1px 2px rgba(20, 29, 49, .06);
  --shadow: 0 10px 30px -12px rgba(34, 49, 80, .18);
  --shadow-elegant: 0 20px 40px -20px rgba(34, 49, 80, .28);

  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-display: "Space Grotesk", "Inter", sans-serif;

  --maxw: 1200px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--fg);
  background: var(--bg);
  line-height: 1.6;
  font-feature-settings: "cv02","cv03","cv04","cv11";
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: -.02em; line-height: 1.1; margin: 0; font-weight: 700; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul { margin: 0; padding: 0; list-style: none; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.section-lg { padding: 96px 0; }
.bg-surface { background: var(--surface); }

.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--steel); margin: 0; }
.section-head { max-width: 640px; margin: 0 auto; text-align: center; }
.section-head h2 { margin-top: 12px; font-size: clamp(26px, 3.4vw, 38px); }
.section-title { font-size: clamp(26px, 3.4vw, 38px); }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.row-between { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  font-weight: 600; font-size: 15px; line-height: 1;
  padding: 13px 20px; border-radius: var(--radius-sm);
  border: 1px solid transparent; cursor: pointer; transition: all .2s ease; white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--navy); color: var(--primary-fg); }
.btn-primary:hover { background: var(--navy-deep); }
.btn-light { background: var(--primary-fg); color: var(--navy); }
.btn-light:hover { background: #fff; }
.btn-outline { background: transparent; border-color: var(--border); color: var(--fg); }
.btn-outline:hover { background: var(--surface); }
.btn-outline-light { background: transparent; border-color: rgba(255,255,255,.3); color: #fff; }
.btn-outline-light:hover { background: rgba(255,255,255,.1); }
.btn-ghost-light { background: transparent; color: #fff; }
.btn-ghost-light:hover { background: rgba(255,255,255,.1); }
.btn-lg { padding: 15px 26px; font-size: 16px; }
.btn-sm { padding: 9px 15px; font-size: 14px; }
.btn-block { width: 100%; }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; color: var(--navy); }
.link-arrow:hover { color: var(--steel); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.85); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(226,231,238,.7);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand .logo-mark {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 9px;
  background: linear-gradient(160deg, var(--navy), var(--navy-deep)); color: #fff;
  font-family: var(--font-display); font-weight: 700; font-size: 18px; letter-spacing: -.03em;
}
.brand .logo-mark::after { content: ""; }
.brand .brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand .brand-text b { font-family: var(--font-display); font-size: 16px; color: var(--navy); letter-spacing: -.01em; }
.brand .brand-text span { font-size: 10.5px; text-transform: uppercase; letter-spacing: .16em; color: var(--muted-fg); }

.nav-links { display: none; align-items: center; gap: 2px; }
.nav-links a { padding: 8px 12px; border-radius: 8px; font-size: 14.5px; font-weight: 500; color: var(--muted-fg); transition: color .15s; }
.nav-links a:hover { color: var(--navy); }
.nav-links a.active { color: var(--navy); }

.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav-toggle { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--border); border-radius: 8px; background: #fff; cursor: pointer; }
.nav-toggle svg { width: 20px; height: 20px; }

.mobile-menu { display: none; border-top: 1px solid var(--border); background: #fff; }
.mobile-menu.open { display: block; }
.mobile-menu nav { flex-direction: column; height: auto; padding: 10px 0; align-items: stretch; }
.mobile-menu a { padding: 11px 12px; border-radius: 8px; font-size: 15px; font-weight: 500; color: var(--fg); }
.mobile-menu a:hover { background: var(--surface); }

@media (min-width: 1120px) {
  .nav-links { display: flex; }
  .nav-toggle { display: none; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; color: #fff; background: var(--navy-deep); }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-overlay-1 { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(20,29,49,.25), rgba(20,29,49,.4) 45%, rgba(20,29,49,.88)); }
.hero-overlay-2 { position: absolute; inset: 0; background: linear-gradient(to right, rgba(20,29,49,.82), rgba(20,29,49,.28) 55%, transparent); }
.hero-inner { position: relative; padding: 110px 0 130px; }
.hero h1 { max-width: 900px; font-size: clamp(34px, 6vw, 60px); font-weight: 700; margin-top: 22px;
  background: linear-gradient(120deg, #fff 20%, #a9c6e6 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { max-width: 620px; margin-top: 22px; font-size: 18px; color: rgba(255,255,255,.82); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-note { margin-top: 30px; font-size: 14px; color: rgba(255,255,255,.6); }

.badge {
  display: inline-flex; align-items: center; gap: 8px; border-radius: var(--radius-full);
  border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.06);
  padding: 5px 14px; font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--amber);
}

/* page hero (inner pages) */
.page-hero { position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 55%, #2c3e63 100%); }
.page-hero .hero-img { opacity: .32; }
.page-hero .ph-overlay { position: absolute; inset: 0; background: linear-gradient(to right, rgba(34,49,80,.95), rgba(34,49,80,.78) 40%, rgba(34,49,80,.4)); }
.page-hero .grid-pattern { position: absolute; inset: 0; opacity: .4; }
.page-hero .inner { position: relative; padding: 80px 0 90px; }
.page-hero h1 { max-width: 760px; font-size: clamp(30px, 5vw, 48px); margin-top: 18px;
  background: linear-gradient(120deg, #fff 20%, #a9c6e6 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.page-hero p { max-width: 640px; margin-top: 18px; font-size: 18px; color: rgba(255,255,255,.78); }

.grid-pattern {
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 44px 44px;
}

/* ---------- Cards ---------- */
.card { border: 1px solid var(--border); background: var(--card); border-radius: var(--radius); padding: 28px; transition: transform .3s, box-shadow .3s; }
.card-hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-elegant); }
.card h3 { font-size: 18px; margin-top: 20px; }
.card p { margin-top: 8px; font-size: 14.5px; color: var(--muted-fg); }

.icon-box { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; background: var(--navy); color: #fff; }
.icon-box svg { width: 20px; height: 20px; }
.icon-box.amber { background: var(--amber); color: var(--amber-fg); }

.feature-link { display: flex; flex-direction: column; height: 100%; }
.feature-link .link-arrow { margin-top: 20px; }

/* ---------- Stats band ---------- */
.stats-band { background: linear-gradient(180deg, var(--navy-deep), var(--navy)); color: #fff; padding: 54px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; text-align: center; }
.stat-value { font-family: var(--font-display); font-size: clamp(34px, 5vw, 48px); font-weight: 700; color: var(--amber); }
.stat-label { margin-top: 8px; font-size: 14px; color: rgba(255,255,255,.72); }

/* ---------- Brands ---------- */
.brands-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.brand-cell { display: grid; place-items: center; height: 112px; background: var(--card); padding: 20px; text-align: center; transition: background .2s; }
.brand-cell:hover { background: var(--surface); }
.brand-cell img { height: 32px; width: auto; max-width: 120px; object-fit: contain; margin: 0 auto 8px; transition: transform .2s; }
.brand-cell:hover img { transform: scale(1.1); }
.brand-cell .brand-name { font-family: var(--font-display); font-weight: 600; font-size: 14px; color: var(--navy); }
.brand-cell:hover .brand-name { color: var(--steel); }

/* ---------- Project cards ---------- */
.project-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--border); background: var(--card); border-radius: var(--radius); transition: transform .3s, box-shadow .3s; }
.project-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-elegant); }
.project-thumb { aspect-ratio: 16/10; overflow: hidden; background: linear-gradient(180deg, var(--navy-deep), var(--navy)); position: relative; }
.project-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.project-card:hover .project-thumb img { transform: scale(1.05); }
.project-body { display: flex; flex-direction: column; flex: 1; padding: 24px; }
.project-body h3 { font-size: 18px; margin-top: 8px; }
.project-meta { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); display: grid; grid-template-columns: 1fr 1fr; gap: 12px; font-size: 12px; }
.project-meta dt { color: var(--muted-fg); margin: 0; }
.project-meta dd { font-weight: 600; margin: 2px 0 0; }
.tag { font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--steel); }

.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 8px 16px; border-radius: var(--radius-full); border: 1px solid var(--border); background: #fff; font-size: 14px; font-weight: 500; cursor: pointer; transition: all .15s; }
.chip:hover { border-color: var(--steel); }
.chip.active { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ---------- About / values ---------- */
.value-card { border: 1px solid var(--border); background: var(--card); border-radius: var(--radius); padding: 22px; }
.value-head { display: flex; align-items: center; gap: 8px; color: var(--navy); font-family: var(--font-display); font-weight: 600; font-size: 18px; }
.value-head svg { width: 20px; height: 20px; color: var(--amber); }

/* ---------- CTA banner ---------- */
.cta { position: relative; overflow: hidden; color: #fff; padding: 64px 0;
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 55%, #2c3e63 100%); }
.cta .grid-pattern { position: absolute; inset: 0; opacity: .4; }
.cta .inner { position: relative; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.cta h2 { max-width: 640px; font-size: clamp(26px, 3.4vw, 36px); }
.cta p { max-width: 640px; margin-top: 12px; color: rgba(255,255,255,.8); }

/* ---------- Forms ---------- */
.form-grid { display: grid; gap: 16px; }
.form-2 { grid-template-columns: 1fr 1fr; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; font-weight: 600; color: var(--fg); }
.field .req { color: #c0392b; }
.input, .textarea, .select {
  width: 100%; font: inherit; font-size: 15px; color: var(--fg);
  padding: 11px 13px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: #fff; transition: border .15s, box-shadow .15s;
}
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--steel); box-shadow: 0 0 0 3px rgba(79,116,168,.15); }
.textarea { min-height: 120px; resize: vertical; }
.field-error { color: #c0392b; font-size: 12.5px; }
.form-note { font-size: 13px; color: var(--muted-fg); }

/* contact info list */
.info-list { display: grid; gap: 14px; }
.info-item { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; background: #fff; }
.info-item .icon-box { width: 40px; height: 40px; flex-shrink: 0; }
.info-item .k { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--muted-fg); }
.info-item .v { margin-top: 2px; font-weight: 500; word-break: break-word; }
.map-embed { margin-top: 22px; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.map-embed iframe { width: 100%; height: 260px; border: 0; display: block; }

/* highlights list */
.highlights { display: grid; gap: 12px; }
.highlight-item { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px; font-size: 14.5px; background: #fff; }
.highlight-item svg { width: 18px; height: 18px; color: var(--amber); flex-shrink: 0; margin-top: 2px; }

.aside-box { border: 1px solid var(--border); background: var(--surface); border-radius: var(--radius); padding: 24px; }

/* ---------- Footer ---------- */
.site-footer { background: linear-gradient(180deg, var(--navy-deep), var(--navy)); color: #fff; border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 40px; padding: 60px 0; }
.footer-col h3 { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.footer-col ul { margin-top: 16px; display: grid; gap: 10px; font-size: 14.5px; }
.footer-col ul a, .footer-col ul li { color: rgba(255,255,255,.8); }
.footer-col ul a:hover { color: var(--amber); }
.footer-about { margin-top: 16px; font-size: 14.5px; color: rgba(255,255,255,.7); max-width: 320px; }
.footer-brand .logo-mark { width: 44px; height: 44px; font-size: 20px; }
.footer-social { display: flex; gap: 8px; margin-top: 20px; }
.footer-social a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 8px; border: 1px solid rgba(255,255,255,.15); color: rgba(255,255,255,.7); transition: all .15s; }
.footer-social a:hover { border-color: var(--amber); color: var(--amber); }
.footer-social svg { width: 16px; height: 16px; }
.footer-contact { display: grid; gap: 12px; margin-top: 16px; font-size: 14.5px; }
.footer-contact li { display: flex; gap: 8px; align-items: flex-start; color: rgba(255,255,255,.82); }
.footer-contact svg { width: 16px; height: 16px; color: var(--amber); flex-shrink: 0; margin-top: 3px; }
.footer-contact a:hover { color: var(--amber); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); }
.footer-bottom .inner { display: flex; flex-direction: column; gap: 12px; padding: 20px 0; font-size: 12.5px; color: rgba(255,255,255,.6); align-items: center; }
.footer-bottom .links { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.footer-bottom .links a:hover, .footer-bottom .links span:hover { color: var(--amber); cursor: pointer; }

/* ---------- WhatsApp float ---------- */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: grid; place-items: center; width: 56px; height: 56px; border-radius: var(--radius-full); background: #25d366; color: #fff; box-shadow: 0 8px 24px rgba(37,211,102,.4); transition: transform .2s; }
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 28px; height: 28px; }

/* ---------- Toast ---------- */
.toast-wrap { position: fixed; top: 20px; right: 20px; z-index: 100; display: flex; flex-direction: column; gap: 10px; }
.toast { min-width: 260px; max-width: 360px; padding: 14px 16px; border-radius: var(--radius-sm); background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow); font-size: 14.5px; display: flex; gap: 10px; align-items: flex-start; animation: toast-in .25s ease; }
.toast.success { border-left: 4px solid #1f9d55; }
.toast.error { border-left: 4px solid #c0392b; }
.toast b { display: block; font-family: var(--font-display); }
@keyframes toast-in { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: none; } }

/* ---------- Prose (blog) ---------- */
.prose { max-width: 760px; }
.prose p { margin-top: 16px; color: #3a4353; font-size: 16.5px; }
.prose h2 { margin-top: 32px; font-size: 24px; }
.prose h3 { margin-top: 24px; font-size: 20px; }
.prose ul { margin-top: 16px; padding-left: 20px; list-style: disc; }
.prose li { margin-top: 6px; }

/* ---------- Utility ---------- */
.mt-0 { margin-top: 0; } .mt-2 { margin-top: 8px; } .mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; } .mt-5 { margin-top: 20px; } .mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; } .mt-10 { margin-top: 40px; } .mt-12 { margin-top: 48px; }
.text-center { text-align: center; }
.muted { color: var(--muted-fg); }
.lead { font-size: 18px; }
.hidden { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .form-2 { grid-template-columns: 1fr; }
}
@media (min-width: 640px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .brands-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-bottom .inner { flex-direction: row; justify-content: space-between; }
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.1fr; }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .section-lg { padding: 64px 0; }
  .hero-inner { padding: 80px 0 90px; }
}

/* ---------- Icon sizing safeguards ---------- */
.link-arrow svg { width: 16px; height: 16px; flex-shrink: 0; }
.badge svg { width: 14px; height: 14px; }
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.icon-box svg { width: 20px; height: 20px; }
svg { max-width: 100%; }
