/*
Theme Name:   S.engineering Child
Theme URI:    https://s-engin.com
Description:  Child theme of Astra for S.engineering — brand colours, Poppins typography and shared section styles.
Author:       Hussein Nehme
Template:     astra
Version:      1.0.0
Text Domain:  s-engineering-child
*/

/* =========================================================
   BRAND TOKENS  (from the S.engineering logo + company profile)
   ========================================================= */
:root{
  --se-charcoal:#2D2E2D;   /* logo text, dark sections */
  --se-charcoal-2:#232423; /* deeper dark (footer) */
  --se-green:#41BA8A;      /* primary */
  --se-green-2:#0EAE8B;    /* gradient / hover */
  --se-orange:#F6851F;     /* accent (bolt) */
  --se-orange-2:#FBA919;   /* accent light */
  --se-white:#FFFFFF;
  --se-light:#F4F6F5;      /* light section bg */
  --se-line:#E3E7E5;       /* borders on light */
  --se-line-dark:#3B3D3B;  /* borders on dark */
  --se-text:#2D2E2D;
  --se-muted:#6B7470;
  --se-muted-dark:#A9B2AE;
  --se-grad:linear-gradient(135deg,var(--se-green-2) 0%,var(--se-green) 100%);
  --se-grad-orange:linear-gradient(135deg,var(--se-orange) 0%,var(--se-orange-2) 100%);
  --se-radius:14px;
  --se-radius-pill:999px;
  --se-shadow:0 12px 32px rgba(45,46,45,.10);
  --se-font:'Poppins',system-ui,-apple-system,'Segoe UI',Arial,sans-serif;

  /* Map Astra's global palette to the brand */
  --ast-global-color-0:#41BA8A; /* brand / links / buttons */
  --ast-global-color-1:#0EAE8B; /* hover */
  --ast-global-color-2:#2D2E2D; /* headings */
  --ast-global-color-3:#4A4F4C; /* body text */
  --ast-global-color-4:#F4F6F5; /* light bg */
  --ast-global-color-5:#FFFFFF;
  --ast-global-color-6:#E3E7E5;
  --ast-global-color-7:#232423;
  --ast-global-color-8:#F6851F;
}

/* =========================================================
   BASE TYPOGRAPHY
   ========================================================= */
body,button,input,select,textarea,
.ast-button,.ast-custom-button,.elementor-widget-text-editor,
.elementor-button{font-family:var(--se-font)}
body{color:#4A4F4C;font-size:16px;line-height:1.65;font-weight:400}
h1,h2,h3,h4,h5,h6,
.entry-title,.site-title,
.elementor-heading-title{font-family:var(--se-font);color:var(--se-charcoal);font-weight:700;line-height:1.15}
h1{font-weight:800}
a{color:var(--se-green);transition:color .2s}
a:hover,a:focus{color:var(--se-green-2)}
::selection{background:var(--se-green);color:#fff}

/* =========================================================
   ASTRA OVERRIDES
   ========================================================= */
/* Buttons */
.ast-button,.button,button,input[type=submit],
.wp-block-button__link,.ast-custom-button{
  background:var(--se-green);border-color:var(--se-green);color:#fff;
  border-radius:var(--se-radius-pill);font-weight:600;padding:12px 26px}
.ast-button:hover,.button:hover,button:hover,input[type=submit]:hover,
.wp-block-button__link:hover,.ast-custom-button:hover{
  background:var(--se-green-2);border-color:var(--se-green-2);color:#fff}

/* Header */
.main-header-bar,.ast-primary-header-bar{border-bottom:1px solid var(--se-line)}
.main-header-menu .menu-link{font-weight:500;color:var(--se-charcoal)}
.main-header-menu .menu-item:hover > .menu-link,
.main-header-menu .current-menu-item > .menu-link,
.main-header-menu .current-menu-ancestor > .menu-link{color:var(--se-green)}
.custom-logo-link img{max-height:56px;width:auto}

/* Footer */
.site-footer,.site-primary-footer-wrap,.site-below-footer-wrap{
  background:var(--se-charcoal-2);color:var(--se-muted-dark)}
.site-footer a{color:#fff}
.site-footer a:hover{color:var(--se-orange-2)}

/* Forms */
input[type=text],input[type=email],input[type=tel],input[type=url],
input[type=number],input[type=search],textarea,select{
  border:1px solid var(--se-line);border-radius:10px;padding:12px 14px;
  font-size:16px;background:#fff;color:var(--se-text)}
input:focus,textarea:focus,select:focus{
  border-color:var(--se-green);outline:none;box-shadow:0 0 0 3px rgba(65,186,138,.18)}

/* Focus visibility */
a:focus-visible,button:focus-visible,.se-btn:focus-visible{
  outline:2px solid var(--se-orange);outline-offset:3px}

/* =========================================================
   SHARED SECTION CLASSES  (use inside Elementor HTML widgets)
   All prefixed .se- to avoid conflicts
   ========================================================= */
.se-wrap{max-width:1240px;margin:0 auto;padding:0 max(5vw,18px)}
.se-section{padding:clamp(56px,8vw,110px) 0;position:relative;overflow:hidden}
.se-dark{background:var(--se-charcoal);color:#E9ECEA}
.se-dark h1,.se-dark h2,.se-dark h3,.se-dark h4{color:#fff}
.se-dark p{color:var(--se-muted-dark)}
.se-light{background:var(--se-light)}
.se-white{background:#fff}

/* Eyebrow / small label */
.se-eyebrow{display:inline-flex;align-items:center;gap:8px;font-size:14px;
  font-weight:600;color:var(--se-green);margin:0 0 12px}
.se-eyebrow::before{content:"";width:22px;height:3px;border-radius:3px;background:var(--se-orange)}

/* Headings */
.se-h1{font-size:clamp(36px,5.5vw,64px);font-weight:800;line-height:1.05;margin:0 0 18px;text-wrap:balance}
.se-h2{font-size:clamp(28px,3.6vw,44px);font-weight:700;line-height:1.1;margin:0 0 16px;text-wrap:balance}
.se-h3{font-size:clamp(19px,1.8vw,22px);font-weight:600;line-height:1.3;margin:0 0 10px}
.se-lead{font-size:clamp(16px,1.4vw,18px);max-width:60ch}
.se-green-text{color:var(--se-green)}

/* Outline text — the profile's signature ("SINCE 2004", "VISION") */
.se-outline{font-family:var(--se-font);font-weight:800;line-height:.9;
  font-size:clamp(70px,14vw,200px);color:transparent;
  -webkit-text-stroke:2px rgba(65,186,138,.55);text-stroke:2px rgba(65,186,138,.55);
  letter-spacing:.02em;user-select:none;pointer-events:none;white-space:nowrap}
.se-outline--light{-webkit-text-stroke-color:rgba(45,46,45,.10)}
.se-outline--bg{position:absolute;z-index:0}
.se-section > .se-wrap{position:relative;z-index:1}

/* Buttons */
.se-btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;
  min-height:48px;padding:0 26px;border-radius:var(--se-radius-pill);
  font-weight:600;font-size:15px;text-decoration:none;border:2px solid transparent;
  transition:background .2s,color .2s,border-color .2s,transform .2s;cursor:pointer}
.se-btn:hover{transform:translateY(-2px)}
.se-btn--primary{background:var(--se-green);color:#fff}
.se-btn--primary:hover{background:var(--se-green-2);color:#fff}
.se-btn--accent{background:var(--se-orange);color:var(--se-charcoal-2)}
.se-btn--accent:hover{background:var(--se-orange-2);color:var(--se-charcoal-2)}
.se-btn--ghost{border-color:currentColor;color:var(--se-charcoal);background:transparent}
.se-dark .se-btn--ghost{color:#fff}
.se-btn--ghost:hover{background:var(--se-green);border-color:var(--se-green);color:#fff}

/* Pill (like the green pills in the profile) */
.se-pill{display:block;background:var(--se-green);color:#fff;border-radius:var(--se-radius-pill);
  padding:12px 22px;text-align:center;font-weight:500}

/* Cards */
.se-grid{display:grid;gap:clamp(18px,2.4vw,30px);grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr))}
.se-card{background:#fff;border:1px solid var(--se-line);border-radius:var(--se-radius);
  padding:28px;transition:transform .25s,box-shadow .25s,border-color .25s}
.se-card:hover{transform:translateY(-4px);box-shadow:var(--se-shadow);border-color:transparent}
.se-dark .se-card{background:#353735;border-color:var(--se-line-dark)}
.se-card__icon{width:52px;height:52px;border-radius:12px;display:grid;place-items:center;
  background:var(--se-grad);color:#fff;margin-bottom:18px}
.se-card__icon svg{width:26px;height:26px}

/* Big numbers (01, 02… and stats) */
.se-num{font-weight:800;font-size:clamp(40px,5vw,64px);line-height:1;color:var(--se-green)}
.se-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),1fr));gap:24px}
.se-stat strong{display:block;font-size:clamp(30px,3.4vw,44px);font-weight:800;color:var(--se-orange);line-height:1.1}
.se-stat span{font-size:14px;color:var(--se-muted)}
.se-dark .se-stat span{color:var(--se-muted-dark)}

/* Image with rounded corners */
.se-img{width:100%;height:100%;object-fit:cover;border-radius:var(--se-radius);display:block}

/* Divider accent */
.se-bar{width:56px;height:4px;border-radius:4px;background:var(--se-grad-orange);margin:0 0 20px}

/* Reveal on scroll (add .se-reveal; functions.php adds .is-in) */
.se-reveal{opacity:0;transform:translateY(24px);transition:opacity .7s ease,transform .7s ease}
.se-reveal.is-in{opacity:1;transform:none}
@media (prefers-reduced-motion:reduce){
  .se-reveal{opacity:1;transform:none;transition:none}
  .se-btn,.se-card{transition:none}
}

/* Elementor: let HTML widgets go full width without extra gaps */
.elementor-widget-html .se-section{margin:0}
