/* ==========================================================================
   GRANFI LTD — Stylesheet
   Brand: #652D90 (primary), #E90E8C (accent), #111111 (text), #FFFFFF (white)
   No gradients. Mobile-first. Award-winning restraint.
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
    --primary: #652D90;
    --primary-dark: #4B216B;
    --primary-light: #8552A8;
    --accent: #E90E8C;
    --accent-dark: #C50976;
    --accent-light: #F13BA8;

    --text: #111111;
    --text-muted: #5b5563;
    --text-soft: #837e8e;
    --white: #FFFFFF;

    --surface: #FFFFFF;
    --surface-tint: #F6F3F9;
    --surface-tint-2: #EFEAF4;
    --border: #E6E1EC;
    --border-strong: #cfc6da;

    --ink-1: #1c1722;
    --ink-2: #2a2333;

    --shadow-sm: 0 1px 2px rgba(17, 17, 17, 0.06), 0 1px 3px rgba(17, 17, 17, 0.04);
    --shadow-md: 0 4px 12px rgba(17, 17, 17, 0.08), 0 2px 4px rgba(17, 17, 17, 0.04);
    --shadow-lg: 0 18px 40px -12px rgba(75, 33, 107, 0.22), 0 6px 16px rgba(17, 17, 17, 0.06);

    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --container: 1180px;

    --font-display: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
    --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

    --header-h: 76px;

    --focus: 0 0 0 3px rgba(233, 14, 140, 0.35);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--surface);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: var(--primary); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--accent); }
ul, ol { list-style: none; padding: 0; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: var(--radius-sm); }

/* ---------- Layout ---------- */
.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: 20px;
}
.section { padding: 72px 0; }
.section-tint { background: var(--surface-tint); }
.section-head { max-width: 720px; margin: 0 auto 44px; text-align: center; }
.section-head-left { margin-inline: 0; text-align: left; }
.section-foot { margin-top: 36px; text-align: center; }
.section-foot-left { text-align: left; }

/* ---------- Skip link ---------- */
.skip-link {
    position: absolute;
    left: -999px; top: 0;
    background: var(--primary); color: #fff;
    padding: 10px 16px; z-index: 1000;
    border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; color: var(--ink-1); font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.4rem); }
p { color: var(--text); }
.eyebrow {
    display: inline-block; font-family: var(--font-display);
    font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em;
    text-transform: uppercase; color: var(--accent); margin-bottom: 14px;
}
.eyebrow-light { color: var(--accent-light); }
.accent { color: var(--accent); }
.section-title { margin-bottom: 14px; }
.section-sub { color: var(--text-muted); font-size: 1.05rem; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 13px 22px; border-radius: var(--radius);
    font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; line-height: 1;
    text-align: center; border: 2px solid transparent; white-space: nowrap;
    min-height: 44px;
    transition: transform .12s ease, background .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-sm { padding: 9px 16px; font-size: 0.85rem; min-height: 40px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); color: #fff; }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.6); }
.btn-outline-light:hover { background: rgba(255,255,255,0.12); color: #fff; border-color: #fff; }
.btn-white { background: #fff; color: var(--primary); }
.btn-white:hover { background: var(--surface-tint); color: var(--primary-dark); }

/* ---------- Header ---------- */
.site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: saturate(180%) blur(10px);
    -webkit-backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid var(--border);
    transition: box-shadow .2s ease;
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand-logo { height: 42px; width: auto; }
.primary-nav { flex: 1; display: flex; justify-content: center; align-items: center; gap: 4px; }
.nav-list { display: flex; gap: 4px; }
.nav-link {
    display: inline-block; padding: 10px 14px; border-radius: var(--radius-sm);
    color: var(--text); font-family: var(--font-display); font-weight: 500; font-size: 0.95rem;
    position: relative;
}
.nav-link:hover { color: var(--primary); background: var(--surface-tint); }
.nav-link.is-active { color: var(--primary); }
.nav-link.is-active::after {
    content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px;
    height: 2px; background: var(--accent); border-radius: 2px;
}
.nav-cta { margin-left: 8px; }
.header-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.header-phone {
    display: inline-flex; align-items: center; gap: 8px;
    color: var(--text); font-family: var(--font-display); font-weight: 600; font-size: 0.9rem;
}
.header-phone:hover { color: var(--primary); }
.header-phone svg { color: var(--accent); }
.nav-toggle {
    display: none; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; border-radius: var(--radius-sm);
    border: 1px solid var(--border); background: var(--surface);
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--ink-1); margin: 0 auto; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Nav overlay (mobile only) */
.nav-overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(17, 17, 17, 0.5);
    z-index: 99;
    opacity: 0;
    transition: opacity .25s ease;
}
.nav-overlay:not([hidden]) { display: block; opacity: 1; }

/* Nav close button (mobile drawer only) */
.nav-close {
    display: none;
    position: absolute;
    top: 16px; right: 16px;
    width: 40px; height: 40px;
    border-radius: var(--radius-sm);
    color: var(--ink-1);
    align-items: center; justify-content: center;
    z-index: 2;
    cursor: pointer;
    transition: background .15s ease;
}
.nav-close:hover { background: var(--surface-tint); color: var(--primary); }

/* ---------- Main content offset for fixed header ---------- */
.site-main { padding-top: var(--header-h); }

/* ---------- Hero ---------- */
.hero { background: var(--primary); color: #fff; padding: 64px 0 80px; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; right: -120px; top: -120px; width: 360px; height: 360px; border-radius: 50%; background: var(--primary-dark); opacity: 0.55; }
.hero::after { content: ""; position: absolute; left: -80px; bottom: -160px; width: 280px; height: 280px; border-radius: 50%; background: var(--accent); opacity: 0.18; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 48px; align-items: center; }
.hero-title { color: #fff; margin-bottom: 18px; }
.hero-title .accent { color: var(--accent-light); }
.hero-lead { font-size: 1.12rem; color: rgba(255,255,255,0.86); max-width: 560px; margin-bottom: 28px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 36px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 32px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,0.18); }
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong { font-family: var(--font-display); font-size: 1.8rem; font-weight: 800; color: #fff; line-height: 1; }
.hero-stats span { font-size: 0.85rem; color: rgba(255,255,255,0.72); margin-top: 4px; }

.hero-visual { position: relative; min-height: 320px; }
.hero-card { position: absolute; background: #fff; color: var(--ink-1); border-radius: var(--radius-lg); padding: 18px 22px; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; gap: 4px; }
.hero-card .hc-tag { font-family: var(--font-display); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.hero-card .hc-value { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; }
.hero-card-1 { top: 0; right: 40%; }
.hero-card-2 { top: 90px; right: 0; }
.hero-card-3 { bottom: 30px; left: 10%; }
.hero-badge { position: absolute; bottom: 0; right: 0; background: var(--accent); color: #fff; border-radius: 999px; padding: 10px 18px; display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 600; font-size: 0.85rem; box-shadow: var(--shadow-md); }

/* ---------- Pillars ---------- */
.pillar-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pillar {
    position: relative; background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 32px 28px; display: flex; flex-direction: column; gap: 14px;
    transition: transform .15s ease, box-shadow .2s ease, border-color .2s ease; color: var(--text);
}
.pillar:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--primary-light); color: var(--text); }
.pillar-icon { width: 56px; height: 56px; border-radius: 14px; background: var(--surface-tint); color: var(--primary); display: grid; place-items: center; }
.pillar-title { color: var(--ink-1); }
.pillar-list { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.pillar-list li { position: relative; padding-left: 20px; color: var(--text-muted); font-size: 0.92rem; }
.pillar-list li::before { content: ""; position: absolute; left: 0; top: 8px; width: 8px; height: 2px; background: var(--accent); }
.pillar-link { color: var(--accent); font-family: var(--font-display); font-weight: 600; font-size: 0.92rem; }
.pillar-featured { background: var(--primary); border-color: var(--primary); color: #fff; }
.pillar-featured .pillar-icon { background: rgba(255,255,255,0.14); color: #fff; }
.pillar-featured .pillar-title { color: #fff; }
.pillar-featured .pillar-list li { color: rgba(255,255,255,0.85); }
.pillar-featured .pillar-list li::before { background: var(--accent-light); }
.pillar-featured .pillar-link { color: var(--accent-light); }
.pillar-featured:hover { color: #fff; border-color: var(--primary-light); }
.pillar-flag { position: absolute; top: 18px; right: 18px; background: var(--accent); color: #fff; font-family: var(--font-display); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; }

/* ---------- Two column ---------- */
.two-col { display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; align-items: start; }
.two-col-copy p { margin-bottom: 16px; color: var(--text-muted); }
.two-col-copy p strong { color: var(--ink-1); }
.check-list { margin: 20px 0 28px; display: flex; flex-direction: column; gap: 12px; }
.check-list li { position: relative; padding-left: 32px; color: var(--text); }
.check-list li::before { content: ""; position: absolute; left: 0; top: 6px; width: 18px; height: 18px; border-radius: 50%; background: var(--accent); box-shadow: inset 0 0 0 3px #fff, 0 0 0 1px var(--accent); }
.check-list li::after { content: ""; position: absolute; left: 5px; top: 10px; width: 8px; height: 4px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg); }

/* ---------- Stat highlight ---------- */
.stat-highlight { background: var(--primary); color: #fff; border-radius: var(--radius-lg); padding: 36px 28px; text-align: center; box-shadow: var(--shadow-lg); }
.stat-big { display: block; font-family: var(--font-display); font-size: 4rem; font-weight: 800; color: #fff; line-height: 1; }
.stat-label { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; margin-top: 8px; color: var(--accent-light); }
.stat-note { margin-top: 12px; color: rgba(255,255,255,0.82); font-size: 0.92rem; }

/* ---------- Why choose grid ---------- */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.why-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px 24px; border-top: 3px solid var(--accent); transition: transform .15s ease, box-shadow .2s ease; }
.why-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.why-title { font-size: 1.1rem; margin-bottom: 8px; color: var(--primary); }
.why-desc { color: var(--text-muted); font-size: 0.92rem; }

/* ---------- Testimonials ---------- */
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; margin: 0; display: flex; flex-direction: column; gap: 16px; }
.testimonial-stars { display: flex; gap: 2px; color: var(--accent); font-size: 1.2rem; }
.testimonial-quote { font-family: var(--font-display); font-size: 1.05rem; color: var(--ink-1); line-height: 1.5; font-weight: 500; flex: 1; }
.testimonial-author { display: flex; flex-direction: column; }
.ta-name { font-family: var(--font-display); font-weight: 700; color: var(--ink-1); }
.ta-role { font-size: 0.85rem; color: var(--text-muted); }

/* ---------- Testimonials marquee ---------- */
.testimonials-marquee-section { padding-bottom: 72px; }
.testimonials-marquee {
    overflow: hidden;
    position: relative;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 40px, #000 calc(100% - 40px), transparent 100%);
    mask-image: linear-gradient(to right, transparent 0, #000 40px, #000 calc(100% - 40px), transparent 100%);
}
.testimonials-track {
    display: flex;
    gap: 20px;
    width: max-content;
    animation: tmarquee-scroll 60s linear infinite;
}
.testimonials-track:hover { animation-play-state: paused; }

@keyframes tmarquee-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.tmarquee-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px 22px;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 340px;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}
.tmarquee-stars { display: flex; gap: 2px; color: var(--accent); font-size: 1.1rem; }
.tmarquee-quote {
    font-family: var(--font-display);
    font-size: 0.95rem;
    color: var(--ink-1);
    line-height: 1.5;
    font-weight: 500;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.tmarquee-author { display: flex; flex-direction: column; }
.tma-name { font-family: var(--font-display); font-weight: 700; color: var(--ink-1); font-size: 0.9rem; }
.tma-role { font-size: 0.8rem; color: var(--text-muted); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--ink-1); color: #fff; padding: 56px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-title { color: #fff; margin-bottom: 8px; }
.cta-text { color: rgba(255,255,255,0.78); max-width: 560px; }

/* ---------- Page hero ---------- */
.page-hero { background: var(--primary); color: #fff; padding: 56px 0; position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; right: -100px; bottom: -120px; width: 280px; height: 280px; border-radius: 50%; background: var(--accent); opacity: 0.16; }
.page-hero .container { position: relative; z-index: 1; max-width: 880px; }
.breadcrumb { display: flex; gap: 8px; font-size: 0.85rem; color: rgba(255,255,255,0.7); margin-bottom: 18px; flex-wrap: wrap; }
.breadcrumb a { color: rgba(255,255,255,0.85); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span[aria-current="page"] { color: #fff; }
.page-title { color: #fff; margin-bottom: 14px; }
.page-lead { color: rgba(255,255,255,0.86); font-size: 1.08rem; max-width: 640px; }
.page-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.page-hero-rig { background: var(--primary-dark); }

/* ---------- Service items grid ---------- */
.service-item-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service-item-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 22px; transition: transform .15s ease, box-shadow .2s ease, border-color .2s ease; }
.service-item-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--primary-light); }
.service-item-title { font-size: 1.1rem; margin-bottom: 8px; color: var(--primary); }
.service-item-desc { color: var(--text-muted); font-size: 0.92rem; }
.sub-item-list { margin-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.sub-item-list li { position: relative; padding-left: 18px; font-size: 0.88rem; color: var(--text); }
.sub-item-list li::before { content: ""; position: absolute; left: 0; top: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* ---------- Mission ---------- */
.mission-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; }
.mission-grid-3 { grid-template-columns: repeat(3, 1fr); }
.mission-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px 28px; }
.mission-vision { border-top: 4px solid var(--primary-light); }
.mission-mission { border-top: 4px solid var(--primary); }
.mission-philosophy { border-top: 4px solid var(--accent); background: var(--primary); color: #fff; border-color: var(--primary); }
.mission-label { font-family: var(--font-display); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.mission-philosophy .mission-label { color: var(--accent-light); }
.mission-text { font-family: var(--font-display); font-size: 1.05rem; line-height: 1.55; color: var(--ink-1); font-weight: 500; }
.mission-philosophy .mission-text { color: #fff; }
.core-values-list { display: flex; flex-direction: column; gap: 10px; }
.core-values-list li { position: relative; padding-left: 24px; font-family: var(--font-display); font-weight: 600; color: #fff; font-size: 1rem; }
.core-values-list li::before { content: "✓"; position: absolute; left: 0; color: var(--accent-light); font-weight: 700; }

/* ---------- Process ---------- */
.process-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.process-list li { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px 24px; position: relative; }
.process-num { display: inline-block; font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; color: var(--accent); margin-bottom: 12px; }
.process-title { font-size: 1.05rem; margin-bottom: 8px; }
.process-list li p { color: var(--text-muted); font-size: 0.9rem; }

/* ---------- Clients ---------- */
.clients-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.client-chip { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 16px; text-align: center; font-family: var(--font-display); font-weight: 600; font-size: 0.9rem; color: var(--ink-1); transition: border-color .15s ease, transform .15s ease; }
.client-chip:hover { border-color: var(--primary-light); transform: translateY(-2px); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.faq-item[open] { border-color: var(--primary-light); }
.faq-q { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; cursor: pointer; font-family: var(--font-display); font-weight: 600; color: var(--ink-1); font-size: 1rem; list-style: none; }
.faq-q::-webkit-details-marker { display: none; }
.faq-icon { width: 20px; height: 20px; flex-shrink: 0; position: relative; }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; background: var(--accent); border-radius: 2px; }
.faq-icon::before { top: 9px; left: 0; width: 20px; height: 2px; }
.faq-icon::after { top: 0; left: 9px; width: 2px; height: 20px; transition: transform .2s ease; }
.faq-item[open] .faq-icon::after { transform: rotate(90deg); opacity: 0; }
.faq-a { padding: 0 22px 20px; }
.faq-a p { color: var(--text-muted); font-size: 0.95rem; }

/* ---------- Gran100 rig spec card ---------- */
.rig-spec-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-sm); position: sticky; top: calc(var(--header-h) + 20px); }
.rig-spec-card-title { font-size: 1.15rem; margin-bottom: 18px; color: var(--primary); }
.rig-specs { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.spec-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
.spec-row:last-child { border-bottom: 0; }
.spec-row dt { color: var(--text-muted); font-weight: 500; }
.spec-row dd { color: var(--ink-1); font-weight: 600; text-align: right; }

/* ---------- Notes grid ---------- */
.notes-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.notes-heading { font-size: 1.15rem; margin-bottom: 8px; color: var(--primary); }
.notes-sub { color: var(--text-muted); margin-bottom: 4px; font-size: 0.92rem; }

/* ---------- Blog ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.blog-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; display: flex; flex-direction: column; gap: 12px; transition: transform .15s ease, box-shadow .2s ease, border-color .2s ease; }
.blog-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--primary-light); }
.blog-card-meta { display: flex; align-items: center; gap: 12px; font-size: 0.82rem; }
.blog-cat { background: var(--surface-tint); color: var(--primary); font-family: var(--font-display); font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.blog-card-meta time { color: var(--text-muted); }
.blog-card-title { font-size: 1.25rem; }
.blog-card-title a { color: var(--ink-1); }
.blog-card-title a:hover { color: var(--primary); }
.blog-card-excerpt { color: var(--text-muted); font-size: 0.95rem; flex: 1; }
.blog-card-link { color: var(--accent); font-family: var(--font-display); font-weight: 600; font-size: 0.9rem; }

/* ---------- Article ---------- */
.article-layout { display: grid; grid-template-columns: 1fr 280px; gap: 48px; align-items: start; }
.article-body p { margin-bottom: 18px; color: var(--text); font-size: 1.02rem; line-height: 1.7; }
.article-cta { margin-top: 32px; padding: 28px; background: var(--surface-tint); border-radius: var(--radius-lg); border-left: 4px solid var(--accent); }
.article-cta h3 { margin-bottom: 8px; }
.article-cta p { margin-bottom: 16px; color: var(--text-muted); }
.article-aside { position: sticky; top: calc(var(--header-h) + 20px); }
.aside-heading { font-size: 0.85rem; font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); margin-bottom: 16px; }
.aside-posts { display: flex; flex-direction: column; gap: 16px; }
.aside-posts li { padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.aside-posts li:last-child { border-bottom: 0; }
.aside-posts a { display: block; font-family: var(--font-display); font-weight: 600; color: var(--ink-1); font-size: 0.92rem; margin-bottom: 4px; }
.aside-posts a:hover { color: var(--primary); }
.aside-posts time { font-size: 0.8rem; color: var(--text-muted); }

/* ---------- Forms ---------- */
.contact-layout { display: grid; grid-template-columns: 1fr 1.3fr; gap: 48px; align-items: start; }
.contact-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-card { background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--accent); border-radius: var(--radius); padding: 20px; }
.contact-card-wide { grid-column: 1 / -1; }
.contact-card-label { display: block; font-family: var(--font-display); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 6px; }
.contact-card-value { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: var(--ink-1); margin-bottom: 2px; }
.contact-card a.contact-card-value:hover { color: var(--primary); }
.contact-form-wrap { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-sm); }
.form-title { font-size: 1.3rem; margin-bottom: 4px; }
.form-subtitle { color: var(--text-muted); margin-bottom: 24px; font-size: 0.92rem; }
.quote-form { display: flex; flex-direction: column; gap: 18px; }
.form-row { display: flex; flex-direction: column; gap: 6px; }
.form-row label { font-family: var(--font-display); font-weight: 600; font-size: 0.9rem; color: var(--ink-1); }
.req { color: var(--accent); }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
input, select, textarea {
    font: inherit; width: 100%; padding: 12px 14px;
    font-size: 16px; /* prevents iOS zoom on focus */
    min-height: 48px;
    border: 1px solid var(--border-strong); border-radius: var(--radius);
    background: #fff; color: var(--text);
    transition: border-color .15s ease, box-shadow .15s ease;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(101, 45, 144, 0.15); }
textarea { resize: vertical; min-height: 120px; }
select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23652D90' d='M6 8 0 0h12z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.form-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 4px; }
.form-note { color: var(--text-muted); font-size: 0.82rem; }

.form-success { text-align: center; padding: 24px 16px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.success-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--surface-tint); color: var(--primary); display: grid; place-items: center; }
.success-title { font-size: 1.5rem; }
.success-text { color: var(--text-muted); max-width: 460px; }
.form-success .btn { margin-top: 8px; }

/* ---------- Map ---------- */
.map-embed { border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.map-embed iframe { width: 100%; height: 380px; border: 0; display: block; }

/* ---------- 404 ---------- */
.not-found { padding: 120px 0; text-align: center; }
.not-found-inner { max-width: 560px; margin: 0 auto; }
.nf-code { font-family: var(--font-display); font-size: clamp(4rem, 14vw, 8rem); font-weight: 800; color: var(--primary); line-height: 1; display: block; }
.nf-title { margin: 16px 0 12px; }
.nf-text { color: var(--text-muted); margin-bottom: 28px; }
.nf-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- WhatsApp float ---------- */
.wa-float {
    position: fixed; bottom: 24px; right: 24px; z-index: 90;
    width: 56px; height: 56px; border-radius: 50%;
    background: #25D366; color: #fff;
    display: grid; place-items: center;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
    transition: transform .15s ease;
}
.wa-float:hover { transform: scale(1.08); color: #fff; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-1); color: rgba(255,255,255,0.78); padding-top: 64px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 40px; padding-bottom: 48px; }
.footer-logo { height: 44px; width: auto; padding: 8px 14px; background: #fff; border-radius: var(--radius-sm); }
.footer-tagline { font-family: var(--font-display); font-weight: 700; color: #fff; font-size: 1rem; margin: 16px 0 10px; }
.footer-meta { font-size: 0.9rem; max-width: 320px; color: rgba(255,255,255,0.92) !important; }
.footer-heading { color: #fff; font-size: 0.95rem; font-family: var(--font-display); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 18px; }
.footer-links li, .footer-contact li { margin-bottom: 10px; }
.footer-links a { color: rgba(255,255,255,0.78); }
.footer-links a:hover { color: var(--accent-light); }
.footer-contact .fc-label { display: block; font-size: 0.74rem; color: rgba(255,255,255,0.55); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 2px; }
.footer-contact a, .footer-contact span { color: rgba(255,255,255,0.92); font-weight: 500; display: block; }
.footer-contact a:hover { color: var(--accent-light); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding: 20px 0; }
.footer-bottom-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 0.85rem; color: #fff; }
.footer-bottom-inner p { color: #fff; }
.footer-credit { color: var(--accent-light); font-family: var(--font-display); font-weight: 600; }

/* Service section head with image */
.service-section-head {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: center;
    margin-bottom: 40px;
}
.service-section-head-copy { width: 100%; }
.service-section-head-image {
    aspect-ratio: 16 / 9;
    background-size: cover;
    background-position: center;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

/* Service item card body (base — must be before responsive overrides) */
.service-item-body { padding: 20px 22px 22px; }

/* Blog card body (base — must be before responsive overrides) */
.blog-card-body { padding: 24px 26px 26px; display: flex; flex-direction: column; gap: 12px; flex: 1; }

/* ==========================================================================
   Responsive — Strategy: 1024px (tablet) → 860px (phone) → 480px (small) → 380px (tiny)
   ========================================================================== */

/* ---- Tablet (≤1024px) ---- */
@media (max-width: 1024px) {
    .hero-grid { grid-template-columns: 1fr; gap: 40px; }
    .hero-visual { min-height: 260px; max-width: 460px; }
    .two-col { grid-template-columns: 1fr; gap: 32px; }
    .mission-grid, .mission-grid-3 { grid-template-columns: 1fr; }
    .process-list { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .contact-layout { grid-template-columns: 1fr; gap: 32px; }
    .article-layout { grid-template-columns: 1fr; }
    .article-aside { position: static; }
    .why-grid { grid-template-columns: repeat(2, 1fr); }
    .clients-grid { grid-template-columns: repeat(3, 1fr); }
    .service-section-head { grid-template-columns: 1fr; }
    .service-section-head-image { display: none; }
}

/* ---- Phone (≤860px) — slide-in drawer + grid collapse ---- */
@media (max-width: 860px) {
    /* Container & spacing */
    .container { padding-inline: 16px; }
    .section { padding: 48px 0; }
    .hero { padding: 40px 0 44px; }

    /* Header */
    .header-inner { height: 60px; }
    .brand-logo { height: 48px; }
    .header-phone { display: none; }
    .nav-toggle { display: flex; }
    .header-actions { margin-left: auto; }
    .nav-close { display: flex; }

    /* Slide-in drawer */
    .primary-nav {
        position: fixed;
        top: 0; right: 0;
        height: 100vh;
        width: min(300px, 82vw);
        background: var(--surface);
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0;
        padding: 76px 18px 24px;
        box-shadow: -8px 0 32px rgba(17, 17, 17, 0.18);
        transform: translateX(100%);
        transition: transform .25s ease;
        overflow-y: auto;
        z-index: 110;
    }
    .primary-nav.open { transform: translateX(0); }
    .nav-list { flex-direction: column; gap: 0; width: 100%; }
    .nav-list li { width: 100%; }
    .nav-link {
        display: flex; align-items: center;
        padding: 14px 12px;
        border-radius: 8px;
        font-size: 1.05rem;
        border-bottom: 1px solid var(--border);
        min-height: 48px;
    }
    .nav-link.is-active::after { display: none; }
    .nav-link.is-active { background: var(--surface-tint); }
    .nav-cta {
        margin: 14px 0 0;
        width: 100%;
        min-height: 48px;
    }

    /* Grids → single column or 2-col */
    .pillar-grid { grid-template-columns: 1fr; }
    .service-item-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .blog-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .why-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .testimonial-grid { grid-template-columns: 1fr; }
    .tmarquee-card { width: 280px; padding: 20px 18px; }
    .tmarquee-quote { font-size: 0.88rem; -webkit-line-clamp: 3; }
    .clients-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .notes-grid { grid-template-columns: 1fr; }
    .rig-gallery { grid-template-columns: 1fr; }
    .two-col-reverse .two-col-copy,
    .two-col-reverse .two-col-aside { order: 0; }

    /* Card padding tighten for 2-col mobile */
    .service-item-body { padding: 10px 10px 12px; }
    .blog-card-body { padding: 10px 12px 12px; }
    .blog-card-meta { flex-direction: column; align-items: flex-start; gap: 4px; }
    .why-card { padding: 12px 10px; }
    .process-list li { padding: 12px 10px; }
    .client-chip { padding: 10px 6px; font-size: 0.85rem; }

    /* Hero */
    .hero-visual { display: none; }
    .hero-cta { flex-wrap: nowrap; gap: 10px; }
    .hero-cta .btn { flex: 1 1 0; min-width: 0; }
    .hero-stats { gap: 20px; }
    .hero-stats strong { font-size: 1.5rem; }

    /* CTA band — stack buttons */
    .cta-inner { flex-direction: column; align-items: stretch; gap: 16px; }
    .cta-inner .btn { width: 100%; }

    /* Page hero */
    .page-hero { padding: 40px 0; }
    .page-cta { gap: 10px; flex-wrap: nowrap; }
    .page-cta .btn { flex: 1 1 0; min-width: 0; }

    /* Footer */
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
    .footer-brand { grid-column: 1 / -1; }

    /* Contact cards */
    .contact-cards { grid-template-columns: 1fr 1fr; }

    /* Form */
    .contact-form-wrap { padding: 22px; }

    /* WhatsApp float */
    .wa-float { bottom: 16px; right: 16px; width: 50px; height: 50px; }

    /* Section head */
    .section-head { margin-bottom: 32px; }

    /* Aside image */
    .aside-image-large { aspect-ratio: 16 / 10; }
}

/* ---- Small phone (≤480px) ---- */
@media (max-width: 480px) {
    /* Container & spacing */
    .container { padding-inline: 14px; }
    .section { padding: 36px 0; }
    .hero { padding: 32px 0 32px; }
    .page-hero { padding: 32px 0; }

    /* Typography */
    h1 { font-size: 1.65rem; }
    h2 { font-size: 1.35rem; }
    h3 { font-size: 1.1rem; }
    .hero-title { font-size: 1.65rem; }
    .page-title { font-size: 1.5rem; }
    .section-title { font-size: 1.3rem; }
    .hero-lead { font-size: 0.98rem; }
    .page-lead { font-size: 0.95rem; }
    .cta-title { font-size: 1.2rem; }
    .cta-text { font-size: 0.9rem; }

    /* Header */
    .header-inner { height: 56px; }
    .brand-logo { height: 44px; }

    /* Hero */
    .hero-stats { flex-wrap: nowrap; gap: 10px; padding-top: 20px; }
    .hero-stats li { flex: 1 1 0; min-width: 0; }
    .hero-stats strong { font-size: 1.3rem; }
    .hero-stats span { font-size: 0.72rem; }

    /* Grids → 2 columns */
    .service-item-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .process-list { grid-template-columns: 1fr 1fr; gap: 12px; }
    .clients-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .blog-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .contact-cards { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }

    /* Form */
    .form-grid-2 { grid-template-columns: 1fr; }
    .contact-form-wrap { padding: 18px; }
    .quote-form { gap: 14px; }
    input, select, textarea { padding: 12px 12px; min-height: 48px; font-size: 16px; }
    textarea { min-height: 100px; }

    /* Footer */
    .footer-bottom-inner { flex-direction: column; align-items: flex-start; gap: 8px; }
    .footer-logo { height: 38px; }

    /* Buttons */
    .btn { padding: 12px 18px; font-size: 0.9rem; min-height: 44px; }
    .btn-sm { padding: 8px 14px; font-size: 0.82rem; min-height: 40px; }
    .page-cta .btn, .hero-cta .btn { padding: 10px 12px; font-size: 0.82rem; }

    /* Cards */
    .pillar { padding: 24px 20px; }
    .pillar-image { aspect-ratio: 16 / 10; }
    .service-item-body { padding: 8px 8px 10px; }
    .service-item-title { font-size: 0.88rem; }
    .service-item-desc { font-size: 0.78rem; }
    .blog-card-body { padding: 8px 10px 10px; gap: 6px; }
    .blog-card-title { font-size: 0.92rem; }
    .blog-card-excerpt { font-size: 0.78rem; }
    .testimonial-card { padding: 22px; }
    .mission-card { padding: 24px 20px; }
    .why-card { padding: 10px 8px; }
    .why-title { font-size: 0.88rem; }
    .why-desc { font-size: 0.78rem; }
    .why-grid { gap: 8px; }
    .process-list li { padding: 10px 8px; }
    .process-title { font-size: 0.88rem; }
    .process-list li p { font-size: 0.78rem; }
    .client-chip { padding: 10px 4px; font-size: 0.76rem; }
    .service-item-grid, .blog-grid, .clients-grid { gap: 8px; }

    /* Section head */
    .section-head { margin-bottom: 28px; }

    /* Stat highlight */
    .stat-big { font-size: 3rem; }
    .stat-highlight { padding: 28px 20px; }

    /* Map */
    .map-embed iframe { height: 280px; }

    /* WhatsApp float */
    .wa-float { bottom: 14px; right: 14px; width: 48px; height: 48px; }
    .wa-float svg { width: 24px; height: 24px; }

    /* Article */
    .article-body p { font-size: 0.95rem; }
    .article-cta { padding: 20px; }

    /* Rig spec card */
    .rig-spec-card { padding: 20px; }

    /* FAQ */
    .faq-q { padding: 16px 18px; font-size: 0.95rem; }
    .faq-a { padding: 0 18px 16px; }
    .faq-a p { font-size: 0.9rem; }
}

/* ---- Tiny phone (≤380px) ---- */
@media (max-width: 380px) {
    .container { padding-inline: 12px; }
    .section { padding: 30px 0; }
    .hero { padding: 28px 0 28px; }

    h1 { font-size: 1.45rem; }
    .hero-title { font-size: 1.45rem; }
    .page-title { font-size: 1.35rem; }
    h2 { font-size: 1.2rem; }
    .section-title { font-size: 1.2rem; }

    .hero-lead { font-size: 0.9rem; }
    .page-lead { font-size: 0.88rem; }

    .brand-logo { height: 40px; }
    .header-inner { height: 52px; }

    .stat-big { font-size: 2.5rem; }
    .stat-highlight { padding: 22px 16px; }
    .hero-stats strong { font-size: 1.1rem; }
    .hero-stats span { font-size: 0.65rem; }

    .pillar { padding: 20px 16px; }
    .service-item-body { padding: 8px 8px 10px; }
    .blog-card-body { padding: 8px 10px 10px; }
    .testimonial-card { padding: 18px; }
    .tmarquee-card { width: 250px; padding: 16px 14px; gap: 10px; }
    .tmarquee-quote { font-size: 0.82rem; }
    .tma-name { font-size: 0.82rem; }
    .tma-role { font-size: 0.72rem; }
    .mission-card { padding: 20px 16px; }
    .contact-form-wrap { padding: 16px; }

    .contact-cards { gap: 12px; }
    .footer-grid { gap: 20px; }

    .wa-float { width: 44px; height: 44px; bottom: 12px; right: 12px; }
    .wa-float svg { width: 22px; height: 22px; }

    .map-embed iframe { height: 240px; }

    .page-cta .btn, .hero-cta .btn { padding: 9px 8px; font-size: 0.76rem; }
}

/* ==========================================================================
   Image components
   ========================================================================== */
/* Hero with background image + solid overlay (no gradient) */
.hero-with-bg { position: relative; }
.hero-with-bg::before { z-index: 0; }
.hero-with-bg::after { z-index: 0; }
.hero-with-bg .hero-grid { z-index: 2; }
.hero-with-bg::after {
    content: "";
    position: absolute; inset: 0;
    background: var(--primary);
    opacity: 0.88;
    border-radius: 0;
    width: 100%; height: 100%;
    left: 0; bottom: 0; top: 0; right: 0;
}
.hero-with-bg { background-image: var(--hero-bg); background-size: cover; background-position: center; }

/* Page hero with background image */
.page-hero-with-bg { background-image: var(--page-hero-bg); background-size: cover; background-position: center; position: relative; }
.page-hero-with-bg::after {
    content: "";
    position: absolute; inset: 0;
    background: var(--primary);
    opacity: 0.85;
    border-radius: 0;
    width: 100%; height: 100%;
    left: 0; bottom: 0; top: 0; right: 0;
}
.page-hero-with-bg.page-hero-rig::after { background: var(--primary-dark); opacity: 0.85; }
.page-hero-with-bg .container { position: relative; z-index: 2; }

/* CTA band with background image */
.cta-band-with-bg { background-image: var(--cta-bg); background-size: cover; background-position: center; position: relative; }
.cta-band-with-bg::before {
    content: "";
    position: absolute; inset: 0;
    background: var(--ink-1);
    opacity: 0.82;
}
.cta-band-with-bg .container { position: relative; z-index: 2; }

/* Pillar image thumbnail */
.pillar-image {
    aspect-ratio: 16 / 9;
    background-size: cover;
    background-position: center;
    border-radius: var(--radius);
    margin: -8px -8px 0;
    overflow: hidden;
}
.pillar { overflow: hidden; }

/* Aside image (next to two-col copy) */
.aside-image {
    width: 100%;
    border-radius: var(--radius-lg);
    margin-bottom: 20px;
    box-shadow: var(--shadow-md);
}
.aside-image-large { aspect-ratio: 4 / 3; object-fit: cover; }

/* Section banner image */
.section-banner-image {
    width: 100%;
    max-height: 320px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    margin-bottom: 36px;
    box-shadow: var(--shadow-md);
}

/* Service item card with image */
.service-item-card { padding: 0; overflow: hidden; }
.service-item-image {
    aspect-ratio: 16 / 10;
    background-size: cover;
    background-position: center;
}

/* Blog card with image */
.blog-card { padding: 0; overflow: hidden; }
.blog-card-image {
    aspect-ratio: 16 / 9;
    background-size: cover;
    background-position: center;
}

/* Article image */
.article-image {
    width: 100%;
    border-radius: var(--radius-lg);
    margin: 24px 0;
    box-shadow: var(--shadow-md);
}

/* Rig gallery */
.rig-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.rig-gallery-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

/* Two col reverse */
.two-col-reverse .two-col-copy { order: 1; }
.two-col-reverse .two-col-aside { order: 2; }

/* Gran100 showcase */
.gran100-showcase { background: var(--surface-tint); }

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
    .btn:hover, .pillar:hover, .why-card:hover, .blog-card:hover, .service-item-card:hover, .client-chip:hover, .wa-float:hover { transform: none; }
    .testimonials-marquee { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .testimonials-marquee { -webkit-mask-image: none; mask-image: none; }
}
