/* ============================================
   Welbilt Asia - Modern Static Website
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
  --color-primary: #005DAA;
  --color-primary-dark: #004080;
  --color-accent: #E31B23;
  --color-accent-dark: #c01920;
  --color-dark: #1a1a2e;
  --color-dark-section: #2b3a42;
  --color-gray-900: #1a1a1a;
  --color-gray-700: #444;
  --color-gray-500: #777;
  --color-gray-300: #ccc;
  --color-gray-100: #f5f5f7;
  --color-white: #ffffff;

  --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1200px;
  --header-height: 80px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-gray-700);
  background: var(--color-white);
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition);
}

ul {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-gray-900);
  line-height: 1.2;
}

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

/* --- Reveal Animation --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ============================================
   HEADER
   ============================================ */
.top-bar {
  background: var(--color-dark);
  padding: 8px 0;
  font-size: 13px;
  color: var(--color-gray-300);
  position: relative;
  z-index: 1100;
}

.top-bar .container {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 24px;
}

.top-bar a {
  color: var(--color-gray-300);
  font-weight: 500;
  letter-spacing: 0.3px;
}

.top-bar a:hover {
  color: var(--color-white);
}

.lang-selector {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  color: var(--color-gray-300);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.3px;
  padding: 2px 0;
}

.lang-selector:hover {
  color: var(--color-white);
}

.lang-selector svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.lang-selector .lang-chevron {
  width: 10px;
  height: 10px;
  transition: transform var(--transition);
}

.lang-selector.open .lang-chevron {
  transform: rotate(180deg);
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--color-white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  min-width: 140px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: all var(--transition);
  z-index: 100;
  overflow: hidden;
}

.lang-selector.open .lang-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-dropdown a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  color: var(--color-gray-700);
  font-size: 13px;
  font-weight: 500;
  transition: background var(--transition);
}

.lang-dropdown a:hover {
  background: var(--color-gray-100);
  color: var(--color-gray-700);
}

.lang-dropdown a.active {
  color: var(--color-primary);
  background: rgba(0, 93, 170, 0.05);
}

.lang-dropdown a .lang-check {
  width: 14px;
  height: 14px;
  margin-left: auto;
}

.header {
  background: var(--color-white);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0;
}

.logo svg {
  height: 44px;
  width: auto;
}

.logo-text {
  font-size: 26px;
  font-weight: 800;
  color: var(--color-gray-900);
  letter-spacing: -0.5px;
}

.logo-text span {
  color: var(--color-primary);
}

.nav-main {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-main a {
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-gray-700);
  letter-spacing: 0.3px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  text-transform: uppercase;
}

.nav-main a:hover,
.nav-main a.active {
  color: var(--color-primary);
  background: rgba(0, 93, 170, 0.06);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-gray-900);
  border-radius: 2px;
  transition: all var(--transition);
}

.nav-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  height: 85vh;
  min-height: 550px;
  max-height: 800px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-dark) 0%, var(--color-dark-section) 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.3;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26, 26, 46, 0.85) 0%, rgba(43, 58, 66, 0.7) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(10px);
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-white);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 24px;
  border: 1px solid rgba(255,255,255,0.15);
}

.hero-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--color-white);
  margin-bottom: 20px;
  line-height: 1.1;
}

.hero h1 .accent {
  color: var(--color-accent);
}

.hero p {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-white);
}

.btn-primary:hover {
  background: var(--color-accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(227, 27, 35, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--color-white);
  border: 2px solid rgba(255,255,255,0.3);
}

.btn-outline:hover {
  border-color: var(--color-white);
  background: rgba(255,255,255,0.1);
}

.btn-outline-dark {
  background: transparent;
  color: var(--color-gray-900);
  border: 2px solid var(--color-gray-300);
}

.btn-outline-dark:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* ============================================
   SECTION STYLES
   ============================================ */
.section {
  padding: 100px 0;
}

.section-sm {
  padding: 60px 0;
}

.section-dark {
  background: var(--color-dark-section);
  color: var(--color-white);
}

.section-dark h2,
.section-dark h3,
.section-dark h4 {
  color: var(--color-white);
}

.section-dark p {
  color: rgba(255,255,255,0.8);
}

.section-gray {
  background: var(--color-gray-100);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.section-header .overline {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.section-dark .section-header .overline {
  color: var(--color-accent);
}

.section-header h2 {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  margin-bottom: 16px;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--color-gray-500);
}

.section-dark .section-header p {
  color: rgba(255,255,255,0.7);
}

/* ============================================
   PILLARS / FEATURES GRID
   ============================================ */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.pillar-card {
  text-align: center;
  padding: 48px 32px;
  border-radius: var(--radius-md);
  background: var(--color-white);
  border: 1px solid rgba(0,0,0,0.06);
  transition: all var(--transition);
}

.pillar-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.pillar-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(0,93,170,0.08), rgba(0,93,170,0.04));
  color: var(--color-primary);
}

.pillar-icon svg {
  width: 36px;
  height: 36px;
}

.pillar-card h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pillar-card p {
  font-size: 0.95rem;
  color: var(--color-gray-500);
  line-height: 1.6;
}

/* ============================================
   PORTFOLIO / INDUSTRIES GRID
   ============================================ */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.portfolio-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 3/4;
  cursor: pointer;
  group: true;
}

.portfolio-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s ease;
}

.portfolio-card:hover .portfolio-card-bg {
  transform: scale(1.08);
}

.portfolio-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.1) 60%);
  transition: background var(--transition);
}

.portfolio-card:hover .portfolio-card-overlay {
  background: linear-gradient(to top, rgba(0,93,170,0.9) 0%, rgba(0,93,170,0.2) 60%);
}

.portfolio-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px 20px;
}

.portfolio-card h3 {
  font-size: 1rem;
  color: var(--color-white);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ============================================
   TAGLINE BANNER
   ============================================ */
.tagline-banner {
  position: relative;
  padding: 120px 0;
  overflow: hidden;
}

.tagline-banner-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.15;
}

.tagline-banner .container {
  position: relative;
  z-index: 2;
}

.tagline-banner h2 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  line-height: 1.2;
  color: var(--color-white);
}

.tagline-banner h2 .accent {
  color: var(--color-accent);
  display: block;
}

/* ============================================
   NEWS / HAPPENINGS
   ============================================ */
.news-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.news-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-white);
  border: 1px solid rgba(0,0,0,0.06);
  transition: all var(--transition);
}

.news-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.news-card-image {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--color-gray-100);
}

.news-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.news-card:hover .news-card-image img {
  transform: scale(1.05);
}

.news-card-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 50px;
  color: var(--color-white);
}

.news-card-badge.news { background: var(--color-primary); }
.news-card-badge.video { background: var(--color-accent); }

.news-card-body {
  padding: 20px;
}

.news-card-body h3 {
  font-size: 0.95rem;
  line-height: 1.4;
  margin-bottom: 8px;
}

.news-card-body p {
  font-size: 0.85rem;
  color: var(--color-gray-500);
}

/* ============================================
   BRANDS PAGE
   ============================================ */
.page-header {
  background: linear-gradient(135deg, var(--color-dark) 0%, var(--color-dark-section) 100%);
  padding: 60px 0 50px;
}

.page-header h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--color-white);
  margin-bottom: 8px;
}

.page-header .breadcrumb {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
}

.page-header .breadcrumb a {
  color: rgba(255,255,255,0.6);
}

.page-header .breadcrumb a:hover {
  color: var(--color-white);
}

.brands-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.brands-intro h2 {
  font-size: clamp(2rem, 3vw, 2.5rem);
}

.brands-intro p {
  font-size: 1.1rem;
  line-height: 1.7;
}

.brands-intro strong {
  color: var(--color-gray-900);
}

.brands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 32px;
}

.brand-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-white);
  border: 1px solid rgba(0,0,0,0.06);
  transition: all var(--transition);
}

.brand-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.brand-card-image {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--color-gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.brand-card:hover .brand-card-image img {
  transform: scale(1.05);
}

.brand-card-body {
  padding: 24px;
}

.brand-card-body h3 {
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.brand-card-body .brand-tagline {
  font-size: 0.9rem;
  color: var(--color-gray-500);
  margin-bottom: 16px;
}

.brand-card-body .btn {
  padding: 10px 24px;
  font-size: 13px;
}

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-form {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 40px;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: var(--shadow-sm);
}

.contact-form h2 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.contact-form > p {
  color: var(--color-gray-500);
  margin-bottom: 32px;
  font-size: 0.95rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-gray-700);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.form-group label .required {
  color: var(--color-accent);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  font-size: 15px;
  font-family: var(--font-body);
  border: 1.5px solid var(--color-gray-300);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  color: var(--color-gray-900);
  background: var(--color-white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(0, 93, 170, 0.1);
}

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

.contact-offices {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.office-card {
  padding: 32px;
  border-radius: var(--radius-md);
  background: var(--color-gray-100);
  border: 1px solid rgba(0,0,0,0.04);
}

.office-card h3 {
  font-size: 1.1rem;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.office-card h3 .badge {
  font-size: 11px;
  font-weight: 700;
  background: var(--color-primary);
  color: white;
  padding: 2px 10px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.office-card p {
  font-size: 0.95rem;
  color: var(--color-gray-500);
  line-height: 1.7;
}

.office-card a {
  color: var(--color-primary);
  font-weight: 500;
}

.office-card a:hover {
  color: var(--color-primary-dark);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--color-dark);
  color: rgba(255,255,255,0.7);
  padding: 80px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand p {
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 20px 0;
  max-width: 300px;
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.7);
  transition: all var(--transition);
}

.footer-social a:hover {
  background: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-2px);
}

.footer-social a svg {
  width: 18px;
  height: 18px;
}

.footer h4 {
  color: var(--color-white);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

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

.footer-links a {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  transition: all var(--transition);
}

.footer-links a:hover {
  color: var(--color-white);
  padding-left: 4px;
}

.footer-bottom {
  padding: 24px 0;
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,0.4);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .brands-intro {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 64px;
  }

  .nav-main {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--color-white);
    flex-direction: column;
    padding: 100px 32px 32px;
    gap: 4px;
    box-shadow: var(--shadow-xl);
    transition: right var(--transition);
    z-index: 999;
    align-items: stretch;
  }

  .nav-main.open {
    right: 0;
  }

  .nav-main a {
    font-size: 16px;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
  }

  .nav-toggle {
    display: flex;
    z-index: 1001;
  }

  .mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
  }

  .mobile-overlay.active {
    opacity: 1;
    visibility: visible;
  }

  .hero {
    height: 70vh;
    min-height: 480px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .pillars-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .section {
    padding: 60px 0;
  }

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

  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-form {
    padding: 24px;
  }
}

@media (max-width: 480px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    text-align: center;
    justify-content: center;
  }
}
