/*
Theme Name: QOMILAX
Theme URI: https://qomilax.com/
Author: QOMILAX
Author URI: https://qomilax.com/
Description: A responsive editorial storefront theme for the QOMILAX consumer electronics brand.
Version: 1.0.0
Text Domain: qomilax
*/

:root {
  --ink: #10151c;
  --muted: #68717e;
  --line: #e7e9ec;
  --paper: #f7f7f5;
  --white: #ffffff;
  --blue: #1b63f0;
  --blue-dark: #1246b1;
  --sand: #e9e5de;
  --radius-lg: 28px;
  --radius-md: 18px;
  --shadow: 0 18px 60px rgba(16, 21, 28, .10);
  --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button, a { -webkit-tap-highlight-color: transparent; }
.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

.site-shell { overflow: hidden; }
.container { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; }
.section { padding: 112px 0; }
.section--paper { background: var(--paper); }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .16em;
  line-height: 1;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; }
.section-title { margin: 18px 0 0; max-width: 730px; font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; font-size: clamp(34px, 5vw, 62px); font-weight: 700; line-height: 1.08; letter-spacing: -.02em; }
.section-lead { max-width: 560px; margin: 22px 0 0; color: var(--muted); font-size: 17px; }

.site-header {
  position: relative;
  z-index: 50;
  background: rgba(255,255,255,.92);
  border-bottom: 1px solid rgba(231,233,236,.8);
  backdrop-filter: blur(16px);
}
.nav-wrap { height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: .18em; font-size: 17px; }
.brand-mark { position: relative; width: 28px; height: 28px; border: 2px solid var(--ink); border-radius: 50%; }
.brand-mark::after { content: ""; position: absolute; width: 8px; height: 8px; top: 8px; left: 8px; background: var(--blue); border-radius: 50%; box-shadow: 0 0 0 4px rgba(27,99,240,.12); }
.nav-links { display: flex; align-items: center; gap: 34px; margin-left: auto; }
.nav-links a { color: #4c5561; font-size: 14px; font-weight: 600; transition: color .2s ease; }
.nav-links a:hover, .nav-links a:focus-visible { color: var(--blue); }
.nav-cta { display: inline-flex !important; align-items: center; gap: 9px; color: var(--ink) !important; }
.nav-cta::after { content: "↗"; color: var(--blue); font-size: 18px; line-height: 1; }
.menu-toggle { display: none; border: 0; background: transparent; padding: 8px; color: var(--ink); font-size: 24px; cursor: pointer; }

.hero { position: relative; padding: 70px 0 90px; background: var(--paper); }
.hero-grid { display: grid; grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); align-items: center; gap: 64px; min-height: 610px; }
.hero-copy { position: relative; z-index: 2; }
.hero h1 { max-width: 610px; margin: 22px 0 24px; font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; font-size: clamp(48px, 7vw, 92px); font-weight: 700; line-height: 1.02; letter-spacing: -.025em; }
.hero h1 em { color: var(--blue); font-style: normal; }
.hero-text { max-width: 510px; color: var(--muted); font-size: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 22px; border: 1px solid var(--ink); border-radius: 999px; font-size: 14px; font-weight: 750; transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease; }
.button:hover, .button:focus-visible { transform: translateY(-2px); }
.button--dark { background: var(--ink); color: white; }
.button--dark:hover, .button--dark:focus-visible { background: var(--blue); border-color: var(--blue); }
.button--ghost { border-color: var(--line); background: rgba(255,255,255,.6); color: var(--ink); }
.button--ghost:hover, .button--ghost:focus-visible { border-color: var(--blue); color: var(--blue); }
.hero-note { display: flex; align-items: center; gap: 12px; margin-top: 56px; color: #89919b; font-size: 12px; }
.hero-note::before { content: ""; width: 42px; height: 1px; background: #b7bdc4; }
.hero-visual { position: relative; min-height: 560px; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.hero-visual::after { content: "QOMILAX"; position: absolute; right: 26px; bottom: 20px; color: rgba(255,255,255,.75); font-size: 11px; font-weight: 800; letter-spacing: .24em; }
.hero-visual img { width: 100%; height: 100%; min-height: 560px; object-fit: cover; }

.intro { display: grid; grid-template-columns: .8fr 1.2fr; gap: 100px; align-items: start; }
.intro-copy { padding-top: 8px; }
.intro-copy p { max-width: 630px; margin: 0; color: var(--muted); font-size: 21px; line-height: 1.55; }
.metric-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 54px; }
.metric { padding-top: 18px; border-top: 1px solid var(--line); }
.metric strong { display: block; font-size: 33px; letter-spacing: -.015em; }
.metric span { color: var(--muted); font-size: 13px; }

.products-head { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 42px; }
.products-head .section-title { max-width: 600px; }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.product-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-md); background: #fff; transition: transform .25s ease, box-shadow .25s ease; }
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.product-image { aspect-ratio: 1 / 1; overflow: hidden; background: var(--paper); }
.product-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.product-card:hover .product-image img { transform: scale(1.04); }
.product-content { padding: 23px 24px 26px; }
.product-kicker { color: var(--blue); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.product-content h3 { margin: 8px 0 7px; font-size: 25px; letter-spacing: -.015em; }
.product-content p { min-height: 52px; margin: 0; color: var(--muted); font-size: 14px; }
.text-link { display: inline-flex; align-items: center; gap: 7px; margin-top: 20px; color: var(--ink); font-size: 13px; font-weight: 800; }
.text-link::after { content: "→"; color: var(--blue); font-size: 17px; transition: transform .2s ease; }
.text-link:hover::after { transform: translateX(4px); }

.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 56px; }
.feature { position: relative; min-height: 340px; padding: 34px; border-radius: var(--radius-md); overflow: hidden; background: var(--ink); color: white; }
.feature:nth-child(2) { background: var(--blue); }
.feature::after { content: ""; position: absolute; width: 220px; height: 220px; right: -58px; bottom: -85px; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; box-shadow: 0 0 0 24px rgba(255,255,255,.06), 0 0 0 48px rgba(255,255,255,.04); }
.feature-number { display: block; color: rgba(255,255,255,.58); font-size: 13px; font-weight: 800; letter-spacing: .14em; }
.feature h3 { max-width: 350px; margin: 60px 0 12px; font-size: clamp(26px, 3vw, 40px); line-height: 1.1; letter-spacing: -.015em; }
.feature p { max-width: 430px; margin: 0; color: rgba(255,255,255,.72); font-size: 14px; }

.story { display: grid; grid-template-columns: .95fr 1.05fr; align-items: center; gap: 90px; }
.story-card { position: relative; min-height: 520px; padding: 40px; border-radius: var(--radius-lg); overflow: hidden; background: linear-gradient(140deg, #dce7f7 0%, #f2ede6 48%, #171c23 100%); }
.story-card::before { content: "Q"; position: absolute; left: 14%; bottom: 4%; color: rgba(255,255,255,.55); font-size: 290px; font-weight: 900; line-height: .8; letter-spacing: -.2em; }
.story-card-content { position: relative; z-index: 1; max-width: 230px; }
.story-card-content strong { display: block; font-size: 14px; letter-spacing: .12em; }
.story-card-content span { display: block; margin-top: 8px; color: rgba(16,21,28,.62); font-size: 13px; }
.story-list { display: grid; gap: 26px; margin-top: 38px; }
.story-item { display: grid; grid-template-columns: 1fr; padding-top: 22px; border-top: 1px solid var(--line); }
.story-item h3 { margin: 0 0 5px; font-size: 20px; letter-spacing: -.03em; }
.story-item p { margin: 0; color: var(--muted); font-size: 14px; }

.contact { position: relative; padding: 94px 0; background: var(--ink); color: white; overflow: hidden; }
.contact::before { content: ""; position: absolute; width: 660px; height: 660px; right: -170px; top: -310px; border: 1px solid rgba(255,255,255,.13); border-radius: 50%; box-shadow: 0 0 0 58px rgba(255,255,255,.035), 0 0 0 116px rgba(255,255,255,.025); }
.contact-grid { position: relative; z-index: 1; display: flex; align-items: end; justify-content: space-between; gap: 50px; }
.contact .eyebrow { color: #8fb3ff; }
.contact h2 { max-width: 780px; margin: 18px 0 0; font-size: clamp(40px, 6vw, 76px); font-weight: 700; line-height: 1.04; letter-spacing: -.02em; }
.contact p { max-width: 500px; margin: 24px 0 0; color: rgba(255,255,255,.64); }
.contact .button { flex: 0 0 auto; border-color: white; background: white; color: var(--ink); }
.contact .button:hover, .contact .button:focus-visible { border-color: var(--blue); background: var(--blue); color: white; }

.site-footer { padding: 30px 0; background: #0b0f14; color: rgba(255,255,255,.6); }
.footer-grid { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.footer-brand { color: white; }
.footer-copy { margin: 0; font-size: 12px; }
.footer-contact { display: grid; gap: 3px; font-size: 12px; }
.footer-contact span { color: rgba(255,255,255,.42); font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.footer-contact a { color: white; }
.footer-links { display: flex; gap: 22px; font-size: 12px; }
.footer-links a:hover { color: white; }

.page-hero { padding: 92px 0 96px; background: var(--paper); }
.page-hero--blue { background: var(--blue); color: white; }
.page-hero--dark { background: var(--ink); color: white; }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, .75fr); align-items: center; gap: 80px; min-height: 390px; }
.page-hero h1 { max-width: 720px; margin: 20px 0 24px; font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; font-size: clamp(48px, 7vw, 88px); font-weight: 700; line-height: 1.04; letter-spacing: -.02em; }
.page-hero p { max-width: 590px; margin: 0; color: var(--muted); font-size: 18px; }
.page-hero--blue p, .page-hero--dark p { color: rgba(255,255,255,.7); }
.page-hero--blue .eyebrow, .page-hero--dark .eyebrow { color: #a9c4ff; }
.page-hero-image { min-height: 320px; overflow: hidden; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.page-hero-image img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; }
.page-hero-image--dark { box-shadow: 0 18px 60px rgba(0,0,0,.28); }
.page-split { display: grid; grid-template-columns: .85fr 1.15fr; gap: 110px; align-items: start; }
.page-copy { color: var(--muted); font-size: 18px; }
.page-copy p { margin: 0 0 20px; }
.principle-grid, .service-grid, .news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 54px; }
.principle-card, .service-card, .news-card { padding: 30px; border: 1px solid var(--line); border-radius: var(--radius-md); background: white; }
.principle-card { min-height: 300px; background: var(--paper); border-color: transparent; }
.principle-card > span { color: var(--blue); font-size: 13px; font-weight: 800; }
.principle-card h3, .service-card h3, .news-card h3 { margin: 64px 0 12px; font-size: 28px; line-height: 1.1; letter-spacing: -.015em; }
.principle-card p, .service-card p, .news-card p { margin: 0; color: var(--muted); font-size: 14px; }
.narrow-cta { max-width: 850px; }
.narrow-cta .button { margin-top: 30px; }
.service-card { min-height: 360px; }
.service-card > span, .news-meta { color: var(--blue); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.service-card h3 { margin-top: 74px; }
.service-card .text-link { margin-top: 28px; }
.product-grid--large .product-card { box-shadow: 0 10px 40px rgba(16,21,28,.05); }
.products-page-head, .news-head { display: flex; align-items: end; justify-content: space-between; gap: 50px; }
.products-page-head > p { max-width: 370px; margin: 0 0 5px; color: var(--muted); font-size: 15px; }
.news-status { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 8px; color: var(--muted); font-size: 13px; }
.news-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); }
.news-card { min-height: 315px; }
.news-card--featured { grid-column: span 2; background: var(--ink); color: white; }
.news-card--featured p { color: rgba(255,255,255,.64); }
.news-card--featured .product-kicker, .news-card--featured .news-meta { color: #9ebcff; }
.news-card h3 { margin-top: 68px; }
.news-meta { display: block; margin-top: 36px; color: #89919b; font-size: 10px; letter-spacing: .08em; }
.help-layout, .contact-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: 100px; align-items: start; }
.help-layout .button { margin-top: 28px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 23px 0; cursor: pointer; list-style: none; font-size: 18px; font-weight: 700; letter-spacing: -.02em; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; color: var(--blue); font-size: 24px; font-weight: 400; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { max-width: 580px; margin: -5px 0 24px; color: var(--muted); font-size: 14px; }
.contact-detail { display: grid; gap: 4px; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); }
.contact-detail a { width: fit-content; color: var(--blue); font-size: 22px; font-weight: 700; letter-spacing: -.03em; }
.contact-detail small { color: var(--muted); font-size: 12px; }
.contact-panel { padding: 34px; border-radius: var(--radius-md); background: var(--paper); }
.contact-panel ul { display: grid; gap: 17px; margin: 25px 0 34px; padding: 0; list-style: none; color: var(--muted); font-size: 15px; }
.contact-panel li { display: flex; gap: 12px; }
.contact-panel li::before { content: "↗"; color: var(--blue); font-weight: 800; }

@media (max-width: 900px) {
  .container { width: min(var(--max), calc(100% - 36px)); }
  .nav-wrap { height: 70px; }
  .menu-toggle { display: block; }
  .nav-links { position: absolute; top: 70px; left: 18px; right: 18px; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 10px; border: 1px solid var(--line); border-radius: 16px; background: white; box-shadow: var(--shadow); }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 12px 14px; }
  .hero { padding: 42px 0 54px; }
  .hero-grid, .intro, .story, .page-hero-grid, .page-split, .help-layout, .contact-layout { grid-template-columns: 1fr; gap: 44px; }
  .hero-grid { min-height: 0; }
  .hero-visual, .hero-visual img { min-height: 420px; }
  .intro { gap: 30px; }
  .feature-grid { grid-template-columns: 1fr; }
  .story-card { min-height: 360px; }
  .contact-grid { display: block; }
  .contact .button { margin-top: 30px; }
  .page-hero { padding: 70px 0; }
  .page-hero-image { min-height: 300px; }
  .page-hero-image img { min-height: 300px; }
  .principle-grid, .service-grid, .news-grid { grid-template-columns: 1fr; }
  .news-card--featured { grid-column: auto; }
  .products-page-head, .news-head { display: block; }
  .products-page-head > p { margin-top: 24px; }
  .news-status { margin-top: 24px; }
}

@media (max-width: 620px) {
  .section { padding: 76px 0; }
  .container { width: min(var(--max), calc(100% - 28px)); }
  .hero h1 { font-size: 54px; }
  .hero-text { font-size: 16px; }
  .hero-visual, .hero-visual img { min-height: 310px; }
  .metric-row, .product-grid { grid-template-columns: 1fr; }
  .metric-row { gap: 12px; }
  .products-head { display: block; margin-bottom: 28px; }
  .products-head .button { margin-top: 24px; }
  .feature { min-height: 280px; padding: 26px; }
  .feature h3 { margin-top: 42px; }
  .page-hero h1 { font-size: 54px; }
  .principle-card, .service-card, .news-card { min-height: 0; }
  .principle-card h3, .service-card h3, .news-card h3 { margin-top: 44px; }
  .footer-grid { align-items: start; flex-direction: column; }
  .footer-links { flex-wrap: wrap; }
}
