/*
Theme Name: MrAlale Software Services
Theme URI: https://example.com/
Author: MrAlale Software Services
Author URI: https://example.com/
Description: A modern, responsive blue, charcoal, ash, and yellow WordPress theme for a software development company. Includes Home, About, Services, and Contact layouts and Contact Form 7 styling.
Version: 1.4.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: mralale-software-services
*/

/* ==========================================================
   MRALALE SOFTWARE SERVICES — GLOBAL DESIGN SYSTEM
   Palette: blue, ash, charcoal, white, yellow accent. No green.
   ========================================================== */
:root {
  --mr-blue: #174EA6;
  --mr-blue-light: #2D6BC7;
  --mr-blue-dark: #0B2C5F;
  --mr-charcoal: #101820;
  --mr-charcoal-2: #182432;
  --mr-ash: #F1F3F5;
  --mr-ash-2: #E6EAF0;
  --mr-white: #FFFFFF;
  --mr-yellow: #F5C542;
  --mr-yellow-dark: #D9A91B;
  --mr-text: #344054;
  --mr-muted: #667085;
  --mr-border: #DCE2EA;
  --mr-radius: 16px;
  --mr-shadow: 0 18px 50px rgba(16, 24, 32, .10);
  --mr-shadow-small: 0 8px 24px rgba(16, 24, 32, .07);
  --mr-container: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body {
  margin: 0;
  color: var(--mr-text);
  background: var(--mr-white);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body, button, input, select, textarea { font-family: Inter, "Segoe UI", Arial, sans-serif; }
img { max-width: 100%; height: auto; }
svg { max-width: 100%; }
a { color: var(--mr-blue); text-decoration: none; transition: color .2s ease, background-color .2s ease, border-color .2s ease, transform .2s ease; }
a:hover { color: var(--mr-blue-dark); }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--mr-yellow); outline-offset: 3px; }
::selection { color: var(--mr-charcoal); background: var(--mr-yellow); }

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 18px;
  color: var(--mr-charcoal);
  font-weight: 750;
  line-height: 1.16;
  letter-spacing: -.035em;
}
h1 { font-size: clamp(2.4rem, 5.2vw, 4.45rem); }
h2 { font-size: clamp(1.9rem, 3.3vw, 3rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
p { margin: 0 0 18px; }
.container { width: min(var(--mr-container), calc(100% - 48px)); margin-inline: auto; }
.section { padding: clamp(64px, 8vw, 108px) 0; }
.section--ash { background: var(--mr-ash); }
.section--dark { background: var(--mr-charcoal); color: #D8E0EA; }
.section--dark h2, .section--dark h3 { color: var(--mr-white); }
.section-heading { max-width: 760px; margin: 0 auto 46px; text-align: center; }
.section-heading p { color: var(--mr-muted); max-width: 660px; margin: 0 auto; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px; color: var(--mr-blue); font-size: .76rem; font-weight: 800; line-height: 1.4; letter-spacing: .17em; text-transform: uppercase; }
.eyebrow::before { content: ""; display: inline-block; width: 25px; height: 3px; background: var(--mr-yellow); border-radius: 4px; }
.text-muted { color: var(--mr-muted); }

/* Buttons */
.btn, .wp-element-button, .wp-block-button__link, button[type="submit"], input[type="submit"] {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 49px; padding: 12px 22px; border: 1px solid var(--mr-blue); border-radius: 8px;
  background: var(--mr-blue); color: var(--mr-white); font-size: .94rem; font-weight: 750; line-height: 1.25;
  text-align: center; box-shadow: 0 7px 18px rgba(23, 78, 166, .16); cursor: pointer;
  transition: transform .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.btn:hover, .wp-element-button:hover, .wp-block-button__link:hover, button[type="submit"]:hover, input[type="submit"]:hover { background: var(--mr-blue-dark); border-color: var(--mr-blue-dark); color: var(--mr-white); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(23, 78, 166, .23); }
.btn--yellow { background: var(--mr-yellow); border-color: var(--mr-yellow); color: var(--mr-charcoal); box-shadow: none; }
.btn--yellow:hover { background: #FFD966; border-color: #FFD966; color: var(--mr-charcoal); }
.btn--outline { background: transparent; border-color: rgba(255,255,255,.45); color: var(--mr-white); box-shadow: none; }
.btn--outline:hover { background: rgba(255,255,255,.08); border-color: var(--mr-yellow); color: var(--mr-white); }
.btn-arrow { font-size: 1.15em; transition: transform .2s ease; }
a:hover .btn-arrow { transform: translateX(4px); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 999; width: 100%; background: rgba(255,255,255,.96); border-bottom: 1px solid rgba(220,226,234,.85); backdrop-filter: blur(14px); transition: box-shadow .2s ease, background .2s ease; }
.site-header.is-scrolled { box-shadow: 0 8px 30px rgba(16,24,32,.09); }
.admin-bar .site-header { top: 32px; }
.header-inner { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 26px; }
.brand { min-width: 0; display: inline-flex; align-items: center; gap: 12px; color: var(--mr-charcoal); }
.brand:hover { color: var(--mr-blue); }
.brand-mark { display: grid; place-items: center; flex: 0 0 43px; width: 43px; height: 43px; border-radius: 12px; background: linear-gradient(140deg, var(--mr-blue), var(--mr-blue-dark)); color: var(--mr-white); font-size: 1rem; font-weight: 900; letter-spacing: -.08em; box-shadow: 0 6px 15px rgba(23,78,166,.22); }
.brand-copy { display: flex; flex-direction: column; line-height: 1.18; }
.brand-name { color: var(--mr-charcoal); font-size: 1.04rem; font-weight: 850; letter-spacing: -.025em; }
.brand-descriptor { color: var(--mr-muted); font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-top: 5px; }
.custom-logo-link { display: inline-flex; align-items: center; }
.custom-logo { width: auto; max-width: 210px; max-height: 58px; object-fit: contain; }
.primary-nav { display: flex; align-items: center; gap: 5px; }
.primary-nav ul { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.primary-nav li { margin: 0; padding: 0; }
.primary-nav a { display: inline-flex; align-items: center; padding: 11px 13px; color: var(--mr-charcoal); font-size: .91rem; font-weight: 700; border-radius: 7px; }
.primary-nav a:hover, .primary-nav .current-menu-item > a, .primary-nav .current_page_item > a { color: var(--mr-blue); background: #EDF3FC; }
.header-cta { flex: 0 0 auto; min-height: 43px; padding: 10px 16px; font-size: .88rem; }
.nav-toggle { display: none; place-items: center; width: 45px; height: 45px; border: 1px solid var(--mr-border); border-radius: 9px; color: var(--mr-charcoal); background: var(--mr-white); box-shadow: none; }
.nav-toggle:hover { background: var(--mr-ash); border-color: var(--mr-border); color: var(--mr-charcoal); transform: none; box-shadow: none; }
.nav-toggle-lines, .nav-toggle-lines::before, .nav-toggle-lines::after { display: block; width: 19px; height: 2px; position: relative; background: currentColor; border-radius: 2px; }
.nav-toggle-lines::before, .nav-toggle-lines::after { content: ""; position: absolute; left: 0; }
.nav-toggle-lines::before { top: -6px; }
.nav-toggle-lines::after { top: 6px; }

/* Hero */
.hero { position: relative; isolation: isolate; overflow: hidden; padding: clamp(68px, 8vw, 112px) 0 78px; background: radial-gradient(circle at 84% 20%, rgba(45,107,199,.12), transparent 30%), linear-gradient(125deg, #F1F3F5 0%, #FFFFFF 58%, #EAF1FC 100%); }
.hero::before { content: ""; position: absolute; z-index: -1; width: 360px; height: 360px; right: -140px; bottom: -210px; border: 1px solid rgba(23,78,166,.15); border-radius: 50%; box-shadow: 0 0 0 35px rgba(23,78,166,.035), 0 0 0 70px rgba(23,78,166,.025); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(360px, .96fr); align-items: center; gap: clamp(35px, 6vw, 78px); }
.hero-copy { max-width: 690px; }
.hero-copy h1 { margin-bottom: 24px; }
.hero-copy h1 .accent { color: var(--mr-blue); }
.hero-copy > p { max-width: 625px; margin-bottom: 28px; color: #536071; font-size: clamp(1rem, 1.3vw, 1.12rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 31px; }
.hero .btn--outline { color: var(--mr-blue); border-color: #C6D2E2; }
.hero .btn--outline:hover { color: var(--mr-blue-dark); background: #FFFFFF; border-color: var(--mr-blue); }
.hero-proof { display: flex; flex-wrap: wrap; gap: 12px 22px; padding-top: 20px; border-top: 1px solid var(--mr-border); color: #536071; font-size: .81rem; font-weight: 700; }
.hero-proof span::before { content: "✓"; display: inline-grid; place-items: center; width: 19px; height: 19px; margin-right: 7px; border-radius: 50%; color: var(--mr-charcoal); background: var(--mr-yellow); font-size: .7rem; }
.code-card { overflow: hidden; border: 1px solid #294669; border-radius: 17px; background: linear-gradient(145deg, #142C49, #0D1724); box-shadow: 0 28px 70px rgba(11,44,95,.23); transform: perspective(1100px) rotateY(-4deg) rotateX(2deg); }
.code-card-top { display: flex; align-items: center; gap: 7px; padding: 16px 19px; color: #BAC9DC; background: rgba(255,255,255,.035); border-bottom: 1px solid rgba(255,255,255,.1); font-size: .72rem; }
.code-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--mr-yellow); }
.code-dot:nth-child(2) { background: #A9B7C9; }
.code-dot:nth-child(3) { background: #E7ECF3; }
.code-file { margin-left: auto; letter-spacing: .12em; font-weight: 800; }
.code-card-body { padding: clamp(21px, 3vw, 34px); color: #D8E4F3; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: clamp(.75rem, 1.2vw, .91rem); line-height: 2.05; }
.code-line { display: block; white-space: normal; overflow-wrap: anywhere; }
.code-comment { color: #94AAC4; }
.code-key { color: var(--mr-yellow); }
.code-string { color: #FFFFFF; }
.code-blue { color: #84B6FF; }
.code-status { display: flex; align-items: center; gap: 10px; margin-top: 25px; padding: 14px; border: 1px solid rgba(255,255,255,.1); border-radius: 8px; background: rgba(255,255,255,.04); color: #EAF0F8; font-family: inherit; font-size: .76rem; }
.status-light { width: 8px; height: 8px; flex: 0 0 8px; border-radius: 50%; background: var(--mr-yellow); box-shadow: 0 0 0 5px rgba(245,197,66,.13); }

/* Stats ribbon */
.stats-strip { border-top: 1px solid var(--mr-border); border-bottom: 1px solid var(--mr-border); background: #FFFFFF; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.stat-item { padding: 25px 18px; text-align: center; }
.stat-item + .stat-item { border-left: 1px solid var(--mr-border); }
.stat-value { display: block; color: var(--mr-blue); font-size: 1.05rem; font-weight: 850; }
.stat-label { color: var(--mr-muted); font-size: .83rem; }

/* Service cards */
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 22px; }
.service-card { position: relative; display: flex; flex-direction: column; align-items: flex-start; min-height: 280px; padding: 29px; border: 1px solid var(--mr-border); border-radius: var(--mr-radius); background: var(--mr-white); box-shadow: 0 5px 20px rgba(16,24,32,.035); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.service-card:hover { transform: translateY(-6px); border-color: #B9CBE4; box-shadow: var(--mr-shadow); }
.service-icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 23px; border-radius: 13px; background: #EAF1FC; color: var(--mr-blue); }
.service-icon svg { width: 25px; height: 25px; }
.service-card h3 { font-size: 1.22rem; letter-spacing: -.025em; margin-bottom: 12px; }
.service-card p { color: var(--mr-muted); font-size: .94rem; margin-bottom: 18px; }
.service-link { margin-top: auto; font-size: .9rem; font-weight: 800; color: var(--mr-blue); }
.service-link span { color: var(--mr-yellow-dark); margin-left: 4px; }
.service-link:hover { color: var(--mr-blue-dark); }

/* Split intro, process, callout */
.split-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); align-items: center; gap: clamp(35px, 7vw, 85px); }
.split-copy p { color: var(--mr-muted); }
.feature-list { display: grid; gap: 17px; margin-top: 28px; }
.feature-item { display: grid; grid-template-columns: 42px 1fr; gap: 14px; align-items: start; }
.feature-number { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--mr-blue); color: var(--mr-white); font-size: .78rem; font-weight: 850; }
.feature-item h3 { margin: 0 0 5px; font-size: 1rem; letter-spacing: -.015em; }
.feature-item p { margin: 0; font-size: .91rem; }
.visual-panel { position: relative; overflow: hidden; padding: clamp(28px, 4vw, 45px); border-radius: 20px; background: linear-gradient(145deg, var(--mr-blue-dark), var(--mr-charcoal)); box-shadow: var(--mr-shadow); color: #DCE7F5; }
.visual-panel::after { content: ""; position: absolute; width: 210px; height: 210px; right: -85px; top: -95px; border: 1px solid rgba(245,197,66,.48); border-radius: 50%; box-shadow: 0 0 0 23px rgba(245,197,66,.055), 0 0 0 47px rgba(245,197,66,.035); }
.visual-panel .eyebrow { color: var(--mr-yellow); }
.visual-panel h3 { position: relative; z-index: 1; color: var(--mr-white); font-size: 1.8rem; }
.visual-panel p { position: relative; z-index: 1; color: #C2D0E1; }
.visual-code-row { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 15px 0; border-top: 1px solid rgba(255,255,255,.13); font-size: .9rem; }
.visual-code-row strong { color: var(--mr-white); }
.visual-code-row span { color: var(--mr-yellow); font-family: ui-monospace, Consolas, monospace; }
.process-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 20px; }
.process-step { padding: 22px; border-top: 3px solid var(--mr-yellow); background: rgba(255,255,255,.045); border-radius: 0 0 11px 11px; }
.process-step .step-no { display: inline-block; margin-bottom: 15px; color: var(--mr-yellow); font-family: ui-monospace, Consolas, monospace; font-size: .82rem; font-weight: 800; }
.process-step h3 { color: var(--mr-white); font-size: 1.1rem; }
.process-step p { margin: 0; color: #C3CDD9; font-size: .9rem; }
.cta-band { position: relative; overflow: hidden; padding: clamp(42px, 6vw, 68px); border-radius: 20px; background: linear-gradient(125deg, var(--mr-charcoal), #193B68); color: var(--mr-white); }
.cta-band::after { content: ""; position: absolute; width: 260px; height: 260px; right: -85px; top: -140px; border: 1px solid rgba(245,197,66,.45); border-radius: 50%; box-shadow: 0 0 0 28px rgba(245,197,66,.05), 0 0 0 56px rgba(245,197,66,.03); }
.cta-band-inner { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 35px; }
.cta-band h2 { max-width: 700px; color: var(--mr-white); margin-bottom: 12px; font-size: clamp(1.8rem, 3.2vw, 2.65rem); }
.cta-band p { max-width: 650px; margin: 0; color: #D0DBE9; }
.cta-band .btn { flex: 0 0 auto; }

/* Inner page headers */
.page-hero { position: relative; overflow: hidden; padding: clamp(62px, 8vw, 100px) 0; background: radial-gradient(circle at 90% 10%, rgba(45,107,199,.14), transparent 32%), linear-gradient(135deg, var(--mr-ash), #FFFFFF); border-bottom: 1px solid var(--mr-border); }
.page-hero h1 { max-width: 850px; font-size: clamp(2.35rem, 5vw, 4rem); }
.page-hero p { max-width: 730px; color: var(--mr-muted); font-size: 1.05rem; }
.breadcrumbs { margin-bottom: 20px; color: var(--mr-muted); font-size: .82rem; }
.breadcrumbs a { font-weight: 700; }
.page-content { padding: clamp(50px, 7vw, 84px) 0; }
.content-prose { max-width: 850px; }
.content-prose > *:last-child { margin-bottom: 0; }
.content-prose h2, .content-prose h3 { margin-top: 1.5em; }
.content-prose ul, .content-prose ol { padding-left: 1.4em; }
.content-prose li { margin-bottom: .5em; }
.about-layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(35px, 7vw, 85px); align-items: start; }
.about-highlight { padding: 30px; background: var(--mr-ash); border-radius: 15px; border: 1px solid var(--mr-border); }
.about-highlight h3 { margin-bottom: 12px; }
.about-highlight p { color: var(--mr-muted); }
.service-page-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 22px; }
.service-detail { padding: 30px; border: 1px solid var(--mr-border); border-radius: 15px; background: #FFFFFF; box-shadow: 0 5px 20px rgba(16,24,32,.035); }
.service-detail h2 { font-size: 1.35rem; }
.service-detail p { color: var(--mr-muted); }
.service-detail .service-icon { margin-bottom: 18px; }

/* Contact page and Contact Form 7 */
.contact-layout { display: grid; grid-template-columns: minmax(260px, .78fr) minmax(0, 1.22fr); gap: 28px; align-items: start; }
.contact-info-panel, .contact-form-panel { padding: clamp(25px, 4vw, 38px); border: 1px solid var(--mr-border); border-radius: 16px; background: var(--mr-white); box-shadow: var(--mr-shadow-small); }
.contact-info-panel { background: var(--mr-charcoal); color: #D8E0EA; border-color: var(--mr-charcoal); }
.contact-info-panel h2, .contact-info-panel h3 { color: var(--mr-white); }
.contact-info-panel > p, .contact-info-content > p { color: #C7D0DC; }
.contact-method { display: flex; gap: 13px; padding: 17px 0; border-top: 1px solid rgba(255,255,255,.12); overflow-wrap: anywhere; }
.contact-method-icon { display: grid; place-items: center; flex: 0 0 39px; width: 39px; height: 39px; border-radius: 10px; color: var(--mr-charcoal); background: var(--mr-yellow); font-weight: 900; }
.contact-method strong { display: block; color: var(--mr-white); font-size: .9rem; }
.contact-method span, .contact-method a { color: #C7D0DC; font-size: .88rem; }
.contact-form-panel h2 { margin-bottom: 10px; font-size: 1.65rem; }
.contact-form-panel > p { color: var(--mr-muted); }
.contact-form-slot { margin-top: 22px; }
.contact-form-placeholder { padding: 20px; border: 1px dashed #9BAAC0; border-radius: 10px; background: var(--mr-ash); color: var(--mr-text); }
.contact-form-placeholder code { display: inline-block; margin-top: 9px; padding: 6px 8px; background: #FFFFFF; border: 1px solid var(--mr-border); border-radius: 5px; overflow-wrap: anywhere; }
.wpcf7 { color: var(--mr-text); }
.wpcf7 form p { margin-bottom: 16px; }
.wpcf7 label { display: block; margin-bottom: 6px; color: var(--mr-charcoal); font-size: .9rem; font-weight: 750; }
.wpcf7 input:not([type="submit"]), .wpcf7 textarea, .wpcf7 select,
.contact-form-panel input:not([type="submit"]), .contact-form-panel textarea, .contact-form-panel select { width: 100%; max-width: 100%; padding: 13px 14px; border: 1px solid var(--mr-border); border-radius: 8px; background: #FFFFFF; color: var(--mr-charcoal); }
.wpcf7 textarea { min-height: 145px; resize: vertical; }
.wpcf7 input:focus, .wpcf7 textarea:focus, .wpcf7 select:focus { border-color: var(--mr-blue); outline: 3px solid rgba(23,78,166,.12); }
.wpcf7 input[type="submit"] { margin-top: 5px; }
.wpcf7 .wpcf7-not-valid-tip { display: block; margin-top: 5px; color: #9A3412; font-size: .85rem; }
.wpcf7 .wpcf7-response-output { margin: 18px 0 0; padding: 12px 15px; border-radius: 8px; }
.wpcf7 .ajax-loader { margin-left: 10px; }

/* Default WordPress content / blog / search */
.entry-content { overflow-wrap: anywhere; }
.entry-content img { border-radius: 10px; }
.entry-content a:not(.btn):not(.wp-element-button) { text-decoration: underline; text-decoration-color: rgba(23,78,166,.3); text-underline-offset: 3px; }
.post-card { overflow: hidden; border: 1px solid var(--mr-border); border-radius: 13px; background: #FFFFFF; box-shadow: var(--mr-shadow-small); }
.post-card-body { padding: 24px; }
.post-card h2 { font-size: 1.35rem; }
.post-meta { color: var(--mr-muted); font-size: .82rem; }
.pagination { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.pagination .page-numbers { display: inline-grid; place-items: center; min-width: 40px; min-height: 40px; padding: 6px 10px; border: 1px solid var(--mr-border); border-radius: 7px; }
.pagination .current { background: var(--mr-blue); border-color: var(--mr-blue); color: #FFFFFF; }

/* Footer */
.site-footer { background: var(--mr-charcoal); color: #C7D0DC; }
.footer-main { padding: 64px 0 45px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr .7fr .8fr; gap: 55px; }
.footer-brand .brand-name { color: #FFFFFF; }
.footer-brand .brand-descriptor { color: #B7C2D0; }
.footer-brand p { max-width: 380px; margin-top: 22px; color: #B9C5D3; font-size: .92rem; }
.site-footer h2, .site-footer h3 { color: #FFFFFF; font-size: 1rem; letter-spacing: 0; }
.footer-links { margin: 0; padding: 0; list-style: none; }
.footer-links li { margin: 0 0 10px; }
.footer-links a { color: #C7D0DC; font-size: .91rem; }
.footer-links a:hover { color: var(--mr-yellow); }
.footer-contact p { color: #C7D0DC; overflow-wrap: anywhere; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.11); padding: 18px 0; }
.footer-bottom-inner { display: flex; justify-content: space-between; gap: 20px; align-items: center; color: #9EACBC; font-size: .81rem; }
.footer-bottom a { color: var(--mr-yellow); }
.back-to-top { position: fixed; z-index: 950; right: 22px; bottom: 22px; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 10px; background: var(--mr-blue); color: #FFFFFF; box-shadow: var(--mr-shadow-small); opacity: 0; visibility: hidden; transform: translateY(8px); transition: .2s ease; }
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--mr-yellow); color: var(--mr-charcoal); }
.scroll-progress { position: fixed; z-index: 1100; left: 0; top: 0; width: 0; height: 3px; background: var(--mr-yellow); }
.admin-bar .scroll-progress { top: 32px; }

/* Reveal animation — JS adds .is-visible on scroll */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .65s ease, transform .65s cubic-bezier(.2,.7,.2,1); }
.js .reveal.is-visible { opacity: 1; transform: translateY(0); }
.js .reveal-delay-1 { transition-delay: .08s; }
.js .reveal-delay-2 { transition-delay: .16s; }
.js .reveal-delay-3 { transition-delay: .24s; }

/* Responsive */
@media (max-width: 1024px) {
  .header-inner { gap: 15px; }
  .primary-nav a { padding: 10px 9px; font-size: .86rem; }
  .header-cta { padding-inline: 12px; }
  .hero-grid { gap: 35px; }
  .service-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .process-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .footer-grid { gap: 32px; }
}
@media (max-width: 820px) {
  .admin-bar .site-header { top: 46px; }
  .header-inner { min-height: 72px; flex-wrap: wrap; }
  .nav-toggle { display: grid; margin-left: auto; }
  .header-cta { display: none; }
  .primary-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; align-items: stretch; padding: 12px 24px 20px; background: #FFFFFF; border-bottom: 1px solid var(--mr-border); box-shadow: 0 18px 28px rgba(16,24,32,.09); }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { display: flex; flex-direction: column; align-items: stretch; gap: 3px; }
  .primary-nav a { display: flex; width: 100%; padding: 12px 13px; font-size: .98rem; }
  .hero-grid, .split-grid, .about-layout, .contact-layout { grid-template-columns: 1fr; }
  .hero-grid { gap: 40px; }
  .hero-copy { max-width: 760px; }
  .code-card { max-width: 680px; transform: none; }
  .service-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .cta-band-inner { align-items: flex-start; flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .container { width: min(var(--mr-container), calc(100% - 34px)); }
  .brand-name { font-size: .92rem; }
  .brand-descriptor { font-size: .59rem; }
  .brand-mark { flex-basis: 39px; width: 39px; height: 39px; }
  .custom-logo { max-width: 165px; max-height: 48px; }
  .hero { padding: 58px 0 55px; }
  .hero-copy h1 { font-size: clamp(2.35rem, 12vw, 3.2rem); }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .hero-proof { gap: 10px; flex-direction: column; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat-item { padding: 18px; }
  .stat-item + .stat-item { border-left: 0; border-top: 1px solid var(--mr-border); }
  .service-grid, .service-page-grid, .process-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 0; }
  .section { padding: 58px 0; }
  .page-hero { padding: 55px 0; }
  .contact-info-panel, .contact-form-panel { padding: 23px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-brand { grid-column: auto; }
  .footer-bottom-inner { align-items: flex-start; flex-direction: column; gap: 6px; }
  .back-to-top { right: 14px; bottom: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ==========================================================
   VERSION 1.1 — PROJECT PORTFOLIO + DEVELOPER PROFILE
   ========================================================== */
.profile-section { padding: clamp(56px, 7vw, 90px) 0; }
.profile-grid { display: grid; grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); align-items: center; gap: clamp(32px, 6vw, 72px); }
.profile-photo-wrap { position: relative; max-width: 490px; margin-inline: auto; border-radius: 20px; overflow: hidden; background: var(--mr-charcoal); box-shadow: var(--mr-shadow); }
.profile-photo { display: block; width: 100%; aspect-ratio: 1 / .95; object-fit: cover; object-position: center center; }
.profile-photo-wrap::after { content: ""; position: absolute; inset: 48% 0 0; pointer-events: none; background: linear-gradient(180deg, transparent, rgba(16,24,32,.56)); }
.profile-caption { position: absolute; z-index: 1; left: 20px; right: 20px; bottom: 20px; display: flex; align-items: center; gap: 12px; color: #FFFFFF; }
.profile-caption-mark { display: grid; place-items: center; width: 43px; height: 43px; flex: 0 0 43px; color: var(--mr-charcoal); background: var(--mr-yellow); border-radius: 12px; font-weight: 850; }
.profile-caption strong, .profile-caption span:not(.profile-caption-mark) { display: block; }
.profile-caption strong { font-size: 1rem; }
.profile-caption div > span { color: #E5EAF1; font-size: .78rem; line-height: 1.45; }
.profile-photo-fallback { display: grid; place-items: center; min-height: 410px; color: var(--mr-yellow); font-size: 5rem; font-weight: 900; background: radial-gradient(circle at 50% 35%, #234A7D, #101820 70%); }
.profile-copy h2 { font-size: clamp(2rem, 3.7vw, 3rem); margin-bottom: 20px; }
.profile-copy > p { color: var(--mr-muted); }
.profile-contact-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 25px 0; }
.profile-contact-chips span, .skill-chip-list span { display: inline-flex; align-items: center; padding: 8px 12px; border: 1px solid var(--mr-border); border-radius: 999px; background: #FFFFFF; color: var(--mr-blue-dark); font-size: .8rem; font-weight: 700; }
.profile-details-section { background: var(--mr-ash); }
.profile-details-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.profile-detail-card { padding: 27px; border: 1px solid var(--mr-border); border-radius: 14px; background: #FFFFFF; box-shadow: var(--mr-shadow-small); }
.profile-detail-icon { display: grid; place-items: center; width: 45px; height: 45px; margin-bottom: 18px; border-radius: 12px; background: #EAF1FC; color: var(--mr-blue); font-size: .85rem; font-weight: 850; }
.profile-detail-card h3 { font-size: 1.15rem; }
.profile-detail-card p { color: var(--mr-muted); font-size: .92rem; }
.profile-bullet-list { display: grid; gap: 11px; padding: 0; margin: 15px 0 0; list-style: none; }
.profile-bullet-list li { position: relative; padding-left: 23px; color: var(--mr-text); font-size: .9rem; }
.profile-bullet-list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--mr-blue); font-weight: 900; }
.profile-empty-note { font-size: .87rem !important; border-left: 3px solid var(--mr-yellow); padding-left: 12px; }
.profile-skills-section { background: #FFFFFF; }
.skills-layout { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 45px; }
.skills-layout h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
.skills-layout p { color: var(--mr-muted); }
.skill-chip-list { display: flex; flex-wrap: wrap; gap: 10px; }
.skill-chip-list span { padding: 11px 15px; }
.profile-editor-content { max-width: 850px; }
.profile-editor-content h2, .profile-editor-content h3 { margin-top: 20px; }

/* Project listing cards */
.page-hero--projects { background: radial-gradient(circle at 90% 15%, rgba(23,78,166,.18), transparent 35%), linear-gradient(125deg, #F1F3F5, #FFFFFF); }
.projects-intro { max-width: 850px; margin-top: 24px; }
.projects-section { min-height: 360px; }
.projects-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 25px; }
.project-card { min-width: 0; overflow: hidden; border: 1px solid var(--mr-border); border-radius: 15px; background: #FFFFFF; box-shadow: var(--mr-shadow-small); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.project-card:hover { transform: translateY(-6px); border-color: #BDCEE8; box-shadow: var(--mr-shadow); }
.project-card-image { position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 10; background: linear-gradient(135deg, #0B1F3A, #174EA6); }
.project-card-image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.project-card:hover .project-card-image img { transform: scale(1.045); }
.project-image-arrow { position: absolute; right: 14px; top: 14px; display: grid; place-items: center; width: 36px; height: 36px; color: var(--mr-charcoal); background: var(--mr-yellow); border-radius: 50%; font-weight: 900; opacity: 0; transform: translateY(4px); transition: opacity .2s ease, transform .2s ease; }
.project-card:hover .project-image-arrow { opacity: 1; transform: translateY(0); }
.project-image-placeholder, .project-detail-placeholder { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 9px; width: 100%; height: 100%; min-height: 180px; color: #FFFFFF; background: radial-gradient(circle at 80% 10%, #2D6BC7, transparent 35%), linear-gradient(135deg, #0B1F3A, #174EA6); }
.project-image-placeholder span, .project-detail-placeholder span { font: 800 2.5rem Consolas, monospace; color: var(--mr-yellow); }
.project-image-placeholder small { font-size: .68rem; font-weight: 800; letter-spacing: 2px; }
.project-card-body { padding: 23px; }
.project-technology { display: inline-block; padding: 5px 9px; border-radius: 999px; background: #EAF1FC; color: var(--mr-blue-dark); font-size: .68rem; line-height: 1.5; letter-spacing: .5px; font-weight: 800; overflow-wrap: anywhere; }
.project-card h2 { margin: 13px 0 10px; font-size: 1.22rem; }
.project-card h2 a { color: var(--mr-charcoal); text-decoration: none; }
.project-card h2 a:hover { color: var(--mr-blue); }
.project-card-body > p { color: var(--mr-muted); font-size: .91rem; }
.project-card-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.btn--small { min-height: 38px; padding: 9px 12px; font-size: .8rem; }
.project-live-link { display: inline-flex; align-items: center; gap: 6px; color: var(--mr-blue); font-size: .8rem; font-weight: 800; }
.project-live-link:hover { color: var(--mr-blue-dark); }
.projects-empty { max-width: 740px; margin: 30px auto; padding: clamp(28px, 5vw, 55px); text-align: center; border: 1px dashed #BAC8DB; border-radius: 18px; background: linear-gradient(140deg, #FFFFFF, #F1F3F5); }
.projects-empty-icon { display: grid; place-items: center; width: 65px; height: 65px; margin: 0 auto 22px; border-radius: 18px; background: var(--mr-charcoal); color: var(--mr-yellow); font: 800 1.2rem Consolas, monospace; }
.projects-empty h2 { font-size: clamp(1.8rem, 3vw, 2.3rem); }
.projects-empty p { color: var(--mr-muted); }
.projects-empty-admin { padding: 15px 17px; background: #FFFFFF; border-radius: 9px; font-size: .9rem; }
.project-pagination { margin-top: 35px; }
.project-pagination ul { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.project-pagination a, .project-pagination span { display: grid; place-items: center; min-width: 40px; min-height: 40px; padding: 8px 12px; border: 1px solid var(--mr-border); border-radius: 7px; background: #FFFFFF; }
.project-pagination .current { border-color: var(--mr-blue); background: var(--mr-blue); color: #FFFFFF; }
.project-pagination a:hover { border-color: var(--mr-yellow); background: var(--mr-yellow); color: var(--mr-charcoal); }

/* Single project details */
.project-detail-hero .project-technology--hero { margin-top: 12px; }
.project-detail-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(270px, .65fr); align-items: start; gap: clamp(28px, 5vw, 60px); }
.project-detail-image { margin: 0 0 30px; overflow: hidden; border: 1px solid var(--mr-border); border-radius: 15px; background: var(--mr-ash); box-shadow: var(--mr-shadow-small); }
.project-detail-image img { display: block; width: 100%; height: auto; }
.project-detail-placeholder { min-height: 350px; border-radius: 15px; }
.project-content { color: var(--mr-text); }
.project-detail-sidebar { position: sticky; top: 105px; padding: 27px; border: 1px solid var(--mr-border); border-radius: 15px; background: var(--mr-ash); }
.project-detail-sidebar h2 { font-size: 1.4rem; margin: 10px 0 13px; }
.project-detail-sidebar > p { color: var(--mr-muted); font-size: .92rem; }
.project-detail-meta { display: grid; gap: 5px; margin: 20px 0; padding: 16px 0; border-top: 1px solid #D6DDE6; border-bottom: 1px solid #D6DDE6; }
.project-detail-meta strong { color: var(--mr-charcoal); font-size: .85rem; }
.project-detail-meta span { font-size: .9rem; color: var(--mr-muted); }
.project-live-button { width: 100%; justify-content: center; }
.project-url-note { font-size: .82rem !important; }
.project-back-link { display: inline-block; margin-top: 18px; font-size: .88rem; font-weight: 750; }

@media (max-width: 900px) {
  .profile-grid, .skills-layout { grid-template-columns: 1fr; }
  .profile-photo-wrap { width: min(100%, 440px); }
  .profile-details-grid { grid-template-columns: 1fr 1fr; }
  .projects-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-detail-layout { grid-template-columns: 1fr; }
  .project-detail-sidebar { position: static; }
}
@media (max-width: 600px) {
  .profile-details-grid, .projects-grid { grid-template-columns: 1fr; }
  .profile-detail-card, .project-card-body { padding: 22px; }
  .profile-photo { aspect-ratio: 1 / .95; }
  .project-card-actions { align-items: flex-start; flex-direction: column; }
  .project-live-button { width: 100%; }
}

/* Homepage featured portfolio strip */
.home-projects-section .section-heading--split { max-width: none; display: flex; align-items: end; justify-content: space-between; gap: 25px; text-align: left; }
.home-projects-section .section-heading--split h2 { margin-bottom: 12px; }
.home-projects-section .section-heading--split p { margin: 0; max-width: 620px; color: #C7D0DC; }
.home-projects-section .section-heading--split .eyebrow { color: var(--mr-yellow); }
.home-project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.home-project-card { min-width: 0; overflow: hidden; border: 1px solid rgba(255,255,255,.13); border-radius: 13px; background: #172433; box-shadow: 0 10px 28px rgba(0,0,0,.13); transition: transform .25s ease, border-color .25s ease; }
.home-project-card:hover { transform: translateY(-5px); border-color: rgba(245,197,66,.7); }
.home-project-image { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: linear-gradient(135deg, #0B1F3A, #174EA6); }
.home-project-image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.home-project-card:hover .home-project-image img { transform: scale(1.04); }
.home-project-body { padding: 22px; }
.home-project-body h3 { margin: 0 0 10px; font-size: 1.1rem; }
.home-project-body h3 a { color: #FFFFFF; text-decoration: none; }
.home-project-body h3 a:hover { color: var(--mr-yellow); }
.home-project-body p { color: #C7D0DC; font-size: .89rem; }
.home-project-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 17px; }
.home-project-actions a { color: var(--mr-yellow); font-size: .79rem; font-weight: 800; }
.home-project-actions a:hover { color: #FFFFFF; }
@media (max-width: 900px) { .home-project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 820px) { .home-projects-section .section-heading--split { align-items: flex-start; flex-direction: column; } }
@media (max-width: 560px) { .home-project-grid { grid-template-columns: 1fr; } .home-project-body { padding: 20px; } }

/* Certificate image gallery on About page */
.certificate-gallery-section { background: #FFFFFF; }
.certificate-gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 21px; }
.certificate-card { overflow: hidden; border: 1px solid var(--mr-border); border-radius: 13px; background: #FFFFFF; box-shadow: var(--mr-shadow-small); transition: transform .22s ease, box-shadow .22s ease; }
.certificate-card:hover { transform: translateY(-4px); box-shadow: var(--mr-shadow); }
.certificate-image { display: flex; align-items: center; justify-content: center; min-height: 180px; aspect-ratio: 4 / 3; overflow: hidden; border-bottom: 1px solid var(--mr-border); background: var(--mr-ash); }
.certificate-image img { display: block; width: 100%; height: 100%; object-fit: contain; }
.certificate-image-placeholder { display: grid; place-items: center; width: 100%; height: 100%; min-height: 180px; background: linear-gradient(135deg, #F1F3F5, #FFFFFF); color: var(--mr-blue); font-size: .8rem; font-weight: 900; letter-spacing: 2px; }
.certificate-card-body { padding: 21px; }
.certificate-card-body h3 { margin: 0 0 9px; font-size: 1.08rem; }
.certificate-card-body p { color: var(--mr-muted); font-size: .88rem; }
.certificate-card-body .certificate-issuer { color: var(--mr-blue-dark); font-weight: 750; font-size: .8rem; }
.certificate-verify-link { display: inline-flex; padding-top: 3px; color: var(--mr-blue); font-weight: 800; font-size: .8rem; }
.certificate-verify-link:hover { color: var(--mr-deep-blue); }
@media (max-width: 900px) { .certificate-gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .certificate-gallery-grid { grid-template-columns: 1fr; } }


/* Contact page side image controls (Appearance > Customize > Contact Page Design) */
.contact-info-panel {
  position: relative;
  min-width: 0;
  overflow: hidden;
}
.contact-info-content {
  position: relative;
  z-index: 1;
}
.contact-side-image {
  width: var(--contact-image-width, 100%);
  max-width: 100%;
  margin: 0 auto 26px;
  display: flex;
  justify-content: var(--contact-image-align, center);
  overflow: hidden;
  border-radius: var(--contact-image-radius, 12px);
}
.contact-side-image--top,
.contact-side-image--bottom {
  justify-content: var(--contact-image-align, center);
}
.contact-side-image--align-left { margin-left: 0; margin-right: auto; }
.contact-side-image--align-center { margin-left: auto; margin-right: auto; }
.contact-side-image--align-right { margin-left: auto; margin-right: 0; }
.contact-side-image--top img,
.contact-side-image--bottom img {
  display: block;
  width: 100%;
  height: var(--contact-image-height, 220px);
  object-fit: var(--contact-image-fit, cover);
  object-position: var(--contact-image-position, center center);
  border-radius: var(--contact-image-radius, 12px);
}
.contact-side-image--bottom {
  margin: 26px auto 0;
}
.contact-side-image--bottom.contact-side-image--align-left { margin-left: 0; margin-right: auto; }
.contact-side-image--bottom.contact-side-image--align-center { margin-left: auto; margin-right: auto; }
.contact-side-image--bottom.contact-side-image--align-right { margin-left: auto; margin-right: 0; }
.contact-side-image--background {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  margin: 0;
  border-radius: inherit;
}
.contact-side-image--background img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--contact-image-position, center center);
  border-radius: inherit;
}
.contact-side-image-overlay {
  position: absolute;
  inset: 0;
  display: block;
  background: rgba(16, 24, 32, var(--contact-image-overlay, .68));
  pointer-events: none;
}
.contact-info-panel--image-background .contact-info-content {
  z-index: 1;
}
.contact-info-panel--image-background .contact-method {
  border-color: rgba(255,255,255,.2);
}
.contact-info-panel--image-background .contact-whatsapp {
  position: relative;
}
.contact-layout--info-right {
  grid-template-columns: minmax(0, 1.22fr) minmax(260px, .78fr);
}
.contact-layout--info-right .contact-form-panel {
  grid-column: 1;
  grid-row: 1;
}
.contact-layout--info-right .contact-info-panel {
  grid-column: 2;
  grid-row: 1;
}
@media (max-width: 820px) {
  .contact-layout--info-right .contact-form-panel,
  .contact-layout--info-right .contact-info-panel {
    grid-column: auto;
    grid-row: auto;
  }
  .contact-layout--info-right .contact-form-panel { order: 1; }
  .contact-layout--info-right .contact-info-panel { order: 2; }
}

/* ==========================================================
   VERSION 1.3 — INDEPENDENT ABOUT-PAGE PORTRAIT CONTROLS
   Admin: Appearance > Customize > About Page Design
   These rules do not alter Contact Page Design settings.
   ========================================================== */
.profile-photo-wrap {
  width: var(--profile-image-width, 100%);
  max-width: 490px;
  margin: 0 auto;
  border-radius: var(--profile-image-radius, 20px);
}
.profile-photo {
  width: 100%;
  height: var(--profile-image-height, 420px);
  aspect-ratio: auto;
  object-fit: var(--profile-image-fit, cover);
  object-position: var(--profile-image-position, center center);
  border-radius: var(--profile-image-radius, 20px);
}
.profile-photo-fallback {
  min-height: var(--profile-image-height, 420px);
  border-radius: var(--profile-image-radius, 20px);
}
.profile-photo-wrap--align-left {
  margin-left: 0;
  margin-right: auto;
}
.profile-photo-wrap--align-center {
  margin-left: auto;
  margin-right: auto;
}
.profile-photo-wrap--align-right {
  margin-left: auto;
  margin-right: 0;
}
.profile-grid--photo-right .profile-photo-wrap {
  grid-column: 2;
  grid-row: 1;
}
.profile-grid--photo-right .profile-copy {
  grid-column: 1;
  grid-row: 1;
}
@media (max-width: 900px) {
  .profile-grid--photo-right .profile-photo-wrap,
  .profile-grid--photo-right .profile-copy {
    grid-column: auto;
    grid-row: auto;
  }
  .profile-photo-wrap {
    max-width: 440px;
    width: var(--profile-image-width, 100%);
  }
}
@media (max-width: 600px) {
  .profile-photo {
    height: var(--profile-image-height, 420px);
  }
}
