/* ===== EDVIC - Black & Gold Business Theme ===== */
:root {
  --black: #0a0a0a;
  --black-soft: #141414;
  --black-card: #1a1a1a;
  --gold: #c9a227;
  --gold-light: #e0c35c;
  --gold-dark: #a68520;
  --white: #f5f5f5;
  --gray: #a0a0a0;
  --gray-dark: #666;
  --border: #2a2a2a;
  --font-main: 'Noto Sans KR', 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Noto Sans KR', 'Pretendard', sans-serif;
  --max-width: 1200px;
  --radius: 8px;
  --transition: 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: var(--black);
  color: var(--white);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
}

/* ===== Typography ===== */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.4rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.15rem; }

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

.text-center { text-align: center; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2.5rem; }
.mb-5 { margin-bottom: 4rem; }

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

.section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 16px;
}

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

.section-desc {
  text-align: center;
  color: var(--gray);
  max-width: 640px;
  margin: 0 auto 48px;
  font-size: 1.05rem;
}

/* ===== Header / Nav ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  color: var(--gold);
}

.logo-mark {
  width: 36px;
  height: 36px;
  background: linear-gradient(145deg, #e0c35c, #a68520);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(201, 162, 39, 0.3);
}

.logo-mark span {
  font-size: 1.15rem;
  font-weight: 900;
  color: #0a0a0a;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1;
}

.logo-main {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #f5f5f5;
  font-family: 'Noto Sans KR', sans-serif;
  line-height: 1;
}

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

.nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--gray);
  position: relative;
  padding: 4px 0;
}

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

.nav a.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gold);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--black);
}

.btn-gold:hover {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201, 162, 39, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 1.5px solid var(--gold);
}

.btn-outline:hover {
  background: var(--gold);
  color: var(--black);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.6rem;
  cursor: pointer;
}

/* ===== Hero ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 72px;
  background-color: var(--black);
  overflow: hidden;
}

.hero-content {
  max-width: 440px;
  width: 100%;
  background: rgba(10, 10, 10, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 26px 28px;
  border-radius: 14px;
  border: 1px solid rgba(201, 162, 39, 0.2);
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(201, 162, 39, 0.12);
  border: 1px solid rgba(201, 162, 39, 0.3);
  border-radius: 50px;
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
  letter-spacing: 0.03em;
}

.hero h1 {
  margin-bottom: 14px;
  color: #fff;
  font-size: clamp(1.55rem, 3.2vw, 2.25rem); /* ~25–36px, PC 약 34–36px */
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.hero p {
  color: #d0d0d0;
  font-size: 0.95rem;
  margin-bottom: 20px;
  line-height: 1.65;
}

.hero-btns {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-btns .btn {
  padding: 10px 18px;
  font-size: 0.9rem;
}

/* ===== Cards ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.card {
  background: var(--black-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px 28px;
  transition: all var(--transition);
}

.card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.card-icon {
  width: 52px;
  height: 52px;
  background: rgba(201, 162, 39, 0.12);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: var(--gold);
}

.card h3 {
  margin-bottom: 12px;
  color: var(--white);
}

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

/* ===== About Page ===== */
.page-hero {
  padding: 140px 0 80px;
  text-align: center;
  background: 
    radial-gradient(ellipse at 50% 0%, rgba(201, 162, 39, 0.1) 0%, transparent 60%),
    var(--black);
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  margin-bottom: 16px;
}

.page-hero p {
  color: var(--gray);
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 auto;
}

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

.about-text h2 {
  margin-bottom: 20px;
}

.about-text p {
  color: var(--gray);
  margin-bottom: 16px;
}

.feature-list {
  margin-top: 28px;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  color: var(--white);
}

.feature-list li::before {
  content: '✓';
  color: var(--gold);
  font-weight: 700;
  flex-shrink: 0;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.stat-item {
  text-align: center;
  padding: 24px;
  background: var(--black-card);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.stat-item .num {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--gold);
  margin-bottom: 4px;
}

.stat-item .label {
  color: var(--gray);
  font-size: 0.9rem;
}

/* ===== Services Page ===== */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 80px;
}

.service-detail:nth-child(even) {
  direction: rtl;
}

.service-detail:nth-child(even) > * {
  direction: ltr;
}

.service-detail-content h3 {
  color: var(--gold);
  margin-bottom: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.service-detail-content h2 {
  margin-bottom: 16px;
}

.service-detail-content p {
  color: var(--gray);
  margin-bottom: 20px;
}

.service-detail-image {
  background: var(--black-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  height: 340px;
  overflow: hidden;
  position: relative;
}

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

.service-detail-image:hover img {
  transform: scale(1.04);
}

.service-detail-image .placeholder {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--gray-dark);
  text-align: center;
  padding: 20px;
}

/* About image */
.about-image {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  height: 420px;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Hero background image support */
.hero-with-bg {
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-color: #0a0a0a;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(10, 10, 10, 0.55) 0%,
    rgba(10, 10, 10, 0.25) 40%,
    rgba(10, 10, 10, 0.15) 100%
  );
  z-index: 0;
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
}

/* ===== Contact Page ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: start;
}

.info-item {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
}

.info-item .icon {
  width: 44px;
  height: 44px;
  background: rgba(201, 162, 39, 0.12);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.info-item .text h4 {
  margin-bottom: 6px;
  font-size: 1rem;
  color: var(--white);
  font-weight: 600;
}

.info-item .text p,
.info-item .text a {
  color: #c8c8c8;
  font-size: 0.95rem;
  line-height: 1.6;
}

.info-item .text a {
  color: #d4d4d4;
}

.info-item .text a:hover {
  color: var(--gold);
}

.contact-info h3 {
  margin-bottom: 28px;
  color: var(--white);
  font-size: 1.35rem;
}

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 32px;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: var(--black-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all var(--transition);
}

.social-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.social-btn.kakao:hover {
  border-color: #fee500;
  color: #fee500;
}

.social-btn.instagram:hover {
  border-color: #e1306c;
  color: #e1306c;
}

/* Contact Form */
.contact-form {
  background: var(--black-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 36px;
}

.contact-form h3 {
  margin-bottom: 24px;
}

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

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--black-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--white);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color var(--transition);
}

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

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

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23c9a227' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

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

/* Map */
.map-section {
  margin-top: 60px;
}

.map-wrapper {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  height: 420px;
  min-height: 320px;
  background: var(--black-card);
  position: relative;
}

.map-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.map-placeholder {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--gray);
  gap: 12px;
}

/* ===== Footer ===== */
.footer {
  background: var(--black-soft);
  border-top: 1px solid var(--border);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand .logo {
  margin-bottom: 16px;
}

.footer-brand .logo-mark {
  width: 32px;
  height: 32px;
}

.footer-brand .logo-mark span {
  font-size: 1rem;
}

.footer-brand .logo-main {
  font-size: 1.25rem;
}

.footer-brand p {
  color: var(--gray);
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 280px;
}

.footer h4 {
  color: var(--gold);
  margin-bottom: 18px;
  font-size: 0.95rem;
}

.footer-links a {
  display: block;
  color: var(--gray);
  font-size: 0.9rem;
  margin-bottom: 10px;
}

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

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--gray-dark);
  font-size: 0.85rem;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .nav {
    display: none;
  }

  .mobile-toggle {
    display: block;
  }

  .nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 58px;
    left: 0;
    right: 0;
    background: var(--black-soft);
    padding: 16px 20px 20px;
    border-bottom: 1px solid var(--border);
    gap: 14px;
  }

  .about-grid,
  .service-detail,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .service-detail:nth-child(even) {
    direction: ltr;
  }

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

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

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

/* 600px rules moved to final mobile block */


@media (max-width: 768px) {
  html, body {
    overflow-x: hidden;
  }
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }
  .section {
    padding: 44px 0;
  }
  .section-title {
    font-size: 1.4rem;
    margin-bottom: 10px;
    line-height: 1.35;
  }
  .section-desc {
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 22px;
  }
  .page-hero {
    padding: 96px 0 36px;
  }
  .page-hero h1 {
    font-size: 1.45rem;
    margin-bottom: 8px;
  }
  .page-hero p {
    font-size: 0.9rem;
    line-height: 1.65;
  }

  /* 히어로: 사진이 보이게 + 문구는 아래 작게 */
  .hero {
    min-height: 72vh;
    padding-top: 72px;
    padding-bottom: 24px;
    align-items: flex-end;
  }
  .hero-with-bg {
    background-position: 70% center;
    background-size: cover;
  }
  .hero-overlay {
    background: linear-gradient(
      180deg,
      rgba(10, 10, 10, 0.25) 0%,
      rgba(10, 10, 10, 0.15) 45%,
      rgba(10, 10, 10, 0.75) 100%
    );
  }
  .hero-content {
    max-width: 100%;
    width: 100%;
    padding: 14px 14px 16px;
    border-radius: 12px;
    background: rgba(10, 10, 10, 0.55);
    border: 1px solid rgba(201, 162, 39, 0.18);
  }
  .hero-badge {
    font-size: 0.72rem;
    padding: 4px 10px;
    margin-bottom: 10px;
  }
  .hero h1 {
    font-size: 1.25rem;
    line-height: 1.4;
    margin-bottom: 8px;
  }
  .hero p {
    font-size: 0.8rem;
    line-height: 1.6;
    margin-bottom: 12px;
  }
  .hero-btns {
    gap: 8px;
    flex-direction: column;
  }
  .hero-btns .btn {
    width: 100%;
    padding: 11px 14px;
    font-size: 0.88rem;
    text-align: center;
  }

  /* 카드 한 열, 높이 과다 방지 */
  .card-grid,
  .preview-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .card {
    height: auto;
    min-height: 0;
    padding: 22px 18px;
  }
  .preview-info {
    padding: 12px 14px 16px;
  }
  .preview-info h3 {
    font-size: 0.95rem;
  }

  /* 헤더 */
  .header-inner {
    padding: 12px 0;
  }
  .logo-img {
    height: 28px;
  }
}

/* ===== Portfolio Preview (Home) ===== */
.preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.preview-card {
  display: block;
  background: var(--black-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.25s, transform 0.25s;
}
.preview-card:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
}
.preview-img {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #111;
}
.preview-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.preview-card:hover .preview-img img {
  transform: scale(1.04);
}
.preview-info {
  padding: 14px 16px 18px;
}
.preview-info h3 {
  font-size: 1rem;
  margin-bottom: 4px;
  color: var(--white);
}
.preview-info span {
  font-size: 0.8rem;
  color: var(--gold);
}


/* Logo image */
.logo {
  display: flex;
  align-items: center;
  gap: 0;
}
.logo-img {
  height: 36px;
  width: auto;
  display: block;
}
@media (max-width: 600px) {
  .logo-img { height: 30px; }
}

/* ===== Mobile layout (final — overrides earlier rules) ===== */
@media (max-width: 768px) {
  html, body {
    overflow-x: hidden;
  }

  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  /* 1. Header 56~60px */
  .header-inner {
    height: 58px;
    padding: 0;
  }
  .logo-img {
    height: 28px;
    width: auto;
  }
  .mobile-toggle {
    font-size: 1.35rem;
    line-height: 1;
    padding: 6px 4px;
  }
  .nav.open {
    top: 58px;
    padding: 14px 16px 18px;
    gap: 12px;
  }
  .nav.open a {
    font-size: 0.95rem;
    padding: 8px 0;
  }
  .nav.open .btn {
    width: 100%;
    margin-top: 4px;
  }

  /* 2. Hero ~50~55vh, title ~20px */
  .hero {
    min-height: 52vh;
    max-height: 58vh;
    padding-top: 58px;
    padding-bottom: 16px;
    align-items: flex-end;
  }
  .hero-with-bg {
    background-position: 65% center;
    background-size: cover;
  }
  .hero-overlay {
    background: linear-gradient(
      180deg,
      rgba(10, 10, 10, 0.2) 0%,
      rgba(10, 10, 10, 0.12) 40%,
      rgba(10, 10, 10, 0.72) 100%
    );
  }
  .hero-content {
    max-width: 100%;
    width: 100%;
    padding: 12px 14px 14px;
    border-radius: 12px;
    background: rgba(10, 10, 10, 0.52);
  }
  .hero h1 {
    font-size: 20px;
    line-height: 1.35;
    margin-bottom: 8px;
  }
  .hero p {
    font-size: 0.82rem;
    line-height: 1.55;
    margin-bottom: 12px;
  }

  /* 3. Hero buttons side by side */
  .hero-btns {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 8px;
  }
  .hero-btns .btn {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    padding: 10px 8px;
    font-size: 0.8rem;
    white-space: nowrap;
    text-align: center;
  }

  /* Global btn width reset on mobile (avoid full-width except nav/hero handled above) */
  .section .btn {
    width: auto;
  }

  /* 4. Portfolio 2-col — home + portfolio page */
  .preview-grid,
  .portfolio-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }
  .preview-card,
  .portfolio-card {
    min-width: 0;
  }
  .preview-img,
  .portfolio-img {
    aspect-ratio: 4 / 3;
  }
  .preview-info,
  .portfolio-info {
    padding: 8px 10px 10px;
  }
  .preview-info h3,
  .portfolio-info h3 {
    font-size: 13px;
    line-height: 1.35;
    margin-bottom: 3px;
    word-break: keep-all;
    overflow-wrap: break-word;
  }
  .preview-info span,
  .portfolio-tag {
    font-size: 0.72rem;
  }

  /* Filter bar on portfolio */
  .filter-bar {
    gap: 8px;
    margin-bottom: 20px;
  }
  .filter-btn {
    padding: 8px 12px;
    font-size: 0.8rem;
  }

  /* 5. Services as compact rows (icon left) */
  .section:not(.portfolio-preview) > .container > .card-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .section:not(.portfolio-preview) > .container > .card-grid > .card {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
    height: auto;
    min-height: 0;
    padding: 14px 14px;
  }
  .section:not(.portfolio-preview) > .container > .card-grid > .card .card-icon {
    margin: 0;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .section:not(.portfolio-preview) > .container > .card-grid > .card h3 {
    font-size: 0.92rem;
    margin: 0 0 4px;
    line-height: 1.3;
  }
  .section:not(.portfolio-preview) > .container > .card-grid > .card p {
    font-size: 0.8rem;
    line-height: 1.5;
    margin: 0;
  }

  .section {
    padding: 40px 0;
  }
  .section-title {
    font-size: 1.35rem;
    margin-bottom: 8px;
  }
  .section-desc {
    font-size: 0.9rem;
    margin-bottom: 20px;
    line-height: 1.65;
  }

  /* 6. Footer compact */
  .footer {
    padding: 36px 0 20px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 20px;
  }
  /* Hide repeating menu/service columns; keep brand + contact */
  .footer-grid > .footer-links:nth-child(2),
  .footer-grid > .footer-links:nth-child(3) {
    display: none;
  }
  .footer-brand p {
    font-size: 0.85rem;
    max-width: none;
  }
  .footer-links h4 {
    margin-bottom: 10px;
  }
  .footer-links a {
    margin-bottom: 6px;
    font-size: 0.88rem;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 6px;
    text-align: left;
    padding-top: 16px;
    font-size: 0.78rem;
    line-height: 1.55;
  }
}

@media (max-width: 430px) {
  .hero {
    min-height: 50vh;
  }
  .hero h1 {
    font-size: 20px;
  }
  .hero-btns .btn {
    font-size: 0.75rem;
    padding: 10px 6px;
  }
  .preview-info h3,
  .portfolio-info h3 {
    font-size: 13px;
  }
}


/* portfolio no-crop — 차량·간판 전체 보이게 */
.portfolio-img img,
.preview-img img {
  object-fit: contain !important;
  background: #111;
}
.gallery-grid img {
  object-fit: contain !important;
  background: #111;
}
