/*
Theme Name: eBook Publishing Group Child
Description: Custom child theme for Hello Elementor, converted from the approved eBook Publishing Group HTML homepage.
Author: Vector E Agency
Template: hello-elementor
Version: 1.0.5
Text Domain: ebook-publishing-group-child
*/

:root{
  --navy:#071d36;
  --navy-2:#0b2748;
  --gold:#b77c09;
  --gold-soft:#d6a846;
  --cream:#f7f2ea;
  --paper:#fffdf9;
  --text:#182235;
  --muted:#667085;
  --line:#e8e2d7;
  --white:#fff;
  --shadow:0 10px 30px rgba(9,29,54,.08);
  --radius:12px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;color:var(--text);background:#fff;font-family:Arial,Helvetica,sans-serif;line-height:1.55}
a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}
.epg-container{width:min(1180px,calc(100% - 48px));margin-inline:auto}
.site-header{height:86px;background:#fff;border-bottom:1px solid rgba(7,29,54,.06);position:sticky;top:0;z-index:100}
.header-inner{height:100%;display:flex;align-items:center;justify-content:space-between;gap:24px}
.epg-brand{display:inline-flex;align-items:center;gap:11px;min-width:270px}
.epg-brand-icon{width:54px;height:46px;display:flex;align-items:center;justify-content:center}
.epg-brand-icon svg{width:100%;height:100%;fill:none;stroke:var(--gold);stroke-width:2.25;stroke-linecap:round;stroke-linejoin:round}
.epg-brand-copy{display:flex;flex-direction:column;line-height:1}
.epg-brand-name{font-family:Georgia,"Times New Roman",serif;font-size:27px;font-weight:600;letter-spacing:.01em;color:var(--navy)}
.epg-brand-sub{margin-top:8px;font-size:11px;font-weight:600;letter-spacing:.58em;color:var(--gold);text-align:center}
.main-nav{display:flex;align-items:center;gap:38px;font-family:Georgia,"Times New Roman",serif;font-size:17px;font-weight:600}
.main-nav a{position:relative;padding:31px 0 25px;color:var(--navy)}
.main-nav a.active::after,.main-nav a:hover::after{content:"";position:absolute;height:2px;background:var(--gold);left:0;right:0;bottom:18px}
.main-nav .search-link{font-family:Arial,Helvetica,sans-serif;font-size:22px}
.main-nav .search-link::after{display:none!important}
.menu-toggle{display:none;background:none;border:0;padding:8px;cursor:pointer}.menu-toggle span{display:block;width:25px;height:2px;background:var(--navy);margin:5px 0}
.hero{background:linear-gradient(90deg,#faf7f1 0%,#faf7f1 51%,#ece4d6 51%,#ece4d6 100%);overflow:hidden}
.hero-grid{min-height:420px;display:grid;grid-template-columns:1.05fr .95fr;align-items:stretch;padding-inline:0}
.hero-copy{padding:50px 44px 44px 0;display:flex;flex-direction:column;justify-content:center;position:relative;z-index:2}
.eyebrow{font-size:11px;font-weight:600;letter-spacing:.28em;color:#8d5c00;margin:0 0 14px;text-transform:uppercase}.eyebrow span{margin:0 4px;color:#bc9347}
.hero h1,.section-head h2{font-family:Georgia,"Times New Roman",serif;color:var(--navy);font-weight:600;line-height:.98;margin:0}
.hero h1{font-size:59px;letter-spacing:-.02em}.hero h1 em{font-weight:600;color:var(--gold);font-style:italic}
.hero-text{max-width:620px;font-family:Georgia,"Times New Roman",serif;font-size:21px;color:#455064;line-height:1.35;margin:18px 0 22px}
.hero-actions{display:flex;gap:16px;flex-wrap:wrap}
.epg-btn{display:inline-flex;align-items:center;justify-content:center;gap:22px;min-height:48px;padding:0 22px;border-radius:5px;font-size:14px;font-weight:600;transition:.2s ease}.epg-btn-primary{background:linear-gradient(135deg,#c38a0f,#9d6500);color:#fff;box-shadow:0 8px 20px rgba(174,117,9,.18)}.epg-btn-primary:hover{transform:translateY(-1px);box-shadow:0 10px 24px rgba(174,117,9,.24)}.epg-btn-outline{border:1px solid #8f98a7;color:var(--navy);background:rgba(255,255,255,.55)}
.hero-visual{position:relative;min-width:0}.hero-visual::before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#faf7f1 0%,rgba(250,247,241,.12) 24%,rgba(0,0,0,0) 70%);z-index:1}.hero-visual img{width:100%;height:100%;object-fit:cover;object-position:center}
.inkcraft{background:#fff;padding:34px 0 30px}.inkcraft-grid{display:grid;grid-template-columns:340px 1fr;align-items:stretch;gap:28px}.inkcraft-intro{border-right:1px solid var(--line);padding-right:30px}.inkcraft-title{display:flex;align-items:center;gap:8px}.quill-mark{font-family:Georgia,serif;font-size:72px;line-height:1;color:var(--gold-soft);transform:rotate(-8deg);display:inline-block}.inkcraft h2{font-family:Georgia,"Times New Roman",serif;font-size:51px;line-height:.92;margin:0;color:var(--navy);font-weight:600}.inkcraft h2 span{color:var(--navy)}.inkcraft h2::first-letter{color:var(--navy)}.inkcraft h2{background:linear-gradient(90deg,var(--navy) 0 57%,var(--gold) 57%);-webkit-background-clip:text;background-clip:text;color:transparent}.inkcraft-title p{font-family:Georgia,"Times New Roman",serif;font-size:16px;color:#4f5866;margin:6px 0 0}.inkcraft-intro>p{font-family:Georgia,"Times New Roman",serif;font-size:20px;line-height:1.25;color:#4f5866;margin:18px 0}.inkcraft .epg-btn{min-height:42px;padding:0 18px}
.service-grid{display:grid;grid-template-columns:repeat(5,1fr);border-left:1px solid #f2eee6;border-top:1px solid transparent}.service-card{min-height:103px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:8px;border-right:1px solid var(--line);border-bottom:1px solid var(--line);font-family:Georgia,"Times New Roman",serif;font-size:15px;font-weight:600;color:var(--navy);transition:.2s}.service-card:nth-child(n+6){border-bottom:0}.service-card:hover{background:#fbf7ef}.service-icon{font-family:Georgia,serif;font-size:37px;line-height:1;color:var(--navy);margin-bottom:7px;text-shadow:0 1px 0 #fff}.service-card:nth-child(2n) .service-icon,.service-card:nth-child(5n) .service-icon{color:var(--gold)}.amazon-mark{font-family:Arial Black,Arial,sans-serif;font-weight:900;text-transform:lowercase}
.industries{padding:30px 0 26px;background:radial-gradient(circle at 12% 15%,rgba(203,168,110,.12),transparent 24%),linear-gradient(180deg,#f7f2ea,#fbf9f5 70%,#f4efe7)}.section-head{display:flex;justify-content:space-between;align-items:end;gap:30px;margin-bottom:24px}.section-head h2{font-size:43px}.section-head p:not(.eyebrow){font-family:Georgia,"Times New Roman",serif;font-size:18px;line-height:1.25;color:#556070;max-width:520px;margin:7px 0 0}.gold{color:#956305}.text-link{font-family:Georgia,"Times New Roman",serif;font-size:16px;text-decoration:underline;text-underline-offset:4px;color:var(--navy);white-space:nowrap}.text-link span{color:var(--gold);font-size:22px;margin-left:6px}
.company-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.company-card{background:rgba(255,255,255,.82);border:1px solid rgba(7,29,54,.06);border-radius:9px;box-shadow:0 5px 15px rgba(7,29,54,.035);min-height:115px;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:13px 14px;transition:.2s}.company-card:hover{transform:translateY(-3px);box-shadow:var(--shadow)}.company-card img{width:180px;height:63px;object-fit:contain;margin-bottom:3px}.company-card h3{margin:0;text-align:center;font-size:13px;line-height:1.25;color:#111;font-weight:600}
.stats{background:linear-gradient(90deg,#06192d,#071d36 52%,#082442);color:#fff;border-bottom:1px solid rgba(255,255,255,.22)}.stats-grid{display:grid;grid-template-columns:repeat(4,1fr);padding:26px 0}.stat{display:flex;align-items:center;gap:18px;padding:2px 26px;border-right:1px solid rgba(255,255,255,.16)}.stat:last-child{border-right:0}.stat-icon{color:#f0b535;font-size:36px;line-height:1}.stat div{display:flex;flex-direction:column}.stat strong{font-family:Georgia,"Times New Roman",serif;font-weight:500;font-size:36px;line-height:1}.stat small{font-size:11px;margin-top:7px;color:#f2f4f7}
.site-footer{background:linear-gradient(90deg,#041425,#061b31 55%,#07223d);color:#fff;padding:30px 0 14px}.footer-grid{display:grid;grid-template-columns:1.35fr .75fr .8fr 1fr;gap:44px;padding-bottom:24px}.footer-brand{min-width:0;margin-bottom:13px}.footer-brand .epg-brand-name{color:#fff;font-size:24px}.footer-brand .epg-brand-sub{color:#d9a63e}.footer-brand-col>p{font-size:13px;color:#d7dce3;max-width:300px}.socials{display:flex;gap:18px;margin-top:18px}.socials a{font-weight:700;font-size:16px}.footer-grid h4{font-size:14px;margin:8px 0 15px}.footer-grid>div:not(:first-child){display:flex;flex-direction:column}.footer-grid>div:not(:first-child)>a{font-size:12px;color:#f2f3f5;margin-bottom:10px}.contact-col p{font-size:12px;color:#f2f3f5;margin:0 0 10px}.contact-col p span{color:#f1b63d;margin-right:8px}.footer-bottom{border-top:1px solid rgba(255,255,255,.22);display:flex;justify-content:space-between;gap:20px;padding-top:17px;font-size:11px;color:#d9dde3}.footer-bottom p{margin:0}.footer-bottom div{display:flex;gap:10px}
@media(max-width:980px){.main-nav{gap:22px}.epg-brand{min-width:0}.epg-brand-name{font-size:23px}.hero h1{font-size:48px}.inkcraft-grid{grid-template-columns:1fr}.inkcraft-intro{border-right:0;border-bottom:1px solid var(--line);padding:0 0 24px}.company-grid{grid-template-columns:repeat(3,1fr)}.stats-grid{grid-template-columns:repeat(2,1fr)}.stat:nth-child(2){border-right:0}.stat:nth-child(-n+2){margin-bottom:20px}.footer-grid{grid-template-columns:1.3fr 1fr 1fr}.contact-col{grid-column:2/4}}
@media(max-width:760px){.epg-container{width:min(100% - 30px,680px)}.site-header{height:74px}.epg-brand-icon{width:44px}.epg-brand-name{font-size:21px}.epg-brand-sub{font-size:9px}.menu-toggle{display:block}.main-nav{position:absolute;top:74px;left:0;right:0;background:#fff;border-top:1px solid var(--line);box-shadow:0 12px 25px rgba(7,29,54,.08);display:none;flex-direction:column;align-items:stretch;gap:0;padding:8px 22px 16px}.main-nav.open{display:flex}.main-nav a{padding:12px 0;font-family:Arial,Helvetica,sans-serif;font-size:14px}.main-nav a::after{display:none!important}.search-link{display:none}.hero{background:#faf7f1}.hero-grid{grid-template-columns:1fr;min-height:0}.hero-copy{padding:42px 0 28px}.hero h1{font-size:43px}.hero-text{font-size:19px}.hero-visual{height:290px;margin:0 -15px}.hero-visual::before{background:linear-gradient(180deg,#faf7f1 0%,rgba(250,247,241,0) 22%)}.service-grid{grid-template-columns:repeat(2,1fr)}.service-card:nth-child(n){border-bottom:1px solid var(--line)}.service-card:nth-last-child(-n+2){border-bottom:0}.section-head{align-items:flex-start;flex-direction:column}.company-grid{grid-template-columns:repeat(2,1fr)}.stats-grid{grid-template-columns:1fr 1fr}.stat{padding:5px 14px}.stat strong{font-size:31px}.footer-grid{grid-template-columns:1fr 1fr;gap:28px}.footer-brand-col{grid-column:1/3}.contact-col{grid-column:auto}.footer-bottom{flex-direction:column}}
@media(max-width:480px){.epg-brand-name{font-size:18px}.epg-brand-sub{letter-spacing:.42em}.hero h1{font-size:37px}.hero-actions{flex-direction:column;align-items:stretch}.hero-actions .epg-btn{width:100%}.service-grid{grid-template-columns:1fr 1fr}.company-grid{grid-template-columns:1fr}.company-card{min-height:124px}.stats-grid{grid-template-columns:1fr}.stat{border-right:0!important;border-bottom:1px solid rgba(255,255,255,.13);margin:0!important;padding:15px 5px}.stat:last-child{border-bottom:0}.footer-grid{grid-template-columns:1fr}.footer-brand-col,.contact-col{grid-column:auto}.footer-bottom div{flex-wrap:wrap}}


/* Compatibility overrides for Hello Elementor parent styles */
body.epg-child-theme > .site-header,
body.epg-child-theme > .site-footer{
  width:100%;
  max-width:none;
  margin-inline:0;
}
body.epg-child-theme > .site-header{
  display:block;
  padding:0;
}
body.epg-child-theme > .site-header .header-inner{
  max-width:none;
  margin-inline:auto;
}
body.epg-child-theme > .site-footer{
  display:block;
}
.menu-toggle:hover,
.menu-toggle:focus{
  background:transparent;
  color:inherit;
}
.main-nav .nav-menu .current-menu-item>a::after,
.main-nav .nav-menu .current_page_item>a::after{
  content:"";
  position:absolute;
  height:2px;
  background:var(--gold);
  left:0;
  right:0;
  bottom:18px;
}
@media(max-width:760px){
  .main-nav .nav-menu .current-menu-item>a::after,
  .main-nav .nav-menu .current_page_item>a::after{display:none}
}

/* WordPress integration */
body.admin-bar .site-header{top:32px}
.epg-brand.has-custom-logo{min-width:0}
.epg-brand .custom-logo{width:auto;max-width:260px;max-height:58px;object-fit:contain}
.main-nav .nav-menu{display:flex;align-items:center;gap:38px;margin:0;padding:0;list-style:none}
.main-nav .nav-menu li{margin:0;padding:0;list-style:none}
.main-nav .nav-menu .current-menu-item>a,.main-nav .nav-menu .current_page_item>a{color:var(--navy)}
.front-page-content{margin:0;padding:0}
@media(max-width:980px){.main-nav .nav-menu{gap:22px}}
@media(max-width:782px){body.admin-bar .site-header{top:46px}}
@media(max-width:760px){.main-nav .nav-menu{display:flex;flex-direction:column;align-items:stretch;gap:0;margin:0;padding:0}}


/* =========================================================
   v1.0.2 — Proportional / non-stretched layout
   Keeps the approved mockup visually compact on wide screens
   and prevents Hello Elementor container rules from expanding it.
   ========================================================= */
html, body.epg-child-theme{overflow-x:hidden}
body.epg-child-theme .front-page-content,
body.epg-child-theme > .site-header,
body.epg-child-theme > .site-footer{width:100%;max-width:100%;min-width:0}

body.epg-child-theme .epg-container{
  width:calc(100% - 40px)!important;
  max-width:1120px!important;
  margin-left:auto!important;
  margin-right:auto!important;
  padding-left:0!important;
  padding-right:0!important;
}

/* Hello Elementor applies width:100% to .site-header .header-inner.
   Force our approved boxed header width back in place. */
body.epg-child-theme > .site-header{
  height:74px!important;
  min-height:74px!important;
  padding:0!important;
}
body.epg-child-theme > .site-header .header-inner{
  width:calc(100% - 40px)!important;
  max-width:1120px!important;
  height:74px!important;
  min-height:74px!important;
  margin-inline:auto!important;
  padding:0!important;
  flex-wrap:nowrap!important;
}
body.epg-child-theme .epg-brand{min-width:245px;gap:9px}
body.epg-child-theme .epg-brand-icon{width:47px;height:41px}
body.epg-child-theme .epg-brand-name{font-size:24px}
body.epg-child-theme .epg-brand-sub{margin-top:6px;font-size:10px}
body.epg-child-theme .main-nav{gap:31px;font-size:16px}
body.epg-child-theme .main-nav a{padding:25px 0 22px}
body.epg-child-theme .main-nav a.active::after,
body.epg-child-theme .main-nav a:hover::after,
body.epg-child-theme .main-nav .nav-menu .current-menu-item>a::after,
body.epg-child-theme .main-nav .nav-menu .current_page_item>a::after{bottom:14px}
body.epg-child-theme .main-nav .nav-menu{gap:31px}

/* Hero proportions */
body.epg-child-theme .hero-grid{
  min-height:380px;
  grid-template-columns:minmax(0,1.04fr) minmax(0,.96fr);
}
body.epg-child-theme .hero-copy{padding:40px 34px 38px 0}
body.epg-child-theme .hero h1{font-size:clamp(43px,4vw,54px);line-height:1.01}
body.epg-child-theme .hero-text{max-width:555px;font-size:18px;line-height:1.42;margin:16px 0 20px}
body.epg-child-theme .hero-visual{min-height:380px;overflow:hidden}
body.epg-child-theme .hero-visual img{width:100%;height:380px;max-height:380px;object-fit:cover;object-position:center}
body.epg-child-theme .epg-btn{min-height:44px;padding-inline:19px;gap:16px}

/* Services — tighter like the approved mockup */
body.epg-child-theme .inkcraft{padding:28px 0 27px}
body.epg-child-theme .inkcraft-grid{grid-template-columns:315px minmax(0,1fr);gap:24px}
body.epg-child-theme .inkcraft-intro{padding-right:24px}
body.epg-child-theme .quill-mark{font-size:62px}
body.epg-child-theme .inkcraft h2{font-size:45px}
body.epg-child-theme .inkcraft-title p{font-size:14px}
body.epg-child-theme .inkcraft-intro>p{font-size:17px;line-height:1.35;margin:15px 0}
body.epg-child-theme .service-grid{min-width:0}
body.epg-child-theme .service-card{min-width:0;min-height:94px;font-size:13px;padding:8px 6px}
body.epg-child-theme .service-icon{font-size:32px;margin-bottom:6px}

/* Industries — fixed card proportions instead of wide stretched tiles */
body.epg-child-theme .industries{padding:27px 0 24px}
body.epg-child-theme .section-head{margin-bottom:19px}
body.epg-child-theme .section-head h2{font-size:39px}
body.epg-child-theme .section-head p:not(.eyebrow){font-size:16px;max-width:500px}
body.epg-child-theme .company-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
body.epg-child-theme .company-card{min-width:0;min-height:106px;padding:11px 12px}
body.epg-child-theme .company-card img{width:158px;height:54px;margin-bottom:5px}
body.epg-child-theme .company-card h3{font-size:12px}

/* Stats + footer kept compact */
body.epg-child-theme .stats-grid{padding:22px 0}
body.epg-child-theme .stat{gap:14px;padding:2px 22px}
body.epg-child-theme .stat-icon{font-size:31px}
body.epg-child-theme .stat strong{font-size:31px}
body.epg-child-theme > .site-footer{padding:26px 0 13px!important}
body.epg-child-theme .footer-grid{gap:34px;padding-bottom:21px}
body.epg-child-theme .footer-brand .epg-brand-name{font-size:21px}

@media (max-width:980px){
  body.epg-child-theme .main-nav,
  body.epg-child-theme .main-nav .nav-menu{gap:20px}
  body.epg-child-theme .inkcraft-grid{grid-template-columns:1fr}
  body.epg-child-theme .hero h1{font-size:46px}
}

@media (max-width:760px){
  body.epg-child-theme .epg-container,
  body.epg-child-theme > .site-header .header-inner{
    width:calc(100% - 30px)!important;
    max-width:680px!important;
  }
  body.epg-child-theme > .site-header,
  body.epg-child-theme > .site-header .header-inner{
    height:70px!important;
    min-height:70px!important;
  }
  body.epg-child-theme .epg-brand{min-width:0}
  body.epg-child-theme .epg-brand-icon{width:41px;height:36px}
  body.epg-child-theme .epg-brand-name{font-size:20px}
  body.epg-child-theme .main-nav{top:70px;width:100%;max-width:none}
  body.epg-child-theme .hero-grid{grid-template-columns:1fr;min-height:0}
  body.epg-child-theme .hero-copy{padding:36px 0 25px}
  body.epg-child-theme .hero h1{font-size:40px}
  body.epg-child-theme .hero-text{font-size:17px}
  body.epg-child-theme .hero-visual{height:260px;min-height:260px;margin:0 -15px}
  body.epg-child-theme .hero-visual img{height:260px;max-height:260px}
  body.epg-child-theme .service-card{min-height:90px}
  body.epg-child-theme .company-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}

@media (max-width:480px){
  body.epg-child-theme .epg-container,
  body.epg-child-theme > .site-header .header-inner{width:calc(100% - 24px)!important}
  body.epg-child-theme .epg-brand-name{font-size:17px}
  body.epg-child-theme .epg-brand-sub{font-size:8px}
  body.epg-child-theme .hero h1{font-size:35px}
  body.epg-child-theme .company-grid{grid-template-columns:1fr}
}


/* =========================================================
   v1.0.3 — Boxed desktop layout + balanced section spacing
   Fixes the wide / stretched appearance on large screens.
   ========================================================= */
:root{
  --epg-page-max:1160px;
  --epg-page-gutter:28px;
}

/* One consistent content width across header and every section. */
body.epg-child-theme .epg-container,
body.epg-child-theme > .site-header .header-inner{
  width:calc(100% - (var(--epg-page-gutter) * 2))!important;
  max-width:var(--epg-page-max)!important;
  margin-left:auto!important;
  margin-right:auto!important;
  padding-left:0!important;
  padding-right:0!important;
}

/* Header follows the same page box instead of looking full-stretched. */
body.epg-child-theme > .site-header{
  height:78px!important;
  min-height:78px!important;
  background:#fff!important;
}
body.epg-child-theme > .site-header .header-inner{
  height:78px!important;
  min-height:78px!important;
}
body.epg-child-theme .epg-brand{min-width:250px}
body.epg-child-theme .main-nav,
body.epg-child-theme .main-nav .nav-menu{gap:34px}
body.epg-child-theme .main-nav a{padding:27px 0 23px}
body.epg-child-theme .main-nav a.active::after,
body.epg-child-theme .main-nav a:hover::after,
body.epg-child-theme .main-nav .nav-menu .current-menu-item>a::after,
body.epg-child-theme .main-nav .nav-menu .current_page_item>a::after{bottom:15px}

/* Hero sits inside the page box with breathing room around it. */
body.epg-child-theme .hero{
  background:#fff;
  padding:22px 0 30px;
  overflow:visible;
}
body.epg-child-theme .hero-grid{
  min-height:372px;
  grid-template-columns:minmax(0,1.04fr) minmax(0,.96fr);
  background:linear-gradient(90deg,#faf7f1 0%,#faf7f1 51%,#ece4d6 51%,#ece4d6 100%);
  border:1px solid rgba(7,29,54,.07);
  border-radius:14px;
  overflow:hidden;
  box-shadow:0 12px 34px rgba(7,29,54,.055);
}
body.epg-child-theme .hero-copy{padding:42px 38px 40px 42px}
body.epg-child-theme .hero h1{font-size:clamp(42px,3.7vw,53px);line-height:1.02}
body.epg-child-theme .hero-text{font-size:18px;line-height:1.43;max-width:540px}
body.epg-child-theme .hero-visual,
body.epg-child-theme .hero-visual img{height:372px;min-height:372px;max-height:372px}
body.epg-child-theme .hero-visual img{object-fit:cover;object-position:center}

/* Services: more side breathing room and cleaner proportions. */
body.epg-child-theme .inkcraft{padding:40px 0 42px;background:#fff}
body.epg-child-theme .inkcraft-grid{
  grid-template-columns:320px minmax(0,1fr);
  gap:34px;
  align-items:center;
}
body.epg-child-theme .inkcraft-intro{padding-right:32px}
body.epg-child-theme .inkcraft-intro>p{font-size:17px;line-height:1.42;margin:16px 0 20px}
body.epg-child-theme .service-grid{border-radius:10px;overflow:hidden;border-top:1px solid var(--line)}
body.epg-child-theme .service-card{min-height:96px;padding:10px 9px}

/* Industries: larger gaps between cards so the grid does not feel stretched. */
body.epg-child-theme .industries{padding:44px 0 46px}
body.epg-child-theme .section-head{margin-bottom:25px}
body.epg-child-theme .company-grid{gap:16px}
body.epg-child-theme .company-card{
  min-height:112px;
  padding:14px 16px;
  border-radius:10px;
}
body.epg-child-theme .company-card img{width:155px;height:56px;margin-bottom:6px}

/* Keep the statistics inside the exact same content box. */
body.epg-child-theme .stats{
  background:#fff;
  padding:0 0 34px;
  border-bottom:0;
}
body.epg-child-theme .stats-grid{
  background:linear-gradient(90deg,#06192d,#071d36 52%,#082442);
  border-radius:12px;
  padding:24px 20px;
  overflow:hidden;
  box-shadow:0 12px 30px rgba(7,29,54,.08);
}
body.epg-child-theme .stat{padding:4px 24px}

/* Footer remains full-bleed, while all footer columns align to the page box. */
body.epg-child-theme > .site-footer{padding:38px 0 18px!important}
body.epg-child-theme .footer-grid{gap:42px;padding-bottom:29px}
body.epg-child-theme .footer-bottom{padding-top:19px}

@media (max-width:1200px){
  :root{--epg-page-gutter:24px}
  body.epg-child-theme .hero-copy{padding-left:34px;padding-right:30px}
  body.epg-child-theme .main-nav,
  body.epg-child-theme .main-nav .nav-menu{gap:27px}
}

@media (max-width:980px){
  :root{--epg-page-gutter:22px}
  body.epg-child-theme .hero-grid{min-height:350px}
  body.epg-child-theme .hero-visual,
  body.epg-child-theme .hero-visual img{height:350px;min-height:350px;max-height:350px}
  body.epg-child-theme .inkcraft-grid{grid-template-columns:1fr;gap:26px}
  body.epg-child-theme .inkcraft-intro{padding:0 0 26px;border-right:0;border-bottom:1px solid var(--line)}
}

@media (max-width:760px){
  :root{--epg-page-gutter:15px}
  body.epg-child-theme .epg-container,
  body.epg-child-theme > .site-header .header-inner{
    width:calc(100% - (var(--epg-page-gutter) * 2))!important;
    max-width:680px!important;
  }
  body.epg-child-theme > .site-header,
  body.epg-child-theme > .site-header .header-inner{height:70px!important;min-height:70px!important}
  body.epg-child-theme .main-nav{top:70px}
  body.epg-child-theme .hero{padding:15px 0 24px}
  body.epg-child-theme .hero-grid{grid-template-columns:1fr;border-radius:10px}
  body.epg-child-theme .hero-copy{padding:34px 25px 27px}
  body.epg-child-theme .hero-visual{margin:0;height:255px;min-height:255px}
  body.epg-child-theme .hero-visual img{height:255px;min-height:255px;max-height:255px}
  body.epg-child-theme .inkcraft{padding:32px 0 34px}
  body.epg-child-theme .industries{padding:34px 0 36px}
  body.epg-child-theme .company-grid{gap:12px}
  body.epg-child-theme .stats{padding-bottom:26px}
  body.epg-child-theme .stats-grid{border-radius:10px;padding:18px 10px}
}

@media (max-width:480px){
  :root{--epg-page-gutter:12px}
  body.epg-child-theme .hero-copy{padding:30px 20px 24px}
  body.epg-child-theme .hero h1{font-size:34px}
  body.epg-child-theme .section-head h2{font-size:34px}
}


/* =========================================================
   v1.0.4 — Typography + proportion refinement
   Taller cards, larger readable text and a more balanced footer.
   ========================================================= */

/* Keep the approved boxed page width, but improve breathing room. */
body.epg-child-theme .epg-container,
body.epg-child-theme > .site-header .header-inner{
  max-width:1160px!important;
}

/* InkCraft: make the section feel substantial instead of horizontally stretched. */
body.epg-child-theme .inkcraft{
  padding:52px 0 54px;
}
body.epg-child-theme .inkcraft-grid{
  grid-template-columns:320px minmax(0,1fr);
  gap:38px;
  align-items:center;
}
body.epg-child-theme .inkcraft-intro{
  padding:10px 34px 10px 0;
}
body.epg-child-theme .quill-mark{
  font-size:68px;
}
body.epg-child-theme .inkcraft h2{
  font-size:50px;
  line-height:.95;
}
body.epg-child-theme .inkcraft-title p{
  font-size:16px;
  line-height:1.35;
  margin-top:8px;
}
body.epg-child-theme .inkcraft-intro>p{
  font-size:19px;
  line-height:1.43;
  margin:20px 0 24px;
}
body.epg-child-theme .inkcraft .epg-btn{
  min-height:48px;
  padding:0 22px;
  font-size:14px;
}
body.epg-child-theme .service-grid{
  border-radius:12px;
  box-shadow:0 8px 24px rgba(7,29,54,.035);
}
body.epg-child-theme .service-card{
  min-height:122px;
  padding:15px 10px;
  font-size:15px;
  line-height:1.25;
}
body.epg-child-theme .service-icon{
  font-size:36px;
  margin-bottom:10px;
}

/* Industries: taller cards + larger company names to remove the flat/stretched look. */
body.epg-child-theme .industries{
  padding:52px 0 55px;
}
body.epg-child-theme .section-head{
  margin-bottom:28px;
}
body.epg-child-theme .section-head h2{
  font-size:44px;
  line-height:1.04;
}
body.epg-child-theme .section-head p:not(.eyebrow){
  font-size:18px;
  line-height:1.38;
  max-width:560px;
  margin-top:9px;
}
body.epg-child-theme .text-link{
  font-size:17px;
}
body.epg-child-theme .company-grid{
  gap:18px;
}
body.epg-child-theme .company-card{
  min-height:142px;
  padding:20px 18px;
  border-radius:12px;
  box-shadow:0 7px 20px rgba(7,29,54,.045);
}
body.epg-child-theme .company-card img{
  width:172px;
  height:66px;
  margin-bottom:10px;
}
body.epg-child-theme .company-card h3{
  font-size:15px;
  line-height:1.28;
  font-weight:600;
}

/* Statistics text also gets a small readability lift. */
body.epg-child-theme .stats-grid{
  padding:29px 22px;
}
body.epg-child-theme .stat{
  gap:17px;
  padding:5px 24px;
}
body.epg-child-theme .stat-icon{
  font-size:34px;
}
body.epg-child-theme .stat strong{
  font-size:34px;
}
body.epg-child-theme .stat small{
  font-size:13px;
  line-height:1.35;
  margin-top:8px;
}

/* Footer: increase typography and vertical spacing without losing the compact premium look. */
body.epg-child-theme > .site-footer{
  padding:48px 0 24px!important;
}
body.epg-child-theme .footer-grid{
  grid-template-columns:1.35fr .8fr .85fr 1.1fr;
  gap:46px;
  padding-bottom:34px;
}
body.epg-child-theme .footer-brand .epg-brand-name{
  font-size:25px;
}
body.epg-child-theme .footer-brand .epg-brand-sub{
  font-size:10px;
}
body.epg-child-theme .footer-brand-col>p{
  font-size:15px;
  line-height:1.55;
  max-width:320px;
}
body.epg-child-theme .footer-grid h4{
  font-size:16px;
  margin:8px 0 18px;
}
body.epg-child-theme .footer-grid>div:not(:first-child)>a{
  font-size:14px;
  line-height:1.35;
  margin-bottom:12px;
}
body.epg-child-theme .contact-col p{
  font-size:14px;
  line-height:1.45;
  margin-bottom:12px;
}
body.epg-child-theme .socials a{
  font-size:18px;
}
body.epg-child-theme .footer-bottom{
  padding-top:22px;
  font-size:13px;
  line-height:1.4;
}

@media (max-width:980px){
  body.epg-child-theme .inkcraft{padding:44px 0 46px}
  body.epg-child-theme .inkcraft-grid{grid-template-columns:1fr;gap:30px}
  body.epg-child-theme .inkcraft-intro{padding:0 0 30px}
  body.epg-child-theme .service-card{min-height:112px;font-size:15px}
  body.epg-child-theme .company-card{min-height:136px}
  body.epg-child-theme .footer-grid{gap:34px}
}

@media (max-width:760px){
  body.epg-child-theme .inkcraft{padding:38px 0 40px}
  body.epg-child-theme .inkcraft h2{font-size:44px}
  body.epg-child-theme .inkcraft-intro>p{font-size:18px}
  body.epg-child-theme .service-card{min-height:108px;padding:14px 8px}
  body.epg-child-theme .industries{padding:40px 0 42px}
  body.epg-child-theme .section-head h2{font-size:38px}
  body.epg-child-theme .section-head p:not(.eyebrow){font-size:17px}
  body.epg-child-theme .company-card{min-height:132px;padding:18px 14px}
  body.epg-child-theme .company-card h3{font-size:14px}
  body.epg-child-theme > .site-footer{padding:40px 0 22px!important}
  body.epg-child-theme .footer-grid h4{font-size:16px}
  body.epg-child-theme .footer-grid>div:not(:first-child)>a,
  body.epg-child-theme .contact-col p{font-size:14px}
}

@media (max-width:480px){
  body.epg-child-theme .inkcraft h2{font-size:39px}
  body.epg-child-theme .service-card{min-height:104px;font-size:14px}
  body.epg-child-theme .company-card{min-height:140px}
  body.epg-child-theme .company-card img{width:180px;height:70px}
  body.epg-child-theme .company-card h3{font-size:15px}
  body.epg-child-theme .footer-brand-col>p{font-size:14px}
  body.epg-child-theme .footer-bottom{font-size:12px}
}


/* =========================================================
   v1.0.5 — Compact services + industries grids
   Prevents these two desktop sections from feeling stretched.
   ========================================================= */
@media (min-width:981px){
  /* Keep these content groups deliberately narrower than the header/hero. */
  body.epg-child-theme .inkcraft > .epg-container{
    width:calc(100% - 64px)!important;
    max-width:1080px!important;
  }
  body.epg-child-theme .industries > .epg-container{
    width:calc(100% - 64px)!important;
    max-width:1100px!important;
  }

  /* InkCraft: compact 5-column service matrix instead of filling every pixel. */
  body.epg-child-theme .inkcraft-grid{
    grid-template-columns:300px minmax(0,740px);
    justify-content:center;
    gap:32px;
    align-items:center;
  }
  body.epg-child-theme .inkcraft-intro{
    padding:8px 28px 8px 0;
  }
  body.epg-child-theme .service-grid{
    width:740px;
    max-width:100%;
    grid-template-columns:repeat(5,148px);
    justify-self:end;
  }
  body.epg-child-theme .service-card{
    min-height:116px;
    padding:14px 8px;
  }

  /* Industries: fixed, centered card widths for a tighter premium grid. */
  body.epg-child-theme .industries .section-head{
    width:1034px;
    max-width:100%;
    margin-left:auto;
    margin-right:auto;
    margin-bottom:26px;
  }
  body.epg-child-theme .company-grid{
    grid-template-columns:repeat(4,245px);
    justify-content:center;
    gap:18px;
  }
  body.epg-child-theme .company-card{
    min-height:136px;
    padding:18px 15px;
  }
  body.epg-child-theme .company-card img{
    width:164px;
    height:62px;
    margin-bottom:8px;
  }
}

@media (max-width:1120px) and (min-width:981px){
  body.epg-child-theme .inkcraft-grid{
    grid-template-columns:285px minmax(0,1fr);
    gap:28px;
  }
  body.epg-child-theme .service-grid{
    width:100%;
    grid-template-columns:repeat(5,minmax(0,1fr));
  }
  body.epg-child-theme .company-grid{
    grid-template-columns:repeat(4,minmax(0,1fr));
  }
  body.epg-child-theme .industries .section-head{
    width:100%;
  }
}
