/* =========================================================================
   Melco Precisions Pvt Ltd — wearcastings.com
   Design tokens matched against the live site:
   text #1d1e20 | footer #1a2633 | send-btn #3a5a7c | hero overlay #1d1e20 @45%
   Headings: Roboto 600 | Body: DM Sans 400
   ========================================================================= */

:root {
  --color-text:        #1d1e20;
  --color-heading:     #1d1e20;
  --color-white:       #ffffff;
  --color-black:       #000000;
  --color-footer-bg:   #1a2633;
  --color-accent:      #3a5a7c;
  --color-input-text:  #0d141a;
  --color-line:        rgba(29, 30, 32, .12);

  --font-heading: 'Roboto', sans-serif;
  --font-body:    'DM Sans', sans-serif;

  --container:    1224px;
  --content:      1018px;
  --header-h:     108px;
}

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

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

body {
  margin: 0;
  background: var(--color-white);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
}

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
p  { margin: 0 0 16px; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-heading);
  margin: 0 0 16px;
  line-height: 1.25;
}

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

/* ------------------------------------------------------------------ header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-white);
  transition: box-shadow .25s ease;
}
.site-header.is-stuck { box-shadow: 0 2px 14px rgba(0, 0, 0, .08); }

.header-inner {
  min-height: var(--header-h);
  padding: 30px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* matches live site: 137x48, contain */
.header-logo img {
  height: 48px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.header-nav .nav-list {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-item { position: relative; }

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  color: var(--color-text);
  white-space: nowrap;
  transition: opacity .2s ease;
}
.nav-link:hover,
.nav-link.is-active { opacity: .65; }

.nav-caret { transition: transform .2s ease; flex: none; }
.has-dropdown:hover .nav-caret { transform: rotate(180deg); }

/* dropdown */
.dropdown-toggle { display: none; }

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  padding-top: 8px;
  min-width: 320px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown ul {
  background: var(--color-white);
  padding: 16px 24px;
  border-radius: 8px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, .12);
}
.dropdown li + li { margin-top: 12px; }
.dropdown a {
  display: block;
  font-family: var(--font-heading);
  font-size: 15px;
  line-height: 1.4;
  color: var(--color-text);
  transition: opacity .2s ease;
}
.dropdown a:hover { opacity: .6; }

/* burger */
.nav-burger {
  display: none;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav-burger span {
  display: block;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
.nav-burger span + span { margin-top: 6px; }
.nav-burger.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-burger.is-open span:nth-child(2) { opacity: 0; }
.nav-burger.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ------------------------------------------------------------------ hero */
.hero {
  position: relative;
  min-height: 843px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
  color: var(--color-white);
}

.hero__bg { position: absolute; inset: 0; }

.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: #1d1e20;
  opacity: .45;
}

.hero__inner {
  position: relative;
  z-index: 2;
  max-width: var(--content);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 64px;
  padding-bottom: 64px;
}

.hero__title {
  font-size: 64px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-white);
  margin: 0 0 24px;
}

.hero__text {
  max-width: 812px;
  font-size: 20px;
  line-height: 1.6;
  color: var(--color-white);
  margin: 0 0 40px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
}

.hero__site { font-size: 24px; color: var(--color-white); margin: 0; }
.hero__site a { text-decoration: none; }

/* ------------------------------------------------------------------ buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 194px;
  height: 56px;
  padding: 0 24px;
  border-radius: 28px;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  border: 0 solid transparent;
  cursor: pointer;
  transition: opacity .2s ease, background .2s ease, color .2s ease;
}
.btn:hover { opacity: .82; }

.btn--ghost   { background: transparent; color: var(--color-white); }
.btn--outline { background: transparent; color: var(--color-white); border: 1px solid var(--color-white); }
/* CTA buttons are 155x56 on the live site - reduced padding so the width matches */
.btn--white   { background: var(--color-white); color: var(--color-black); border: 1px solid var(--color-black); min-width: 155px; padding: 0 16px; }
.btn--dark    { background: var(--color-black); color: var(--color-white); min-width: 155px; padding: 0 16px; }

/* ------------------------------------------------------------------ sections */
.section { padding: 40px 0; }
.section--intro { padding-top: 66px; }
.section--cta   { padding: 48px 0 80px; }

.content {
  max-width: var(--content);
  margin: 0 auto;
  padding: 0 16px;
}
.content--center { text-align: center; }

.h2 {
  font-size: 32px;
  font-weight: 600;
  margin: 0 0 16px;
}
.h2--large { font-size: 56px; }
.h2 strong { font-weight: 900; }

.h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 16px;
}
.h3 strong { font-weight: 900; }

.link-list li,
.plain-list li { margin-bottom: 8px; }

.link-list--center { text-align: center; }

.link-list a {
  text-decoration: none;
  transition: opacity .2s ease;
}
.link-list a:hover { opacity: .6; }

.cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 46px;
  margin-top: 32px;
}

/* ------------------------------------------------------------------ footer */
.site-footer {
  background: var(--color-footer-bg);
  color: var(--color-white);
  padding: 85px 0 40px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px 64px;
  align-items: start;
}

.footer-heading {
  font-size: 56px;
  font-weight: 600;
  color: var(--color-white);
  margin: 0 0 16px;
}

.footer-sub,
.footer-company,
.footer-text {
  font-size: 18px;
  line-height: 1.6;
  color: var(--color-white);
}
.footer-company { font-weight: 700; margin-bottom: 8px; }
.footer-text a  { text-decoration: none; }

/* mobile capture form */
.mobile-form { display: flex; flex-direction: column; max-width: 400px; }

.mobile-form__label {
  font-size: 16px;
  color: var(--color-white);
  margin-bottom: 8px;
}

.mobile-form__input {
  height: 48px;
  padding: 0 16px;
  border: 0;
  border-radius: 4px;
  background: var(--color-white);
  color: var(--color-input-text);
  font-family: var(--font-body);
  font-size: 16px;
  margin-bottom: 16px;
}
.mobile-form__input::placeholder { color: rgba(13, 20, 26, .6); }

.mobile-form__btn {
  align-self: flex-start;
  padding: 16px 40px;
  border: 0;
  border-radius: 50px;
  background: var(--color-accent);
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 14px;
  cursor: pointer;
  transition: opacity .2s ease;
}
.mobile-form__btn:hover { opacity: .85; }

.footer-bottom {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 60px;
}
.footer-copy,
.footer-credit { font-size: 14px; color: var(--color-white); margin: 0; }
.footer-credit a { text-decoration: none; }

/* ------------------------------------------------------------- fixed page background
   Contact page: the photo stays fixed to the viewport while content scrolls
   over it (parallax, like the live site). Same overlay as the hero. */
.page-bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; }

.page-bg__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}

.page-bg__overlay {
  position: absolute;
  inset: 0;
  background: #1d1e20;
  opacity: .45;
}

/* keep content above the fixed background */
.has-page-bg .section,
.has-page-bg .site-footer { position: relative; z-index: 1; }

/* all text is white on this background - except buttons,
   otherwise white text on a white button becomes invisible */
.has-page-bg .section,
.has-page-bg .page-title,
.has-page-bg .h2,
.has-page-bg .h3,
.has-page-bg .lead,
.has-page-bg .site-note,
.has-page-bg .section a:not(.btn) { color: var(--color-white); }

/* ...only the form labels stay dark, like the live site */
.has-page-bg .field__label { color: var(--color-input-text); }

/* ------------------------------------------------------------------ inner pages */
.section--page-top { padding-top: 66px; }

.page-title {
  font-size: 48px;
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 24px;
}
.page-title--center { font-size: 64px; text-align: center; }

.lead { font-size: 18px; line-height: 1.6; }

.site-note { font-size: 16px; }
/* this link is green and bold on the live site, with no underline */
.site-note a,
.hero__site a {
  color: #058026;
  font-weight: 700;
  text-decoration: none;
  transition: opacity .2s ease;
}
.site-note a:hover,
.hero__site a:hover { opacity: .75; }
.site-note--large { font-size: 24px; }

/* product pages */
.page-title--product { font-size: 48px; text-align: center; }

.product-image {
  display: flex;
  justify-content: center;
  margin: 32px auto;
}
.product-image img {
  width: 557px;
  max-width: 100%;
  height: 358px;
  object-fit: cover;
}
.product-image--wide img { width: 1018px; height: 359px; }

/* three-image row */
.section--gallery { padding: 8px 0 24px; }
.section--gallery .container { padding: 0; }

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.gallery__img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

/* ------------------------------------------------------------------ product grid */
.section--grid { padding: 24px 0 64px; }
.section--grid .container { padding: 0; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px 12px;
}

.product-card__link { display: block; }

.product-card__img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: opacity .25s ease;
}
.product-card__link:hover .product-card__img { opacity: .85; }

.product-card__title {
  font-size: 24px;
  font-weight: 600;
  text-align: center;
  margin: 20px 0 12px;
}

.product-card__text {
  font-size: 16px;
  text-align: center;
  margin: 0;
}

/* ------------------------------------------------------------------ blog */
.section--posts { padding: 16px 0 64px; }

.post-card {
  display: grid;
  grid-template-columns: 571px 1fr;
  gap: 32px;
  align-items: center;
  margin-bottom: 48px;
}

.post-card__media img {
  width: 100%;
  height: 342px;
  object-fit: cover;
  transition: opacity .25s ease;
}
.post-card__media:hover img { opacity: .88; }

.post-card__cat {
  font-family: var(--font-heading);
  font-size: 13px;
  letter-spacing: .08em;
  margin: 0 0 8px;
  opacity: .7;
}

.post-card__title {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 12px;
}
.post-card__title a { transition: opacity .2s ease; }
.post-card__title a:hover { opacity: .65; }

.post-card__excerpt { margin: 0 0 12px; }

.post-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 14px;
  opacity: .7;
  margin: 0;
}

/* single post page */
.post-title {
  font-size: 32px;
  font-weight: 700;
  text-align: center;
  margin: 0 0 12px;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  font-size: 14px;
  opacity: .7;
  margin: 0;
}

.section--article { padding-top: 24px; }

.post-hero {
  display: flex;
  justify-content: center;
  margin-bottom: 32px;
}
.post-hero img {
  width: 812px;
  max-width: 100%;
  height: 345px;
  object-fit: cover;
}

.post-lead-heading { margin-bottom: 20px; }

.section--article .h2 { margin-top: 32px; }
.section--article p  { margin-bottom: 16px; }

.pagination {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 40px;
}
.pagination__item {
  min-width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-family: var(--font-heading);
  font-size: 15px;
  transition: background .2s ease, color .2s ease;
}
.pagination__item:hover { background: rgba(29, 30, 32, .08); }
.pagination__item.is-active { background: var(--color-black); color: var(--color-white); }

/* CTA banner with its own fixed photo */
.section--cta-banner {
  position: relative;
  padding: 90px 0;
  overflow: hidden;
}
.cta-bg { position: absolute; inset: 0; z-index: 0; }
.cta-bg__img { width: 100%; height: 100%; object-fit: cover; }
.cta-bg__overlay { position: absolute; inset: 0; background: #1d1e20; opacity: .1; }
.section--cta-banner > .container { position: relative; z-index: 1; }

.h3--large { font-size: 32px; }

.h5 {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 600;
  margin: 0 0 16px;
}

/* smaller headings inside a section */
.sub-heading {
  font-family: var(--font-heading);
  font-weight: 600;
  margin: 24px 0 8px;
}
.sub-heading--h3 { font-size: 18px; }
.sub-heading--h4 { font-size: 18px; }
.sub-heading--h5 { font-size: 18px; }
.sub-heading--h6 { font-size: 18px; }

/* FAQ */
.faq-item { margin-bottom: 24px; }

.faq-q {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 8px;
}
.faq-a { margin: 0; }

/* ------------------------------------------------------------------ enquiry form */
.section--form { padding: 24px 0 48px; }

/* white card like the live site: 606x620, padding 30px, radius 20px */
.enquiry-form {
  width: 100%;
  max-width: 606px;
  margin: 0 auto;
  padding: 30px;
  background: var(--color-white);
  border-radius: 20px;
}

.field { margin-bottom: 20px; }

.field__label {
  display: block;
  font-family: var(--font-heading);
  font-size: 14px;
  line-height: 17px;
  color: var(--color-input-text);
  margin-bottom: 8px;
}

.field__input {
  display: block;
  width: 100%;
  height: 53px;
  padding: 16px;
  background: var(--color-white);
  border: .8px solid #b8c0cc;
  border-radius: 10px;
  font-family: var(--font-heading);
  font-size: 16px;
  color: var(--color-input-text);
  transition: border-color .2s ease;
}
.field__input:focus {
  outline: none;
  border-color: var(--color-accent);
}
.field__input::placeholder { color: rgba(13, 20, 26, .55); }

.field__input--area {
  height: 96px;
  min-height: 96px;
  resize: vertical;
  line-height: 1.5;
}

/* honeypot - hidden from both screen readers and users */
.field__trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.btn-send {
  padding: 16px 40px;
  border: 0;
  border-radius: 50px;
  background: var(--color-accent);
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 14px;
  cursor: pointer;
  transition: opacity .2s ease;
}
.btn-send:hover { opacity: .85; }

.enquiry-form__status {
  padding: 14px 16px;
  border-radius: 10px;
  font-size: 15px;
  margin-bottom: 24px;
}
.enquiry-form__status--ok  { background: #e8f5ec; color: #05611f; border: 1px solid #b6ddc3; }
.enquiry-form__status--err { background: #fdecec; color: #8a1c1c; border: 1px solid #f0bcbc; }

.btn--whatsapp {
  background: #058026;
  color: var(--color-white);
  border-radius: 999px;
  min-width: 146px;
}

/* form status message (send.php redirect) */
.form-note {
  margin-top: 12px;
  font-size: 14px;
  color: var(--color-white);
}

/* ------------------------------------------------------------------ responsive */
@media (max-width: 1024px) {
  .hero__title,
  .page-title--center { font-size: 48px; }
  .page-title { font-size: 40px; }
  .h2--large,
  .footer-heading { font-size: 40px; }
}

@media (max-width: 900px) {
  .header-inner { padding: 20px 16px; min-height: 80px; }
  .nav-burger { display: block; }

  .header-nav {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-white);
    padding: 24px 20px 60px;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform .3s ease;
  }
  .header-nav.is-open { transform: translateX(0); }

  .header-nav .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .nav-item { border-bottom: 1px solid var(--color-line); }
  .nav-link { padding: 16px 0; font-size: 18px; }
  .nav-caret { display: none; }

  .dropdown-toggle {
    display: block;
    position: absolute;
    top: 8px;
    right: 0;
    width: 40px;
    height: 40px;
    background: none;
    border: 0;
    cursor: pointer;
  }
  .dropdown-toggle::before,
  .dropdown-toggle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 14px;
    height: 2px;
    background: var(--color-text);
    transform: translate(-50%, -50%);
    transition: transform .25s ease;
  }
  .dropdown-toggle::after { transform: translate(-50%, -50%) rotate(90deg); }
  .dropdown-toggle.is-open::after { transform: translate(-50%, -50%) rotate(0); }

  .dropdown {
    position: static;
    min-width: 0;
    padding-top: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
  }
  .dropdown.is-open { display: block; }
  .has-dropdown:hover .dropdown { opacity: 1; visibility: visible; }
  .dropdown ul { box-shadow: none; padding: 0 0 16px 12px; border-radius: 0; }
  .dropdown li + li { margin-top: 14px; }

  .footer-inner { grid-template-columns: 1fr; }
  .footer-col--contact { order: -1; }
}

@media (max-width: 640px) {
  .hero { min-height: 620px; }
  .hero__title { font-size: 34px; }
  .hero__text  { font-size: 17px; }
  .hero__actions { width: 100%; flex-direction: column; align-items: stretch; }
  .btn { width: 100%; min-width: 0; }

  .h2 { font-size: 26px; }
  .h2--large, .footer-heading { font-size: 32px; }
  .page-title, .page-title--center { font-size: 32px; }
  .h3--large { font-size: 24px; }
  .h5 { font-size: 22px; }
  .enquiry-form { padding: 20px; }
  .btn-send { width: 100%; }
  .section--gallery .container,
  .section--grid .container { padding: 0 16px; }
  .product-grid { grid-template-columns: 1fr; gap: 40px 0; }
  .product-card__title { font-size: 20px; }
  .post-card { grid-template-columns: 1fr; gap: 16px; margin-bottom: 40px; }
  .post-card__media img { height: 220px; }
  .post-card__title { font-size: 20px; }
  .post-title { font-size: 24px; }
  .post-hero img { height: 220px; }
  .gallery { grid-template-columns: 1fr; }
  .gallery__img { height: 220px; }
  .product-image img,
  .product-image--wide img { height: 240px; }
  .site-note--large { font-size: 18px; }
  .section--cta-banner { padding: 56px 0; }

  .section { padding: 32px 0; }
  .site-footer { padding: 48px 0 32px; }

  .cta__actions { flex-direction: column; gap: 16px; }
  .footer-bottom { margin-top: 40px; }
}

/* ------------------------------------------------------------------ location map */
.section--map { padding: 8px 0 40px; }
.section--map .container { padding: 0; }

.map-embed {
  width: 100%;
  max-width: var(--content);
  margin: 0 auto;
  line-height: 0;
}
.map-embed iframe {
  width: 100%;
  height: 360px;
  border: 0;
  display: block;
}

@media (max-width: 640px) {
  .section--map .container { padding: 0 16px; }
  .map-embed iframe { height: 260px; }
}
