/* ==========================================================================
   Layout — Renaissance-style header, utility bar, footer, hero
   ========================================================================== */

/* ==========================================================================
   Header — Renaissance-style (pixel-perfect structure, our brand colors)
   Structure: top "header-global" bar (tagline + utility tabs)
              + "header-contents" (logo + main nav with icons)
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--line-soft);
}

/* ---------- header-global: top utility strip ---------- */
.header-global {
  background-color: var(--navy);           /* was #d62248 in Renaissance */
  width: 100%;
}

.header-global-inner {
  max-width: var(--container-max);
  margin-inline: auto;
  min-height: 50px;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  padding: 0 20px;
}

/* Left: tagline */
.header-global-inner .title-sitename {
  padding-top: 20px;
  padding-bottom: 12px;
  color: var(--white);
  font-size: 11px;
  line-height: 1;
  white-space: nowrap;
  margin-bottom: 0;
  margin-left: 20px;
  text-align: left;
  font-weight: 500;
  letter-spacing: 0.04em;
}

/* Right: utility tabs (white tabbed nav sticking out bottom of navy strip) */
.header-global-inner .nav-global {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: stretch;
  height: 50px;
  overflow: hidden;
  background-color: var(--white);
  border-radius: 0 0 7px 7px;
}

.header-global-inner .nav-global li {
  flex-basis: 128px;
  min-width: 128px;
  border-right: 1px solid #eee;
  list-style: none;
}

.header-global-inner .nav-global li a {
  text-align: center;
  display: block;
  width: 100%;
  color: #333;
  font-size: 13px;
  height: 50px;
  line-height: 50px;
  text-decoration: none;
  transition: all 0.4s ease-out;
}

.header-global-inner .nav-global li a > img,
.header-global-inner .nav-global li a > svg {
  position: relative;
  top: -1px;
  margin-right: 5px;
  display: inline-block;
  vertical-align: middle;
  width: 10px;
  height: 10px;
}

.header-global-inner .nav-global li a:focus,
.header-global-inner .nav-global li a:hover {
  background-color: var(--navy);           /* was #d70545 */
  color: var(--white);
}

.header-global-inner .nav-global li.contact {
  flex-basis: 160px;
  min-width: 160px;
  border-right: none;
  background-color: var(--coral);          /* was #d70545 */
}
.header-global-inner .nav-global li.contact a {
  color: var(--white);
}
.header-global-inner .nav-global li.contact a:hover {
  background-color: var(--coral-deep);
}

/* Hide on mobile */
.header-global {
  display: none;
}
@media (min-width: 960px) {
  .header-global { display: block; }
}

/* ---------- header-contents: main header (logo + main nav) ---------- */
.header-contents {
  width: 100%;
  height: 90px;
  background-color: var(--white);
}

.header-contents-inner {
  max-width: var(--container-max);
  margin-inline: auto;
  height: 100%;
  padding-inline: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* Site logo */
.site-logo {
  flex-shrink: 0;
  display: block;
  text-decoration: none;
  margin-left: 20px;
}
.site-logo img {
  width: auto;
  height: 52px;
  display: block;
}

/* Main nav */
.nav-contents {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0;
  flex: 1;
  max-width: 720px;
  list-style: none;
}

.nav-contents li {
  flex: 1;
  text-align: center;
  list-style: none;
}

.nav-contents li a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--navy);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  padding: 8px 4px;
  line-height: 1.3;
  position: relative;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}

.nav-contents li a i {
  display: block;
  width: 26px;
  height: 26px;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.9;
}

.nav-contents li a:hover {
  color: var(--blue);
}

.nav-contents li a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 10%; right: 10%;
  height: 3px;
  background: var(--blue);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform 0.25s;
  transform-origin: center;
}
.nav-contents li a:hover::after { transform: scaleX(1); }

/* Right actions (kept on mobile) */
.site-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.site-header-tel {
  display: none;
  align-items: center;
  gap: 6px;
  font-family: var(--font-en);
  font-size: 18px;
  font-weight: 900;
  color: var(--navy);
  text-decoration: none;
  white-space: nowrap;
}

.site-header .btn {
  padding: 10px 18px;
  font-size: var(--fs-xs);
}

@media (min-width: 1100px) {
  .site-header-tel { display: inline-flex; }
}

/* Hide main nav on mobile, show hamburger */
.nav-contents { display: none; }
@media (min-width: 960px) {
  .nav-contents { display: flex; }
  .site-header .btn { padding: 12px 22px; font-size: var(--fs-sm); }
  .menu-toggle { display: none; }
}

/* Mobile menu toggle */
.menu-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
}
.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
}

/* On mobile, shrink main header and hide the header-global */
@media (max-width: 959px) {
  .header-contents { height: 64px; }
  .site-logo img { height: 38px; }
  .site-logo { margin-left: 0; }
  .header-contents-inner { padding-inline: 15px; }
}

/* Mobile nav drawer */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 45, 82, 0.5);
  z-index: 200;
}
.mobile-nav.is-open { display: block; }
.mobile-nav-inner {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 84%; max-width: 320px;
  background: var(--white);
  padding: var(--sp-6) var(--sp-5);
}
.mobile-nav-close {
  display: block;
  margin-left: auto;
  font-size: 28px;
  color: var(--navy);
  padding: var(--sp-2);
}
.mobile-nav-links {
  display: flex;
  flex-direction: column;
  margin-top: var(--sp-6);
}
.mobile-nav-links a {
  padding: var(--sp-4) 0;
  font-family: var(--font-display);
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--navy);
  border-bottom: 1px solid var(--line-soft);
  text-decoration: none;
}

/* ----- Breadcrumb ----- */
.breadcrumb {
  padding-block: var(--sp-3);
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line-soft);
}
.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-xs);
  color: var(--caption);
}
.breadcrumb-list a { color: var(--caption); text-decoration: none; }
.breadcrumb-list a:hover { color: var(--navy); }
.breadcrumb-list li + li::before {
  content: '›';
  margin-right: var(--sp-2);
  color: var(--line);
}
.breadcrumb-current { color: var(--navy); font-weight: 700; }

/* ----- Hero (shared baseline, overridden per page) ----- */
.hero {
  position: relative;
  padding-block: var(--sp-12) var(--sp-16);
  background: var(--bg-soft);
  overflow: hidden;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-8);
  align-items: center;
}

@media (min-width: 900px) {
  .hero { padding-block: var(--sp-16) var(--sp-20); }
  .hero-inner { grid-template-columns: 1fr 1fr; gap: var(--sp-12); }
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2rem, 5.5vw, 3.5rem);
  line-height: var(--lh-tight);
  color: var(--navy);
  letter-spacing: var(--tracking-tight);
  margin-bottom: var(--sp-5);
}

.hero-title .blue { color: var(--blue); }
.hero-title .aqua { color: var(--cyan-deep); }
.hero-title .yellow-hl {
  background: linear-gradient(transparent 50%, var(--yellow) 50%, var(--yellow) 90%, transparent 90%);
  padding-inline: 4px;
}

.hero-sub {
  font-size: var(--fs-md);
  color: var(--body);
  line-height: var(--lh-base);
  margin-bottom: var(--sp-6);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  align-items: center;
  margin-bottom: var(--sp-3);
}

.hero-note { font-size: var(--fs-xs); color: var(--caption); }

.hero-visual {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  max-width: 560px;
  width: 100%;
  justify-self: center;
}
.hero-visual img { width: 100%; display: block; }

/* Sub-page hero */
.hero-sub-page {
  padding-block: var(--sp-10) var(--sp-10);
  background: var(--bg-soft);
}
.hero-sub-page .hero-inner { grid-template-columns: 1fr; }
.hero-sub-page .hero-title { font-size: clamp(1.75rem, 4vw, 2.5rem); }

/* ----- Footer ----- */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.7);
  padding-block: var(--sp-16) var(--sp-6);
  position: relative;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg,
    var(--blue) 0%,
    var(--cyan) 50%,
    var(--pink) 100%);
}

.site-footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-8);
  margin-bottom: var(--sp-10);
}

.site-footer h4 {
  color: var(--white);
  font-family: var(--font-display);
  font-size: var(--fs-base);
  font-weight: 700;
  margin-bottom: var(--sp-4);
}

.site-footer a {
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--fs-sm);
  text-decoration: none;
}
.site-footer a:hover { color: var(--cyan); }

.footer-brand-name {
  color: var(--white);
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: 900;
  margin-bottom: var(--sp-3);
}

.footer-brand-text {
  font-size: var(--fs-sm);
  line-height: var(--lh-base);
  max-width: 320px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.footer-contact-tel {
  font-family: var(--font-en);
  font-size: var(--fs-xl);
  font-weight: 900;
  color: var(--white);
}

.site-footer-bottom {
  padding-top: var(--sp-6);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  align-items: center;
  text-align: center;
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.45);
}

@media (min-width: 768px) {
  .site-footer-grid { grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: var(--sp-12); }
  .site-footer-bottom { flex-direction: row; justify-content: space-between; }
}
