/*
Theme Name: Batum Technology (Astra Child)
Theme URI: https://batumaccess.com
Template: astra
Author: Batum Technology
Description: Astra child theme for Batum Technology. Astra (the parent theme, install and activate it first) provides the header, footer, nav menu and general theme chrome — this child theme only overrides the custom post type templates (Products/Solutions/Projects/Downloads, from the batum-core plugin) and layers on the brand's color palette and components. Requires the Astra parent theme and the batum-core plugin.
Version: 1.1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: batum
*/

:root {
  --white: #ffffff;
  --off-white: #f6f7f9;
  --graphite: #14171c;
  --navy: #0b1220;
  --metal: #8a92a0;
  --metal-light: #c8ccd4;
  --line: #e4e6eb;
  --servo-blue: #1c5cff;
  --servo-blue-dark: #123fb0;
  --cyan: #17b6d4;
  --orange: #d9662b;
  --radius: 14px;
}

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }

/*
 * Astra's content container uses flexbox for its content+sidebar layout.
 * Every template in this theme outputs a single .batum-page wrapper as the
 * only child of that container specifically so it isn't laid out as a flex
 * item next to anything else — this just makes sure that one child fills
 * the row and its own children (our <section> elements) stack normally via
 * ordinary block flow, regardless of what the parent container does.
 */
.batum-page { display: block; width: 100%; max-width: 100%; }
.batum-page > * { width: 100%; }

/* Language switcher (appended to the primary menu by functions.php) */
.batum-lang-switcher { position: relative; }
.batum-lang-switcher > a.batum-lang-current::after { content: " \25BE"; font-size: 10px; }
.batum-lang-dropdown {
  display: none; position: absolute; top: 100%; right: 0; z-index: 100;
  min-width: 160px; margin: 0; padding: 6px; list-style: none;
  background: var(--white); border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 12px 30px rgba(15,23,42,0.12);
}
.batum-lang-switcher:hover .batum-lang-dropdown,
.batum-lang-switcher:focus-within .batum-lang-dropdown { display: block; }
.batum-lang-dropdown li { list-style: none; margin: 0; }
.batum-lang-dropdown a {
  display: block; padding: 8px 12px; font-size: 13px; color: var(--graphite);
  border-radius: 6px; white-space: nowrap;
}
.batum-lang-dropdown a:hover { background: var(--off-white); color: var(--servo-blue); }
.batum-lang-dropdown li.lang-item-current a { color: var(--servo-blue); font-weight: 700; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  border-radius: 999px; padding: 13px 26px; font-size: 13px; font-weight: 700;
  letter-spacing: 0.02em; border: 1px solid transparent; text-transform: uppercase;
}
.btn-primary { background: var(--servo-blue); color: var(--white); }
.btn-primary:hover { background: var(--servo-blue-dark); color: var(--white); }
.btn-secondary { border-color: var(--line); background: var(--white); color: var(--graphite); }
.btn-secondary:hover { border-color: var(--graphite); color: var(--graphite); }

/* Dark section (navy) — used for ~20-30% of the page, per the brand brief */
.dark-section { background: var(--navy); color: var(--white); padding: 88px 0; }
.dark-section .kicker { color: var(--cyan); }
.dark-section .section-title, .dark-section h1, .dark-section h2, .dark-section h3 { color: var(--white); }
.dark-section .section-body, .dark-section p { color: var(--metal-light); }
.dark-section .glass-card { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.1); }
.dark-section .glass-card h3 { color: var(--white); }
.dark-section .glass-card p { color: var(--metal-light); }

/* Hero */
.hero { padding: 90px 0 70px; }
.hero-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.1fr 0.9fr; } }
.kicker { margin: 0 0 18px; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.22em; color: var(--servo-blue); }
.hero h1 { font-size: clamp(38px, 5.2vw, 68px); font-weight: 700; letter-spacing: -0.035em; margin: 0 0 22px; color: var(--graphite); }
.hero p.lede { max-width: 560px; font-size: 18px; line-height: 1.7; color: #4c5462; margin: 0 0 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Stat counters */
.stat-grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); text-align: center; }
.stat-value { font-size: clamp(32px, 4vw, 48px); font-weight: 800; letter-spacing: -0.02em; color: var(--servo-blue); }
.dark-section .stat-value { color: var(--cyan); }
.stat-label { margin-top: 6px; font-size: 13px; color: var(--metal); text-transform: uppercase; letter-spacing: 0.06em; }

/* Sections */
.section { padding: 72px 0; }
.section.section-tight { padding: 48px 0; }
.section h1.page-title, .section h2.section-title { font-size: clamp(28px, 4vw, 42px); font-weight: 700; letter-spacing: -0.03em; color: var(--graphite); margin: 0 0 16px; }
.section .section-body { max-width: 680px; font-size: 16px; line-height: 1.8; color: #4c5462; margin: 0 0 44px; }
.section-off-white { background: var(--off-white); }

/* Cards */
.card-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card-grid.cols-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.glass-card {
  border: 1px solid var(--line); background: var(--white); border-radius: var(--radius);
  padding: 30px; transition: border-color 0.15s ease, transform 0.15s ease; display: block;
}
.glass-card:hover { border-color: var(--servo-blue); transform: translateY(-2px); }
.glass-card h3 { margin: 0 0 12px; font-size: 19px; font-weight: 700; color: var(--graphite); }
.glass-card p { margin: 0; font-size: 14px; line-height: 1.75; color: #5b6472; }

.badge {
  display: inline-flex; border-radius: 999px; border: 1px solid rgba(28,92,255,0.25);
  background: rgba(28,92,255,0.08); color: var(--servo-blue-dark);
  font-size: 11px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 5px 12px; margin-bottom: 16px;
}

.spec-table { width: 100%; border-collapse: collapse; margin-top: 20px; font-size: 14px; }
.spec-table th, .spec-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.spec-table th { color: var(--metal); text-transform: uppercase; font-size: 11px; letter-spacing: 0.05em; font-weight: 700; }

.highlight-list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; font-size: 14px; color: var(--graphite); }
.highlight-list li::before { content: "\2713 "; color: var(--servo-blue); font-weight: 800; }

.gallery-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); margin-top: 20px; }
.gallery-grid img { border-radius: 10px; aspect-ratio: 1; object-fit: cover; }

.breadcrumb { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--metal); margin-bottom: 20px; }
.breadcrumb a { color: var(--metal); }
.breadcrumb a:hover { color: var(--servo-blue); }

/* Forms */
.field { display: grid; gap: 8px; font-size: 13px; font-weight: 700; color: var(--graphite); margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.03em; }
.field input, .field textarea, .field select {
  border-radius: 10px; border: 1px solid var(--line); background: var(--white); color: var(--graphite);
  padding: 12px 16px; font-size: 14px; font-family: inherit; font-weight: 400; text-transform: none;
}
.field textarea { min-height: 120px; }
