/* ============================================================
   CECTANK Clone v2.0.0 — base design system, two-row header,
   footer, cards, buttons, forms, inner pages.
   Palette & typography mirror https://www.cectank.com
   ============================================================ */

:root {
  /* Brand palette (extracted from live cectank.com) */
  --ce-primary: #003e80;      /* brand navy — headings, nav bar */
  --ce-primary-dark: #002b5c;
  --ce-primary-soft: #0a5bb5;
  --ce-accent: #4c6aff;       /* interactive blue — links, buttons, hovers */
  --ce-accent-dark: #3a56e0;
  --ce-text: #333333;
  --ce-muted: #6b7680;
  --ce-line: #e6e9ee;
  --ce-bg: #ffffff;
  --ce-bg-alt: #f5f7fa;

  /* Aliases kept so older template markup keeps resolving */
  --ce-navy: #003e80;
  --ce-navy-2: #002b5c;
  --ce-teal: #4c6aff;
  --ce-gold: #4c6aff;
  --ce-grey: #6b7680;
  --ce-light: #f5f7fa;
  --ce-border: #e6e9ee;
  --ce-white: #ffffff;

  --ce-max: 1200px;
  --ce-radius: 4px;
  --ce-font: "Montserrat", Arial, "Helvetica Neue", Helvetica, sans-serif;
  --ce-shadow: 0 6px 20px rgba(0, 62, 128, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--ce-font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ce-text);
  background: var(--ce-bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--ce-accent); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--ce-primary); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--ce-font);
  color: var(--ce-primary);
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(26px, 3.4vw, 38px); }
h2 { font-size: clamp(22px, 2.6vw, 30px); }
h3 { font-size: clamp(18px, 2vw, 22px); }
p { margin: 0 0 1em; }

.container { max-width: var(--ce-max); margin: 0 auto; padding: 0 20px; }
.section { padding: 64px 0; }
.section-alt { background: var(--ce-bg-alt); }
.section-title { text-align: center; margin-bottom: 10px; }
.section-sub { text-align: center; color: var(--ce-muted); margin-bottom: 40px; }
.site-main { min-height: 60vh; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-block; padding: 12px 28px; border-radius: var(--ce-radius);
  background: var(--ce-accent); color: #fff; font-weight: 600; font-size: 15px;
  border: 0; cursor: pointer; transition: background .2s ease, color .2s ease;
}
.btn:hover { background: var(--ce-accent-dark); color: #fff; }
.btn-accent { background: var(--ce-accent); }
.btn-accent:hover { background: var(--ce-accent-dark); }
.btn-outline { background: transparent; border: 2px solid var(--ce-primary); color: var(--ce-primary); }
.btn-outline:hover { background: var(--ce-primary); color: #fff; }
.btn-light { background: #fff; color: var(--ce-primary); }
.btn-light:hover { background: #eaf1f9; color: var(--ce-primary); }
.btn-sm { padding: 9px 18px; font-size: 14px; }

/* ---------------- Header: white top bar + navy nav bar ---------------- */
.site-header { position: sticky; top: 0; z-index: 200; background: #fff; box-shadow: 0 1px 6px rgba(0, 0, 0, .06); }

.topbar { background: #fff; border-bottom: 1px solid var(--ce-line); }
.topbar-inner { display: flex; align-items: center; gap: 20px; height: 78px; }
.site-logo img { height: 46px; width: auto; }
.topbar-contact { display: flex; gap: 28px; list-style: none; margin: 0 0 0 auto; padding: 0; }
.topbar-contact li { display: flex; align-items: center; gap: 8px; font-size: 15px; color: var(--ce-text); }
.topbar-contact li svg { width: 18px; height: 18px; color: var(--ce-primary); flex: none; }
.topbar-contact a { color: var(--ce-text); }
.topbar-contact a:hover { color: var(--ce-primary); }

.navbar { background: var(--ce-primary); }
.navbar-inner { display: flex; align-items: center; min-height: 50px; }
.nav-menu { list-style: none; display: flex; align-items: stretch; gap: 0; margin: 0; padding: 0; }
.nav-menu > li { position: relative; display: flex; }
.nav-menu > li > a {
  display: flex; align-items: center; gap: 6px; padding: 15px 20px;
  color: #fff; font-weight: 600; font-size: 15px; white-space: nowrap;
  border-bottom: 3px solid transparent;
}
.nav-menu > li > a:hover,
.nav-menu > li.current-menu-item > a,
.nav-menu > li.current_page_item > a {
  color: #fff; background: rgba(255, 255, 255, .12); border-bottom-color: #fff;
}
.menu-item-has-children > a::after { content: "\25BE"; font-size: 10px; opacity: .85; }

.nav-menu .sub-menu {
  position: absolute; top: 100%; left: 0; min-width: 260px; background: #fff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .16); list-style: none; margin: 0; padding: 6px 0;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s; z-index: 300;
}
.nav-menu .menu-item-has-children:hover > .sub-menu,
.nav-menu .menu-item-has-children:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-menu .sub-menu li a { display: block; padding: 10px 20px; color: var(--ce-text); font-size: 14px; font-weight: 500; }
.nav-menu .sub-menu li a:hover { background: var(--ce-bg-alt); color: var(--ce-primary); }

.mobile-toggle { display: none; margin-left: auto; background: transparent; border: 0; color: var(--ce-primary); font-size: 26px; line-height: 1; cursor: pointer; padding: 8px 4px; }

.mobile-nav { display: none; background: #fff; border-top: 1px solid var(--ce-line); max-height: 78vh; overflow-y: auto; }
.mobile-nav.open { display: block; }
.mobile-nav .nav-menu { display: block; }
.mobile-nav .nav-menu > li { display: block; }
.mobile-nav .nav-menu > li > a {
  color: var(--ce-primary); padding: 15px 20px; border-bottom: 1px solid var(--ce-line);
  border-left: 3px solid transparent; background: #fff;
}
.mobile-nav .nav-menu > li > a:hover { background: var(--ce-bg-alt); border-left-color: var(--ce-primary); }
.mobile-nav .menu-item-has-children > a::after { content: ""; }
.mobile-nav .sub-menu {
  position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none;
  min-width: 0; padding: 0; background: var(--ce-bg-alt);
}
.mobile-nav .sub-menu li a { padding: 12px 20px 12px 36px; border-bottom: 1px solid var(--ce-line); }

/* ---------------- Cards & grids ---------------- */
.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); }

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: #fff; border: 1px solid var(--ce-line); border-radius: var(--ce-radius);
  overflow: hidden; box-shadow: 0 2px 10px rgba(0, 0, 0, .04); display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--ce-shadow); }
.card-thumb { height: 200px; overflow: hidden; }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.card-body h3 { font-size: 18px; margin: 0 0 8px; }
.card-body h3 a { color: var(--ce-primary); }
.card-body p { color: var(--ce-muted); font-size: 14px; margin: 0 0 14px; }
.card-body .read-more { margin-top: auto; color: var(--ce-accent); font-weight: 600; font-size: 14px; }

/* ---------------- CTA band ---------------- */
.cta-band { background: var(--ce-primary); color: #fff; text-align: center; padding: 60px 20px; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #cfdcec; max-width: 660px; margin: 0 auto 24px; }

/* ---------------- Footer ---------------- */
.site-footer { background: #08203d; color: #fff; padding: 56px 0 24px; }
.footer-cols { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; }
.footer-cols h4 { color: #fff; font-size: 16px; margin-bottom: 16px; }
.footer-brand p { color: #fff; font-size: 14px; line-height: 1.7; }
.footer-brand a { color: #fff; }
.footer-brand a:hover { color: #fff; text-decoration: underline; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 9px; }
.footer-links a { color: #fff; font-size: 14px; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 34px; padding-top: 20px; font-size: 13px; color: #fff; text-align: center; }
.footer-logo img { height: 40px; margin-bottom: 16px; }

/* ---------------- WhatsApp float ---------------- */
.ce-whatsapp {
  position: fixed; right: 18px; bottom: 22px; z-index: 400;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  background: #25d366; color: #fff; font-size: 11px; font-weight: 600;
  padding: 12px 10px 10px; border-radius: 14px; line-height: 1;
  box-shadow: 0 8px 22px rgba(37, 211, 102, .45);
}
.ce-whatsapp span { font-size: 10px; }
.ce-whatsapp:hover { color: #fff; background: #1eb457; }

/* ---------------- Breadcrumbs ---------------- */
.ce-breadcrumbs { background: var(--ce-bg-alt); border-bottom: 1px solid var(--ce-line); }
.ce-breadcrumbs .container { padding-top: 12px; padding-bottom: 12px; }
.ce-breadcrumbs ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; font-size: 13px; color: var(--ce-muted); }
.ce-breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: 8px; color: #c3ccd6; }
.ce-breadcrumbs a { color: var(--ce-accent); }

/* ---------------- Inner pages ---------------- */
.page-header { background: var(--ce-primary); color: #fff; padding: 60px 20px; text-align: center; }
.page-header h1 { color: #fff; margin: 0; }
.page-header p { color: #cfdcec; margin: 10px 0 0; }
.entry { background: #fff; padding: 40px; border-radius: var(--ce-radius); }
.entry-content { font-size: 16px; }
.entry-content h2 { font-size: 24px; margin-top: 32px; }
.entry-content h3 { font-size: 19px; }
.wp-block-image img, .entry-content img { border-radius: var(--ce-radius); margin: 18px 0; }

.spec-table { width: 100%; border-collapse: collapse; margin: 20px 0; }
.spec-table td { padding: 11px 15px; border: 1px solid var(--ce-line); }
.spec-table td:first-child { background: var(--ce-bg-alt); font-weight: 600; color: var(--ce-primary); width: 40%; }

.faq-item { border: 1px solid var(--ce-line); border-radius: var(--ce-radius); margin-bottom: 12px; overflow: hidden; }
.faq-q { padding: 16px 20px; background: var(--ce-bg-alt); font-weight: 600; color: var(--ce-primary); cursor: pointer; display: flex; justify-content: space-between; gap: 12px; }
.faq-q::after { content: "+"; color: var(--ce-accent); font-size: 20px; line-height: 1; }
.faq-item.open .faq-q::after { content: "\2212"; }
.faq-a { padding: 0 20px; max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-item.open .faq-a { max-height: 500px; padding: 16px 20px; }

/* ---------------- Forms ---------------- */
.ce-form { display: grid; gap: 16px; max-width: 640px; }
.ce-form label { font-weight: 600; color: var(--ce-primary); display: block; margin-bottom: 6px; }
.ce-form input, .ce-form textarea, .ce-form select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--ce-line); border-radius: var(--ce-radius);
  font-size: 15px; font-family: inherit; color: var(--ce-text); background: #fff;
}
.ce-form input:focus, .ce-form textarea:focus, .ce-form select:focus { outline: 2px solid var(--ce-accent); border-color: var(--ce-accent); }
.ce-form .submit-row { margin-top: 6px; }
.ce-form .form-note { font-size: 13px; color: var(--ce-muted); }

/* ---------------- Sidebar / misc ---------------- */
.has-sidebar { display: grid; grid-template-columns: 1fr 300px; gap: 40px; align-items: start; }
.widget { background: #fff; border: 1px solid var(--ce-line); border-radius: var(--ce-radius); padding: 20px; margin-bottom: 20px; }
.widget h3 { font-size: 17px; margin-top: 0; }
.widget ul { list-style: none; padding: 0; margin: 0; }
.widget ul li { padding: 8px 0; border-bottom: 1px solid var(--ce-line); }
.widget ul li a { color: var(--ce-primary); }

.not-found, .search-result { background: #fff; padding: 40px; border-radius: var(--ce-radius); }
.search-result { margin-bottom: 20px; }
