
:root{
  --navy-950:#0b1d33;
  --navy-900:#102947;
  --navy-800:#173a63;
  --navy-700:#244f83;
  --navy-600:#35689f;
  --slate-900:#1a2433;
  --slate-700:#4a586e;
  --slate-500:#748196;
  --line:#dbe4ee;
  --line-strong:#c9d6e3;
  --bg:#f4f7fb;
  --bg-soft:#edf3f9;
  --bg-card-alt:#edf3f9;
  --white:#ffffff;
  --amber-500:#F59E0B;
  --amber-600:#D97706;
  --amber-100:#FEF3C7;
  --success:#0d8b67;
  --shadow-sm:0 12px 28px rgba(16,41,71,.08);
  --shadow-md:0 22px 48px rgba(16,41,71,.12);
  --shadow-lg:0 30px 72px rgba(16,41,71,.16);
  --radius-sm:16px;
  --radius-md:24px;
  --radius-lg:32px;
  --max:1180px;
  --header-h:84px;

  /* Theming Variables */
  --bg-body: var(--white);
  --bg-header: rgba(255,255,255,.78);
  --bg-card: rgba(255,255,255,.96);
  --bg-card-grad-start: rgba(255,255,255,.98);
  --bg-card-grad-end: rgba(244,247,251,.96);
  --text-main: var(--slate-900);
  --text-soft: var(--slate-700);
  --text-muted: var(--slate-500);
  --surface-accent: rgba(23,58,99,.08);
  --surface-accent-border: rgba(23,58,99,.10);
  --hero-glow-1: rgba(245,158,11,.08);
  --hero-glow-2: rgba(53,104,159,.10);
  --hero-glow-3: rgba(16,41,71,.10);
}

[data-theme="dark"] {
  --bg: #0A192F;
  --bg-soft: #10233d;
  --white: #112240;
  --bg-body: #0A192F;
  --bg-header: rgba(8,20,38,.72);
  --bg-card: rgba(12,29,51,.88);
  --bg-card-grad-start: rgba(15,33,57,.92);
  --bg-card-grad-end: rgba(10,24,47,.88);
  --text-main: #F1F5F9;
  --text-soft: #D8E1EC;
  --text-muted: #9BAFC7;
  --slate-900: #F1F5F9;
  --slate-700: #CBD5E1;
  --slate-500: #94A3B8;
  --line: rgba(148,163,184,.18);
  --line-strong: rgba(148,163,184,.28);
  --surface-accent: rgba(53,104,159,.16);
  --surface-accent-border: rgba(148,163,184,.16);
  --hero-glow-1: rgba(245,158,11,.10);
  --hero-glow-2: rgba(53,104,159,.16);
  --hero-glow-3: rgba(10,24,47,.42);
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:"Noto Sans TC","PingFang TC","Microsoft JhengHei",sans-serif;
  color:var(--text-main);
  background:
    radial-gradient(circle at top left, var(--hero-glow-1), transparent 28%),
    radial-gradient(circle at top right, var(--hero-glow-2), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #f7f9fc 52%, #eef3f8 100%);
  transition: background-color 0.4s ease, color 0.4s ease;
  line-height:1.8;
  overflow-x:hidden;
}
[data-theme="dark"] body{
  background:
    radial-gradient(circle at top left, var(--hero-glow-1), transparent 24%),
    radial-gradient(circle at top right, var(--hero-glow-2), transparent 32%),
    radial-gradient(circle at 50% 20%, var(--hero-glow-3), transparent 46%),
    linear-gradient(180deg, #081426 0%, #0c1d33 50%, #132744 100%);
}
a{text-decoration:none;color:inherit}
img{max-width:100%;display:block}
button,input,textarea{font:inherit}
.container{width:min(var(--max), calc(100% - 40px));margin:0 auto}

.site-header{
  position:fixed; inset:0 0 auto 0; z-index:1100;
  background:var(--bg-header);
  backdrop-filter:blur(14px);
  border-bottom:1px solid rgba(201,214,227,.7);
  transition:.28s ease, background-color 0.4s ease;
}
.site-header.scrolled{
  background:rgba(255,255,255,.92);
  box-shadow:0 12px 34px rgba(16,41,71,.08);
}
[data-theme="dark"] .site-header.scrolled{
  background:rgba(8,20,38,.86);
  box-shadow:0 14px 34px rgba(2,8,23,.28);
}
.header-inner{
  min-height:var(--header-h);
  display:flex; align-items:center; justify-content:space-between; gap:20px;
}
.brand{display:flex; flex-direction:column; line-height:1.15}
.brand strong{color:var(--navy-900); font-size:1.1rem; letter-spacing:.02em}
.brand span{color:var(--text-muted); font-size:.83rem; margin-top:4px}

.nav-links{display:flex; align-items:center; gap:8px; flex-wrap:wrap}
.nav-links a{
  padding:11px 14px; border-radius:999px; color:var(--text-soft); font-weight:800;
  transition:.24s ease;
}
.nav-links a:hover,.nav-links a.active{
  color:#fff;
  background:linear-gradient(135deg,var(--navy-900),var(--navy-700));
}
.nav-links .nav-cta{
  color:#fff;
  background:linear-gradient(135deg,var(--navy-900),var(--navy-700));
  box-shadow:var(--shadow-sm);
  border:1px solid transparent;
}
.nav-links .nav-cta:hover{
  box-shadow:0 12px 28px rgba(245,158,11,.4);
  border-color:rgba(245,158,11,.6);
}
.menu-toggle,.theme-toggle{
  display:none; width:46px; height:46px; border:none; border-radius:14px;
  background:var(--navy-900); color:#fff; font-size:1.2rem; cursor:pointer;
  align-items:center; justify-content:center; transition:.2s ease;
}
.theme-toggle{display:flex}
.theme-toggle:hover{background:var(--navy-800); transform:scale(1.05)}
[data-theme="dark"] .theme-toggle{background:rgba(245,158,11,.92); color:var(--navy-950)}


.page-hero,.home-hero{padding-top:calc(var(--header-h) + 20px)}
.home-hero{padding-bottom:44px}
.home-grid{
  display:grid; grid-template-columns:1.618fr 1fr; gap:64px; align-items:center;
}
.home-hero .container{
  position:relative;
}
.home-hero .container::before{
  content:"";
  position:absolute;
  inset:-16px -24px auto auto;
  width:420px;
  height:420px;
  border-radius:50%;
  background:radial-gradient(circle, rgba(53,104,159,.14), transparent 68%);
  filter:blur(2px);
  pointer-events:none;
}
.home-hero .container::after{
  content:"";
  position:absolute;
  inset:40px auto auto -60px;
  width:280px;
  height:280px;
  border-radius:50%;
  background:radial-gradient(circle, rgba(245,158,11,.10), transparent 70%);
  pointer-events:none;
}
.eyebrow{
  display:inline-flex; align-items:center; gap:10px;
  padding:8px 14px; border-radius:999px;
  color:var(--navy-800); font-weight:800; font-size:.9rem;
  background:var(--surface-accent); border:1px solid var(--surface-accent-border);
}
.eyebrow::before{
  content:""; width:8px; height:8px; border-radius:50%;
  background:linear-gradient(135deg,var(--amber-500),var(--amber-600));
  box-shadow:0 0 0 6px rgba(245,158,11,.15);
}
.hero-title{
  margin:20px 0 14px;
  color:var(--navy-900);
  font-size:clamp(2.15rem, 4.4vw, 3.45rem);
  line-height:1.04; letter-spacing:-.028em;
}
.hero-subtitle{
  margin:0;
  color:var(--text-soft);
  font-size:clamp(1.02rem,1.85vw,1.18rem);
  max-width:700px;
  line-height:1.9;
}
.section-title-balanced small{
  font-size:.8rem;
  letter-spacing:.14em;
}
.section-title-balanced h1,
.section-title-balanced h2{
  max-width:13ch;
}
.section-title-balanced p{
  max-width:720px;
  font-size:1.02rem;
  line-height:1.85;
}
.hero-actions,.inline-actions,.article-actions{
  display:flex; gap:14px; flex-wrap:wrap; margin-top:30px;
}
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  min-height:54px; padding:0 22px; border-radius:999px; border:1px solid transparent;
  font-weight:800; transition:.24s ease;
}
.btn:hover{transform:translateY(-2px)}
.btn-primary{
  color:#fff; background:linear-gradient(135deg,var(--navy-900),var(--navy-700));
  box-shadow:var(--shadow-sm);
}
.btn-primary:hover{
  box-shadow:0 12px 28px rgba(245,158,11,.4);
  border-color:rgba(245,158,11,.6);
}
.btn-secondary{
  color:var(--navy-900); background:rgba(255,255,255,.84); border-color:var(--line-strong);
}
.btn-outline{
  color:var(--navy-900); background:transparent; border-color:var(--line-strong);
}
[data-theme="dark"] .btn-secondary{
  background:linear-gradient(180deg, rgba(18,39,66,.92), rgba(11,26,46,.92));
  color:#eff6ff;
  border-color:rgba(148,163,184,.24);
  box-shadow:0 12px 24px rgba(2,8,23,.22);
}
[data-theme="dark"] .btn-secondary:hover{
  background:linear-gradient(180deg, rgba(24,49,80,.96), rgba(14,31,54,.96));
}
[data-theme="dark"] .btn-outline{
  border-color:rgba(148,163,184,.32);
  color:#e2e8f0 !important;
  background:rgba(15,33,57,.18);
}

.hero-visual{position:relative}
.hero-card{
  position:relative; padding:24px; border-radius:var(--radius-lg);
  background:linear-gradient(180deg, var(--bg-card-grad-start), var(--bg-card-grad-end));
  border:1px solid rgba(255,255,255,.98);
  box-shadow:var(--shadow-lg);
  overflow:hidden;
}
.hero-card::before{
  content:""; position:absolute; top:-40px; right:-40px; width:220px; height:220px;
  border-radius:50%; background:radial-gradient(circle, rgba(53,104,159,.18), transparent 64%);
}
.hero-card::after{
  content:"";
  position:absolute;
  inset:auto auto -80px -40px;
  width:180px;
  height:180px;
  border-radius:50%;
  background:radial-gradient(circle, rgba(245,158,11,.14), transparent 68%);
}
.hero-photo-shell{
  position:relative; border-radius:28px; padding:12px;
  background:linear-gradient(180deg, rgba(16,41,71,.07), rgba(16,41,71,.01));
  overflow:visible;
}
.hero-photo-shell::after{
  content:""; position:absolute; inset:auto 10% -18px 10%; height:86%;
  border-radius:28px; background:linear-gradient(180deg, rgba(16,41,71,.14), rgba(16,41,71,.02));
  filter:blur(18px); z-index:0;
}
.hero-photo{
  position:relative; z-index:1; width:100%;
  max-height:520px; object-fit:cover; object-position:center top;
  border-radius:22px; border:1px solid rgba(255,255,255,.92);
  box-shadow:0 24px 54px rgba(16,41,71,.18);
  filter:none !important; opacity:1 !important; mix-blend-mode:normal;
}
.hero-mini{
  display:grid; gap:12px; margin-top:18px; position:relative; z-index:2;
}
.hero-mini div{
  padding:14px 16px; border-radius:18px; background:linear-gradient(180deg, rgba(237,243,249,.98), rgba(229,237,246,.96));
  border:1px solid #dfe7f0; color:var(--slate-900); font-weight:700;
}
.floating-badge{
  position:absolute; z-index:3; background:linear-gradient(180deg, var(--bg-card-grad-start), var(--bg-card-grad-end));
  border:1px solid rgba(219,228,238,.98); box-shadow:var(--shadow-sm);
  border-radius:18px; padding:14px 16px; max-width:250px;
}
.floating-badge strong{display:block; color:var(--navy-900); margin-bottom:4px}
.floating-badge span{display:block; color:var(--slate-700); font-size:.95rem; line-height:1.6}
.floating-badge.top{top:26px; left:-12px}
.floating-badge.bottom{
  right:-16px; bottom:210px;
  opacity:0; visibility:hidden;
  transform:translateY(12px) scale(0.96);
  transition:all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events:none;
}
.hero-visual:hover .floating-badge.bottom{
  opacity:1; visibility:visible;
  transform:translateY(0) scale(1);
  pointer-events:auto;
}
.stat-grid{
  display:grid; grid-template-columns:repeat(3,1fr); gap:14px; margin-top:48px;
}
.stat-box{
  padding:18px; border-radius:20px; background:linear-gradient(180deg, rgba(237,243,249,.98), rgba(229,237,246,.95));
  border:1px solid var(--line); box-shadow:var(--shadow-sm);
}
.stat-box strong{
  display:block; color:var(--amber-600); font-size:1.2rem; margin-bottom:4px;
}
.stat-box span{display:block; color:var(--slate-700); font-size:.95rem}

.section{padding:84px 0}
.compact-top{padding-top:20px}
.section-title{margin-bottom:26px}
.section-title small{
  display:block; color:var(--navy-700); font-weight:900; letter-spacing:.11em; margin-bottom:10px; font-size:.78rem;
}
.section-title h2{
  margin:0; color:var(--navy-900); font-size:clamp(1.82rem, 3vw, 2.8rem); line-height:1.16;
}
.section-title p{
  margin:14px 0 0; color:var(--text-soft); max-width:780px; font-size:1rem; line-height:1.86;
}
.grid-2{display:grid; grid-template-columns:1.05fr .95fr; gap:24px}
.grid-2-alt{display:grid; grid-template-columns:.92fr 1.08fr; gap:28px; align-items:center}
.about-hero-grid{
  grid-template-columns:minmax(170px,.5fr) minmax(0,1.5fr);
  gap:30px;
  align-items:center;
}
.panel{
  background:linear-gradient(180deg, var(--bg-card-grad-start), var(--bg-card-grad-end)); border:1px solid var(--line);
  border-radius:var(--radius-md); padding:30px; box-shadow:var(--shadow-sm);
}
.panel p{margin:0; color:var(--text-soft)}
.panel p + p{margin-top:16px}
.quote-panel{
  background:linear-gradient(135deg,var(--navy-900),var(--navy-800));
  color:#fff; overflow:hidden; position:relative;
}
.quote-panel::before{
  content:""; position:absolute; right:-40px; top:-40px; width:180px; height:180px;
  border-radius:50%; background:rgba(255,255,255,.08);
}
.quote-panel strong{display:block; margin-bottom:14px; font-size:1.12rem}
.quote-panel p{color:rgba(255,255,255,.86)}

.feature-grid,.service-grid,.article-grid,.testimonial-grid{
  display:grid; gap:20px;
}
.feature-grid{grid-template-columns:repeat(4,1fr)}
.service-grid{grid-template-columns:repeat(2,1fr)}
.article-grid{grid-template-columns:repeat(3,1fr)}
.testimonial-grid{grid-template-columns:repeat(3,1fr)}

.feature-card,.service-card,.article-card,.testimonial,.contact-card,.timeline-card{
  background:linear-gradient(180deg, var(--bg-card-grad-start), var(--bg-card-grad-end)); border:1px solid var(--line);
  border-radius:26px; padding:28px; box-shadow:var(--shadow-sm);
  transition:.24s ease; position:relative; overflow:hidden;
}
.feature-card:hover,.service-card:hover,.article-card:hover,.testimonial:hover{
  transform:translateY(-6px); box-shadow:var(--shadow-md);
}
.feature-card::before,.service-card::before,.article-card::before{
  content:""; position:absolute; inset:0 auto auto 0; width:100%; height:4px;
  background:linear-gradient(90deg,var(--amber-500),var(--amber-600));
}
/* Golden Ratio adjustments for Feature & Service cards */
.feature-card, .service-card { padding: 40px; }
.feature-card h3, .service-card h3 {
  margin: 0 0 14px; 
  color: var(--navy-900); 
  font-size: 1.618rem; /* Golden Ratio */
  line-height: 1.35;
}
.article-card h3,.contact-card h3,.timeline-card h3{
  margin:0 0 10px; color:var(--navy-900); font-size:1.15rem;
}
.feature-card p,.service-card p,.article-card p,.testimonial p,.contact-card p,.timeline-card p{
  margin:0; color:var(--text-soft); line-height:1.78;
}
.article-meta{
  display:flex; gap:12px; flex-wrap:wrap; margin-bottom:14px; color:var(--text-muted); font-size:.9rem; font-weight:700;
}
.article-card .readmore{
  display:inline-flex; margin-top:16px; color:var(--navy-800); font-weight:800;
}
.service-card ul,.list-clean{margin:14px 0 0; padding-left:18px; color:var(--slate-700)}
.list-clean li + li,.service-card li + li{margin-top:8px}
.profile-photo{
  border-radius:28px; overflow:hidden; border:1px solid rgba(255,255,255,.92);
  box-shadow:var(--shadow-md);
}
.profile-photo-golden{
  width:min(100%, 250px);
  margin:0 auto;
  padding:10px;
  border-radius:28px;
  background:linear-gradient(180deg, rgba(255,255,255,.96), rgba(237,243,249,.96));
  border:1px solid rgba(201,214,227,.9);
  box-shadow:0 16px 34px rgba(16,41,71,.08);
}
.profile-photo img{
  width:100%; aspect-ratio:4/5; object-fit:cover; object-position:center top;
}
.profile-photo-golden img{
  aspect-ratio:1 / 1.02;
  max-height:300px;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.96);
  box-shadow:0 10px 22px rgba(16,41,71,.10);
  object-position:center 12%;
}
.about-intro-panel{
  padding:34px 38px;
  border-radius:30px;
  background:linear-gradient(180deg, rgba(255,255,255,.98), rgba(244,247,251,.98));
  border:1px solid rgba(219,228,238,.96);
  box-shadow:0 24px 52px rgba(16,41,71,.08);
}
.about-intro-kicker{
  display:inline-flex; align-items:center; gap:10px;
  margin-bottom:16px; padding:7px 14px; border-radius:999px;
  background:rgba(23,58,99,.07); border:1px solid rgba(23,58,99,.08);
  color:var(--navy-800); font-size:.84rem; font-weight:900; letter-spacing:.08em;
}
.about-intro-kicker::before{
  content:""; width:8px; height:8px; border-radius:50%;
  background:linear-gradient(135deg,var(--amber-500),var(--amber-600));
  box-shadow:0 0 0 6px rgba(245,158,11,.12);
}
.about-intro-title{
  margin:0 0 10px; color:var(--navy-900);
  font-size:clamp(1.55rem, 2.3vw, 2.06rem); line-height:1.26;
  max-width:14ch;
}
.about-intro-lead{
  margin:0 0 22px; color:var(--slate-700); font-size:1.04rem; line-height:1.9;
}
.about-intro-body{
  display:grid; gap:16px;
}
.about-intro-body p{
  margin:0; color:var(--text-soft); line-height:1.95;
}
.badge-row{display:flex; gap:10px; flex-wrap:wrap; margin-top:18px}
.badge{
  padding:8px 14px; border-radius:999px; background:var(--bg-soft); border:1px solid #dfe7f0;
  color:var(--navy-800); font-size:.92rem; font-weight:800;
}
.service-hero-panel{
  margin-top:18px;
  padding:28px 30px;
  border-radius:28px;
  background:linear-gradient(135deg, rgba(16,41,71,.98), rgba(36,79,131,.98));
  box-shadow:var(--shadow-md);
  color:#fff;
}
.service-hero-panel h2{
  margin:0 0 10px;
  font-size:clamp(1.5rem, 2.5vw, 2rem);
  line-height:1.24;
}
.service-hero-panel p{
  margin:0;
  max-width:760px;
  color:rgba(255,255,255,.86);
}
.service-pillars{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:18px;
}
.service-pillars span{
  display:inline-flex;
  align-items:center;
  padding:8px 14px;
  border-radius:999px;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.14);
  color:#fff;
  font-size:.9rem;
  font-weight:800;
}
.service-grid-premium{
  gap:24px;
}
.service-card-premium{
  padding:34px 34px 30px;
}
.service-card-label{
  display:inline-flex;
  margin-bottom:14px;
  color:var(--navy-700);
  font-size:.78rem;
  font-weight:900;
  letter-spacing:.12em;
}
.service-card-premium h3{
  margin-bottom:12px;
}
.service-card-premium p{
  font-size:1rem;
  line-height:1.84;
}
.service-card-premium ul{
  margin-top:18px;
  padding-left:0;
  list-style:none;
}
.service-card-premium li{
  position:relative;
  padding-left:18px;
}
.service-card-premium li::before{
  content:"";
  position:absolute;
  left:0;
  top:.8em;
  width:7px;
  height:7px;
  border-radius:50%;
  background:linear-gradient(135deg,var(--amber-500),var(--amber-600));
}
.process-grid-premium{
  gap:22px;
}
.process-card{
  padding:30px 28px;
}
.process-step{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:42px;
  height:42px;
  margin-bottom:16px;
  border-radius:14px;
  background:rgba(16,41,71,.08);
  color:var(--navy-900);
  font-weight:900;
}
.timeline{
  display:grid; gap:14px;
}
.timeline-card strong{
  display:block; color:var(--navy-900); margin-bottom:6px;
}
.article-hero{
  padding-bottom:24px;
}
.article-shell{
  display:grid; grid-template-columns:.92fr 1.08fr; gap:30px; align-items:start;
}
.article-cover{
  border-radius:28px; overflow:hidden; box-shadow:var(--shadow-md); border:1px solid rgba(255,255,255,.92);
}
.article-cover img{
  width:100%; aspect-ratio:4/5; object-fit:cover; object-position:center top;
}
.article-body{
  display:grid; gap:22px;
}
.article-block{
  background:linear-gradient(180deg, var(--bg-card-grad-start), var(--bg-card-grad-end)); border:1px solid var(--line);
  border-radius:24px; padding:28px; box-shadow:var(--shadow-sm);
}
.article-block h2{
  margin:0 0 12px; color:var(--navy-900); font-size:1.4rem;
}
.article-block p,.article-block li{
  color:var(--text-soft); margin:0;
}
.article-block ul{margin:12px 0 0; padding-left:18px}
.article-block p + p,.article-block li + li{margin-top:12px}
.cta-band{
  margin-top:4px; padding:34px; border-radius:28px;
  background:linear-gradient(135deg,var(--navy-900),var(--navy-700)); color:#fff;
  box-shadow:var(--shadow-lg); display:flex; align-items:center; justify-content:space-between;
  gap:20px; flex-wrap:wrap;
}
.cta-band h3{margin:0 0 8px; font-size:1.6rem}
.cta-band p{margin:0; color:rgba(255,255,255,.88); max-width:760px}

.contact-grid{
  display:grid; grid-template-columns:1fr .98fr; gap:22px;
}
.contact-card .service-tags{display:flex; gap:10px; flex-wrap:wrap; margin-top:12px}
.tag{
  padding:8px 14px; border-radius:999px; background:var(--bg-soft);
  border:1px solid #dfe7f0; color:var(--navy-800); font-size:.92rem; font-weight:800;
}
.contact-item{
  padding:18px 0; border-bottom:1px solid #e3ebf3;
}
.contact-item:last-child{border-bottom:none}
.contact-item strong{display:block; color:var(--navy-900); margin-bottom:5px}
.contact-link{color:var(--navy-800); font-weight:900; word-break:break-all}
.contact-method-card{
  display:flex; align-items:flex-start; justify-content:space-between; gap:18px;
  padding:18px; border-radius:20px; background:linear-gradient(180deg, rgba(237,243,249,.98), rgba(229,237,246,.95)); border:1px solid var(--line);
}
.contact-method-card p{margin:6px 0 0; color:var(--text-soft); line-height:1.7}
.contact-method-meta{
  display:flex; flex-direction:column; gap:6px;
}
.contact-method-label{
  color:var(--text-muted); font-size:.92rem; font-weight:800; letter-spacing:.02em;
}
.contact-method-value{
  color:var(--navy-900); font-size:1.05rem; font-weight:900;
}
.contact-method-actions{
  display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin-top:12px;
}
.form-grid{display:grid; gap:14px; margin-top:14px}
label{display:block; font-weight:800; color:var(--navy-900); margin-bottom:6px}
input,textarea{
  width:100%; border:1px solid #d7e1eb; background:#fbfdff; border-radius:16px;
  padding:14px 16px; color:var(--slate-900); outline:none; transition:.2s ease;
}
input:focus,textarea:focus{
  border-color:var(--navy-700); box-shadow:0 0 0 4px rgba(36,79,131,.10);
}
textarea{min-height:170px; resize:vertical}
.sr-only{
  position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden;
  clip:rect(0,0,0,0); white-space:nowrap; border:0;
}
.contact-status{
  display:none; margin-top:10px; padding:12px 14px; border-radius:16px;
  border:1px solid transparent; font-size:.95rem; line-height:1.6;
}
.contact-status.is-visible{display:block}
.contact-status.is-success{
  background:#e9f8f1; border-color:rgba(13,139,103,.18); color:var(--success);
}
.contact-status.is-error{
  background:#fff3f2; border-color:rgba(184,59,48,.18); color:#b83b30;
}
.contact-submit[disabled]{
  opacity:.72; cursor:wait; transform:none;
}
.note{margin-top:12px; color:var(--slate-500); font-size:.94rem}
[data-theme="dark"] .hero-card,
[data-theme="dark"] .panel,
[data-theme="dark"] .feature-card,
[data-theme="dark"] .service-card,
[data-theme="dark"] .article-card,
[data-theme="dark"] .testimonial,
[data-theme="dark"] .contact-card,
[data-theme="dark"] .timeline-card,
[data-theme="dark"] .article-block,
[data-theme="dark"] .floating-badge{
  border-color:rgba(148,163,184,.14);
  box-shadow:0 18px 42px rgba(2,8,23,.22);
}
[data-theme="dark"] .hero-mini div,
[data-theme="dark"] .stat-box,
[data-theme="dark"] .contact-method-card{
  background:linear-gradient(180deg, rgba(17,34,64,.92), rgba(11,26,46,.88));
  border-color:rgba(148,163,184,.14);
  color:#eff6ff;
}
[data-theme="dark"] .brand strong,
[data-theme="dark"] .nav-links a:not(.nav-cta):not(.active),
[data-theme="dark"] .hero-mini div,
[data-theme="dark"] .stat-box span,
[data-theme="dark"] .panel p,
[data-theme="dark"] .feature-card p,
[data-theme="dark"] .service-card p,
[data-theme="dark"] .article-card p,
[data-theme="dark"] .testimonial p,
[data-theme="dark"] .contact-card p,
[data-theme="dark"] .timeline-card p,
[data-theme="dark"] .article-block p,
[data-theme="dark"] .article-block li,
[data-theme="dark"] .section-title p,
[data-theme="dark"] .contact-method-card p{
  color:#d8e1ec;
}
[data-theme="dark"] .brand span,
[data-theme="dark"] .article-meta,
[data-theme="dark"] .note,
[data-theme="dark"] .contact-method-label{
  color:#9bafc7;
}
[data-theme="dark"] .feature-card h3,
[data-theme="dark"] .service-card h3,
[data-theme="dark"] .article-card h3,
[data-theme="dark"] .timeline-card strong,
[data-theme="dark"] .article-block h2,
[data-theme="dark"] .contact-method-value,
[data-theme="dark"] .floating-badge strong,
[data-theme="dark"] .section-title h2,
[data-theme="dark"] .section-title h1{
  color:#f8fbff !important;
}
[data-theme="dark"] .eyebrow,
[data-theme="dark"] .about-intro-kicker{
  background:rgba(53,104,159,.14);
  border-color:rgba(148,163,184,.16);
  color:#dbe7f4;
}
[data-theme="dark"] .badge,
[data-theme="dark"] .tag{
  background:rgba(17,34,64,.88);
  border-color:rgba(148,163,184,.18);
  color:#e5edf7;
}
[data-theme="dark"] .nav-links{
  background:rgba(8,20,38,.94);
}

.floating-actions{
  position:fixed; right:18px; bottom:18px; z-index:1200;
  display:flex; flex-direction:column; gap:12px;
}
.fab{
  width:58px; height:58px; border-radius:999px; display:flex; align-items:center; justify-content:center;
  color:#fff; box-shadow:var(--shadow-md); position:relative;
}
.fab svg{width:28px; height:28px}
.fab:hover{transform:translateY(-2px)}
.fab-line{background:#06c755}
.fab-book{background:linear-gradient(135deg,var(--navy-900),var(--navy-700))}
.fab-label{
  position:absolute; right:68px; white-space:nowrap; padding:8px 12px; border-radius:999px;
  background:rgba(16,41,71,.92); color:#fff; font-size:.86rem; font-weight:800;
  opacity:0; transform:translateX(6px); transition:.2s ease; pointer-events:none;
}
.fab:hover .fab-label{opacity:1; transform:none}

footer{padding:30px 0 38px; color:var(--slate-500); font-size:.95rem}
.footer-inner{
  display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap;
  border-top:1px solid rgba(219,228,238,.98); padding-top:24px;
}

.reveal{opacity:0; transform:translateY(24px); transition:opacity .7s ease, transform .7s ease}
.reveal.show{opacity:1; transform:none}
.float-in{animation:floatIn .9s ease both}
@keyframes floatIn{
  from{opacity:0; transform:translateY(24px)}
  to{opacity:1; transform:none}
}

@media (max-width:1080px){
  .home-grid,.grid-2,.grid-2-alt,.article-shell,.contact-grid{grid-template-columns:1fr}
  .feature-grid{grid-template-columns:repeat(2,1fr)}
  .article-grid{grid-template-columns:repeat(2,1fr)}
  .testimonial-grid{grid-template-columns:1fr}
  .floating-badge.top,.floating-badge.bottom{
    position:static; margin-bottom:14px; max-width:none;
  }
  .about-hero-grid{grid-template-columns:1fr}
  .profile-photo-golden{width:min(100%, 250px)}
  .about-intro-panel{padding:30px 26px}
}
@media (max-width:760px){
  .container{width:min(var(--max), calc(100% - 28px))}
  .menu-toggle,.theme-toggle{display:flex}
  .header-inner{min-height:auto; padding:14px 0; align-items:flex-start}
  .nav-links{
    position:absolute; top:74px; left:14px; right:14px;
    display:none; flex-direction:column; align-items:stretch;
    background:rgba(255,255,255,.98); border:1px solid var(--line);
    border-radius:20px; padding:12px; box-shadow:var(--shadow-sm);
  }
  .nav-links.open{display:flex}
  .feature-grid,.service-grid,.article-grid,.stat-grid{grid-template-columns:1fr}
  .hero-card,.panel,.feature-card,.service-card,.article-card,.testimonial,.contact-card,.timeline-card,.article-block,.cta-band{padding:22px}
  .hero-title{font-size:clamp(1.8rem, 10vw, 2.6rem)}
  .hero-photo{max-height:460px}
  .page-hero,.home-hero{padding-top:calc(var(--header-h) + 28px)}
  .floating-actions{right:12px; bottom:12px}
  .fab{width:54px; height:54px}
  .fab-label{display:none}
  .contact-method-card{flex-direction:column; align-items:flex-start}
}
