/*
Theme Name: Cool Engineering
Theme URI: https://cool-engineering.com/
Author: Cool Engineering
Description: Minimalist corporate WordPress theme for Cool Engineering SARLU, Lomé, Togo.
Version: 1.0.3
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: cool-engineering
*/

:root {
  --ce-navy: #082a4d;
  --ce-navy-2: #061f39;
  --ce-orange: #f15a2b;
  --ce-text: #10243b;
  --ce-muted: #5d6c7b;
  --ce-line: #dde5ec;
  --ce-soft: #f5f8fa;
  --ce-white: #ffffff;
  --ce-max: 1180px;
  --ce-shadow: 0 14px 35px rgba(8,42,77,.10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ce-text);
  background: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
.ce-wrap { width: min(calc(100% - 40px), var(--ce-max)); margin: 0 auto; }

/* Header */
.ce-site-header { position: sticky; top: 0; z-index: 1000; background: rgba(255,255,255,.96); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(8,42,77,.07); }
.ce-header-inner { min-height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.ce-brand { display: inline-flex; align-items: center; text-decoration: none; flex: 0 0 auto; }
.ce-brand img { width: 220px; max-height: 68px; object-fit: contain; object-position: left center; }
.ce-nav { display: flex; align-items: center; gap: 31px; margin-left: auto; }
.ce-nav a { position: relative; color: var(--ce-navy); font-size: 13px; font-weight: 760; text-transform: uppercase; letter-spacing: .025em; text-decoration: none; white-space: nowrap; }
.ce-nav a:not(.ce-nav-cta)::after { content: ""; position: absolute; left: 0; bottom: -11px; width: 0; height: 2px; background: var(--ce-orange); transition: width .2s ease; }
.ce-nav a:hover::after, .ce-nav a.is-active::after { width: 100%; }
.ce-nav .ce-nav-cta { color: #fff; background: var(--ce-navy); padding: 13px 17px; transition: background .2s ease, transform .2s ease; }
.ce-nav .ce-nav-cta:hover { background: var(--ce-orange); transform: translateY(-1px); }
.ce-menu-toggle { display: none; border: 0; background: var(--ce-navy); color: #fff; width: 44px; height: 44px; font-size: 22px; cursor: pointer; }

/* Generic */
.ce-main { overflow: hidden; }
.ce-section { padding: 76px 0; }
.ce-section-soft { background: var(--ce-soft); }
.ce-eyebrow { display: inline-block; margin: 0 0 15px; font-size: 12px; font-weight: 800; color: var(--ce-navy); text-transform: uppercase; letter-spacing: .09em; }
.ce-eyebrow::before { content: ""; display: inline-block; width: 38px; height: 3px; margin: 0 14px 3px 0; background: var(--ce-orange); }
.ce-title { margin: 0; color: var(--ce-navy); font-weight: 850; line-height: 1.08; letter-spacing: -.025em; text-transform: uppercase; }
.ce-title-xl { font-size: clamp(42px, 5.1vw, 72px); }
.ce-title-lg { font-size: clamp(30px, 3.6vw, 48px); }
.ce-title-md { font-size: clamp(25px, 2.5vw, 34px); }
.ce-lead { max-width: 760px; font-size: 18px; color: var(--ce-muted); }
.ce-center { text-align: center; }
.ce-center .ce-lead { margin-left: auto; margin-right: auto; }
.ce-rule { width: 50px; height: 3px; background: var(--ce-orange); margin: 16px auto 0; }
.ce-btn-row { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 30px; }
.ce-btn { display: inline-flex; justify-content: center; align-items: center; min-height: 48px; padding: 0 22px; border: 2px solid var(--ce-orange); background: var(--ce-orange); color: #fff; text-decoration: none; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .025em; transition: .2s ease; }
.ce-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(241,90,43,.22); }
.ce-btn-outline { color: var(--ce-orange); background: transparent; }
.ce-btn-outline:hover { background: var(--ce-orange); color: #fff; }
.ce-btn-navy { background: var(--ce-navy); border-color: var(--ce-navy); }
.ce-btn-navy:hover { background: var(--ce-orange); border-color: var(--ce-orange); }

/* Home hero */
.ce-hero { min-height: 620px; display: grid; grid-template-columns: minmax(0, 46%) minmax(0, 54%); background: #fff; }
.ce-hero-copy { align-self: center; padding: 70px max(36px, calc((100vw - var(--ce-max))/2)); padding-right: 48px; }
.ce-hero-copy .ce-title { max-width: 630px; }
.ce-hero-copy .ce-lead { max-width: 520px; margin: 24px 0 0; }
.ce-hero-partners { color: var(--ce-navy); font-size: 18px; line-height: 1.6; }
.ce-hero-tags { margin-top: 26px; color: var(--ce-navy); font-weight: 800; font-size: 15px; line-height: 1.8; text-transform: uppercase; }
.ce-hero-tags span + span::before { content: "•"; color: var(--ce-orange); margin: 0 9px; }
.ce-hero-media { position: relative; min-height: 620px; background: linear-gradient(90deg,#fff 0%,rgba(255,255,255,.3) 10%,rgba(255,255,255,0) 28%), url('assets/images/hero-industrial.jpg') center/cover no-repeat; }
.ce-hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg,rgba(255,255,255,.28),transparent 25%); pointer-events: none; }

/* Real responsive photos. Background declarations above remain only as fallbacks. */
.ce-section-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
}
.ce-hero-media .ce-section-photo { z-index: 0; }
.ce-hero-media::after { z-index: 1; }
.ce-split-image,
.ce-partner-note-image { position: relative; overflow: hidden; }


/* cards */
.ce-services-grid { margin-top: 44px; display: grid; grid-template-columns: repeat(6, 1fr); border-top: 1px solid var(--ce-line); border-bottom: 1px solid var(--ce-line); }
.ce-service-mini { padding: 30px 18px; text-align: center; border-right: 1px solid var(--ce-line); }
.ce-service-mini:last-child { border-right: 0; }
.ce-icon { width: 58px; height: 58px; margin: 0 auto 17px; display: grid; place-items: center; border-radius: 50%; background: #eef3f7; }
.ce-icon img { width: 30px; height: 30px; }
.ce-service-mini h3 { min-height: 44px; margin: 0 0 10px; font-size: 14px; color: var(--ce-navy); line-height: 1.35; text-transform: uppercase; }
.ce-service-mini p { margin: 0; color: var(--ce-muted); font-size: 13px; line-height: 1.55; }

.ce-partner-row { display: grid; grid-template-columns: repeat(3, 1fr); align-items: center; gap: 24px; margin-top: 42px; }
.ce-partner-mark { min-height: 120px; display: flex; align-items: center; justify-content: center; padding: 20px; border: 1px solid var(--ce-line); background: #fff; color: var(--ce-navy); font-size: clamp(24px, 3vw, 38px); font-weight: 850; letter-spacing: -.03em; }
.ce-partner-mark.wilo { color: #008f92; font-style: italic; text-transform: lowercase; }
.ce-partner-mark.eh { color: #181818; font-size: clamp(20px, 2.4vw, 32px); }
.ce-partner-mark.siemens { color: #008c95; letter-spacing: .02em; }

.ce-split { display: grid; grid-template-columns: 1fr 1fr; min-height: 520px; }
.ce-split-copy { padding: 72px max(36px, calc((100vw - var(--ce-max))/2)); padding-right: 70px; display: flex; flex-direction: column; justify-content: center; }
.ce-split-image { min-height: 520px; background: url('assets/images/instrumentation.jpg') center/cover no-repeat; }
.ce-checks { list-style: none; padding: 0; margin: 25px 0 0; }
.ce-checks li { margin: 10px 0; color: var(--ce-text); }
.ce-checks li::before { content: "✓"; color: var(--ce-orange); font-weight: 900; margin-right: 12px; }

/* Page hero */
.ce-page-hero { padding: 74px 0 54px; background: linear-gradient(180deg,#fff 0,#f8fafc 100%); border-bottom: 1px solid var(--ce-line); }
.ce-page-hero .ce-lead { margin-top: 18px; }

.ce-service-cards { margin-top: 44px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.ce-service-card { padding: 30px; border: 1px solid var(--ce-line); background: #fff; min-height: 245px; box-shadow: 0 2px 0 rgba(8,42,77,.02); transition: .2s ease; }
.ce-service-card:hover { transform: translateY(-4px); box-shadow: var(--ce-shadow); }
.ce-service-card .ce-icon { margin: 0 0 18px; }
.ce-service-card h3 { margin: 0 0 12px; color: var(--ce-navy); font-size: 17px; text-transform: uppercase; line-height: 1.35; }
.ce-service-card p { margin: 0; color: var(--ce-muted); }

.ce-dark-band { background: var(--ce-navy); color: #fff; }
.ce-value-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 25px; }
.ce-value { padding: 28px 0; }
.ce-value strong { display: block; color: #fff; text-transform: uppercase; font-size: 14px; margin-bottom: 7px; }
.ce-value strong::before { content: "●"; color: var(--ce-orange); margin-right: 9px; }
.ce-value span { color: #d4e0ea; font-size: 14px; }

/* Partner page */
.ce-partner-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 45px; }
.ce-partner-card { border: 1px solid var(--ce-line); padding: 32px; background: #fff; }
.ce-partner-card .ce-partner-mark { border: 0; min-height: 82px; justify-content: flex-start; padding: 0; margin-bottom: 18px; }
.ce-partner-card h3 { color: var(--ce-navy); margin: 0 0 10px; font-size: 17px; text-transform: uppercase; }
.ce-partner-card p { color: var(--ce-muted); margin: 0 0 18px; }
.ce-partner-card ul { padding-left: 19px; color: var(--ce-text); }
.ce-partner-card li { margin: 8px 0; }
.ce-partner-card li::marker { color: var(--ce-orange); }
.ce-partner-note { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 40px; align-items: center; }
.ce-partner-note-image { min-height: 300px; background: url('assets/images/instrumentation.jpg') center/cover no-repeat; }

/* Contact */
.ce-contact-layout { display: grid; grid-template-columns: 1.05fr .85fr 1.1fr; gap: 48px; padding-top: 68px; padding-bottom: 55px; }
.ce-contact-col + .ce-contact-col { border-left: 1px solid var(--ce-line); padding-left: 42px; }
.ce-contact-col h1, .ce-contact-col h2 { color: var(--ce-navy); text-transform: uppercase; line-height: 1.2; }
.ce-contact-col h1 { font-size: 28px; }
.ce-contact-col h2 { font-size: 19px; }
.ce-contact-col p { color: var(--ce-muted); }
.ce-contact-list { list-style: none; padding: 0; margin: 22px 0 0; }
.ce-contact-list li { margin: 0 0 18px; color: var(--ce-text); }
.ce-contact-list strong { display: block; color: var(--ce-navy); font-size: 12px; text-transform: uppercase; margin-bottom: 2px; }
.ce-contact-list a { text-decoration: none; }
.ce-contact-list a:hover { color: var(--ce-orange); }
.ce-contact-form label { display: block; font-size: 12px; font-weight: 760; color: var(--ce-navy); text-transform: uppercase; margin-bottom: 5px; }
.ce-contact-form input, .ce-contact-form textarea { width: 100%; border: 1px solid #d8e1e8; background: #fff; padding: 12px 13px; font: inherit; color: var(--ce-text); border-radius: 0; margin-bottom: 13px; }
.ce-contact-form textarea { min-height: 150px; resize: vertical; }
.ce-contact-form input:focus, .ce-contact-form textarea:focus { outline: 2px solid rgba(241,90,43,.18); border-color: var(--ce-orange); }
.ce-form-status { padding: 12px 14px; margin-bottom: 18px; font-size: 14px; }
.ce-form-status.success { background: #edf8f1; color: #236139; border: 1px solid #c7e8d2; }
.ce-form-status.error { background: #fff3ef; color: #8b351c; border: 1px solid #f0c7ba; }
.ce-hp { position: absolute !important; left: -9999px !important; opacity: 0 !important; }
.ce-lome-strip { min-height: 310px; background: linear-gradient(90deg,rgba(8,42,77,.72),rgba(8,42,77,.15)), url('assets/images/lome.jpg') center/cover no-repeat; display: flex; align-items: flex-end; }
.ce-lome-strip .ce-wrap { padding-bottom: 42px; color: #fff; }
.ce-lome-strip strong { display: block; font-size: 28px; text-transform: uppercase; }

.ce-lome-strip { position: relative; overflow: hidden; }
.ce-lome-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; z-index: 0; }
.ce-lome-strip::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg,rgba(8,42,77,.72),rgba(8,42,77,.15)); z-index: 1; pointer-events: none; }
.ce-lome-strip .ce-wrap { position: relative; z-index: 2; }

/* Prevent editor/content images from ever exceeding the phone viewport. */
.ce-content img,
.wp-block-image img,
.wp-block-media-text img,
figure img { max-width: 100%; height: auto; }
.ce-content figure,
.wp-block-image { max-width: 100%; }

/* Normal WP content */
.ce-content { padding: 60px 0; }
.ce-content h1, .ce-content h2, .ce-content h3 { color: var(--ce-navy); }
.ce-content a { color: var(--ce-orange); }

/* Footer */
.ce-site-footer { background: var(--ce-navy-2); color: #fff; }
.ce-footer-main { display: grid; grid-template-columns: 1.2fr .75fr 1fr 1fr; gap: 45px; padding: 55px 0 42px; }
.ce-footer-logo { width: 235px; background: #fff; padding: 10px 12px; margin-bottom: 18px; }
.ce-footer-text { max-width: 285px; color: #c9d7e3; font-size: 14px; }
.ce-footer-title { margin: 0 0 15px; color: #fff; text-transform: uppercase; font-size: 13px; letter-spacing: .04em; }
.ce-footer-links { list-style: none; padding: 0; margin: 0; }
.ce-footer-links li { margin: 8px 0; }
.ce-footer-links a { color: #d6e1ea; text-decoration: none; font-size: 14px; }
.ce-footer-links a:hover { color: var(--ce-orange); }
.ce-footer-contact { color: #d6e1ea; font-size: 14px; }
.ce-footer-contact a { color: inherit; text-decoration: none; }
.ce-footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding: 18px 0 24px; border-top: 1px solid rgba(255,255,255,.16); color: #aebfce; font-size: 12px; }

/* admin / misc */
.alignwide { width: min(calc(100% - 40px), var(--ce-max)); margin-left: auto; margin-right: auto; }
.screen-reader-text { border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important; }

@media (max-width: 1050px) {
  .ce-nav { gap: 19px; }
  .ce-nav a { font-size: 12px; }
  .ce-services-grid { grid-template-columns: repeat(3,1fr); }
  .ce-service-mini:nth-child(3) { border-right: 0; }
  .ce-service-mini:nth-child(-n+3) { border-bottom: 1px solid var(--ce-line); }
  .ce-contact-layout { grid-template-columns: 1fr 1fr; }
  .ce-contact-layout .ce-contact-col:last-child { grid-column: 1 / -1; border-left: 0; padding-left: 0; border-top: 1px solid var(--ce-line); padding-top: 35px; }
  .ce-footer-main { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  .ce-header-inner { min-height: 76px; }
  .ce-brand img { width: 180px; }
  .ce-menu-toggle { display: inline-grid; place-items: center; }
  .ce-nav { position: absolute; top: 76px; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; margin: 0; padding: 18px 20px 24px; background: #fff; border-bottom: 1px solid var(--ce-line); box-shadow: var(--ce-shadow); }
  .ce-nav.is-open { display: flex; }
  .ce-nav a { padding: 12px 6px; }
  .ce-nav a::after { display: none; }
  .ce-nav .ce-nav-cta { margin-top: 8px; text-align: center; }
  .ce-hero { grid-template-columns: 1fr; }
  .ce-hero-copy { padding: 55px 24px; }
  .ce-hero-media { order: -1; }
  .ce-split { grid-template-columns: 1fr; }
  .ce-split-copy { padding: 55px 24px; }
  .ce-split-image { min-height: 0; }
  .ce-service-cards, .ce-partner-cards { grid-template-columns: 1fr 1fr; }
  .ce-partner-note { grid-template-columns: 1fr; }
  .ce-partner-note-image { min-height: 0; }
  .ce-value-grid { grid-template-columns: 1fr 1fr; }
  .ce-contact-layout { grid-template-columns: 1fr; }
  .ce-contact-col + .ce-contact-col { border-left: 0; padding-left: 0; border-top: 1px solid var(--ce-line); padding-top: 32px; }
  .ce-contact-layout .ce-contact-col:last-child { grid-column: auto; }
}

@media (max-width: 560px) {
  .ce-wrap { width: min(calc(100% - 28px), var(--ce-max)); }
  .ce-hero-media { min-height: 0; }
  .ce-title-xl { font-size: 38px; }
  .ce-services-grid { grid-template-columns: 1fr 1fr; }
  .ce-service-mini, .ce-service-mini:nth-child(3) { border-right: 1px solid var(--ce-line); border-bottom: 1px solid var(--ce-line); }
  .ce-service-mini:nth-child(even) { border-right: 0; }
  .ce-service-mini:nth-last-child(-n+2) { border-bottom: 0; }
  .ce-partner-row, .ce-service-cards, .ce-partner-cards { grid-template-columns: 1fr; }
  .ce-value-grid { grid-template-columns: 1fr; }
  .ce-footer-main { grid-template-columns: 1fr; }
  .ce-footer-bottom { flex-direction: column; }
}
