/*
Theme Name: G-Consulting Modern
Theme URI: https://gconsultingisl.com/
Author: G-Consulting International Services Ltd
Description: Accessible claymorphic redesign for G-Consulting International Services Ltd.
Version: 1.1.3
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: gconsult-modern
*/

:root {
  --brand: #6f3fd1;
  --brand-strong: #5424b2;
  --brand-soft: #ece4ff;
  --accent: #f4b740;
  --ink: #1c1730;
  --muted: #6c6680;
  --surface: #f5f1ff;
  --surface-strong: #fff;
  --line: rgba(91, 56, 154, .14);
  --shadow: 14px 14px 34px rgba(70, 43, 120, .13), -10px -10px 28px rgba(255, 255, 255, .92);
  --shadow-soft: 7px 7px 18px rgba(70, 43, 120, .12), -6px -6px 16px rgba(255, 255, 255, .85);
  --radius: 28px;
  --max: 1240px;
  color-scheme: light;
}

[data-theme="dark"] {
  --brand: #9d77f3;
  --brand-strong: #c8b3ff;
  --brand-soft: #2b2045;
  --accent: #f7c55d;
  --ink: #f7f2ff;
  --muted: #c1b8d5;
  --surface: #120e1a;
  --surface-strong: #1b1527;
  --line: rgba(201, 178, 255, .18);
  --shadow: 14px 14px 32px rgba(0, 0, 0, .35), -8px -8px 24px rgba(91, 68, 130, .12);
  --shadow-soft: 7px 7px 18px rgba(0, 0, 0, .3), -5px -5px 14px rgba(91, 68, 130, .1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--surface); color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 16px; line-height: 1.7; transition: background .25s ease, color .25s ease; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--brand-strong); text-decoration-thickness: .08em; text-underline-offset: .18em; }
button, input, textarea, select { font: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.screen-reader-text, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link:focus { position: fixed; z-index: 9999; top: 12px; left: 12px; background: var(--surface-strong); color: var(--ink); padding: 10px 16px; border-radius: 12px; }
.wrap { width: min(calc(100% - 32px), var(--max)); margin-inline: auto; }
.site-header { position: absolute; z-index: 50; top: 0; left: 0; right: 0; padding-top: 22px; }
.admin-bar .site-header { top: 32px; }
.nav-shell { min-height: 88px; display: flex; align-items: center; gap: 24px; padding: 14px 18px 14px 24px; border: 1px solid rgba(255,255,255,.58); border-radius: 999px; background: rgba(255,255,255,.9); color: #211a31; box-shadow: 0 18px 60px rgba(25,13,49,.22); backdrop-filter: blur(18px); }
[data-theme="dark"] .nav-shell { background: rgba(250,248,253,.96); color: #211a31; border-color: rgba(112,63,209,.18); }
.site-brand { flex: 0 0 auto; display: inline-flex; align-items: center; text-decoration: none; }
.site-brand img { width: auto; max-width: 230px; height: 54px; object-fit: contain; }
.site-title-text { font-weight: 900; color: inherit; letter-spacing: -.03em; }
.primary-nav { margin-left: auto; }
.primary-nav ul { display: flex; align-items: center; gap: 3px; list-style: none; padding: 0; margin: 0; }
.primary-nav li { position: relative; }
.primary-nav a { display: block; padding: 12px 13px; color: inherit; font-size: .79rem; font-weight: 800; letter-spacing: .025em; text-decoration: none; text-transform: uppercase; border-radius: 999px; }
.primary-nav a:hover, .primary-nav .current-menu-item > a, .primary-nav .current-menu-ancestor > a { color: var(--brand-strong); background: var(--brand-soft); }
.primary-nav .sub-menu { display: none; position: absolute; top: calc(100% + 10px); left: 0; min-width: 230px; padding: 10px; border-radius: 20px; background: var(--surface-strong); box-shadow: var(--shadow); }
.primary-nav li:hover > .sub-menu, .primary-nav li:focus-within > .sub-menu { display: block; }
.primary-nav .sub-menu a { color: var(--ink); text-transform: none; letter-spacing: 0; }
.submenu-toggle { display: none; }
.theme-toggle, .menu-toggle { flex: 0 0 46px; width: 46px; height: 46px; border: 0; border-radius: 50%; background: var(--brand-soft); color: var(--brand-strong); box-shadow: inset 2px 2px 5px rgba(87,49,158,.12), inset -2px -2px 5px rgba(255,255,255,.7); cursor: pointer; }
.menu-toggle { display: none; }
.hero { position: relative; min-height: 760px; overflow: hidden; background: #171023; }
.hero-slide { position: absolute; inset: 0; display: grid; align-items: end; opacity: 0; visibility: hidden; transition: opacity .75s ease; background-position: center; background-size: cover; }
.hero-slide.is-active { opacity: 1; visibility: visible; }
.hero-slide::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(17,8,31,.94) 0%, rgba(39,17,69,.76) 44%, rgba(22,10,38,.18) 100%); }
.hero-content { position: relative; z-index: 2; max-width: 780px; padding: 190px 0 105px; color: #fff; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 20px; font-size: .78rem; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; color: #e8dcff; }
.eyebrow::before { content: ""; width: 38px; height: 3px; border-radius: 99px; background: var(--accent); }
.hero h1 { max-width: 760px; margin: 0; font-size: clamp(3rem, 7vw, 6.8rem); line-height: .94; letter-spacing: -.065em; text-wrap: balance; }
.hero p { max-width: 640px; margin: 24px 0 32px; font-size: clamp(1rem, 2vw, 1.22rem); color: rgba(255,255,255,.86); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 22px; border: 1px solid transparent; border-radius: 999px; background: var(--brand); color: #fff; font-weight: 850; text-decoration: none; box-shadow: 0 12px 28px rgba(82,35,176,.28); transition: transform .2s ease, box-shadow .2s ease; }
.button:hover { transform: translateY(-2px); color: #fff; box-shadow: 0 16px 34px rgba(82,35,176,.36); }
.button-secondary { background: rgba(255,255,255,.13); border-color: rgba(255,255,255,.32); backdrop-filter: blur(8px); margin-left: 10px; }
.hero-dots { position: absolute; z-index: 4; bottom: 38px; left: 50%; display: flex; gap: 9px; transform: translateX(-50%); }
.hero-dot { width: 11px; height: 11px; padding: 0; border: 2px solid #fff; border-radius: 50%; background: transparent; cursor: pointer; }
.hero-dot.is-active { width: 34px; border-radius: 99px; background: #fff; }
.section { padding: clamp(70px, 9vw, 120px) 0; }
.section-tight { padding: 54px 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 42px; }
.section-head h2, .entry-title { margin: 0; font-size: clamp(2rem, 4.5vw, 4rem); line-height: 1.04; letter-spacing: -.05em; text-wrap: balance; }
.section-head p { max-width: 620px; margin: 0; color: var(--muted); }
.clay-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.clay-card { position: relative; padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); overflow: hidden; transition: transform .25s ease, box-shadow .25s ease; }
.clay-card:hover { transform: translateY(-7px); box-shadow: 18px 22px 42px rgba(70,43,120,.16), -10px -10px 28px rgba(255,255,255,.9); }
[data-theme="dark"] .clay-card:hover { box-shadow: 18px 22px 42px rgba(0,0,0,.4), -8px -8px 24px rgba(91,68,130,.1); }
.clay-card::after { content: ""; position: absolute; width: 120px; height: 120px; right: -50px; bottom: -55px; border-radius: 50%; background: var(--brand-soft); opacity: .72; }
.clay-card h3 { position: relative; z-index: 1; margin: 18px 0 10px; font-size: 1.28rem; line-height: 1.25; }
.clay-card p { position: relative; z-index: 1; color: var(--muted); }
.card-number { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 17px; background: var(--brand-soft); color: var(--brand-strong); font-weight: 900; box-shadow: var(--shadow-soft); }
.feature-band { background: var(--brand-strong); color: #fff; }
.feature-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.feature-grid img { width: 100%; min-height: 440px; object-fit: cover; border-radius: 36px; box-shadow: 18px 18px 0 rgba(255,255,255,.12); }
.feature-copy h2 { margin: 0 0 22px; font-size: clamp(2.5rem, 5vw, 5rem); line-height: .98; letter-spacing: -.055em; }
.feature-copy p { color: rgba(255,255,255,.8); }
.link-arrow { position: relative; z-index: 1; display: inline-flex; gap: 8px; align-items: center; font-weight: 850; text-decoration: none; }
.posts-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px; }
.post-card { display: flex; flex-direction: column; min-height: 100%; border-radius: var(--radius); background: var(--surface-strong); box-shadow: var(--shadow-soft); overflow: hidden; }
.post-card-media { aspect-ratio: 16 / 10; background: var(--brand-soft); overflow: hidden; }
.post-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.post-card:hover img { transform: scale(1.04); }
.post-card-body { display: flex; flex: 1; flex-direction: column; padding: 24px; }
.post-card h3 { margin: 8px 0 12px; font-size: 1.28rem; line-height: 1.25; }
.post-card h3 a { color: var(--ink); text-decoration: none; }
.post-card .link-arrow { margin-top: auto; }
.meta { color: var(--muted); font-size: .82rem; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.cta { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: clamp(32px, 5vw, 58px); border-radius: 38px; background: var(--surface); box-shadow: var(--shadow); }
.cta h2 { max-width: 760px; margin: 0; font-size: clamp(2rem, 4.2vw, 4.2rem); line-height: 1; letter-spacing: -.055em; }
.page-hero { padding: 180px 0 74px; background: linear-gradient(145deg, var(--brand-soft), var(--surface)); border-bottom: 1px solid var(--line); }
.breadcrumbs { margin-bottom: 14px; color: var(--muted); font-size: .85rem; }
.content-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 54px; }
.content-card { padding: clamp(26px, 5vw, 58px); border-radius: var(--radius); background: var(--surface-strong); box-shadow: var(--shadow-soft); }
.entry-content > * { max-width: 100%; }
.entry-content h2, .entry-content h3 { line-height: 1.15; letter-spacing: -.03em; }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th, .entry-content td { padding: 12px; border: 1px solid var(--line); text-align: left; }
.entry-content input:not([type=submit]), .entry-content textarea, .entry-content select, .search-field { width: 100%; padding: 13px 15px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--ink); }
.sidebar-card { position: sticky; top: 24px; padding: 26px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-soft); }
.pagination .nav-links { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 40px; }
.page-numbers { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border-radius: 14px; background: var(--surface-strong); box-shadow: var(--shadow-soft); text-decoration: none; }
.page-numbers.current { background: var(--brand); color: #fff; }
.site-footer { margin-top: 80px; padding: 64px 0 26px; background: #181122; color: #ded4ee; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 44px; }
.footer-brand img { max-width: 230px; max-height: 60px; object-fit: contain; }
.footer-menu { list-style: none; padding: 0; margin: 0; }
.footer-menu a { color: #ded4ee; text-decoration: none; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); font-size: .86rem; color: #a99fba; }
.social-proof { display: flex; gap: 24px; flex-wrap: wrap; margin-top: 30px; color: rgba(255,255,255,.84); font-weight: 750; }
[data-theme="dark"] .clay-card,
[data-theme="dark"] .content-card,
[data-theme="dark"] .post-card,
[data-theme="dark"] .sidebar-card,
[data-theme="dark"] .cta { background: var(--surface-strong); color: var(--ink); }
[data-theme="dark"] .entry-content,
[data-theme="dark"] .entry-content p,
[data-theme="dark"] .entry-content li,
[data-theme="dark"] .entry-content h1,
[data-theme="dark"] .entry-content h2,
[data-theme="dark"] .entry-content h3,
[data-theme="dark"] .entry-content h4 { color: var(--ink) !important; }
[data-theme="dark"] .entry-content [style*="background-color"] { background-color: transparent !important; }
[data-theme="dark"] .entry-content [style*="color: #000"],
[data-theme="dark"] .entry-content [style*="color:#000"] { color: var(--ink) !important; }
[data-theme="dark"] .wpcf7 label { color: var(--ink); }

@media (max-width: 1100px) {
  body.menu-is-open { overflow: hidden; }
  .menu-toggle { display: inline-grid; place-items: center; }
  .primary-nav { display: none; position: absolute; top: 102px; left: 16px; right: 16px; padding: 14px; border-radius: 26px; background: var(--surface-strong); box-shadow: var(--shadow); }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { display: block; }
  .primary-nav li.menu-item-has-children { display: grid; grid-template-columns: minmax(0, 1fr) 42px; align-items: center; }
  .primary-nav a { color: var(--ink); font-size: .9rem; }
  .primary-nav .submenu-toggle { display: inline-grid; place-items: center; width: 38px; height: 38px; margin-right: 4px; border: 0; border-radius: 50%; background: var(--brand-soft); color: var(--brand-strong); font-weight: 900; cursor: pointer; transition: transform .2s ease; }
  .primary-nav li.submenu-open > .submenu-toggle { transform: rotate(180deg); }
  .primary-nav .sub-menu { display: none; position: static; grid-column: 1 / -1; padding: 3px 0 9px 14px; background: transparent; box-shadow: none; }
  .primary-nav li.submenu-open > .sub-menu { display: block; }
  .primary-nav .sub-menu a { padding-block: 8px; font-size: .84rem; }
  .site-brand img { max-width: 190px; }
  .clay-grid, .posts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1200px) {
  .nav-shell { padding-inline: 28px 18px; }
  .primary-nav ul { gap: 5px; }
  .primary-nav a { padding-inline: 15px; }
  .hero { min-height: 820px; }
  .hero-content { max-width: 820px; padding-bottom: 118px; }
  .hero h1 { font-size: clamp(4.8rem, 6vw, 6.15rem); max-width: 810px; }
  .hero p { max-width: 670px; font-size: 1.18rem; }
  .section-head { margin-bottom: 52px; }
  .clay-grid { gap: 30px; }
  .clay-card { min-height: 300px; padding: 36px; }
  .feature-grid { gap: 76px; }
  .posts-grid { gap: 30px; }
}
@media (max-width: 760px) {
  .admin-bar .site-header { top: 46px; }
  .wrap { width: min(calc(100% - 22px), var(--max)); }
  .site-header { padding-top: 12px; }
  .nav-shell { min-height: 66px; padding: 8px 9px 8px 14px; gap: 7px; }
  .site-brand { min-width: 0; margin-right: auto; }
  .site-brand img { max-width: 125px; height: 38px; }
  .theme-toggle, .menu-toggle { width: 40px; height: 40px; flex-basis: 40px; }
  .primary-nav { top: 80px; left: 11px; right: 11px; max-height: calc(100vh - 102px); overflow-y: auto; }
  .hero { min-height: 720px; }
  .hero-slide { background-position: 64% center; }
  .hero-slide::before { background: linear-gradient(90deg, rgba(16,8,29,.96) 0%, rgba(37,16,65,.86) 64%, rgba(20,9,34,.48) 100%); }
  .hero-content { max-width: 92%; padding: 132px 4px 92px; }
  .hero h1 { font-size: clamp(2.45rem, 12.5vw, 3.75rem); line-height: .98; }
  .hero p { margin: 18px 0 24px; font-size: .98rem; line-height: 1.58; }
  .hero .button { width: 100%; }
  .button-secondary { margin: 10px 0 0; }
  .hero-dots { bottom: 24px; }
  .section-head { display: block; }
  .section-head p { margin-top: 15px; }
  .clay-grid, .posts-grid, .feature-grid, .footer-grid, .content-layout { grid-template-columns: 1fr; }
  .feature-grid img { min-height: 300px; }
  .cta { align-items: flex-start; flex-direction: column; }
  .footer-bottom { flex-direction: column; }
}
@media (max-width: 380px) {
  .site-brand img { max-width: 108px; }
  .theme-toggle, .menu-toggle { width: 37px; height: 37px; flex-basis: 37px; }
  .hero h1 { font-size: 2.28rem; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; } }
