/*
Theme Name: 北部興産
Theme URI: https://hokubukousan.co.jp
Author: 北部興産
Version: 1.0.0
License: Private
Text Domain: hokubukousan
*/

/* ===== Variables ===== */
:root {
  --primary-500: #e07b39;
  --primary-600: #c96a28;
  --primary-50:  #fdf3ec;
  --primary-200: #f5c9a0;
  --stone-800:   #292524;
  --stone-700:   #44403c;
  --stone-400:   #a8a29e;
  --stone-100:   #f5f5f4;
  --stone-50:    #fafaf9;
  --bg-100:      #f5f5f4;
  --bg-200:      #e7e5e4;
  --fg-950:      #0c0a09;
  --fg-700:      #44403c;
  --fg-600:      #57534e;
  --fg-500:      #78716c;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans JP', 'Hiragino Sans', 'Yu Gothic', sans-serif;
  color: #374151;
  line-height: 1.6;
  font-size: 16px;
  background: #fff;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
address { font-style: normal; }
button { font-family: inherit; }

/* ===== Containers ===== */
.container    { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; width: 100%; }
.container-sm { max-width: 896px;  margin: 0 auto; padding: 0 1.5rem; width: 100%; }

/* ===== Buttons ===== */
.btn-primary {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .75rem 1.5rem;
  background: var(--primary-500); color: #fff;
  font-size: 1rem; font-weight: 500; border-radius: 6px;
  transition: background .2s; white-space: nowrap; cursor: pointer; border: none;
}
.btn-primary:hover { background: var(--primary-600); color: #fff; }

.btn-outline {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .75rem 1.5rem;
  border: 1px solid var(--primary-500); color: var(--primary-500);
  font-size: 1rem; font-weight: 500; border-radius: 6px;
  transition: all .2s; white-space: nowrap; cursor: pointer; background: transparent;
}
.btn-outline:hover { background: var(--primary-500); color: #fff; }

.btn-ghost-dark {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .75rem 1.5rem;
  border: 1px solid #d1d5db; color: #374151;
  font-size: 1rem; font-weight: 500; border-radius: 6px;
  transition: all .2s; white-space: nowrap; cursor: pointer; background: #fff;
}
.btn-ghost-dark:hover { border-color: var(--primary-500); color: var(--primary-500); }

/* ===== Header ===== */
#site-header {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 100;
  transition: background .3s, box-shadow .3s;
  background: linear-gradient(to bottom, rgba(0,0,0,.4), transparent);
}
#site-header.scrolled { background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.08); }

.header-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 1.5rem;
  display: flex; align-items: center; justify-content: space-between; height: 5rem;
}
.site-logo img { height: 2.75rem; width: auto; object-fit: contain; }
.site-logo .logo-color { display: none; }
#site-header.scrolled .logo-white { display: none; }
#site-header.scrolled .logo-color { display: block; }

.header-nav { display: none; align-items: center; gap: 2rem; }
@media (min-width: 768px) { .header-nav { display: flex; } }

.header-nav a {
  font-size: 1rem; font-weight: 500; letter-spacing: .1em;
  color: rgba(255,255,255,.9); position: relative; transition: color .2s; white-space: nowrap;
}
.header-nav a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 2px; background: var(--primary-500); transition: width .3s;
}
.header-nav a:hover::after, .header-nav a.current::after { width: 100%; }
#site-header.scrolled .header-nav a { color: #374151; }
#site-header.scrolled .header-nav a:hover { color: var(--primary-500); }
.header-nav .tel-btn {
  margin-left: 1rem;
  padding: .5rem 1rem;
  background: var(--primary-500); color: #fff !important;
  border-radius: 6px; transition: background .2s;
}
.header-nav .tel-btn:hover { background: var(--primary-600); }
.header-nav .tel-btn::after { display: none; }

.menu-toggle {
  display: flex; width: 2rem; height: 2rem;
  align-items: center; justify-content: center;
  background: none; border: none; cursor: pointer; color: #fff; font-size: 1.5rem;
}
#site-header.scrolled .menu-toggle { color: #1f2937; }
@media (min-width: 768px) { .menu-toggle { display: none; } }

.mobile-menu {
  display: none; background: #fff; box-shadow: 0 4px 12px rgba(0,0,0,.1);
  padding: 1rem 1.5rem 1.5rem; flex-direction: column; gap: 1rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { font-size: 1rem; font-weight: 500; color: #374151; }
.mobile-menu a:hover { color: var(--primary-500); }
.mobile-menu .tel-btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .5rem 1rem; background: var(--primary-500); color: #fff; border-radius: 6px; width: fit-content;
}

/* ===== Hero ===== */
.hero-section { position: relative; width: 100%; height: 520px; overflow: hidden; }
@media (min-width: 768px) { .hero-section { height: 680px; } }

.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .7s; }
.hero-slide.active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom right, rgba(0,0,0,.5), rgba(0,0,0,.3), transparent); }

.hero-content {
  position: relative; z-index: 10; height: 100%;
  display: flex; align-items: center; padding-top: 5rem;
}
.hero-text-box { max-width: 36rem; }

.hero-badge {
  display: inline-block; padding: .25rem .75rem;
  background: var(--primary-500); color: #fff;
  font-size: .875rem; font-weight: 500; letter-spacing: .15em;
  border-radius: 9999px; margin-bottom: 1rem;
}
.hero-title {
  font-size: clamp(2rem, 5vw, 3rem); font-weight: 700;
  color: #fff; line-height: 1.3; margin-bottom: 1rem;
}
.hero-desc {
  color: rgba(255,255,255,.8); font-size: clamp(.9rem, 2vw, 1.125rem);
  line-height: 1.8; margin-bottom: 2rem;
}
.hero-buttons { display: flex; flex-direction: column; gap: .75rem; }
@media (min-width: 480px) { .hero-buttons { flex-direction: row; } }

.btn-hero-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .75rem 1.5rem; background: var(--primary-500); color: #fff;
  font-size: 1rem; font-weight: 500; border-radius: 6px; transition: background .2s; white-space: nowrap;
}
.btn-hero-primary:hover { background: var(--primary-600); color: #fff; }

.btn-hero-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .75rem 1.5rem;
  background: rgba(255,255,255,.2); backdrop-filter: blur(4px);
  color: #fff; font-size: 1rem; font-weight: 500; border-radius: 6px;
  border: 1px solid rgba(255,255,255,.4); transition: background .2s; white-space: nowrap;
}
.btn-hero-ghost:hover { background: rgba(255,255,255,.3); color: #fff; }

.hero-dots { position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%); display: flex; gap: .5rem; z-index: 10; }
.hero-dot { height: 6px; border-radius: 9999px; background: rgba(255,255,255,.5); width: 12px; border: none; cursor: pointer; transition: all .3s; }
.hero-dot.active { width: 2rem; background: #fff; }

/* ===== About Section (Home) ===== */
.about-home { padding: 4rem 0 5rem; background: #fff; }
.about-home-header { text-align: center; margin-bottom: 3rem; }
.section-label {
  display: block; font-size: .875rem; font-weight: 700;
  letter-spacing: .2em; color: var(--primary-500); text-transform: uppercase; margin-bottom: .5rem;
}
.section-title { font-size: clamp(1.375rem, 3vw, 1.875rem); font-weight: 700; color: #111827; line-height: 1.3; }
.divider-line { width: 3rem; height: 2px; background: var(--primary-500); margin: 1rem auto; }

.about-home-desc {
  color: #4b5563; font-size: 1rem; line-height: 1.9;
  max-width: 42rem; margin: 0 auto 1.5rem;
}
@media (min-width: 768px) { .about-home-desc { font-size: 1.125rem; } }

.feature-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; margin-bottom: 2.5rem; }
@media (min-width: 640px)  { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .feature-grid { grid-template-columns: repeat(4, 1fr); } }

.feature-card {
  border-radius: 8px; padding: 1.5rem;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  transition: transform .2s; cursor: pointer;
}
.feature-card:hover { transform: translateY(-4px); }

.feature-card-reform  { background: var(--primary-50);  border: 1px solid var(--primary-200); }
.feature-card-roof    { background: #fffbeb;             border: 1px solid #fde68a; }
.feature-card-steel   { background: #f8fafc;             border: 1px solid #cbd5e1; }
.feature-card-metal   { background: #fff7ed;             border: 1px solid #fed7aa; }

.feature-icon {
  width: 3.5rem; height: 3.5rem; border-radius: 50%; background: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 1rem;
}
.feature-icon-reform { color: var(--primary-500); }
.feature-icon-roof   { color: #d97706; }
.feature-icon-steel  { color: #475569; }
.feature-icon-metal  { color: #ea580c; }

.feature-card h3 { font-size: 1rem; font-weight: 700; color: #111827; margin-bottom: .5rem; }
.feature-card p  { color: #6b7280; font-size: .875rem; line-height: 1.6; }

.about-home-btns { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; }
@media (min-width: 640px) { .about-home-btns { flex-direction: row; } }

/* ===== Services Section (Home) ===== */
.services-home { padding: 5rem 0; background: var(--stone-50); }
.services-home-header { text-align: center; margin-bottom: 3.5rem; }
.services-home-header .section-title { margin-bottom: 0; }
.services-home-header p { color: #6b7280; margin-top: 1rem; max-width: 36rem; margin-left: auto; margin-right: auto; line-height: 1.8; }

.services-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 640px)  { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }

.service-card { background: #fff; border-radius: 8px; overflow: hidden; transition: transform .3s; display: block; }
.service-card:hover { transform: translateY(-4px); }
.service-card-img { width: 100%; height: 11rem; overflow: hidden; }
.service-card-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .5s; }
.service-card:hover .service-card-img img { transform: scale(1.05); }
.service-card-body { padding: 1.25rem; }
.service-card-title { display: flex; align-items: center; gap: .5rem; margin-bottom: .5rem; }
.service-card-title i { color: var(--primary-500); font-size: 1.125rem; width: 1.75rem; height: 1.75rem; display: flex; align-items: center; justify-content: center; }
.service-card-title span { font-size: 1rem; font-weight: 700; color: #111827; }
.service-card-body p { color: #6b7280; font-size: .9375rem; line-height: 1.7; }

/* ===== Works Section (Home) ===== */
.works-home { padding: 5rem 0; background: #fff; }
.works-home-header { text-align: center; margin-bottom: 3.5rem; }
.works-home-header .section-title { margin-top: .5rem; font-size: clamp(1.75rem, 3.5vw, 2.25rem); margin-bottom: 0; }

.works-grid-home { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }

.work-card-home {
  position: relative; border-radius: 8px; overflow: hidden; cursor: pointer; display: block;
}
.work-card-home .work-img { width: 100%; height: 14rem; overflow: hidden; }
.work-card-home .work-img img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%;
  transition: transform .5s;
}
.work-card-home:hover .work-img img { transform: scale(1.05); }
.work-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.7), rgba(0,0,0,.2), transparent);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 1.25rem;
}
.work-tag {
  display: inline-block; padding: .125rem .5rem;
  background: var(--primary-500); color: #fff;
  font-size: .875rem; border-radius: 9999px; margin-bottom: .5rem; width: fit-content;
}
.work-card-overlay h3 { color: #fff; font-size: 1rem; font-weight: 500; line-height: 1.4; }

.works-home-more { text-align: center; margin-top: 2.5rem; }

/* ===== Contact Section (Home) ===== */
.contact-home { padding: 5rem 0; background: var(--stone-100); }
.contact-home-inner { text-align: center; }
.contact-home .section-label { color: var(--primary-500); }
.contact-home-title { font-size: clamp(1.75rem, 3.5vw, 2.25rem); font-weight: 700; color: #111827; margin-top: .5rem; margin-bottom: 1rem; }
.contact-home-desc { color: #6b7280; font-size: 1rem; line-height: 1.8; max-width: 32rem; margin: 0 auto 2rem; }
.contact-home-btns { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; margin-bottom: 2rem; }
@media (min-width: 640px) { .contact-home-btns { flex-direction: row; } }

.btn-contact-tel {
  display: flex; align-items: center; gap: .75rem;
  padding: 1rem 2rem;
  background: var(--primary-500); color: #fff;
  border-radius: 6px; transition: background .2s; white-space: nowrap;
}
.btn-contact-tel:hover { background: var(--primary-600); color: #fff; }
.btn-contact-tel .tel-label { font-size: .875rem; opacity: .8; display: block; }
.btn-contact-tel .tel-num   { font-size: 1.125rem; font-weight: 700; letter-spacing: .05em; display: block; }

.btn-contact-form {
  display: flex; align-items: center; gap: .75rem;
  padding: 1rem 2rem;
  background: #fff; border: 1px solid #d1d5db; color: #374151;
  border-radius: 6px; transition: all .2s; white-space: nowrap;
}
.btn-contact-form:hover { border-color: var(--primary-500); color: var(--primary-500); }
.btn-contact-form .form-label { font-size: .875rem; opacity: .8; display: block; }
.btn-contact-form .form-text  { font-size: 1.125rem; font-weight: 700; display: block; }

.contact-home-hours { color: #9ca3af; font-size: .875rem; }

/* ===== Footer ===== */
#site-footer { background: var(--stone-800); color: #fff; }
.footer-body { padding: 4rem 0; }
.footer-grid { display: grid; gap: 3rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 4fr 3fr 5fr; } }

.footer-col1 { display: flex; flex-direction: column; }
.footer-logo { height: 2.5rem; width: auto; margin-bottom: 1rem; }
.footer-desc { color: var(--stone-400); font-size: .9375rem; line-height: 1.8; margin-bottom: 1rem; }
.footer-office { width: 100%; height: 14rem; border-radius: 8px; object-fit: cover; margin-top: auto; }

.footer-col2 { padding-top: .75rem; }
.footer-h { font-size: .875rem; font-weight: 600; letter-spacing: .15em; color: #d6d3d1; margin-bottom: 1rem; }
.footer-address { color: var(--stone-400); font-size: .9375rem; line-height: 1.9; }
.footer-address p { margin-bottom: 0; }
.footer-address a { color: var(--stone-400); transition: color .2s; white-space: nowrap; }
.footer-address a:hover { color: #fff; }
.footer-hr { border: none; border-top: 1px solid var(--stone-700); margin: 1rem 0; }
.footer-nav { list-style: none; padding: 0; }
.footer-nav li { margin-bottom: .5rem; }
.footer-nav a { color: var(--stone-400); font-size: .9375rem; transition: color .2s; }
.footer-nav a:hover { color: #fff; }

.footer-col3 { display: flex; flex-direction: column; }
.footer-map { border-radius: 8px; overflow: hidden; margin-top: auto; }
.footer-map iframe { width: 100%; height: 18rem; border: 0; display: block; }

.footer-copy {
  border-top: 1px solid var(--stone-700);
  padding: 1rem 0; text-align: center; color: #78716c; font-size: .875rem;
}

/* ===== Scroll to Top ===== */
.scroll-top {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 50;
  width: 3rem; height: 3rem;
  background: var(--primary-500); color: #fff; border: none; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,.2); transition: background .2s, opacity .3s;
  opacity: 0; pointer-events: none; font-size: 1.25rem;
}
.scroll-top.visible { opacity: 1; pointer-events: auto; }
.scroll-top:hover { background: var(--primary-600); }
@media (min-width: 768px) { .scroll-top { display: none; } }

/* ===== Page Hero ===== */
.page-hero { position: relative; overflow: hidden; display: flex; align-items: flex-end; padding-top: 5rem; }
.page-hero-sm { height: 360px; }
.page-hero-md { height: 400px; }
@media (min-width: 768px) { .page-hero-sm { height: 400px; } .page-hero-md { height: 400px; } }
.page-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.page-hero-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom right, rgba(0,0,0,.5), rgba(0,0,0,.3), transparent); }
.page-hero-content { position: relative; z-index: 10; padding: 2rem 1.5rem; max-width: 1280px; margin: 0 auto; width: 100%; }
.page-hero h1 { font-size: clamp(1.875rem, 4vw, 2.5rem); font-weight: 700; color: #fff; }
.page-hero-cats { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; }
.page-hero-cat {
  display: inline-flex; align-items: center; justify-content: center; gap: .375rem;
  padding: .5rem 1rem;
  background: rgba(255,255,255,.2); backdrop-filter: blur(4px);
  color: #fff; font-size: 1rem; font-weight: 500; border-radius: 6px;
  border: 1px solid rgba(255,255,255,.4); cursor: pointer; transition: background .2s; white-space: nowrap;
}
.page-hero-cat:hover { background: rgba(255,255,255,.3); }
.page-hero-hero-label { display: block; font-size: .875rem; font-weight: 600; letter-spacing: .2em; color: rgba(255,255,255,.8); text-transform: uppercase; margin-bottom: .5rem; }

/* ===== Services Page ===== */
.services-section { padding: 4rem 0 5rem; scroll-margin-top: 5rem; }
.services-section:nth-child(odd)  { background: var(--stone-50); }
.services-section:nth-child(even) { background: var(--bg-100); }

.service-sec-header { display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem; }
.service-sec-icon {
  width: 2.5rem; height: 2.5rem; border-radius: 50%;
  background: var(--primary-500); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 1.125rem; flex-shrink: 0;
}
.service-sec-header h2 { font-size: clamp(1.375rem, 2.5vw, 1.875rem); font-weight: 700; color: var(--fg-950); }
.service-divider { width: 100%; height: 1px; background: rgba(224,123,57,.3); margin-bottom: 1.5rem; }

.service-desc-row { display: flex; flex-direction: column; gap: 1.5rem; margin-bottom: 1.5rem; }
@media (min-width: 768px) { .service-desc-row { flex-direction: row; align-items: flex-start; justify-content: space-between; } }
.service-desc { color: var(--fg-700); font-size: 1rem; line-height: 1.8; }
@media (min-width: 768px) { .service-desc { font-size: 1.125rem; } }

.works-box { background: var(--bg-100); border: 1px solid rgba(231,229,228,.7); border-radius: 8px; padding: 1.25rem; margin-bottom: 1.5rem; }
.works-box h3 { font-size: 1rem; font-weight: 700; color: var(--fg-950); margin-bottom: .75rem; }
.works-box ul { list-style: none; padding: 0; }
.works-box li { display: flex; align-items: flex-start; gap: .5rem; font-size: 1rem; color: var(--fg-700); margin-bottom: .5rem; }
.works-box li i { color: var(--primary-500); font-size: .375rem; margin-top: .5rem; flex-shrink: 0; }
.works-box-grid { display: grid; gap: 1rem; margin-bottom: 1.5rem; }
@media (min-width: 640px) { .works-box-grid { grid-template-columns: 1fr 1fr; } }

.example-subtitle { display: flex; align-items: center; gap: .75rem; margin-bottom: 1.5rem; }
.example-subtitle-bar { width: 4px; height: 1.25rem; background: var(--primary-500); border-radius: 9999px; flex-shrink: 0; }
.example-subtitle h3 { font-size: 1rem; font-weight: 700; color: var(--fg-950); }

.example-intro { color: var(--fg-700); font-size: 1rem; line-height: 1.8; margin-bottom: 1.5rem; }

/* Before/After */
.ba-card { background: #fff; border: 1px solid rgba(231,229,228,.7); border-radius: 8px; overflow: hidden; margin-bottom: 3rem; }
.ba-card-header { padding: 1.25rem 1.25rem .75rem; }
.ba-card-header h4 { font-size: 1.125rem; font-weight: 700; color: var(--fg-950); }
.ba-card-header p { font-size: 1rem; color: var(--fg-600); margin-top: .25rem; }
.ba-compare { display: flex; flex-direction: column; }
@media (min-width: 768px) { .ba-compare { flex-direction: row; } }
.ba-img-wrap { flex: 1; position: relative; border: 2px solid rgba(156,163,175,.4); }
.ba-img-wrap.after { border-color: rgba(224,123,57,.5); }
.ba-img-aspect-wide { aspect-ratio: 16/9; width: 100%; overflow: hidden; }
.ba-img-aspect-default { aspect-ratio: 4/3; width: 100%; overflow: hidden; }
.ba-img-wrap img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.ba-badge {
  position: absolute; top: 0; left: 0;
  padding: .375rem 1rem; color: #fff; font-size: 1rem; font-weight: 700; letter-spacing: .1em; border-radius: 0 0 8px 0;
}
.ba-badge-before { background: rgba(12,10,9,.85); }
.ba-badge-after  { background: var(--primary-500); }
.ba-arrow {
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-100); padding: .75rem 0;
}
@media (min-width: 768px) { .ba-arrow { padding: 0; width: 4rem; flex-shrink: 0; } }
.ba-arrow-inner { display: flex; align-items: center; gap: .5rem; }
@media (min-width: 768px) { .ba-arrow-inner { flex-direction: column; } }
.ba-arrow-line-h { height: 2px; width: 1.5rem; background: rgba(224,123,57,.5); }
.ba-arrow-line-v { width: 2px; height: 2rem; background: rgba(224,123,57,.5); }
.ba-arrow-icon {
  width: 2.25rem; height: 2.25rem; border-radius: 50%;
  background: var(--primary-500); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: .875rem;
  box-shadow: 0 2px 4px rgba(0,0,0,.1);
}
.ba-labels { display: flex; margin-top: .75rem; padding: 0 1.25rem 1rem; }
.ba-label { flex: 1; display: flex; align-items: center; gap: .375rem; }
.ba-label-dot { width: .5rem; height: .5rem; border-radius: 50%; flex-shrink: 0; }
.ba-label-dot-before { background: var(--fg-500); }
.ba-label-dot-after  { background: var(--primary-500); }
.ba-label-text-before { font-size: 1rem; color: var(--fg-500); }
.ba-label-text-after  { font-size: 1rem; color: var(--primary-500); font-weight: 500; }
.ba-spacer-md { display: none; }
@media (min-width: 768px) { .ba-spacer-md { display: block; width: 4rem; flex-shrink: 0; } }

/* Image Grid */
.img-grid-2 { display: grid; grid-template-columns: 1fr; gap: 1.25rem; margin-bottom: 1.5rem; }
@media (min-width: 640px) { .img-grid-2 { grid-template-columns: repeat(2, 1fr); } }
.img-grid-3 { display: grid; grid-template-columns: 1fr; gap: 1.25rem; margin-bottom: 1.5rem; }
@media (min-width: 640px) { .img-grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .img-grid-3 { grid-template-columns: repeat(3, 1fr); } }
.img-grid-4 { display: grid; grid-template-columns: 1fr; gap: 1.25rem; margin-bottom: 1.5rem; }
@media (min-width: 640px) { .img-grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .img-grid-4 { grid-template-columns: repeat(4, 1fr); } }

.img-card { border-radius: 8px; overflow: hidden; background: #fff; border: 1px solid rgba(231,229,228,.7); }
.img-card-img { width: 100%; overflow: hidden; background: var(--bg-100); }
.img-card-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .5s; }
.img-card:hover .img-card-img img { transform: scale(1.05); }
.img-card-cap { display: flex; align-items: center; gap: .5rem; padding: .75rem 1rem; }
.img-card-cap-dot { width: .5rem; height: .5rem; border-radius: 50%; background: var(--primary-500); flex-shrink: 0; }
.img-card-cap span { font-size: 1rem; font-weight: 500; color: var(--fg-700); line-height: 1.5; }

.aspect-4-3 { aspect-ratio: 4/3; }
.aspect-3-4 { aspect-ratio: 3/4; }
.aspect-16-9 { aspect-ratio: 16/9; }
.aspect-contain { height: 300px; }
.aspect-contain img { object-fit: contain !important; padding: .5rem; }

.subsec-label { display: flex; align-items: center; gap: .5rem; margin-bottom: 1rem; }
.subsec-dot { width: .5rem; height: .5rem; border-radius: 50%; background: var(--primary-500); flex-shrink: 0; }
.subsec-label h4 { font-size: 1rem; font-weight: 700; color: var(--fg-950); white-space: nowrap; }

.back-to-top { text-align: right; }
.back-to-top button {
  font-size: 1rem; color: var(--primary-500); background: none; border: none;
  cursor: pointer; transition: color .2s;
}
.back-to-top button:hover { color: var(--primary-600); }

/* Steel mixed layout */
.steel-mixed { display: flex; flex-direction: column; gap: .75rem; margin-bottom: .75rem; }
@media (min-width: 640px) { .steel-mixed { flex-direction: row; align-items: stretch; } }
.steel-mixed .portrait-wrap { flex-shrink: 0; }
@media (min-width: 640px) { .steel-mixed .portrait-wrap { width: 35%; } }
.steel-mixed .landscape-wrap { flex: 1; min-width: 0; }
.steel-mixed-img { width: 100%; height: 380px; overflow: hidden; background: var(--bg-100); }
@media (min-width: 640px) { .steel-mixed-img { height: 440px; } }

/* Metalwork layout */
.metalwork-top    { display: grid; gap: 1.25rem; margin-bottom: 1.25rem; }
.metalwork-bottom { display: grid; gap: 1.25rem; }
@media (min-width: 640px)  { .metalwork-top { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 640px)  { .metalwork-bottom { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .metalwork-bottom { grid-template-columns: repeat(3, 1fr); } }

/* ===== Works Archive (page-works) ===== */
.works-archive-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (min-width: 768px) { .works-archive-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }

.work-archive-card { border-radius: 8px; overflow: hidden; position: relative; cursor: pointer; display: block; }
.work-archive-card img { width: 100%; height: 12rem; object-fit: cover; object-position: 50% 25%; display: block; transition: transform .5s; }
.work-archive-card:hover img { transform: scale(1.05); }
.work-archive-cap {
  position: absolute; bottom: 0; left: 0; right: 0; padding: .75rem;
  background: linear-gradient(transparent, rgba(0,0,0,.6)); color: #fff; font-size: .875rem;
}

/* Lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.92); z-index: 200; display: none; align-items: center; justify-content: center; }
.lightbox.open { display: flex; }
.lightbox-img { max-width: 90vw; max-height: 85vh; border-radius: 8px; object-fit: contain; }
.lb-btn {
  position: absolute; background: rgba(0,0,0,.4); border: none;
  color: rgba(255,255,255,.85); border-radius: 50%;
  width: 2.5rem; height: 2.5rem; display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 1.25rem; transition: color .2s;
}
.lb-btn:hover { color: #fff; }
.lb-close { top: 1rem; right: 1rem; }
.lb-prev  { left: 1rem; top: 50%; transform: translateY(-50%); }
.lb-next  { right: 1rem; top: 50%; transform: translateY(-50%); }

/* ===== About / Contact pages ===== */
.profile-table { border: 1px solid #e5e7eb; border-radius: 8px; overflow: hidden; }
.profile-row { display: flex; flex-direction: column; border-bottom: 1px solid #f3f4f6; }
.profile-row:last-child { border-bottom: none; }
@media (min-width: 640px) { .profile-row { flex-direction: row; } }
.profile-label { width: 11rem; flex-shrink: 0; padding: 1rem 1.5rem; background: var(--stone-50); font-size: .9375rem; font-weight: 600; color: #374151; }
.profile-value { flex: 1; padding: 1rem 1.5rem; font-size: .9375rem; color: #4b5563; line-height: 1.7; }

.access-icon { width: 2rem; height: 2rem; background: var(--primary-50); color: var(--primary-500); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 1.125rem; }
.contact-form-wrap { background: #fff; border-radius: 12px; padding: 2rem; }
@media (min-width: 768px) { .contact-form-wrap { padding: 3rem; } }
.form-label { display: block; font-size: .9375rem; font-weight: 600; color: #374151; margin-bottom: .5rem; }
.form-req { display: inline-block; margin-left: .5rem; padding: 1px 6px; background: #ef4444; color: #fff; font-size: .75rem; border-radius: 4px; }
.form-input, .form-select, .form-textarea {
  width: 100%; padding: .75rem 1rem; border: 1px solid #d1d5db; border-radius: 6px;
  font-size: 1rem; color: #374151; background: #fff; transition: border-color .2s, box-shadow .2s; font-family: inherit;
}
.form-input:focus, .form-select:focus, .form-textarea:focus { outline: none; border-color: var(--primary-500); box-shadow: 0 0 0 3px rgba(224,123,57,.15); }
.form-textarea { resize: vertical; min-height: 8rem; }
.form-group { margin-bottom: 1.5rem; }
.form-row-2 { display: grid; gap: 1.5rem; }
@media (min-width: 768px) { .form-row-2 { grid-template-columns: 1fr 1fr; } }

/* ===== Page Hero (center-aligned, per-page variants) ===== */
.phero { position: relative; width: 100%; overflow: hidden; }
.phero img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.phero-inner { position: relative; z-index: 10; height: 100%; width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.phero-text { text-align: center; }
.phero-label { display: block; font-size: .875rem; font-weight: 600; letter-spacing: .2em; color: rgba(255,255,255,.8); text-transform: uppercase; margin-bottom: .5rem; }
.phero-label-base { font-size: 1rem; }
.phero h1 { font-weight: 700; color: #fff; }
.phero-divider { width: 3rem; height: 2px; background: var(--primary-500); margin: 0 auto; }

/* About hero */
.phero-about { height: 320px; }
@media (min-width: 768px) { .phero-about { height: 400px; } }
.phero-about .phero-overlay { position:absolute; inset:0; background:linear-gradient(to bottom right, rgba(0,0,0,.5), rgba(0,0,0,.3), transparent); }
.phero-about h1 { font-size: 1.875rem; margin-bottom: .5rem; }
@media (min-width: 768px) { .phero-about h1 { font-size: 2.25rem; } }

/* Services hero (already styled via page-hero classes; keep as-is) */

/* Works hero */
.phero-works { height: 320px; }
@media (min-width: 768px) { .phero-works { height: 420px; } }
.phero-works .phero-overlay { position:absolute; inset:0; background:linear-gradient(to bottom right, rgba(0,0,0,.6), rgba(0,0,0,.4), rgba(0,0,0,.6)); }
.phero-works .phero-inner { padding-top: 4rem; }
@media (min-width: 768px) { .phero-works .phero-inner { padding-top: 0; } }
.phero-works h1 { font-size: 1.875rem; margin-bottom: .75rem; }
@media (min-width: 768px) { .phero-works h1 { font-size: 3rem; } }
.phero-works .phero-divider { margin-bottom: 1rem; }

/* Contact hero */
.phero-contact { height: 200px; padding-top: 1.5rem; display:flex; align-items:center; justify-content:center; }
@media (min-width: 768px) { .phero-contact { height: 360px; padding-top: 0; } }
.phero-contact .phero-overlay { position:absolute; inset:0; background:linear-gradient(to bottom, rgba(0,0,0,.4), rgba(0,0,0,.3), rgba(0,0,0,.4)); }
.phero-contact .phero-inner-static { position:relative; z-index:10; text-align:center; padding:0 1.5rem; padding-top:.75rem; }
@media (min-width: 768px) { .phero-contact .phero-inner-static { padding-top:0; } }
.phero-contact h1 { font-size: 1.875rem; letter-spacing: .05em; }
@media (min-width: 768px) { .phero-contact h1 { font-size: 2.25rem; } }
.phero-contact .phero-divider { margin-top: 1rem; }

/* ===== Works gallery page (matches original lg:flex layout) ===== */
.works-gallery-wrap { display: flex; flex-direction: column; gap: 1.5rem; }
@media (min-width: 1024px) { .works-gallery-wrap { flex-direction: row; } }
.works-main { width: 100%; }
@media (min-width: 1024px) { .works-main { width: 66.6667%; } }
.works-main-inner { position: relative; overflow: hidden; border-radius: 8px; background: var(--bg-100); cursor: pointer; }
.works-main-aspect { aspect-ratio: 4/3; width: 100%; overflow: hidden; }
.works-main-aspect img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .5s; }
.works-main-inner:hover .works-main-aspect img { transform: scale(1.05); }
.works-main-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.6), transparent, transparent);
  opacity: 0; transition: opacity .3s;
  display: flex; flex-direction: column; justify-content: flex-end; padding: 1.5rem;
}
.works-main-inner:hover .works-main-overlay { opacity: 1; }
.works-main-overlay p.cap { color: #fff; font-weight: 500; font-size: 1rem; }
.works-main-overlay .meta { display: flex; align-items: center; gap: .5rem; margin-top: .5rem; color: rgba(255,255,255,.7); font-size: 1rem; }
.works-expand {
  position: absolute; top: 1rem; right: 1rem; width: 2.5rem; height: 2.5rem;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.2); backdrop-filter: blur(4px); border-radius: 50%;
  color: #fff; opacity: 0; transition: opacity .3s;
}
.works-main-inner:hover .works-expand { opacity: 1; }
.works-counter {
  position: absolute; top: 1rem; left: 1rem; padding: .375rem .75rem;
  background: rgba(0,0,0,.5); backdrop-filter: blur(4px); color: #fff;
  font-size: .875rem; font-weight: 500; border-radius: 6px;
}

.works-thumbs { width: 100%; }
@media (min-width: 1024px) { .works-thumbs { width: 33.3333%; } }
.works-thumb-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
@media (min-width: 1024px) { .works-thumb-grid { grid-template-columns: repeat(2, 1fr); } }
.works-thumb {
  position: relative; overflow: hidden; border-radius: 8px; cursor: pointer;
  border: none; padding: 0; background: none; transition: box-shadow .3s;
}
.works-thumb.active { box-shadow: 0 0 0 2px var(--primary-500), 0 0 0 4px #fff; }
.works-thumb-aspect { aspect-ratio: 4/3; width: 100%; overflow: hidden; }
.works-thumb-aspect img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .3s; }
.works-thumb:hover .works-thumb-aspect img { transform: scale(1.1); }
.works-thumb-active-overlay { position: absolute; inset: 0; background: rgba(224,123,57,.2); }
.works-thumb-info { margin-top: 1rem; padding: 1rem; background: var(--bg-100); border-radius: 8px; }
.works-thumb-info p { font-size: 1rem; font-weight: 500; color: var(--fg-700, #374151); }

/* Works CTA */
.works-cta { padding: 4rem 0 5rem; background: var(--primary-500); text-align: center; }
.works-cta h2 { font-size: 1.5rem; font-weight: 700; color: #fff; margin-bottom: 1rem; }
@media (min-width: 768px) { .works-cta h2 { font-size: 1.875rem; } }
.works-cta p { color: rgba(255,255,255,.8); font-size: 1rem; max-width: 42rem; margin: 0 auto 2rem; line-height: 1.8; }
.works-cta-btns { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; }
@media (min-width: 640px) { .works-cta-btns { flex-direction: row; } }
.btn-works-white { display: inline-flex; align-items:center; gap:.5rem; padding:.75rem 1.5rem; background:#fff; color: var(--primary-500); font-size:1rem; font-weight:500; border-radius:6px; white-space:nowrap; transition: background .2s; }
.btn-works-white:hover { background: rgba(255,255,255,.9); }
.btn-works-outline { display: inline-flex; align-items:center; gap:.5rem; padding:.75rem 1.5rem; border:1px solid #fff; color:#fff; font-size:1rem; font-weight:500; border-radius:6px; white-space:nowrap; transition: background .2s; }
.btn-works-outline:hover { background: rgba(255,255,255,.1); }

/* Lightbox modal (works page, matches React modal) */
.works-lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,.9); display: none; align-items: center; justify-content: center; }
.works-lightbox.open { display: flex; }
.works-lightbox-inner { position: relative; max-width: 64rem; max-height: 85vh; margin: 0 1rem; }
.works-lightbox-inner img { max-width: 100%; max-height: 85vh; object-fit: contain; }
.works-lightbox-caption { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(0,0,0,.7)); padding: 1rem 1.5rem; }
.works-lightbox-caption p.cap { color: #fff; font-weight: 500; font-size: 1rem; }
.works-lightbox-caption p.meta { color: rgba(255,255,255,.6); font-size: .875rem; margin-top: .25rem; }
.wlb-close, .wlb-prev, .wlb-next {
  position: absolute; z-index: 50; width: 2.5rem; height: 2.5rem;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.8); background: transparent; border: none; cursor: pointer; font-size: 1.25rem; transition: color .2s;
}
.wlb-close:hover, .wlb-prev:hover, .wlb-next:hover { color: #fff; }
.wlb-close { top: 1rem; right: 1rem; }
.wlb-prev { left: 1rem; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,.3); border-radius: 50%; }
.wlb-next { right: 1rem; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,.3); border-radius: 50%; }

/* ===== Contact page (Contact Form 7 styling to match original) ===== */
.cf7-wrap-section { padding: 4rem 0 5rem; background: #fff; }
@media (min-width: 768px) { .cf7-wrap-section { padding: 5rem 0; } }
.cf7-header { text-align: center; margin-bottom: 2.5rem; }
.cf7-header .section-label { font-size: .875rem; }
.cf7-header h2 { font-size: 1.5rem; font-weight: 700; color: #111827; margin-top: .5rem; }
@media (min-width: 768px) { .cf7-header h2 { font-size: 1.875rem; } }
.cf7-header .divider-line { margin-top: 1rem; }

.cf7-box { background: var(--bg-100, #f5f5f4); border: 1px solid rgba(231,229,228,.7); border-radius: 8px; padding: 1.5rem; }
@media (min-width: 768px) { .cf7-box { padding: 2rem; } }

.cf7-box .wpcf7-form p { margin-bottom: 1.25rem; }
.cf7-box label { display: block; font-size: 1rem; font-weight: 500; color: #374151; margin-bottom: .375rem; }
.cf7-box .req-mark { color: #ef4444; margin-left: .25rem; }
.cf7-box input[type=text], .cf7-box input[type=email], .cf7-box input[type=tel], .cf7-box select, .cf7-box textarea {
  width: 100%; padding: .625rem 1rem; border: 1px solid rgba(231,229,228,.7); border-radius: 6px;
  font-size: 1rem; background: #fff; transition: box-shadow .2s, border-color .2s; font-family: inherit;
}
.cf7-box select { cursor: pointer; }
.cf7-box input:focus, .cf7-box select:focus, .cf7-box textarea:focus {
  outline: none; border-color: var(--primary-500); box-shadow: 0 0 0 2px rgba(224,123,57,.4);
}
.cf7-box textarea { resize: none; }
.cf7-submit-row { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 2rem; }
.cf7-box input[type=submit] {
  padding: .75rem 2rem; background: var(--primary-500); color: #fff; font-size: 1rem; font-weight: 500;
  border-radius: 6px; border: none; cursor: pointer; transition: background .2s; white-space: nowrap;
}
.cf7-box input[type=submit]:hover { background: var(--primary-600); }
.cf7-box .wpcf7-spinner { margin-left: .5rem; }
.cf7-box .wpcf7-not-valid-tip { color: #ef4444; font-size: .875rem; margin-top: .25rem; }
.wpcf7-response-output {
  margin: 0 0 1.5rem; padding: 1rem; border-radius: 6px; font-size: 1rem;
}
.wpcf7-mail-sent-ok { background: #d1fae5; border: 1px solid #6ee7b7 !important; color: #065f46; }
.wpcf7-validation-errors, .wpcf7-mail-sent-ng, .wpcf7-spam-blocked { background: #fef2f2; border: 1px solid #fecaca !important; color: #b91c1c; }
.hp-field { position: absolute; left: -9999px; }
