/*
Theme Name: Hellik Enterprise
Theme URI: https://www.hellikenterprise.com
Author: Girish Naik
Description: Custom theme for Hellik Enterprise: solar, CCTV, access control and automated gates in Mumbai. Mobile-first, with a solar savings estimator, service pages and an enquiry form that emails the owner.
Version: 1.0.0
Requires at least: 5.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hellik-enterprise
Tags: business, custom-logo, custom-menu, featured-images, one-column, translation-ready
*/

/* Hellik Enterprise – shared styles
   Brand colours come from the logo: purple #801968, orange #F46516 */
:root {
  --purple: #801968;
  --purple-deep: #5E1050;
  --plum: #3E0D35;
  --orange: #F46516;
  --orange-hover: #FF7B33;
  --on-orange: #2A0A25;
  --ink: #2A0A25;
  --muted: #5E4A5A;
  --bg: #FCF8FB;
  --surface: #FFFFFF;
  --tint: #F8EDF4;
  --warm: #FFF1E8;
  --line: #E6D3DF;
  --light-text: #FFFFFF;
  --light-muted: #E9CFE2;
  --light-line: #8A3A78;
  --focus: #005FCC;
  --danger: #B3261E;
  --display: "Exo 2", "Segoe UI", system-ui, sans-serif;
  --body: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;
  --gutter: clamp(20px, 4vw, 40px);
  --section: clamp(52px, 7.5vw, 96px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 1.0625rem/1.6 var(--body); -webkit-text-size-adjust: 100%;
}
img, svg { max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--display); margin: 0; line-height: 1.14; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.05rem, 5vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.65rem, 3.4vw, 2.4rem); font-weight: 700; color: var(--purple); }
h3 { font-size: 1.3rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--purple); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.on-dark :focus-visible, .footer :focus-visible { outline-color: #FFC9A6; }

.wrap { width: min(1160px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.skip { position: absolute; left: 12px; top: -64px; z-index: 100; background: var(--orange); color: var(--on-orange); padding: 10px 16px; border-radius: 8px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-align: center;
  min-height: 50px; padding: 12px 26px; border-radius: 999px; border: 2px solid transparent;
  font: 700 1rem/1.25 var(--body); text-decoration: none; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn-orange { background: var(--orange); color: var(--on-orange); }
.btn-orange:hover { background: var(--orange-hover); }
.btn-purple { background: var(--purple); color: #fff; }
.btn-purple:hover { background: var(--purple-deep); }
.btn-outline { border-color: var(--purple); color: var(--purple); background: transparent; }
.btn-outline:hover { background: var(--tint); }
.btn-outline-light { border-color: var(--light-line); color: #fff; background: transparent; }
.btn-outline-light:hover { border-color: #fff; }
.btn-block { width: 100%; }

/* Header */
.header { position: sticky; top: 0; z-index: 50; background: var(--surface); border-bottom: 1px solid var(--line); }
.header .bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.brand { display: block; flex: none; line-height: 0; }
.brand img { width: 190px; height: auto; display: block; }
.nav { display: none; }
.nav > ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; align-items: center; }
.nav a, .sub-btn {
  display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-radius: 999px; border: 0; background: none;
  font: 600 1rem var(--body); color: var(--muted); text-decoration: none; cursor: pointer;
}
.nav a:hover, .sub-btn:hover { background: var(--tint); color: var(--purple); }
.nav a[aria-current="page"], .sub-btn.current { color: var(--purple); box-shadow: inset 0 -3px 0 var(--orange); border-radius: 12px 12px 0 0; }
.sub-btn svg { width: 14px; height: 14px; transition: transform .15s; }
.sub-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.has-sub { position: relative; }
.sub {
  position: absolute; top: calc(100% + 10px); left: -8px; min-width: 320px; margin: 0; padding: 8px; list-style: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 14px 34px rgba(62, 13, 53, .16);
}
.sub[hidden] { display: none; }
.sub a { display: block; padding: 10px 14px; border-radius: 10px; }
.sub a strong { display: block; color: var(--ink); font-weight: 700; }
.sub a span { display: block; color: var(--muted); font-size: .92rem; font-weight: 400; }
.sub a:hover { background: var(--tint); }
.head-cta { display: none; min-height: 46px; padding: 0 22px; }
.menu-btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 18px; border-radius: 999px;
  border: 1.5px solid var(--purple); background: var(--surface); color: var(--purple); font: 700 .98rem var(--body); cursor: pointer;
}
.menu-btn svg { width: 18px; height: 18px; }
.mobile-nav { display: none; background: var(--surface); border-top: 1px solid var(--line); max-height: calc(100vh - 76px); overflow-y: auto; }
.mobile-nav[data-open="true"] { display: block; }
.mobile-nav ul { list-style: none; margin: 0; padding: 6px var(--gutter) 18px; }
.mobile-nav li > a, .mobile-nav .group { display: block; padding: 14px 4px; border-bottom: 1px solid var(--line); font-weight: 700; text-decoration: none; color: var(--ink); }
.mobile-nav .group { color: var(--muted); font-size: .92rem; border-bottom: 0; padding-bottom: 2px; }
.mobile-nav li.indent > a { padding-left: 18px; font-weight: 600; }
.mobile-nav a[aria-current="page"] { color: var(--purple); box-shadow: inset 4px 0 0 var(--orange); padding-left: 14px; }
@media (min-width: 1000px) {
  .nav { display: block; }
  .head-cta { display: inline-flex; }
  .menu-btn, .mobile-nav { display: none !important; }
}

/* Hero (home) */
.on-dark { background: var(--purple-deep); color: var(--light-text); }
.hero { position: relative; overflow: hidden; }
.hero-sun { position: absolute; right: -80px; top: -60px; width: 260px; height: 260px; pointer-events: none; }
.hero-sun .ray { transform-origin: 200px 200px; animation: ray-in .7s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--i) * 28ms + 100ms); }
@keyframes ray-in { from { transform: scale(0); } to { transform: scale(1); } }
.hero-grid { position: relative; display: grid; gap: 40px; padding: 176px 0 56px; }
.hero h1 { max-width: 15ch; }
.hero .lead { color: var(--light-muted); font-size: 1.15rem; max-width: 46ch; margin: 20px 0 28px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { margin: 18px 0 0; color: var(--light-muted); font-size: .95rem; }
@media (min-width: 960px) {
  .hero-sun { right: -150px; top: -170px; width: 680px; height: 680px; }
  .hero-grid { grid-template-columns: 1.1fr .9fr; align-items: center; gap: 56px; padding: 84px 0 96px; }
}

/* Inner page hero */
.page-hero { position: relative; overflow: hidden; padding: 40px 0 52px; }
.page-hero .wrap { position: relative; }
.page-hero h1 { max-width: 20ch; font-size: clamp(1.9rem, 4.4vw, 3rem); }
.page-hero .lead { color: var(--light-muted); font-size: 1.15rem; max-width: 52ch; margin: 16px 0 26px; }
.page-hero .big-icon { display: none; position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 190px; height: 190px; color: var(--orange); opacity: .95; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; font-size: .95rem; color: var(--light-muted); }
.crumbs a { color: #fff; }
@media (min-width: 900px) { .page-hero { padding: 52px 0 68px; } .page-hero .big-icon { display: block; } }

/* Estimator */
.est { background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 22px; padding: 26px; }
.est h2 { font-size: 1.5rem; color: var(--purple); }
.est .sub-text { color: var(--muted); font-size: .98rem; margin: 6px 0 22px; }
.est label { font-weight: 600; font-size: .98rem; display: block; margin-bottom: 4px; }
.bill-out { font: 800 2.4rem/1.1 var(--display); display: block; margin-bottom: 8px; color: var(--ink); }
.est input[type="range"] { width: 100%; height: 32px; margin: 0; cursor: pointer; accent-color: var(--orange); }
.range-ends { display: flex; justify-content: space-between; color: var(--muted); font-size: .85rem; margin-bottom: 20px; }
.est dl { margin: 0; border-top: 1px solid var(--line); }
.est .row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.est dt { color: var(--muted); }
.est dd { margin: 0; font-weight: 700; font-size: 1.1rem; text-align: right; }
.est .fine { color: var(--muted); font-size: .86rem; margin: 14px 0 18px; line-height: 1.5; }
@media (max-width: 520px) {
  .est .row { flex-direction: column; align-items: flex-start; gap: 2px; }
  .est dd { text-align: left; }
}

/* Sections */
.section { padding: var(--section) 0; }
.section.tint { background: var(--tint); }
.section.warm { background: var(--warm); }
.section-head { max-width: 660px; margin-bottom: 36px; }
.section-head p { color: var(--muted); font-size: 1.1rem; margin: 14px 0 0; }

/* Service rows (home) */
.svc-list { border-top: 1px solid var(--line); }
.svc-row {
  display: grid; grid-template-columns: 56px 1fr; gap: 6px 18px; align-items: start; padding: 26px 8px;
  border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: background-color .15s;
}
.svc-row:hover { background: var(--tint); }
.svc-row svg { width: 52px; height: 52px; color: var(--purple); grid-row: span 2; }
.svc-row h3 { color: var(--purple); }
.svc-row p { margin: 0; color: var(--muted); max-width: 58ch; }
.svc-row .more { grid-column: 2; font-weight: 700; color: var(--purple); text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 3px; text-underline-offset: 4px; justify-self: start; margin-top: 6px; }
@media (min-width: 900px) {
  .svc-row { grid-template-columns: 72px 1fr auto; align-items: center; padding: 30px 16px; }
  .svc-row svg { width: 60px; height: 60px; grid-row: auto; }
  .svc-row .more { grid-column: auto; margin: 0; }
}

/* Two-column lists */
.lists { display: grid; gap: 28px; }
.lists h3 { margin-bottom: 14px; color: var(--purple); font-size: 1.25rem; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before {
  content: ""; position: absolute; left: 3px; top: .5em; width: 13px; height: 7px;
  border-left: 3px solid var(--orange); border-bottom: 3px solid var(--orange); transform: rotate(-45deg);
}
@media (min-width: 900px) { .lists { grid-template-columns: 1fr 1fr; gap: 64px; } .lists.three { grid-template-columns: repeat(3, 1fr); gap: 40px; } }

/* Process */
.steps { list-style: none; margin: 0; padding: 0; display: grid; counter-reset: step; }
.steps li { position: relative; padding: 0 0 30px 64px; counter-increment: step; }
.steps li:last-child { padding-bottom: 0; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; background: var(--orange); color: var(--on-orange); font: 800 1.15rem var(--display);
}
.steps li::after { content: ""; position: absolute; left: 21px; top: 50px; bottom: 6px; width: 2px; background: var(--line); }
.steps li:last-child::after { display: none; }
.steps h3 { margin-bottom: 4px; font-size: 1.2rem; color: var(--purple); }
.steps p { color: var(--muted); margin: 0; max-width: 40ch; }
@media (min-width: 960px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 28px; }
  .steps li { padding: 64px 0 0; }
  .steps li::after { left: 52px; right: -28px; top: 21px; bottom: auto; width: auto; height: 2px; }
}

/* Definition list (why / who) */
.dl-rows { margin: 0; border-top: 1px solid var(--line); }
.dl-rows div { padding: 22px 0; border-bottom: 1px solid var(--line); }
.dl-rows dt { font: 700 1.2rem var(--display); color: var(--purple); margin-bottom: 4px; }
.dl-rows dd { margin: 0; color: var(--muted); max-width: 54ch; }
.split { display: grid; gap: 34px; }
.split .copy p { color: var(--muted); max-width: 44ch; margin-top: 14px; }
@media (min-width: 960px) { .split { grid-template-columns: 1fr 1.2fr; gap: 72px; } }

/* Comparison table */
.compare { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.compare th, .compare td { padding: 16px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.compare thead th { background: var(--purple); color: #fff; font: 700 1rem var(--body); }
.compare tbody th { font: 700 1.1rem var(--display); color: var(--purple); width: 18%; }
.compare tbody tr:nth-child(even) { background: var(--bg); }
.compare tbody tr:last-child > * { border-bottom: 0; }
@media (max-width: 799px) {
  .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; width: 100%; }
  .compare thead { position: absolute; left: -9999px; }
  .compare tr { border-bottom: 1px solid var(--line); padding: 8px 0; }
  .compare tbody th { width: 100%; padding-bottom: 4px; border: 0; }
  .compare td { padding: 6px 18px; border: 0; }
  .compare td::before { content: attr(data-label); display: block; font-size: .85rem; font-weight: 700; color: var(--muted); }
}

/* FAQ */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; font-weight: 700; font-size: 1.1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 11px; height: 11px; margin-right: 4px; border-right: 3px solid var(--orange); border-bottom: 3px solid var(--orange); transform: rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq details p { color: var(--muted); padding: 0 0 22px; margin: 0; max-width: 64ch; }

/* CTA band */
.cta-band { background: var(--orange); color: var(--on-orange); padding: clamp(40px, 6vw, 68px) 0; }
.cta-band .wrap { display: grid; gap: 22px; align-items: center; }
.cta-band h2 { color: var(--on-orange); }
.cta-band p { margin: 10px 0 0; max-width: 52ch; font-size: 1.1rem; }
.cta-band .actions { align-items: center; }
.cta-band .btn-purple { background: var(--plum); }
.cta-band .btn-purple:hover { background: #000; }
.cta-band .btn-outline { border-color: var(--on-orange); color: var(--on-orange); }
.cta-band .btn-outline:hover { background: rgba(255, 255, 255, .25); }
@media (min-width: 960px) { .cta-band .wrap { grid-template-columns: 1.4fr 1fr; } .cta-band .actions { justify-content: flex-end; } }

/* Contact */
.contact-grid { display: grid; gap: 40px; }
.details { margin: 0; padding: 0; list-style: none; display: grid; gap: 22px; }
.details li { display: grid; gap: 2px; }
.details span { color: var(--muted); font-size: .92rem; }
.details a { font-weight: 700; font-size: 1.2rem; text-decoration: none; }
.details a:hover { text-decoration: underline; }
.details address { font-style: normal; font-weight: 600; }
.next { margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--line); }
.next h3 { color: var(--purple); margin-bottom: 12px; }
.form { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 26px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .98rem; }
.field .opt { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px;
  background: var(--bg); color: var(--ink); font: 1rem var(--body);
}
.field textarea { min-height: 100px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--focus); }
.field [aria-invalid="true"] { border-color: var(--danger); }
.err { color: var(--danger); font-size: .9rem; margin: 6px 0 0; }
.form .small { color: var(--muted); font-size: .9rem; margin: 14px 0 0; }
.status { margin: 14px 0 0; font-weight: 600; }
@media (max-width: 959px) { .contact-grid .form { order: -1; } }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 1fr 1.1fr; gap: 72px; align-items: start; } .form { padding: 36px; } }

/* Footer */
.footer { background: var(--plum); color: var(--light-muted); padding: 52px 0 28px; font-size: .98rem; }
.footer a { color: #fff; text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.foot-grid { display: grid; gap: 32px; }
.foot-logo { display: inline-block; background: #fff; padding: 10px 14px; border-radius: 14px; line-height: 0; margin-bottom: 16px; }
.foot-logo img { width: 150px; height: auto; display: block; }
.footer h3 { font: 700 1rem var(--body); color: #fff; margin-bottom: 12px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer address { font-style: normal; }
.foot-bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid #6A2A5C; font-size: .9rem; }
@media (min-width: 900px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; } }

/* Mobile action bar */
.bar-mobile {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom, 0px)); background: var(--surface); border-top: 1px solid var(--line);
}
.bar-mobile .btn { min-height: 48px; padding: 0 12px; }
@media (max-width: 999px) { body { padding-bottom: 78px; } }
@media (min-width: 1000px) { .bar-mobile { display: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-sun .ray { animation: none; }
  * { transition: none !important; }
}

/* Spam trap field: hidden from people */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Vertical steps for narrow columns */
@media (min-width: 960px) {
  .steps.stack { grid-template-columns: 1fr; gap: 0; }
  .steps.stack li { padding: 0 0 30px 64px; }
  .steps.stack li:last-child { padding-bottom: 0; }
  .steps.stack li::after { left: 21px; right: auto; top: 50px; bottom: 6px; width: 2px; height: auto; }
  .steps.stack li:last-child::after { display: none; }
}


/* ---------- WordPress additions ---------- */
.admin-bar .header { top: 32px; }
@media (max-width: 782px) { .admin-bar .header { top: 46px; } }
.brand a, .brand .custom-logo-link { display: block; line-height: 0; }
.brand img, .brand .custom-logo { width: 190px; height: auto; max-height: 72px; object-fit: contain; display: block; }

/* Pictures */
.media { margin: 0; }
.illus { display: block; width: 100%; height: auto; border-radius: 22px; border: 1px solid var(--line); background: var(--tint); }
.intro-grid { display: grid; gap: 32px; align-items: center; }
.lists.one { grid-template-columns: 1fr; gap: 28px; }
@media (min-width: 900px) {
  .intro-grid { grid-template-columns: 1fr 1fr; gap: 64px; }
  .lists.one { grid-template-columns: 1fr; }
  .split.media-split { grid-template-columns: 1fr 1fr; align-items: center; }
}
.media-split .dl-rows { margin: 24px 0; }

/* Text written in the page editor */
.entry { max-width: 820px; }
.entry > * + * { margin-top: 1em; }
.entry h2, .entry h3 { margin-top: 1.4em; }
.entry img { height: auto; border-radius: 14px; }
.entry .alignwide { max-width: 100%; }
.entry .wp-block-image figcaption { color: var(--muted); font-size: .92rem; }
.alignleft { float: left; margin: 0 1.2em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.2em; }
.aligncenter { display: block; margin-inline: auto; }
.screen-reader-text { position: absolute; left: -9999px; }
