/* =========================================
   MSCD Group I/S — Corporate Website
   Color Palette: Navy #0D1B2A · Gold #C8A96E
   ========================================= */

/* Fonts loaded via <link> in HTML for better render performance */

/* ---------- Custom Properties ---------- */
:root {
  --navy:       #0D1B2A;
  --navy-light: #1B2D45;
  --navy-mid:   #142236;
  --gold:       #C8A96E;
  --gold-light: #D4BC8B;
  --gold-dark:  #A8893E;
  --white:      #F0EDE8;
  --white-pure: #FFFFFF;
  --gray:       #8899AA;
  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Syne', 'Segoe UI', sans-serif;
  --transition:   0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--navy);
  color: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

/* ---------- Subtle Grid Background ---------- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(200, 169, 110, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200, 169, 110, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  color: var(--white-pure);
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }

p {
  font-size: 1rem;
  color: var(--gray);
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover {
  color: var(--gold-light);
}

img {
  max-width: 100%;
  display: block;
}

/* ---------- Utility ---------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  position: relative;
  padding: 6rem 0;
  z-index: 1;
}

.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.section-title {
  margin-bottom: 1.2rem;
}

.gold-line {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  margin-bottom: 2rem;
}

.gold-line--center {
  margin-left: auto;
  margin-right: auto;
}

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

/* ---------- Reveal Animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Navigation ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.4rem 0;
  transition: background var(--transition), padding var(--transition), box-shadow var(--transition);
}

.navbar.scrolled {
  background: rgba(13, 27, 42, 0.95);
  backdrop-filter: blur(12px);
  padding: 0.8rem 0;
  box-shadow: 0 2px 30px rgba(0, 0, 0, 0.4);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar__logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white-pure);
  letter-spacing: 1px;
}

.navbar__logo span {
  color: var(--gold);
}

.navbar__links {
  display: flex;
  list-style: none;
  gap: 2.5rem;
}

.navbar__links a {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gray);
  position: relative;
  padding-bottom: 4px;
  transition: color var(--transition);
}

.navbar__links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--gold);
  transition: width var(--transition);
}

.navbar__links a:hover,
.navbar__links a.active {
  color: var(--gold);
}

.navbar__links a:hover::after,
.navbar__links a.active::after {
  width: 100%;
}

/* Mobile Toggle */
.navbar__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.navbar__toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transition: var(--transition);
}

/* ---------- Hero Section ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 1;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(200, 169, 110, 0.06) 0%, transparent 60%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  max-width: 800px;
  padding: 0 2rem;
}

.hero__tagline {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
}

.hero__title {
  margin-bottom: 1.5rem;
}

.hero__subtitle {
  font-size: 1.15rem;
  color: var(--gray);
  max-width: 560px;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
}

.hero__scroll-indicator {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--gold);
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  animation: float 2.5s ease-in-out infinite;
}

.hero__scroll-indicator .arrow {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--gold), transparent);
}

@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 1rem 2.5rem;
  border: 1.5px solid var(--gold);
  color: var(--gold);
  background: transparent;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: color var(--transition), background var(--transition);
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
  z-index: -1;
}

.btn:hover {
  color: var(--navy);
}

.btn:hover::before {
  transform: scaleX(1);
}

.btn--filled {
  background: var(--gold);
  color: var(--navy);
}

.btn--filled::before {
  background: var(--gold-light);
}

/* ---------- About Section ---------- */
.about {
  background: var(--navy-mid);
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about__image-wrapper {
  position: relative;
}

.about__image {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--navy-light), var(--navy));
  border: 1px solid rgba(200, 169, 110, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 3rem;
  color: rgba(200, 169, 110, 0.2);
}

.about__image-wrapper::after {
  content: '';
  position: absolute;
  top: -12px;
  right: -12px;
  width: 100%;
  height: 100%;
  border: 1.5px solid var(--gold);
  opacity: 0.2;
  pointer-events: none;
}

.about__text p {
  margin-bottom: 1.5rem;
}

/* ---------- Services Section ---------- */
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.service-card {
  background: var(--navy-mid);
  border: 1px solid rgba(200, 169, 110, 0.1);
  padding: 2.5rem 2rem;
  transition: border-color var(--transition), transform var(--transition);
}

.service-card:hover {
  border-color: rgba(200, 169, 110, 0.35);
  transform: translateY(-4px);
}

.service-card__icon {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--gold);
}

.service-card__title {
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
}

.service-card__desc {
  font-size: 0.92rem;
  line-height: 1.7;
}

/* ---------- CTA Section ---------- */
.cta {
  background: linear-gradient(135deg, var(--navy-light), var(--navy));
  text-align: center;
  border-top: 1px solid rgba(200, 169, 110, 0.1);
  border-bottom: 1px solid rgba(200, 169, 110, 0.1);
}

.cta__title {
  margin-bottom: 1rem;
}

.cta__text {
  max-width: 560px;
  margin: 0 auto 2.5rem;
  font-size: 1.05rem;
}

/* ---------- Products Page ---------- */
.page-header {
  padding: 10rem 0 4rem;
  text-align: center;
  position: relative;
  z-index: 1;
}

.page-header__title {
  margin-bottom: 1rem;
}

.page-header__subtitle {
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto;
}

.products__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  margin-top: 1rem;
}

.product-card {
  background: var(--navy-mid);
  border: 1px solid rgba(200, 169, 110, 0.1);
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition);
}

.product-card:hover {
  border-color: rgba(200, 169, 110, 0.3);
  transform: translateY(-4px);
}

.product-card__image {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--navy-light), var(--navy));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: rgba(200, 169, 110, 0.2);
  border-bottom: 1px solid rgba(200, 169, 110, 0.08);
}

.product-card__body {
  padding: 2rem;
}

.product-card__tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.8rem;
}

.product-card__title {
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
  line-height: 1.3;
}

h2.product-card__title {
  font-size: 1.4rem;
}

.product-card__desc {
  font-size: 0.92rem;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.product-card__link {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: gap var(--transition);
}

.product-card__link:hover {
  gap: 0.8rem;
}

/* ---------- Contact Page ---------- */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact__info {
  padding-top: 1rem;
}

.contact__info h2,
.contact__info h3 {
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
}

.contact__info p {
  margin-bottom: 2rem;
  line-height: 1.8;
}

.contact__detail {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact__detail-icon {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(200, 169, 110, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
  color: var(--gold);
}

.contact__detail-text span {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.2rem;
}

.contact__detail-text p {
  font-size: 0.95rem;
  margin: 0;
}

/* Contact Form */
.contact__form {
  background: var(--navy-mid);
  border: 1px solid rgba(200, 169, 110, 0.1);
  padding: 3rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.6rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  background: var(--navy);
  border: 1px solid rgba(200, 169, 110, 0.15);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--gold);
}

.form-group textarea {
  resize: vertical;
  min-height: 140px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(136, 153, 170, 0.5);
}

.contact__form .btn {
  width: 100%;
  text-align: center;
}

/* ---------- Footer ---------- */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(200, 169, 110, 0.1);
  padding: 3rem 0;
}

.footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer__logo {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white-pure);
}

.footer__logo span {
  color: var(--gold);
}

.footer__copy {
  font-size: 0.82rem;
  color: var(--gray);
}

.footer__links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.footer__links a {
  font-size: 0.82rem;
  color: var(--gray);
  transition: color var(--transition);
}

.footer__links a:hover {
  color: var(--gold);
}

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
  .services__grid {
    grid-template-columns: 1fr 1fr;
  }
  .about__grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .contact__grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  .navbar__links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--navy-mid);
    flex-direction: column;
    padding: 6rem 2.5rem 2rem;
    gap: 1.5rem;
    transition: right var(--transition);
    border-left: 1px solid rgba(200, 169, 110, 0.1);
  }

  .navbar__links.open {
    right: 0;
  }

  .navbar__toggle {
    display: flex;
    z-index: 1001;
  }

  .services__grid {
    grid-template-columns: 1fr;
  }

  .products__grid {
    grid-template-columns: 1fr;
  }

  .hero__title {
    font-size: clamp(2rem, 6vw, 3rem);
  }

  .section {
    padding: 4rem 0;
  }

  .footer .container {
    flex-direction: column;
    text-align: center;
  }
}
