/*
Theme Name: Arden Base Theme
Theme URI: https://digitalbyarden.com/
Author: Digital By Arden
Author URI: https://digitalbyarden.com/
Description: Commercial AI-operable block theme foundation for Digital By Arden custom WordPress development.
Requires at least: 6.5
Tested up to: 6.9
Requires PHP: 8.0
Version: 1.1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: arden-base-theme
Tags: full-site-editing, block-patterns, custom-colors, custom-menu, editor-style
*/

:root {
  --color-primary: #1B67B2;
  --color-primary-deep: #0F4A85;
  --color-aux-1: #1A96D5;
  --color-aux-2: #54C3F1;
  --color-surface: #FFFFFF;
  --color-bg: #F7FAFC;
  --color-text: #0F1B2D;
  --color-text-muted: #4A5567;
  --color-border: #E5EEF7;
  --overlay-deep-blue: rgba(15,74,133,0.55);
  --shadow-card: 0 1px 3px rgba(27,103,178,0.06);
  --shadow-card-hover: 0 4px 12px rgba(27,103,178,0.10);
  --radius-card: 12px;
  --radius-button: 8px;
  --max-content: 1280px;
  --section-pad-y-desktop: 100px;
  --section-pad-y-mobile: 60px;
  --gap-card: 24px;
  --font-stack: "Noto Sans TC", "PingFang TC", "Heiti TC", "微軟正黑體", Arial, sans-serif;

  --arden-color-primary: var(--color-primary);
  --arden-color-accent: var(--color-aux-1);
  --arden-color-background: var(--color-bg);
  --arden-color-surface: var(--color-surface);
  --arden-color-text: var(--color-text);
  --arden-color-muted: var(--color-text-muted);
  --arden-font-heading: var(--font-stack);
  --arden-font-body: var(--font-stack);
  --arden-layout-container: var(--max-content);
  --arden-layout-content: var(--max-content);
  --arden-space-section-y: var(--section-pad-y-desktop);
  --arden-radius-card: var(--radius-card);
  --arden-radius-button: var(--radius-button);
}

body {
  background: var(--color-surface);
  color: var(--color-text);
  font-family: var(--font-stack);
}

.inner {
  width: min(100% - clamp(32px, 6vw, 80px), var(--max-content));
  margin-inline: auto;
}

.section-pad {
  padding-block: var(--section-pad-y-desktop);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-primary);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 16px;
  text-transform: uppercase;
}

.section-title {
  color: var(--color-text);
  font-family: var(--font-stack);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 16px;
}

.section-subtitle {
  color: var(--color-text-muted);
  font-size: 17px;
  line-height: 1.65;
  max-width: 680px;
  margin: 0 0 48px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 14px 24px;
  border-radius: var(--radius-button);
  border: 1.5px solid transparent;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
  text-decoration: none;
}

.btn-primary {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-surface);
}

.btn-primary:visited,
.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--color-primary-deep);
  border-color: var(--color-primary-deep);
  color: var(--color-surface);
}

.btn-secondary {
  background: var(--color-surface);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn-secondary:visited,
.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: rgba(27,103,178,0.06);
  color: var(--color-primary-deep);
}

.card-standard {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

.arden-site-header.ne-site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  margin: 0;
  height: 80px;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid rgba(27, 103, 178, 0.2);
  box-shadow: 0 1px 0 rgba(15, 74, 133, 0.04);
  backdrop-filter: blur(8px);
  line-height: 1.5;
}

.admin-bar .arden-site-header.ne-site-header {
  top: 32px;
}

.arden-site-header.ne-site-header .arden-site-header__inner {
  width: min(100% - clamp(32px, 6vw, 80px), var(--max-content));
  height: 100%;
  min-height: 80px;
  margin-inline: auto;
  padding: 0;
  gap: 32px;
}

.ne-site-header__logo,
.ne-footer-logo {
  margin: 0;
}

.ne-site-header__logo img {
  display: block;
  max-width: min(260px, 48vw);
  height: 60px;
  max-height: 60px;
  width: auto;
}

.ne-site-header .arden-site-header__nav {
  flex: 1 1 auto;
  justify-content: center;
}

.ne-site-header .arden-header-menu {
  gap: 32px;
}

.ne-site-header .arden-header-menu a {
  color: var(--color-text);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  padding: 12px 2px;
  text-decoration: none;
}

.ne-site-header .arden-header-menu a:hover,
.ne-site-header .arden-header-menu a:focus-visible {
  color: var(--color-primary);
}

.ne-site-header .arden-header-menu--desktop > .menu-item > a::before,
.ne-site-header .arden-header-menu--desktop > .current-menu-item > a::before,
.ne-site-header .arden-header-menu--desktop > .current-menu-ancestor > a::before {
  transform: scaleX(0);
}

.ne-site-header .arden-header-menu--desktop > .menu-item:hover > a::before,
.ne-site-header .arden-header-menu--desktop > .menu-item:focus-within > a::before {
  transform: scaleX(1);
}

a.ne-header-cta {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 11px 24px;
  border: 1px solid var(--color-primary);
  border-radius: var(--radius-button);
  background: var(--color-primary);
  color: var(--color-surface);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

a.ne-header-cta:hover,
a.ne-header-cta:focus-visible {
  background: var(--color-primary-deep);
  border-color: var(--color-primary-deep);
  color: var(--color-surface);
}

.arden-site-footer {
  margin: 0;
  padding-top: 64px;
  background: var(--color-text);
  color: #FFFFFF;
  line-height: 1.5;
}

.arden-site-footer .arden-site-footer__inner {
  width: auto;
  max-width: var(--max-content);
  margin-inline: auto;
  padding: 0 clamp(20px, 4vw, 40px) 48px;
}

.arden-site-footer .wp-block-columns.ne-footer-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.5fr) repeat(3, minmax(150px, 1fr)) minmax(190px, 1.3fr);
  gap: 48px;
  margin: 0;
  padding-inline: 0;
}

.arden-site-footer .ne-footer-brand,
.arden-site-footer .ne-footer-column,
.arden-site-footer .ne-footer-contact {
  min-width: 0;
}

.arden-site-footer .ne-footer-logo img {
  width: auto;
  height: 56px;
  filter: brightness(0) invert(1);
  margin-bottom: 16px;
}

.arden-site-footer .ne-footer-tagline {
  max-width: 280px;
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13.5px;
  line-height: 1.7;
}

.arden-site-footer .ne-footer-social {
  display: flex;
  gap: 12px;
  align-items: center;
}

.arden-site-footer .ne-footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--color-primary);
  border-radius: 50%;
  color: #FFFFFF;
  text-decoration: none;
}

.arden-site-footer .arden-site-footer__heading {
  margin: 0 0 16px;
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  text-transform: uppercase;
}

.arden-site-footer .arden-site-footer__nav,
.arden-site-footer .arden-site-footer__nav .wp-block-navigation__container,
.arden-site-footer .arden-site-footer__nav ul,
.arden-site-footer .ne-footer-menu {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
  margin: 0;
  padding: 0;
}

.arden-site-footer .arden-site-footer__nav a,
.arden-site-footer .ne-footer-menu a,
.arden-site-footer .ne-footer-contact-list a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 13.5px;
  line-height: 1.5;
  text-decoration: none;
}

.arden-site-footer .arden-site-footer__nav a:hover,
.arden-site-footer .arden-site-footer__nav a:focus-visible,
.arden-site-footer .ne-footer-menu a:hover,
.arden-site-footer .ne-footer-menu a:focus-visible,
.arden-site-footer .ne-footer-contact-list a:hover,
.arden-site-footer .ne-footer-contact-list a:focus-visible {
  color: #FFFFFF;
  text-decoration: none;
}

.arden-site-footer .ne-footer-menu {
  list-style: none;
}

.arden-site-footer .ne-footer-menu li {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.5;
}

.arden-site-footer .ne-footer-social img {
  display: block;
  width: 18px;
  height: 18px;
}

.arden-site-footer .ne-footer-contact-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.arden-site-footer .ne-footer-contact-list li {
  color: rgba(255, 255, 255, 0.78);
  font-size: 13.5px;
  line-height: 1.6;
}

.arden-site-footer .arden-site-footer__utility-shell {
  margin-top: 0;
  margin-inline: calc(clamp(20px, 4vw, 40px) * -1);
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.arden-site-footer .ne-footer-utility {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin: 0;
  padding: 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 12.5px;
}

.arden-site-footer .ne-footer-utility p {
  margin: 0;
}

.arden-site-footer .arden-site-footer__legal {
  display: flex;
  gap: 20px;
  align-items: center;
}

.arden-site-footer .arden-site-footer__legal a {
  color: rgba(255, 255, 255, 0.58);
  text-decoration: none;
}

@media (max-width: 768px) {
  .section-pad {
    padding-block: var(--section-pad-y-mobile);
  }

  .section-subtitle {
    margin-bottom: 32px;
  }

  .admin-bar .arden-site-header.ne-site-header {
    top: 46px;
  }

  .arden-site-header.ne-site-header .arden-site-header__inner {
    min-height: 72px;
  }

  .ne-site-header__logo img {
    max-width: min(200px, 56vw);
    height: 46px;
    max-height: 46px;
  }

  .ne-header-cta {
    display: none;
  }

  .ne-site-header .arden-site-header__nav {
    flex: 0 0 auto;
    justify-content: flex-end;
    margin-left: auto;
  }

  html.arden-mobile-menu-open .arden-site-header.ne-site-header {
    backdrop-filter: none;
  }

  .ne-site-header .arden-mobile-menu {
    min-height: 100dvh;
  }

  .arden-site-footer .arden-site-footer__inner {
    padding: 0 clamp(20px, 4vw, 40px) 48px;
  }

  .arden-site-footer .wp-block-columns.ne-footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .arden-site-footer .ne-footer-utility {
    flex-direction: column;
    align-items: flex-start;
  }
}
