@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&family=Poppins:wght@400;500;600;700;800&display=swap');

/* Raj Group — Blue/White corporate theme */
:root {
  --primary: #3893b8;
  --primary-hover: #277b9d;
  --dark-blue: #304b89;
  --ink: #17324d;
  --off: #f3f8fb;
  --mute: #64748b;
  --white: #ffffff;
  --border: #dce8ee;
  --orange: var(--primary); /* Backward-compatible alias for legacy classes */
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--white); color: var(--ink); font-family: 'Poppins', sans-serif; font-size: 15px; line-height: 1.7; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; height: auto; }
.container { width: min(1200px, calc(100% - 48px)); margin-inline: auto; }

/* Header / navigation */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--white); border-bottom: 1px solid var(--border); }
.nav { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: 'DM Sans', sans-serif; font-size: 22px; font-weight: 800; letter-spacing: -.8px; }
.brand b, .footer-brand span { color: var(--primary); }
.brand-mark { background: var(--dark-blue); color: var(--white); font-size: 26px; padding: 5px 13px; border-radius: 4px; }
.brand-mark span { color: #8cd5ed; }
.navlinks { display: flex; align-items: center; gap: 36px; font-size: 14px; font-weight: 600; }
.navlinks a:not(.nav-contact):hover, .navlinks a:not(.nav-contact):focus-visible { color: var(--primary); }
.nav-contact { display: inline-flex; align-items: center; justify-content: center; padding: 14px 22px; background: var(--primary); color: var(--white); transition: background .2s; }
.nav-contact:hover { background: var(--dark-blue); }
.nav-toggle { display: none; background: transparent; border: 0; color: var(--ink); font-size: 24px; }

/* Hero */
.hero { min-height: 660px; position: relative; overflow: hidden; background: var(--dark-blue); color: var(--white); }
.hero-picture { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(19,42,77,.97), rgba(24,58,98,.86) 46%, rgba(19,55,90,.25)), url('https://images.unsplash.com/photo-1581092160607-ee22621dd758?w=1900&q=85') center / cover no-repeat; }
.hero-inner { position: relative; padding-top: 132px; }
.eyebrow, .label { font-size: 12px; letter-spacing: 2.2px; font-weight: 700; text-transform: uppercase; }
.eyebrow { color: #d7e9f3; }
.eyebrow i { display: inline-block; width: 8px; height: 8px; margin-right: 8px; background: #70c8e9; border-radius: 50%; }
.hero h1, .inner-hero h1, .business-hero h1 { font-family: 'DM Sans', sans-serif; font-size: clamp(52px, 7.7vw, 104px); line-height: 1.06; font-weight: 800; letter-spacing: -.045em; margin: 26px 0; }
.hero h1 em { font-style: normal; color: #80d4ef; }
.hero p { max-width: 585px; font-size: 19px; line-height: 1.8; color: #d9e6ef; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 38px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 30px; padding: 17px 24px; font-size: 14px; font-weight: 600; border: 1px solid transparent; cursor: pointer; transition: background .2s, border-color .2s, transform .2s; }
.btn:hover { transform: translateY(-2px); }
.btn-orange, .btn-primary { background: var(--primary); color: var(--white); }
.btn-orange:hover, .btn-primary:hover { background: var(--primary-hover); }
.btn-outline { border-color: rgba(255,255,255,.55); color: var(--white); background: transparent; }
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,.1); }
.btn-white { background: var(--white); color: var(--dark-blue); }
.btn-white:hover { background: #eaf5fa; }
.hero-bottom { margin-top: 84px; padding-bottom: 24px; color: #c3d4df; font-size: 10px; letter-spacing: 2px; font-weight: 700; }
.hero-bottom span { color: #7fd4ef; margin: 0 15px; }

/* Ticker / section headings */
.ticker { background: var(--primary); color: var(--white); overflow: hidden; }
.ticker .container { padding: 22px 0; white-space: nowrap; font-size: 12px; letter-spacing: 1px; font-weight: 700; }
.ticker span { padding: 0 19px; color: #d8f0fa; }
.section { padding: 105px 0; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; }
.label { color: var(--primary); }
h1, h2, h3, h4, h5, h6 { font-family: 'DM Sans', sans-serif; }
h2 { font-size: clamp(37px, 4.6vw, 58px); font-weight: 800; line-height: 1.14; letter-spacing: -.045em; margin: 24px 0; }
h2 span { color: var(--primary); }
.intro-copy { padding-top: 30px; }
.intro-copy p, .contact-layout > div > p { font-size: 17px; line-height: 1.9; color: #536a7b; margin: 0 0 20px; }
.textlink { display: inline-block; margin-top: 15px; padding-bottom: 8px; border-bottom: 2px solid var(--primary); font-size: 14px; font-weight: 700; }
.textlink:hover { color: var(--primary); }

/* Business division cards */
.sector-section { background: var(--off); }
.section-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 38px; }
.section-top h2 { margin-bottom: 0; }
.sector-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.sector-card { display: block; height: 365px; position: relative; overflow: hidden; background: var(--dark-blue); color: var(--white); }
.sector-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12,38,76,.3), transparent 38%, rgba(11,33,67,.93)); pointer-events: none; }
.sector-photo { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform .4s ease; }
.sector-card:hover .sector-photo { transform: scale(1.07); }
.sector-card-top, .sector-card-bottom { position: absolute; left: 24px; right: 24px; z-index: 1; }
.sector-card-top { top: 23px; display: flex; justify-content: space-between; align-items: center; }
.sector-no { font-size: 13px; font-weight: 600; }
.sector-arrow { height: 37px; width: 37px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.5); border-radius: 50%; font-size: 20px; }
.sector-card:hover .sector-arrow { background: var(--primary); border-color: var(--primary); }
.sector-card-bottom { bottom: 24px; }
.sector-card-bottom small { font-size: 11px; line-height: 1.5; opacity: .9; }
.sector-card-bottom h3 { font-family: 'DM Sans', sans-serif; font-size: 24px; line-height: 1.15; font-weight: 800; letter-spacing: -.03em; margin: 10px 0 0; }

/* Mission / values */
.vision { position: relative; overflow: hidden; background: var(--dark-blue); color: var(--white); }
.vision::after { content: '✳'; position: absolute; right: 5%; top: -120px; font-size: 450px; color: rgba(255,255,255,.05); pointer-events: none; }
.vision-inner { position: relative; z-index: 1; padding: 110px 0; }
.vision h2 { font-size: clamp(42px, 6vw, 76px); margin: 28px 0; }
.vision h2 i { color: #80d4ef; font-style: normal; }
.vision p { color: #d3e0ed; font-size: 18px; margin-bottom: 32px; }
.value-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.value-grid > div { border-top: 2px solid var(--border); padding: 30px 8px; }
.value-grid b { color: var(--primary); font-size: 14px; }
.value-grid h3 { font-size: 25px; font-weight: 800; }
.value-grid p { color: var(--mute); line-height: 1.75; }

/* CTA and footer */
.cta { background: var(--primary); color: var(--white); padding: 65px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.cta .label { color: #e0f6ff; }
.cta h2 { margin: 15px 0; }
.cta p { margin: 0; color: #e7f6fd; }
.footer { background: #193b65; color: #e2edf5; padding: 70px 0 25px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 65px; }
.footer-brand { font-family: 'DM Sans', sans-serif; font-size: 29px; font-weight: 800; color: var(--white); }
.footer-brand span { color: #7fd4ef; }
.footer p, .footer small { color: #b9cddd; font-size: 13px; line-height: 1.8; }
.footer a { display: block; margin: 15px 0; font-size: 14px; }
.footer a:hover { color: #7fd4ef; }
.footer h4 { color: var(--white); margin-top: 5px; }
.copyright { border-top: 1px solid rgba(255,255,255,.16); margin-top: 55px; padding-top: 25px; font-size: 12px; color: #b9cddd; }
.copyright a { display: inline; float: right; }

/* Inner and business detail pages */
.inner-hero { background: linear-gradient(125deg, var(--dark-blue), #286d9e); color: var(--white); padding: 125px 0; }
.inner-hero h1 { font-size: clamp(50px, 6.5vw, 85px); }
.inner-hero h1 span { color: #82d7f1; }
.inner-hero p, .business-hero p { font-size: 20px; color: #e4f0f6; }
.business-hero { display: flex; align-items: center; min-height: 500px; background-color: var(--dark-blue); background-size: cover; background-position: center; color: var(--white); }
.business-hero h1 { font-size: clamp(50px, 7vw, 90px); }

/* Contact and forms */
.contact-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; }
.contact-note { margin-top: 60px; padding: 26px; background: var(--off); color: #536a7b; font-size: 14px; line-height: 1.7; }
.contact-form, .admin-card, .login-panel { background: var(--off); padding: 32px; }
.contact-form label, .admin-card label, .login-panel label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 20px; }
.contact-form input, .contact-form select, .contact-form textarea, .admin-card input, .admin-card textarea, .login-panel input { display: block; width: 100%; margin-top: 9px; padding: 15px; background: var(--white); border: 1px solid #cfdfe7; border-radius: 3px; color: var(--ink); font-weight: 400; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus, .admin-card input:focus, .admin-card textarea:focus, .login-panel input:focus { outline: 2px solid rgba(56,147,184,.22); border-color: var(--primary); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.success { padding: 15px; background: #e0f2e8; color: #145a32; margin-bottom: 20px; }
.errors { padding: 15px; background: #fde4e0; color: #9a2713; margin-bottom: 20px; }

/* Admin — retained for later use */
.admin-body { background: #f3f8fb; }
.admin-nav { background: var(--dark-blue); color: var(--white); padding: 18px 0; }
.admin-nav > .container { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.admin-nav nav { display: flex; align-items: center; gap: 22px; }
.admin-nav a { font-size: 13px; font-weight: 600; }
.admin-nav form { display: inline; }
.admin-nav button { background: var(--primary); border: 0; color: var(--white); padding: 8px 15px; }
.admin-main { padding: 55px 0; }
.admin-main h1 { font-family: 'DM Sans', sans-serif; font-size: 40px; font-weight: 800; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-bottom: 35px; }
.stats > div { padding: 30px; background: var(--white); }
.stats b { display: block; font-size: 50px; color: var(--primary); }
.stats span { color: var(--mute); }
.table-wrap { overflow-x: auto; background: var(--white); }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); font-size: 13px; }
th { background: var(--dark-blue); color: var(--white); }
.login-panel { max-width: 460px; margin: 25px auto; }
.login-panel p { color: var(--mute); font-size: 13px; }
.division-admin-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 22px; }
.admin-card { background: var(--white); margin-bottom: 22px; }
.admin-card .check { display: flex; align-items: center; gap: 10px; }
.admin-card .check input { width: auto; margin: 0; }
.delete-btn { border: 0; background: transparent; color: #b42318; padding: 12px 0; font-weight: 700; }

/* Keyboard navigation */
a:focus-visible, button:focus-visible { outline: 3px solid #81d6ef; outline-offset: 3px; }

/* Responsive */
@media (max-width: 1000px) {
  .sector-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-layout { gap: 30px; }
  .footer-grid { gap: 25px; }
}
@media (max-width: 700px) {
  .container { width: min(calc(100% - 34px), 1200px); }
  .nav { min-height: 70px; }
  .nav-toggle { display: block; }
  .navlinks { display: none; position: absolute; left: 0; right: 0; top: 70px; background: var(--white); padding: 20px; flex-direction: column; align-items: stretch; gap: 18px; box-shadow: 0 12px 24px rgba(25,59,101,.1); }
  .navlinks.open { display: flex; }
  .hero { min-height: 610px; }
  .hero-inner { padding-top: 95px; }
  .hero h1 { letter-spacing: -.045em; }
  .hero p { font-size: 16px; }
  .hero-bottom { margin-top: 65px; }
  .section { padding: 65px 0; }
  .split, .contact-layout, .footer-grid, .division-admin-grid { grid-template-columns: 1fr; gap: 20px; }
  .intro-copy { padding-top: 0; }
  .section-top { align-items: flex-start; flex-direction: column; }
  .sector-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .sector-card { height: 265px; }
  .sector-card-top, .sector-card-bottom { left: 15px; right: 15px; }
  .sector-card-bottom h3 { font-size: 19px; }
  .sector-card-bottom small { font-size: 10px; }
  .value-grid { grid-template-columns: 1fr; gap: 0; }
  .vision-inner { padding: 80px 0; }
  .cta-inner { align-items: flex-start; flex-direction: column; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .inner-hero { padding: 90px 0; }
  .admin-nav > .container { display: block; }
  .admin-nav nav { margin-top: 15px; flex-wrap: wrap; gap: 14px; }
  .stats { grid-template-columns: 1fr; }
}
@media (max-width: 400px) {
  .sector-grid { grid-template-columns: 1fr; }
  .sector-card { height: 290px; }
  .brand { font-size: 19px; }
  .hero h1 { font-size: 46px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
