/* ==========================================================================
   Sri Harsha Engineering Consultancy Services (SHEC)
   Global stylesheet — brand-aligned, responsive, accessible
   ========================================================================== */

/* ----- Design tokens ----- */
:root {
  /* Brand palette (derived from the SHEC logo) */
  --navy: #0e2747;          /* professional primary  */
  --navy-700: #12325c;
  --navy-900: #0a1c34;
  --saffron: #f7941d;       /* brand orange / CTA     */
  --saffron-600: #e07c0a;
  --magenta: #c2185b;       /* "SRI HARSHA" accent    */
  --gold: #f6b21b;
  --teal: #138a8a;

  --ink: #1a2433;
  --body: #44505f;
  --muted: #6b7686;
  --line: #e4e9f0;
  --bg: #ffffff;
  --bg-soft: #f5f8fc;
  --bg-navy-soft: #f3f6fb;

  --radius: 14px;
  --radius-sm: 9px;
  --shadow-sm: 0 2px 8px rgba(14, 39, 71, .06);
  --shadow: 0 14px 40px rgba(14, 39, 71, .10);
  --shadow-lg: 0 24px 60px rgba(14, 39, 71, .16);

  --container: 1180px;
  --gap: clamp(1.25rem, 3vw, 2.5rem);

  --ff-head: "Poppins", "Segoe UI", system-ui, sans-serif;
  --ff-body: "Inter", "Segoe UI", system-ui, sans-serif;

  /* signature rainbow swoosh from the logo */
  --rainbow: linear-gradient(90deg, #c2185b, #f7941d, #f6b21b, #138a8a, #2657a8);
}

/* ----- Reset / base ----- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--ff-body);
  color: var(--body);
  background: var(--bg);
  line-height: 1.65;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--navy-700); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--saffron-600); }
h1, h2, h3, h4 { font-family: var(--ff-head); color: var(--ink); line-height: 1.18; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); letter-spacing: -.5px; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); letter-spacing: -.3px; }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
p { margin: 0 0 1rem; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--saffron); outline-offset: 2px; border-radius: 4px; }

/* ----- Layout helpers ----- */
.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section--soft { background: var(--bg-soft); }
.section--navy { background: var(--navy); color: #cdd9ea; }
.section--navy h2, .section--navy h3 { color: #fff; }
.section__head { max-width: 760px; margin: 0 auto clamp(2rem, 5vw, 3.25rem); text-align: center; }
.eyebrow {
  display: inline-block; font-family: var(--ff-head); font-weight: 600;
  font-size: .8rem; letter-spacing: 2px; text-transform: uppercase;
  color: var(--magenta); margin-bottom: .75rem;
}
.section--navy .eyebrow { color: var(--gold); }
.lead { font-size: 1.12rem; color: var(--muted); }
.section--navy .lead { color: #aebfd6; }
.text-center { text-align: center; }

/* ----- Buttons ----- */
.btn {
  --btn-bg: var(--saffron); --btn-fg: #fff;
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--btn-bg); color: var(--btn-fg);
  font-family: var(--ff-head); font-weight: 600; font-size: .98rem;
  padding: .85rem 1.6rem; border-radius: 50px; border: 2px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  box-shadow: 0 8px 20px rgba(247, 148, 29, .28);
}
.btn:hover { background: var(--saffron-600); color: #fff; transform: translateY(-2px); box-shadow: 0 12px 26px rgba(247, 148, 29, .36); }
.btn--ghost {
  background: transparent; color: var(--navy-700);
  border-color: var(--line); box-shadow: none;
}
.btn--ghost:hover { background: var(--bg-soft); color: var(--navy); border-color: var(--navy-700); transform: translateY(-2px); }
.btn--light { background: #fff; color: var(--navy); box-shadow: var(--shadow-sm); }
.btn--light:hover { background: var(--gold); color: var(--navy-900); }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); box-shadow: none; }
.btn--outline-light:hover { background: #fff; color: var(--navy); }

/* ----- Top accent bar (echoes logo swoosh) ----- */
.brandbar { height: 5px; background: var(--rainbow); }

/* ----- Header / nav ----- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96); backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .65rem 0; }
.brand { display: flex; align-items: center; gap: .6rem; }
.brand img, .brand svg { height: 58px; width: auto; }
.brand__emblem { flex: none; }
.brand__txt { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name {
  font-family: var(--ff-head); font-weight: 800; font-size: 1.55rem; letter-spacing: .3px;
  background: linear-gradient(90deg, #d82d58, #c0207f);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.brand__tag {
  font-family: var(--ff-head); font-weight: 600; font-size: .585rem; letter-spacing: 1.4px;
  text-transform: uppercase; color: #ee801c; margin-top: 1px; white-space: nowrap;
}
.nav__menu { display: flex; align-items: center; gap: .35rem; }
.nav__menu a {
  font-family: var(--ff-head); font-weight: 500; font-size: .96rem;
  color: var(--ink); padding: .55rem .85rem; border-radius: 8px;
}
.nav__menu a:hover, .nav__menu a[aria-current="page"] { color: var(--navy); background: var(--bg-soft); }
.nav__menu a[aria-current="page"] { color: var(--saffron-600); }
.nav__actions { display: flex; align-items: center; gap: .75rem; }
.nav__menu .nav__cta { display: none; } /* shown only inside the mobile menu */
.nav__toggle {
  display: none; background: none; border: 0; cursor: pointer; padding: .4rem;
  flex-direction: column; gap: 5px;
}
.nav__toggle span { width: 26px; height: 2.5px; background: var(--navy); border-radius: 2px; transition: .25s; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ----- Hero ----- */
.hero {
  position: relative; color: #e7eef8; overflow: hidden;
  background: radial-gradient(120% 120% at 80% 0%, var(--navy-700), var(--navy) 55%, var(--navy-900));
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(40% 60% at 90% 20%, rgba(247,148,29,.22), transparent 60%),
    radial-gradient(40% 50% at 10% 90%, rgba(194,24,91,.20), transparent 60%);
  pointer-events: none;
}
.hero__inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center; padding: clamp(3.25rem, 8vw, 6rem) 0;
}
.hero h1 { color: #fff; }
.hero h1 .accent { color: var(--gold); }
.hero p.lead { color: #c4d2e6; max-width: 36ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.75rem; }
.hero__card {
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--radius); padding: 1.6rem; backdrop-filter: blur(6px);
}
.hero__card h3 { color: #fff; font-size: 1.05rem; }
.hero__list li { display: flex; gap: .65rem; padding: .5rem 0; color: #d6e1f0; border-bottom: 1px solid rgba(255,255,255,.08); }
.hero__list li:last-child { border-bottom: 0; }
.hero__list .ic { color: var(--gold); flex: none; }

/* ----- Stat bar ----- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.stat { text-align: center; padding: 1.25rem .5rem; }
.stat__num { font-family: var(--ff-head); font-weight: 800; font-size: clamp(1.9rem, 4vw, 2.7rem); color: var(--navy); line-height: 1; }
.section--navy .stat__num { color: var(--gold); }
.stat__label { font-size: .92rem; color: var(--muted); margin-top: .4rem; }
.section--navy .stat__label { color: #b9c8dd; }

/* ----- Cards / grids ----- */
.grid { display: grid; gap: var(--gap); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.8rem; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  height: 100%;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }
.card__icon {
  width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--saffron), var(--magenta)); color: #fff;
  margin-bottom: 1.1rem;
}
.card__icon svg { width: 28px; height: 28px; }
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--body); font-size: .97rem; margin-bottom: .9rem; }
.card__tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.tag {
  font-size: .76rem; font-weight: 600; font-family: var(--ff-head);
  color: var(--navy-700); background: var(--bg-soft); border: 1px solid var(--line);
  padding: .28rem .6rem; border-radius: 50px;
}
.card__link { font-family: var(--ff-head); font-weight: 600; font-size: .92rem; color: var(--saffron-600); display: inline-flex; align-items: center; gap: .35rem; }
.card__link:hover { gap: .6rem; color: var(--magenta); }

/* feature list with check icons */
.checklist li { display: flex; gap: .65rem; padding: .45rem 0; color: var(--body); }
.checklist .ic { color: var(--saffron); flex: none; margin-top: .25rem; }
.section--navy .checklist li { color: #cdd9ea; }
.section--navy .checklist .ic { color: var(--gold); }

/* ----- Split feature block ----- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.75rem, 5vw, 4rem); align-items: center; }
.split--reverse .split__media { order: 2; }
.media-frame {
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  border: 1px solid var(--line); background: #fff;
}
.media-fallback {
  aspect-ratio: 4 / 3; display: grid; place-items: center; text-align: center; padding: 2rem;
  background: radial-gradient(120% 120% at 20% 0%, var(--navy-700), var(--navy));
  color: #fff;
}
.media-fallback .ic { color: var(--gold); margin-bottom: .75rem; }

/* ----- Industries chips ----- */
.industry {
  display: flex; align-items: center; gap: .85rem; padding: 1.1rem 1.25rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-family: var(--ff-head); font-weight: 600; color: var(--navy);
  box-shadow: var(--shadow-sm); transition: .2s;
}
.industry:hover { border-color: var(--saffron); transform: translateY(-3px); }
.industry .ic { color: var(--magenta); flex: none; }

/* ----- Certifications strip ----- */
.certs { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; }
.cert {
  font-family: var(--ff-head); font-weight: 700; letter-spacing: .3px;
  color: var(--navy); background: #fff; border: 1px solid var(--line);
  padding: .7rem 1.25rem; border-radius: 50px; box-shadow: var(--shadow-sm);
  display: inline-flex; align-items: center; gap: .5rem;
}
.cert .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--saffron); }

/* ----- Founder card ----- */
.founder { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(1.75rem, 5vw, 3.5rem); align-items: center; }
.founder__photo {
  border-radius: var(--radius); background: linear-gradient(135deg, var(--magenta), var(--saffron));
  aspect-ratio: 1; display: grid; place-items: center; color: #fff; box-shadow: var(--shadow);
  font-family: var(--ff-head); text-align: center; padding: 2rem;
}
.founder__photo .mono { font-size: clamp(3rem, 9vw, 5rem); font-weight: 800; line-height: 1; }
.creds { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.25rem; }
.cred { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1rem 1.1rem; }
.cred h4 { font-size: .85rem; text-transform: uppercase; letter-spacing: 1px; color: var(--magenta); margin: 0 0 .4rem; }
.cred p { margin: 0; font-size: .95rem; }

/* ----- Timeline (experience) ----- */
.timeline { position: relative; margin-left: .5rem; padding-left: 1.75rem; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 1.4rem; }
.timeline li::before { content: ""; position: absolute; left: -1.95rem; top: .35rem; width: 13px; height: 13px; border-radius: 50%; background: var(--saffron); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--saffron); }
.timeline strong { display: block; color: var(--ink); font-family: var(--ff-head); }
.timeline span { color: var(--muted); font-size: .92rem; }

/* ----- CTA band ----- */
.cta-band {
  background: linear-gradient(120deg, var(--navy-900), var(--navy-700));
  position: relative; overflow: hidden;
}
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 120% at 100% 0, rgba(247,148,29,.25), transparent 60%); }
.cta-band .container { position: relative; z-index: 1; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #c4d2e6; max-width: 60ch; margin-inline: auto; }
.cta-band .hero__actions { justify-content: center; }

/* ----- Page hero (inner pages) ----- */
.page-hero {
  background: radial-gradient(120% 120% at 85% 0%, var(--navy-700), var(--navy) 60%, var(--navy-900));
  color: #d7e2f1; padding: clamp(2.75rem, 7vw, 4.75rem) 0;
}
.page-hero h1 { color: #fff; margin-bottom: .5rem; }
.page-hero p { color: #c0d0e6; max-width: 60ch; }
.crumbs { font-size: .85rem; color: #93a8c6; margin-bottom: 1rem; font-family: var(--ff-head); }
.crumbs a { color: #cdddf2; }
.crumbs a:hover { color: var(--gold); }

/* ----- Contact ----- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.75rem, 5vw, 3rem); }
.info-row { display: flex; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.info-row:last-child { border-bottom: 0; }
.info-row .ic { width: 44px; height: 44px; border-radius: 12px; flex: none; display: grid; place-items: center; background: var(--bg-soft); color: var(--saffron-600); }
.info-row h4 { margin: 0 0 .2rem; font-size: 1rem; }
.info-row a, .info-row p { margin: 0; color: var(--body); }
.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.25rem); box-shadow: var(--shadow-sm); }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-family: var(--ff-head); font-weight: 600; font-size: .9rem; color: var(--ink); margin-bottom: .4rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: .8rem .95rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font-family: var(--ff-body); font-size: .97rem; color: var(--ink); background: #fff; transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--saffron); box-shadow: 0 0 0 3px rgba(247,148,29,.15); outline: none; }
.field textarea { resize: vertical; min-height: 130px; }
.form__note { font-size: .85rem; color: var(--muted); margin-top: .5rem; }

/* ----- FAQ / accordion ----- */
.faq { max-width: 820px; margin-inline: auto; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: .85rem; box-shadow: var(--shadow-sm); }
.faq summary { cursor: pointer; list-style: none; padding: 1.1rem 1.3rem; font-family: var(--ff-head); font-weight: 600; color: var(--ink); display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--saffron); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 1.3rem 1.2rem; color: var(--body); }

/* ----- Footer ----- */
.site-footer { background: var(--navy-900); color: #9fb2cc; padding: clamp(3rem, 6vw, 4.5rem) 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 2rem; }
.site-footer h4 { color: #fff; font-size: .92rem; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 1.1rem; }
.site-footer a { color: #9fb2cc; }
.site-footer a:hover { color: var(--gold); }
.footer-links li { margin-bottom: .6rem; }
.footer-about p { font-size: .95rem; max-width: 38ch; }
.footer-brand { display: flex; align-items: center; gap: .65rem; margin-bottom: 1rem; }
.footer-brand img, .footer-brand svg { height: 52px; width: auto; background: #fff; padding: 5px 7px; border-radius: 10px; }
.footer-brand .brand__name { font-size: 1.3rem; }
.footer-brand .brand__tag { font-size: .54rem; letter-spacing: 1.2px; }
.footer-contact li { display: flex; gap: .6rem; margin-bottom: .7rem; font-size: .95rem; }
.footer-contact .ic { color: var(--gold); flex: none; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 2.5rem; padding: 1.4rem 0; font-size: .85rem; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; }
.footer-bottom .reg { color: #7e93b0; }

/* ----- Reveal on scroll ----- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ----- Responsive ----- */
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .split, .founder, .contact-grid { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
}
@media (max-width: 760px) {
  .nav__menu {
    position: fixed; inset: 80px 0 auto 0; background: #fff; flex-direction: column;
    align-items: stretch; gap: 0; padding: .5rem 1.25rem 1.25rem; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow); transform: translateY(-160%); transition: transform .3s ease; max-height: calc(100vh - 80px); overflow:auto;
  }
  .nav__menu.is-open { transform: none; }
  .nav__menu a { padding: .85rem .5rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav__menu .nav__cta { display: block; margin-top: .75rem; }
  .nav__menu .nav__cta .btn { display: inline-flex; width: 100%; justify-content: center; }
  .nav__toggle { display: flex; }
  .nav__actions .btn { display: none; }
  .stats, .grid--2, .grid--3 { grid-template-columns: 1fr; }
  .grid--4 { grid-template-columns: 1fr 1fr; }
  .creds { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .brand img, .brand svg { height: 50px; }
  .brand__name { font-size: 1.25rem; }
  .brand__tag { font-size: .5rem; letter-spacing: 1px; }
  .nav__menu { inset: 72px 0 auto 0; max-height: calc(100vh - 72px); }
}
@media (max-width: 360px) {
  .brand__tag { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
