/* =============================================
   隆大營建 - 共用樣式
   Longda Construction - Common Styles
   ============================================= */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+TC:wght@300;400;500;600;700&family=Noto+Sans+TC:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

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

:root {
  /* Primary Colors */
  --white: #FFFFFF;
  --off-white: #FAFAFA;
  --light-gray-1: #F8F9FA;
  --light-gray-2: #E9ECEF;
  --light-gray-3: #DEE2E6;
  --medium-gray: #ADB5BD;
  
  /* Text Colors */
  --text-primary: #2C3E50;
  --text-secondary: #34495E;
  --text-muted: #6C757D;
  --text-light: #ADB5BD;
  
  /* Accent Colors */
  --accent-primary: #C9963A;   /* 金銅色 */
  --accent-light: #E8C47A;     /* 淺金色 */
  --accent-dark: #A07828;      /* 深金銅色 */
  --accent-warm: #D4A574;      /* 暖金色 */
  
  /* Semantic Colors */
  --success: #27AE60;
  --info: #2980B9;
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);
  
  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  /* Spacing */
  --section-padding: 100px 0;
  --container-max: 1280px;
  --container-padding: 0 40px;
}

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

body {
  font-family: 'Noto Sans TC', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-primary);
  background-color: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* =============================================
   Typography
   ============================================= */
.serif {
  font-family: 'Noto Serif TC', 'Playfair Display', serif;
}

.font-light { font-weight: 300; }
.font-regular { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

/* =============================================
   Layout Utilities
   ============================================= */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--container-padding);
}

.section {
  padding: var(--section-padding);
}

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

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

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

.btn-primary {
  background-color: var(--accent-primary);
  color: var(--white);
  border: 2px solid var(--accent-primary);
}

.btn-primary:hover {
  background-color: var(--accent-dark);
  border-color: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201,150,58,0.3);
}

.btn-outline {
  background-color: transparent;
  color: var(--accent-primary);
  border: 2px solid var(--accent-primary);
}

.btn-outline:hover {
  background-color: var(--accent-primary);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-white {
  background-color: var(--white);
  color: var(--text-primary);
  border: 2px solid var(--white);
}

.btn-white:hover {
  background-color: transparent;
  color: var(--white);
}

.btn-sm {
  padding: 10px 22px;
  font-size: 0.8125rem;
}

/* =============================================
   Navigation
   ============================================= */
/*
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 40px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  transition: all var(--transition-base);
}

.navbar.scrolled {
  height: 68px;
  box-shadow: var(--shadow-md);
}

.navbar__logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.navbar__logo-mark {
  width: 40px;
  height: 40px;
  background: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.navbar__logo-mark span {
  color: white;
  font-size: 1.1rem;
  font-weight: 700;
  font-family: 'Playfair Display', serif;
}

.navbar__logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.navbar__logo-cn {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  font-family: 'Noto Serif TC', serif;
}

.navbar__logo-en {
  font-size: 0.625rem;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.navbar__nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.navbar__link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
  position: relative;
  padding-bottom: 3px;
}

.navbar__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--accent-primary);
  transition: width var(--transition-base);
}

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

.navbar__link:hover,
.navbar__link.active {
  color: var(--accent-primary);
}

.navbar__cta {
  padding: 10px 24px;
  font-size: 0.8125rem;
}

.navbar__menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.navbar__menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: all var(--transition-base);
}
*/

/* =============================================
   Footer
   ============================================= */
.footer {
  background-color: #1A2332;
  color: rgba(255,255,255,0.7);
  padding: 80px 40px 40px;
}

.footer__grid {
  max-width: var(--container-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer__brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.footer__brand-mark {
  width: 40px;
  height: 40px;
  background: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer__brand-mark span {
  color: white;
  font-size: 1.1rem;
  font-weight: 700;
  font-family: 'Playfair Display', serif;
}

.footer__brand-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--white);
  font-family: 'Noto Serif TC', serif;
}

.footer__tagline {
  font-size: 0.875rem;
  line-height: 1.8;
  margin-bottom: 24px;
  color: rgba(255,255,255,0.55);
}

.footer__cert {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--accent-light);
  border: 1px solid rgba(201,150,58,0.3);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
}

.footer__heading {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-primary);
  margin-bottom: 24px;
  font-weight: 500;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__links a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition-fast);
}

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

.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 14px;
}

.footer__contact-item i {
  color: var(--accent-primary);
  margin-top: 2px;
  flex-shrink: 0;
}

.footer__bottom {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.35);
}

.footer__bottom-links {
  display: flex;
  gap: 24px;
}

.footer__bottom-links a {
  color: rgba(255,255,255,0.35);
  transition: color var(--transition-fast);
}

.footer__bottom-links a:hover {
  color: rgba(255,255,255,0.7);
}

/* =============================================
   Breadcrumb
   ============================================= */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  color: var(--text-muted);
  padding: 16px 0;
}

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

.breadcrumb__item a {
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.breadcrumb__item a:hover {
  color: var(--accent-primary);
}

.breadcrumb__separator {
  color: var(--light-gray-3);
  font-size: 0.75rem;
}

.breadcrumb__item.active {
  color: var(--text-primary);
  font-weight: 500;
}

/* =============================================
   Section Headers
   ============================================= */
.section-header {
  margin-bottom: 64px;
}

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

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-primary);
  margin-bottom: 16px;
}

.section-label::before {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--accent-primary);
}

.section-title {
  font-family: 'Noto Serif TC', serif;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: 20px;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 600px;
}

.section-header--center .section-subtitle {
  margin: 0 auto;
}

/* =============================================
   Cards
   ============================================= */
.card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

/* =============================================
   Tag/Badge
   ============================================= */
.tag {
  display: inline-block;
  padding: 4px 12px;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 2px;
}

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

.tag-outline {
  border: 1px solid var(--light-gray-3);
  color: var(--text-muted);
}

/* =============================================
   Divider
   ============================================= */
.divider {
  width: 48px;
  height: 2px;
  background: var(--accent-primary);
  margin: 24px 0;
}

.divider--center {
  margin: 24px auto;
}



/* =============================================
   Responsive
   ============================================= */
@media (max-width: 1024px) {
  :root {
    --container-padding: 0 32px;
    --section-padding: 80px 0;
  }

  .navbar__nav {
    gap: 24px;
  }

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

@media (max-width: 768px) {
  :root {
    --container-padding: 0 20px;
    --section-padding: 60px 0;
  }

  .navbar {
    padding: 0 20px;
  }

  .navbar__nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-top: 1px solid var(--light-gray-2);
    padding: 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    box-shadow: var(--shadow-md);
  }

  .navbar__nav.is-open {
    display: flex;
  }

  .navbar__link {
    padding: 14px 0;
    width: 100%;
    border-bottom: 1px solid var(--light-gray-2);
    font-size: 1rem;
  }

  .navbar__cta {
    display: none;
  }

  .navbar__menu-toggle {
    display: flex;
  }

  .footer {
    padding: 60px 20px 32px;
  }

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

  .footer__bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .section-header {
    margin-bottom: 48px;
  }
}
