/* ==========================================================
   A.T. Raja Group – shared stylesheet
   Desktop layout matches the supplied screenshots.
   Responsive breakpoints: 1024px, 768px, 480px
   ========================================================== */

:root {
  --blue: #2785dc;
  --blue-text: #1f74c4;
  --dark: #2a2f37;
  --page: #dedede;
  --card: #ececec;
  --cyan: #00c2d8;
  --footer: #a5aeb0;
  --nav-link: #b9bcc1;
  --container: 1320px;
  --font-body: Arial, Helvetica, sans-serif;
  --font-head: "Bitter", Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--page);
  color: #000;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 12px; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.icon { width: 1em; height: 1em; fill: currentColor; display: inline-block; vertical-align: -0.125em; }

:focus-visible { outline: 3px solid #ffbf47; outline-offset: 2px; }

/* ---------- Top bar ---------- */
.topbar { background: var(--blue); color: #fff; font-size: 15px; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; min-height: 49px; }
.topbar a { color: #fff; }
.topbar .enquiry { font-weight: 600; padding-left: 10px; }
.topbar .social { display: flex; gap: 22px; font-size: 17px; padding-right: 10px; }
.topbar .social a:hover { opacity: .8; }

/* ---------- Logo ---------- */
.logo-row { background: #fff; text-align: center; }
.logo-row img { margin: 0 auto; height: 76px; width: auto; max-width: 100%; }

/* ---------- Navigation ---------- */
.nav { background: var(--dark); position: relative; z-index: 50; }
.nav .container { display: flex; justify-content: center; align-items: center; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; }
.nav li a {
  display: block;
  padding: 30px 21px;
  color: var(--nav-link);
  font-weight: 700;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: .2px;
  transition: color .2s;
}
.nav li a:hover, .nav li a.active { color: var(--blue); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  color: #fff;
  font: inherit;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 16px 20px;
  cursor: pointer;
  width: 100%;
  text-align: left;
  align-items: center;
  justify-content: space-between;
}
.nav-toggle .bars { display: inline-block; width: 26px; height: 18px; position: relative; }
.nav-toggle .bars span { position: absolute; left: 0; right: 0; height: 3px; background: #fff; border-radius: 2px; transition: transform .25s, opacity .2s, top .25s; }
.nav-toggle .bars span:nth-child(1) { top: 0; }
.nav-toggle .bars span:nth-child(2) { top: 7px; }
.nav-toggle .bars span:nth-child(3) { top: 14px; }
.nav-toggle[aria-expanded="true"] .bars span:nth-child(1) { top: 7px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bars span:nth-child(3) { top: 7px; transform: rotate(-45deg); }

/* ---------- Hero slider ---------- */
.slider { position: relative; overflow: hidden; background: linear-gradient(90deg, #ccffe0, #8fb4ff); }
.slides { display: flex; transition: transform .6s ease; will-change: transform; }
.slide { min-width: 100%; }
.slide img { width: 100%; height: auto; aspect-ratio: 1366 / 768; object-fit: contain; max-height: 80vh; margin: 0 auto; }
.slider-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 41px; height: 41px; border-radius: 50%;
  background: rgba(42, 47, 55, .8); color: #fff; border: 0;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 16px; z-index: 5;
}
.slider-btn:hover { background: var(--dark); }
.slider-btn.prev { left: 20px; }
.slider-btn.next { right: 20px; }
.slider-dots { position: absolute; bottom: 12px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; z-index: 5; }
.slider-dots button { width: 11px; height: 11px; border-radius: 50%; border: 2px solid #fff; background: transparent; padding: 0; cursor: pointer; }
.slider-dots button[aria-current="true"] { background: #fff; }

/* ---------- Generic sections ---------- */
.section { padding: 34px 0; }
.section-title {
  font-family: var(--font-head);
  color: var(--blue-text);
  text-align: center;
  text-transform: uppercase;
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 20px;
}
.justify { text-align: justify; }
.justify-text p { text-align: justify; line-height: 1.95; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.split.narrow { max-width: 1010px; margin: 0 auto; }
.split > *, .contact-grid > * { min-width: 0; }
.split .media img { margin: 0 auto; }
.welcome-img { max-width: 410px; }

.timeline-row { padding: 36px 0; }
.timeline-row p { line-height: 2; font-size: 17px; text-align: justify; margin: 0; }
.timeline-row .diamond { color: #4ba3e8; font-size: 12px; margin-right: 6px; vertical-align: 2px; }
.timeline-row .media img { border-radius: 4px; width: 100%; }
.timeline-row.reverse .media { order: -1; }
.rowsep { border: 0; border-top: 1px solid #b4b8b9; margin: 0; }

/* ---------- Page title banner (inner pages) ---------- */
.page-title { background: #f4f4f4; border-top: 1px solid #222; }
.page-title .container { padding-top: 40px; padding-bottom: 36px; }
.page-title h1 { margin: 0; font-weight: 400; font-size: 30px; color: var(--dark); text-transform: uppercase; }
.breadcrumb { background: #fff; font-size: 14px; color: #777; }
.breadcrumb .container { padding-top: 15px; padding-bottom: 14px; }
.breadcrumb a { color: var(--dark); text-transform: uppercase; }
.breadcrumb .sep { margin: 0 8px; }

/* ---------- About ---------- */
.about-wrap { max-width: 1010px; margin: 0 auto; padding: 0 20px; }
.about-title { font-family: var(--font-head); text-align: center; color: var(--dark); font-size: 22px; margin: 4px 0 6px; }
.card { background: var(--card); border-radius: 10px; padding: 16px 16px; margin-bottom: 16px; }
.card .split { gap: 36px; }
.card p { line-height: 1.85; text-align: justify; }
.card .text-lg p { font-size: 17px; line-height: 2; }
.framed { border: 6px solid #2b2b2b; }
.card .split.top { align-items: start; }

/* ---------- Products ---------- */
.lead { max-width: var(--container); text-align: justify; line-height: 1.95; margin: 0 0 26px; }
.product-grid { display: grid; gap: 28px; }
.product-grid.two { grid-template-columns: repeat(2, 1fr); }
.product-grid.four { grid-template-columns: repeat(4, 1fr); max-width: 1150px; margin: 40px auto 0; gap: 28px; }
.product-grid.three { grid-template-columns: repeat(3, 1fr); max-width: 830px; margin: 40px auto 0; }
.pframe { border: 6px solid var(--cyan); background: #fff; display: block; overflow: hidden; }
.pframe img { width: 100%; height: 100%; object-fit: cover; }
.product-grid.two .pframe img { aspect-ratio: 1300 / 1223; }
.product-grid.four .pframe img { aspect-ratio: 1323 / 2100; object-fit: contain; }
.product-grid.three .pframe img { aspect-ratio: 1 / 1; }
button.pframe { padding: 0; cursor: zoom-in; font: inherit; }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.gallery-grid .pframe img { aspect-ratio: 1 / 1; object-fit: cover; }
.gallery-grid .pframe.tall img { object-fit: contain; }

.lightbox {
  position: fixed; inset: 0; background: rgba(0,0,0,.88);
  display: none; align-items: center; justify-content: center;
  z-index: 200; padding: 20px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 90vh; width: auto; border: 6px solid var(--cyan); background: #fff; }
.lightbox .close {
  position: absolute; top: 14px; right: 18px; width: 44px; height: 44px;
  background: #fff; color: #000; border: 0; border-radius: 50%;
  font-size: 26px; line-height: 1; cursor: pointer;
}

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact-grid h2 { margin: 0; font-size: 20px; color: var(--dark); }
.contact-grid .sub { color: #777; text-transform: uppercase; margin: 0; font-size: 16px; }
.contact-grid .rule { width: 42px; border: 0; border-top: 1px solid #555; margin: 12px 0 24px; }

.enquiry-form { background: #fff; border-radius: 4px; padding: 26px 26px 30px; font-family: "Poppins", var(--font-body); }
.enquiry-form .banner-strip { background: #efe6d6; height: 80px; display: flex; align-items: flex-end; justify-content: center; gap: 22px; padding: 0 12px; overflow: hidden; margin-bottom: 26px; }
.enquiry-form .banner-strip span { width: 26px; height: 60px; border-radius: 14px 14px 0 0; }
.enquiry-form h3 { font-size: 26px; margin: 0 0 22px; font-weight: 600; color: #222; }
.field { margin-bottom: 22px; }
.field label, .field legend { display: block; font-size: 15px; color: #222; margin-bottom: 8px; padding: 0; }
.field .req { color: #e03c3c; margin-right: 4px; }
.field input[type=text], .field input[type=email], .field input[type=tel], .field textarea {
  width: 100%; border: 1px solid #d5d5d5; border-radius: 4px;
  padding: 11px 12px; height: 46px; font: inherit; font-size: 16px; background: #fff;
}
.field textarea { height: 46px; min-height: 46px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--blue); outline: 0; box-shadow: 0 0 0 3px rgba(39,133,220,.2); }
fieldset.field { border: 0; padding: 0; margin: 0 0 22px; min-width: 0; }
.checks { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.checks label { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: 14px; text-transform: uppercase; cursor: pointer; }
.checks input { width: 18px; height: 18px; accent-color: var(--blue); margin: 0; }
.phone { display: flex; border: 1px solid #d5d5d5; border-radius: 4px; overflow: hidden; }
.phone .cc { padding: 0 14px; display: flex; align-items: center; background: #fafafa; border-right: 1px solid #e5e5e5; color: #222; font-size: 16px; }
.phone input { border: 0 !important; border-radius: 0 !important; box-shadow: none !important; }
.btn-wa {
  display: inline-flex; align-items: center; gap: 10px;
  background: #2bb600; color: #fff; border: 0; border-radius: 4px;
  padding: 12px 24px; font: inherit; font-weight: 600; font-size: 16px; cursor: pointer;
}
.btn-wa:hover { background: #239a00; }
.form-error { color: #c62828; font-size: 14px; margin: 0 0 14px; display: none; }
.form-error.show { display: block; }

.info-block { display: flex; gap: 22px; margin-bottom: 34px; }
.info-block .ico { color: var(--blue); font-size: 30px; flex: 0 0 34px; padding-top: 2px; }
.info-block h4 { margin: 0 0 8px; font-size: 18px; color: var(--dark); }
.info-block .addr { background: #fff; color: #7a7a7a; font-weight: 700; font-size: 14px; max-width: 290px; }
.info-block .addr .head { background: #f8f8f8; padding: 16px 28px; }
.info-block .addr .body { padding: 34px 24px 30px; line-height: 2.3; }
.info-block .details { color: #7a7a7a; font-weight: 700; font-size: 14px; line-height: 1.9; word-break: break-word; }

.map-wrap { margin-top: 40px; border: 2px solid #fff; }
.map-wrap iframe { display: block; width: 100%; height: 420px; border: 0; }

/* ---------- Footer ---------- */
.footer { background: var(--footer); color: #fff; padding: 58px 0 60px; margin-top: 30px; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.footer h5 { margin: 0 0 14px; font-size: 15px; font-weight: 400; text-transform: uppercase; }
.footer .flogo { width: 245px; max-width: 100%; }
.footer .about-text { text-align: justify; line-height: 1.95; font-size: 15px; margin: 0; }
.footer .follow { display: flex; gap: 14px; font-size: 25px; }
.footer .follow a:hover { opacity: .8; }
.footer .ci { display: flex; gap: 10px; font-weight: 700; font-size: 14px; line-height: 1.85; margin-bottom: 14px; word-break: break-word; }
.footer .ci .icon { color: var(--blue); flex: 0 0 14px; margin-top: 5px; }
.copyright { background: var(--blue); color: #fff; font-size: 16px; }
.copyright .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 76px; flex-wrap: wrap; }
.copyright strong { color: #000; }
.copyright .brand { color: #fff; }
.copyright .design { font-size: 13px; font-weight: 700; padding-right: 60px; }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed; right: 26px; bottom: 26px; z-index: 90;
  width: 48px; height: 48px; background: var(--blue); color: #111;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; line-height: 1; border: 0; cursor: pointer;
  opacity: 0; pointer-events: none; transition: opacity .25s;
}
.to-top.show { opacity: 1; pointer-events: auto; }
.to-top .icon { font-size: 12px; margin-bottom: 3px; }

/* ==========================================================
   RESPONSIVE
   ========================================================== */

/* Tablet landscape / small laptop */
@media (max-width: 1024px) {
  .nav li a { padding: 26px 14px; font-size: 14px; }
  .split { gap: 32px; }
  .product-grid.four { grid-template-columns: repeat(4, 1fr); gap: 18px; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 40px 32px; }
  .contact-grid { gap: 30px; }
  .copyright .design { padding-right: 60px; }
}

/* Tablet portrait & mobile navigation */
@media (max-width: 768px) {
  body { font-size: 15px; }
  .topbar { font-size: 13px; }
  .topbar .container { padding: 0 14px; min-height: 42px; }
  .topbar .enquiry { padding-left: 0; }
  .topbar .social { gap: 16px; font-size: 16px; padding-right: 0; }

  .logo-row img { height: 58px; }

  .nav .container { padding: 0; display: block; }
  .nav-toggle { display: flex; }
  .nav ul {
    display: none; flex-direction: column;
    border-top: 1px solid rgba(255,255,255,.12);
  }
  .nav ul.open { display: flex; }
  .nav li a { padding: 15px 20px; border-bottom: 1px solid rgba(255,255,255,.08); font-size: 14px; }

  .slider-btn { width: 34px; height: 34px; font-size: 13px; }
  .slider-btn.prev { left: 8px; }
  .slider-btn.next { right: 8px; }
  .slider img { aspect-ratio: 16 / 9; }

  .section { padding: 26px 0; }
  .section-title { font-size: 20px; }

  .split, .contact-grid { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .timeline-row { padding: 26px 0; }
  .timeline-row .media { order: 2 !important; }
  .timeline-row p, .justify-text p { text-align: left; line-height: 1.85; font-size: 16px; }
  .split .media img { max-width: min(420px, 100%); }
  .timeline-row .media img { max-width: 100%; }

  .page-title .container { padding-top: 26px; padding-bottom: 22px; }
  .page-title h1 { font-size: 24px; }

  .about-title { font-size: 19px; }
  .card { padding: 14px; }
  .card p, .card .text-lg p { text-align: left; font-size: 15.5px; line-height: 1.8; }
  .card .media { order: 2 !important; }
  .card .split .media img { max-width: 100%; }
  .card .founder-img { max-width: 320px !important; }

  .lead { text-align: left; }
  .product-grid.two { grid-template-columns: 1fr; gap: 20px; }
  .product-grid.four { grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 26px; }
  .product-grid.three { grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 26px; }
  .product-grid.three .pframe:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 8px); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .gallery-grid .pframe:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 7px); }

  .enquiry-form { padding: 20px 16px 24px; }
  .map-wrap iframe { height: 320px; }

  .footer { padding: 40px 0; }
  .footer .about-text { text-align: left; }
  .copyright .container { flex-direction: column; text-align: center; padding-top: 16px; padding-bottom: 16px; min-height: 0; gap: 8px; }
  .copyright .design { padding-right: 0; }

  .to-top { right: 14px; bottom: 14px; width: 44px; height: 44px; }
}

/* Small phones */
@media (max-width: 480px) {
  .container, .about-wrap { padding-left: 14px; padding-right: 14px; }
  .topbar .enquiry { font-size: 12.5px; }
  .topbar .social { gap: 13px; }
  .logo-row img { height: 48px; }
  .section-title { font-size: 18px; }
  .product-grid.four, .product-grid.three, .gallery-grid { gap: 12px; }
  .pframe { border-width: 4px; }
  .framed { border-width: 4px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer .flogo { width: 200px; }
  .info-block { gap: 14px; }
  .info-block .addr { max-width: 100%; }
  .info-block .addr .head { padding: 14px 20px; }
  .info-block .addr .body { padding: 22px 20px; line-height: 2; }
  .checks { gap: 10px 16px; }
  .btn-wa { width: 100%; justify-content: center; }
  .map-wrap iframe { height: 280px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .slides, .to-top, .nav-toggle .bars span { transition: none; }
}
