/* ============================================================
   ASM HOLDING — style.css (RED THEME)
   Main color changed from blue to red, matching logo.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;900&family=DM+Sans:wght@300;400;500;600&display=swap');

/* ---- CSS Variables (RED THEME) ---- */
:root {
  --asm-red: #b22222;
  --asm-red-light: #cc3333;
  --asm-gold: #c9a84c;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 2px 12px rgba(178,34,34,0.08);
  --shadow-md: 0 8px 30px rgba(178,34,34,0.15);
  --shadow-lg: 0 20px 50px rgba(178,34,34,0.2);
}

/* ---- Base ---- */
html, body {
  height: 100%;
  margin: 0;
}

body {
  font-family: 'DM Sans', Arial, sans-serif;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  background: #f3f6fb;
  height: 100%;
}

/* ---- Header (red gradient) ---- */
header {
  background: linear-gradient(135deg, var(--asm-red) 0%, var(--asm-red-light) 100%);
  color: white;
  padding: 0 40px;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(178,34,34,0.3);
  transition: box-shadow var(--transition);
}

header.scrolled {
  box-shadow: 0 4px 30px rgba(178,34,34,0.35);
}

/* ---- Nav ---- */
.container {
  max-width: 1000px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav ul {
  list-style: none;
  display: flex;
}

nav ul li {
  margin-left: 20px;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 8px 4px;
  position: relative;
  transition: color var(--transition);
}

/* Gold underline animation on nav links */
nav ul li a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translate(-50%);
  width: 0;
  height: 2px;
  background: var(--asm-gold);
  border-radius: 0;
  transition: width var(--transition);
}

nav ul li a:hover::after,
nav ul li a.active::after {
  width: 100%;
}

nav ul li a:hover {
  color: #ffcd94;
}

/* ---- Header layout ---- */
.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 100%;
  padding: 10px 40px;
  margin: 0;
}

.header-left {
  flex: 1;
  display: flex;
  justify-content: flex-start;
}

.header-center {
  flex: 2;
  text-align: center;
  font-size: 20px;
}

.header-center h1 {
  margin: 0;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -0.5px;
}

.header-center p {
  margin: 5px 0 0 0;
  font-size: 16px;
  opacity: 0.85;
  font-weight: 300;
}

.header-right {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.logo {
  height: 150px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  margin: 0;
}

.logo img {
  height: 150px;
  width: auto;
  transition: transform var(--transition);
}

.logo img:hover {
  transform: scale(1.05);
}

/* ---- Sections ---- */
.section {
  padding: 60px 80px;
}

section:last-of-type {
  flex: 1;
}

.section h2 {
  margin-top: 30px;
  font-size: 28px;
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  color: var(--asm-red);
  margin-bottom: 20px;
  margin-left: 0px;
  position: relative;
  padding-bottom: 14px;
}

/* Gold underline bar under section headings */
.section h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 45px;
  height: 3px;
  background: var(--asm-gold);
  border-radius: 2px;
}

.section h3 {
  margin-top: 20px;
  margin-bottom: 20px;
  font-size: 25px;
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  color: var(--asm-red);
}

.center {
  text-align: center;
  font-size: 20px;
  max-width: 800px;
  margin: auto;
}

/* ---- Cards ---- */
.cards {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.card {
  background: white;
  padding: 28px 22px;
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  flex: 1;
  min-width: 220px;
  border: 1px solid transparent;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  position: relative;
  overflow: hidden;
}

/* Top accent bar on cards (red-gold) */
.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--asm-red), var(--asm-gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow-lg);
  border-color: #e5e9f0;
}

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

.card h3 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--asm-red);
  font-size: 1.2rem;
  margin-bottom: 10px;
}

/* ---- List ---- */
.list {
  margin-top: 20px;
}

.list li {
  margin: 8px 0;
  padding-left: 6px;
  position: relative;
}

.list li::marker {
  color: var(--asm-gold);
}

/* ---- Contact ---- */
.contact-box {
  max-width: 500px;
  margin: auto;
}

input, textarea {
  width: 100%;
  padding: 12px 16px;
  margin: 10px 0;
  border: 2px solid #e5e9f0;
  border-radius: 8px;
  font-family: 'DM Sans', Arial, sans-serif;
  font-size: 0.95rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

input:focus, textarea:focus {
  border-color: var(--asm-red);
  box-shadow: 0 0 0 3px rgba(178,34,34,0.1);
}

button {
  background: linear-gradient(135deg, var(--asm-red) 0%, var(--asm-red-light) 100%);
  color: white;
  border: none;
  padding: 14px;
  cursor: pointer;
  width: 100%;
  border-radius: 8px;
  font-family: 'DM Sans', Arial, sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all var(--transition);
  box-shadow: 0 4px 15px rgba(178,34,34,0.3);
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(178,34,34,0.4);
  filter: brightness(1.08);
}

button:active {
  transform: translateY(0);
}

/* ---- Business icon images ---- */
.biz-icon {
  max-width: 400px;
  height: 150px;
  object-fit: cover;
  display: block;
  margin: 15px auto;
  border-radius: 10px;
  transition: transform var(--transition), box-shadow var(--transition);
}

.biz-icon:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-md);
}

.card img {
  width: 250px;
  height: 120px;
  margin-bottom: 15px;
  margin-left: 0%;
  border-radius: 8px;
  object-fit: cover;
}

/* ---- Watermark (unchanged) ---- */
body::before {
  content: "";
  margin-top: 100px;
  position: fixed;
  top: 50%;
  left: 50.5%;
  transform: translate(-50%, -50%);
  width: 840px;
  height: 850px;
  background-image: url('../images/icons/MB.jpg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: 0.25;
  z-index: -1;
  pointer-events: none;
}

/* ---- Gallery ---- */
.thumbnail-gallery {
  display: flex;
  gap: 15px;
  padding-left: 150px;
  margin: 20px 0;
  flex-wrap: wrap;
}

.thumb-img {
  width: 150px;
  height: 100px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  border: 2px solid transparent;
}

.thumb-img:hover {
  transform: scale(1.08);
  box-shadow: var(--shadow-md);
  border-color: var(--asm-gold);
}

/* ---- Lightbox ---- */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.88);
  z-index: 2000;
  justify-content: center;
  align-items: center;
  animation: fadeInLB 0.3s ease;
}

@keyframes fadeInLB {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.lightbox:target {
  display: flex;
}

.lightbox img {
  max-width: 90%;
  max-height: 80%;
  box-shadow: 0 0 40px rgba(0,0,0,0.7);
  border: 3px solid white;
  border-radius: 6px;
  animation: zoomIn 0.3s cubic-bezier(0.34,1.56,0.64,1);
}

@keyframes zoomIn {
  from { transform: scale(0.8); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

.close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 50px;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.2s, transform 0.2s;
  line-height: 1;
}

.close:hover {
  color: var(--asm-gold);
  transform: rotate(90deg);
}

/* ---- Success message ---- */
.success-message {
  background-color: #f0f4f8;
  border: 2px solid var(--asm-red);
  color: var(--asm-red);
  padding: 40px;
  border-radius: 14px;
  text-align: center;
  max-width: 600px;
  margin: 40px auto;
  box-shadow: var(--shadow-md);
  animation: slideDown 0.5s ease;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.success-message h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 32px;
  margin-bottom: 15px;
  font-weight: bold;
}

.success-message p {
  font-size: 18px;
  line-height: 1.6;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---- Import/Export layout ---- */
.import-export-layout {
  display: flex;
  align-items: flex-start;
  gap: 30px;
  flex-wrap: wrap;
}

.text-side {
  flex: 1;
  min-width: 260px;
}

/* ---- Footer (dark red) ---- */
.asm-footer {
  background-color: var(--asm-red);
  color: #edf2fb;
  font-family: 'DM Sans', Arial, sans-serif;
  border-top: none;
  margin-top: 50px;
}

.asm-footer{
    position: relative;
}

.footer-corner-logo{
    position: absolute;
    right: 20px;
    bottom: 10px;
    width: 123px; /* adjust size */
    height: auto;
}



.footer-main-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  max-width: 100%;
}

.footer-links-wrapper {
  display: flex;
  flex: 2;
  gap: 80px;
  padding: 0 30px 20px;
  justify-content: flex-start;
}

.footer-brand-box {
  background-color: var(--asm-red);
  color: white;
  margin-top: 0;
  padding: 20px 30px 10px;
  flex: 1;
  min-width: 350px;
}

.footer-brand-box p {
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 30px;
  color: rgba(255,255,255,0.82);
}

.footer-contact-details p {
  margin-bottom: 10px;
  font-weight: 500;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
}

.footer-links, .footer-newsletter {
  flex: 1;
  padding: 0 30px 20px;
  min-width: 250px;
}

.footer-links h4, .footer-newsletter h4 {
  color: white;
  margin-bottom: 10px;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: 'Playfair Display', Georgia, serif;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links ul li {
  margin-bottom: 12px;
}

.footer-links ul li a {
  text-decoration: none;
  color: rgba(255,255,255,0.65);
  transition: all var(--transition);
  font-size: 0.9rem;
}

.footer-links ul li a:hover {
  color: var(--asm-gold);
  padding-left: 6px;
}

.footer-social-section {
  flex: 1;
  padding: 0 30px 20px;
  min-width: 220px;
}

.footer-social-section h4 {
  color: white;
  margin-bottom: 10px;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: 'Playfair Display', Georgia, serif;
}

.footer-line {
  width: 40px;
  height: 3px;
  background: var(--asm-gold);
  border-radius: 2px;
  margin-bottom: 20px;
}

.social-circle-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1.5px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  text-align: center;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  margin-right: 8px;
  transition: all var(--transition);
  font-size: 0.9rem;
}

.social-circle-links a:hover {
  background: var(--asm-gold);
  border-color: var(--asm-gold);
  color: var(--asm-red);
  transform: translateY(-3px);
}

.footer-copyright {
  background: var(--asm-red);
  color: rgba(255,255,255,0.75);
  width: 100%;
  text-align: center;
  padding: 20px 0;
  font-size: 14px;
}

/* ---- Scroll-reveal animation classes (added by JS) ---- */
.asm-reveal {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.asm-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays for card groups */
.cards .card:nth-child(1) { transition-delay: 0s; }
.cards .card:nth-child(2) { transition-delay: 0.1s; }
.cards .card:nth-child(3) { transition-delay: 0.2s; }
.cards .card:nth-child(4) { transition-delay: 0.3s; }

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .section { padding: 40px 20px; }
  .header-container { flex-wrap: wrap; padding: 10px 20px; }
  .header-center { flex: none; width: 100%; order: 2; margin: 8px 0; }
  .header-center h1 { font-size: 22px; }
  .thumbnail-gallery { padding-left: 0; }
  .import-export-layout { flex-direction: column; }
  .footer-links-wrapper { gap: 30px; flex-wrap: wrap; }
  .footer-brand-box { min-width: unset; width: 100%; }
}
/* ============================================================
   Gallery layout inside text-side (pop-in effects)
   ============================================================ */

.thumbnail-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
    padding-left: 0;
}

.thumb-img {
    width: 150px;
    height: 100px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0;
    transform: scale(0.85);
    transition: border-color 0.2s ease;
}

.thumb-img.popped {
    opacity: 1;
    transform: scale(1);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.thumb-img.hero-pop {
    opacity: 1;
    transform: scale(2.2);
    z-index: 100;
    position: relative;
    border-color: var(--asm-gold);
    box-shadow: 0 20px 60px rgba(0,0,0,0.35);
    transition: transform 0.45s cubic-bezier(0.34,1.56,0.64,1), opacity 0.3s ease;
}

.thumb-img.hero-pop.settle {
    transform: scale(1);
    box-shadow: none;
    border-color: transparent;
    transition: transform 0.5s cubic-bezier(0.4,0,0.2,1), box-shadow 0.4s ease, border-color 0.3s ease;
}

.thumb-img:hover {
    border-color: var(--asm-gold);
}

/* ---- Lightbox (modern) ---- */
#asm-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

#asm-lightbox.open {
    display: flex;
}

#asm-lb-img {
    max-width: 85vw;
    max-height: 80vh;
    border: 3px solid white;
    border-radius: 6px;
    cursor: zoom-in;
    transition: transform 0.3s ease;
    object-fit: contain;
}

#asm-lb-img.zoomed {
    transform: scale(1.8);
    cursor: zoom-out;
}

#asm-lb-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 50px;
    cursor: pointer;
    line-height: 1;
    font-weight: bold;
}

#asm-lb-close:hover { color: var(--asm-gold); }

#asm-lb-prev,
#asm-lb-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 60px;
    cursor: pointer;
    padding: 10px 20px;
    user-select: none;
    font-weight: 300;
}

#asm-lb-prev { left: 10px; }
#asm-lb-next { right: 10px; }

#asm-lb-prev:hover,
#asm-lb-next:hover { color: var(--asm-gold); }

#asm-lb-counter {
    position: absolute;
    bottom: 20px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    letter-spacing: 1px;
}

/* Enable scrolling on lightbox when image is zoomed */
#asm-lightbox {
    overflow: auto;
}

/* When zoomed, remove size constraints so image can be larger than viewport */
#asm-lb-img.zoomed {
    max-width: none;
    max-height: none;
    width: auto;
    height: auto;
    transform: scale(1.8);
    cursor: grab;
}

#asm-lb-img.zoomed:active {
    cursor: grabbing;
}
.footer-corner-logo {
    position: absolute; /* or fixed depending on your layout */
    bottom: 20px;
    right: 20px;

    width: 120px;   /* control size */
    height: auto;   /* keep proportions */

    max-width: 100%;
}
.footer-map-link {
  display: inline-block;
  margin-top: 5px;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  transition: 0.3s;
}

.footer-map-link:hover {
  color: var(--asm-gold);
  padding-left: 5px;
}