/* An Office – anoffice.com.vn */
:root {
  --blue: #0a9bf5;
  --blue-dark: #0679c2;
  --brown: #977453;
  --brown-light: #d2ae88;
  --navy: #0b2540;
  --navy-2: #12355a;
  --ink: #1b2430;
  --muted: #5b6676;
  --line: #e3e8ef;
  --tint: #f3f8fd;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(11, 37, 64, 0.08);
  --font-body: "Be Vietnam Pro", "Segoe UI", Arial, sans-serif;
  --font-brand: "Saira", "Segoe UI", Arial, sans-serif;
  --font-logo: "Archivo", "Saira", Arial, sans-serif; /* phông chữ logo – SIL OFL, dùng thương mại miễn phí */
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 0.5em; color: var(--navy); }
h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 700; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 860px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 11px 22px; border-radius: 999px;
  font: 600 0.95rem/1.2 var(--font-body);
  border: 2px solid transparent; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-dark); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: var(--white); }
.btn-lg { padding: 14px 28px; font-size: 1rem; }
.btn-block { width: 100%; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--navy); }
.brand:hover { text-decoration: none; }
.brand > img { width: 48px; height: 48px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text > span { width: max-content; }
.brand-name { font: 700 1.55rem/1 var(--font-logo); font-stretch: 88%; color: var(--blue); }
.brand-tag { font: 600 0.62rem/1 var(--font-logo); font-stretch: 88%; color: var(--brown); letter-spacing: 0.22em; text-transform: uppercase; margin-top: 4px; }
.brand-dark .brand-tag { color: var(--brown-light); }
.brand-vertical { flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.brand-vertical > img { width: 140px; height: 140px; }
.brand-vertical .brand-text { align-items: center; }
.brand-vertical .brand-name { font-size: 2.2rem; }
.brand-vertical .brand-tag { font-size: 0.8rem; margin-top: 8px; letter-spacing: 0.24em; }

.main-nav { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.main-nav a { color: var(--ink); font-weight: 500; font-size: 0.95rem; white-space: nowrap; }
.main-nav a:hover { color: var(--blue); text-decoration: none; }
.main-nav .nav-cta { color: var(--white); padding: 9px 18px; }
.main-nav .nav-cta:hover { color: var(--white); }
.header-hotline { display: flex; flex-direction: column; line-height: 1.15; border-left: 1px solid var(--line); padding-left: 20px; }
.header-hotline:hover { text-decoration: none; }
.hotline-label { font-size: 0.72rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.hotline-number { font-weight: 700; color: var(--navy); }
.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; padding: 10px; }
.nav-toggle span { display: block; height: 2px; background: var(--navy); margin: 5px 0; border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero { background: linear-gradient(180deg, var(--tint) 0%, var(--white) 100%); padding: 64px 0 40px; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.25fr 1fr; gap: 40px; align-items: center; }
.eyebrow { font: 600 0.8rem/1.2 var(--font-brand); color: var(--brown); text-transform: uppercase; letter-spacing: 0.2em; margin-bottom: 12px; }
.accent { color: var(--blue); }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 580px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 22px; }
.hero-points { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--navy); font-weight: 500; font-size: 0.95rem; }
.hero-points li::before { content: "✓"; color: var(--blue); font-weight: 700; margin-right: 6px; }
.hero-slider {
  position: relative; aspect-ratio: 4 / 3; border-radius: 20px; overflow: hidden;
  background: var(--navy-2); box-shadow: 0 24px 50px rgba(11, 37, 64, 0.18);
}
.hero-slider::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 40%;
  background: linear-gradient(to top, rgba(11, 37, 64, 0.65), transparent); pointer-events: none;
}
.hero-slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity .9s ease; }
.hero-slide.is-active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 6s ease; }
.hero-slide.is-active img { transform: scale(1); }
.hero-slide figcaption {
  position: absolute; left: 20px; bottom: 18px; z-index: 2; color: var(--white);
  font: 600 1rem/1.2 var(--font-body); letter-spacing: 0.02em;
}
.hero-dots { position: absolute; right: 18px; bottom: 20px; z-index: 3; display: flex; gap: 8px; }
.hero-dots button {
  width: 10px; height: 10px; padding: 0; border: 0; border-radius: 999px; cursor: pointer;
  background: rgba(255, 255, 255, 0.55); transition: width .3s, background .3s;
}
.hero-dots button.is-active { width: 28px; background: var(--white); }


/* Sections */
.section { padding: 80px 0; }
.section-tint { background: var(--tint); }
.section-dark { background: var(--navy); color: rgba(255, 255, 255, 0.85); }
.section-dark h2 { color: var(--white); }
.section-dark .eyebrow { color: var(--brown-light); }
.section-head { max-width: 720px; margin: 0 auto 44px; text-align: center; }
.section-head p:last-child { color: var(--muted); }

/* Solutions */
.solution-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.solution-card {
  display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px; transition: box-shadow .2s, transform .2s, border-color .2s;
}
.solution-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: transparent; }
.solution-icon { width: 52px; height: 52px; border-radius: 12px; background: rgba(10, 155, 245, 0.1); display: grid; place-items: center; margin-bottom: 18px; }
.solution-icon svg { width: 28px; height: 28px; fill: none; stroke: var(--blue); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.solution-card h3 { margin-bottom: 2px; }
.solution-sub { font-size: 0.8rem; color: var(--brown); font-weight: 600; margin-bottom: 12px; }
.solution-card p { color: var(--muted); font-size: 0.95rem; }
.solution-card ul { margin: 0 0 18px; padding: 0; list-style: none; font-size: 0.92rem; flex: 1; }
.solution-card li { padding: 6px 0 6px 22px; position: relative; border-top: 1px dashed var(--line); }
.solution-card li::before { content: ""; position: absolute; left: 2px; top: 14px; width: 8px; height: 8px; border-radius: 2px; background: var(--brown); }

/* Business services */
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.service-card {
  background: var(--white); border-radius: var(--radius); padding: 26px 22px;
  display: flex; flex-direction: column; box-shadow: 0 1px 0 var(--line);
  transition: box-shadow .2s, transform .2s;
}
.service-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.service-card p { color: var(--muted); font-size: 0.93rem; flex: 1; }
.service-icon { width: 48px; height: 48px; border-radius: 12px; background: rgba(151, 116, 83, 0.12); display: grid; place-items: center; margin-bottom: 14px; }
.service-icon svg { width: 26px; height: 26px; fill: none; stroke: var(--brown); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.service-card .service-group { flex: none; font: 600 0.72rem/1 var(--font-brand); color: var(--blue); text-transform: uppercase; letter-spacing: 0.18em; margin-bottom: 8px; }
.service-link { font-weight: 600; font-size: 0.92rem; margin-top: auto; }
.service-link::after { content: " →"; }
.service-card-combo { background: var(--navy); color: rgba(255, 255, 255, 0.85); }
.service-card-combo h3 { color: var(--white); }
.service-card-combo .service-group { color: var(--brown-light); }
.service-card-combo ul { list-style: none; margin: 4px 0 20px; padding: 0; flex: 1; font-size: 0.93rem; }
.service-card-combo li { padding: 6px 0 6px 22px; position: relative; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.service-card-combo li::before { content: "✓"; position: absolute; left: 0; color: var(--blue); font-weight: 700; }
.service-note { text-align: center; color: var(--muted); font-size: 0.85rem; margin: 28px 0 0; }

/* Amenities */
.amenity-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.amenity-grid li {
  background: var(--tint); border-radius: 12px; padding: 18px 16px;
  font-weight: 500; font-size: 0.95rem; line-height: 1.45; color: var(--navy);
  display: flex; flex-direction: column; gap: 12px; align-items: center; text-align: center;
  padding: 24px 14px; transition: background .2s, transform .2s;
}
.amenity-grid li:hover { background: var(--white); transform: translateY(-3px); box-shadow: var(--shadow); }
.amenity-icon {
  flex: none; width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--white); box-shadow: inset 0 0 0 2px rgba(10, 155, 245, 0.18);
}
.amenity-icon svg { width: 28px; height: 28px; fill: none; stroke: var(--blue); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.amenity-grid li:nth-child(even) .amenity-icon { box-shadow: inset 0 0 0 2px rgba(151, 116, 83, 0.22); }
.amenity-grid li:nth-child(even) .amenity-icon svg { stroke: var(--brown); }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 14px; }
.gallery figure { margin: 0; border-radius: var(--radius); overflow: hidden; position: relative; background: var(--navy-2); }
.gallery figure::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 45%;
  background: linear-gradient(to top, rgba(11, 37, 64, 0.6), transparent); pointer-events: none;
}
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.gallery figure:hover img { transform: scale(1.05); }
.gallery figcaption {
  position: absolute; left: 16px; bottom: 14px; z-index: 1; color: var(--white);
  font-weight: 600; font-size: 0.95rem;
}
.g-big { grid-column: span 2; grid-row: span 2; }
.g-wide { grid-column: span 2; }

/* Steps */
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.steps li { counter-increment: step; position: relative; padding: 26px 22px 22px; border-radius: var(--radius); border: 1px solid var(--line); }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block; font: 700 2.2rem/1 var(--font-brand); color: var(--blue); margin-bottom: 14px;
}
.steps strong { display: block; color: var(--navy); font-size: 1.1rem; margin-bottom: 4px; }
.steps span { color: var(--muted); font-size: 0.95rem; }

/* Location */
.location { display: grid; grid-template-columns: 1fr 1.15fr; gap: 40px; align-items: center; }
.location-list { display: grid; gap: 14px; margin-top: 22px; }
.location-card {
  background: var(--white); border: 2px solid transparent; border-radius: var(--radius);
  padding: 18px 20px; box-shadow: 0 1px 0 var(--line); transition: border-color .2s, box-shadow .2s;
}
.location-card.is-active { border-color: var(--blue); box-shadow: var(--shadow); }
.location-card h3 { margin-bottom: 4px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.location-address { font-weight: 500; color: var(--muted); font-size: 0.93rem; margin-bottom: 10px; }
.location-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.location-map-btn {
  font: 600 0.88rem var(--font-body); color: var(--navy); background: var(--tint);
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; cursor: pointer;
}
.location-card.is-active .location-map-btn { background: var(--blue); border-color: var(--blue); color: var(--white); }
.location-map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); min-height: 380px; background: var(--line); }
.location-map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative;
  font-weight: 600; color: var(--navy);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 14px; font-size: 1.6rem; color: var(--blue); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 18px; margin: 0; }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1.35fr; gap: 48px; align-items: center; }
.contact-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 16px; align-items: baseline; }
.contact-list span { min-width: 70px; color: rgba(255, 255, 255, 0.6); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; }
.contact-list a { color: var(--white); font-weight: 600; font-size: 1.1rem; }
.contact-form { background: var(--white); color: var(--ink); border-radius: var(--radius); padding: 24px; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25); }
.field { margin-bottom: 12px; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field-row-3 { grid-template-columns: 1.3fr 1fr 0.8fr; }
.field label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--navy); margin-bottom: 4px; }
.field label span { color: #d64545; }
.field input, .field select, .field textarea {
  width: 100%; height: 42px; padding: 8px 12px; font: inherit; font-size: 0.92rem; color: var(--ink);
  border: 1px solid #cfd7e2; border-radius: 10px; background: var(--white);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { height: auto; resize: vertical; }
.contact-form .btn-block { margin-top: 4px; }
.form-status:empty { display: none; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(10, 155, 245, 0.18); }
.field.has-error input { border-color: #d64545; }
.field-error { color: #d64545; font-size: 0.82rem; margin: 4px 0 0; min-height: 0; }
.form-status { margin: 14px 0 0; font-size: 0.92rem; font-weight: 500; }
.form-status.ok { color: #1c8a4a; }
.form-status.err { color: #d64545; }

/* Footer */
.site-footer { background: #071a2e; color: rgba(255, 255, 255, 0.7); font-size: 0.92rem; padding-top: 56px; }
.footer-inner { display: grid; grid-template-columns: 1fr 1fr 1.1fr 1.6fr; gap: 40px; padding-bottom: 36px; }
.site-footer h3 { color: var(--white); font-size: 1rem; margin-bottom: 14px; }
.site-footer a { color: rgba(255, 255, 255, 0.85); }
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-col p { margin: 0; }
.footer-contact { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.footer-contact li { display: flex; gap: 12px; align-items: flex-start; }
.footer-contact svg {
  flex: none; width: 34px; height: 34px; padding: 8px; border-radius: 50%;
  background: rgba(10, 155, 245, 0.14); fill: none; stroke: var(--blue);
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.footer-contact span, .footer-contact a { padding-top: 6px; line-height: 1.5; }
.footer-contact a { color: var(--white); font-weight: 600; }
.footer-contact strong { display: block; color: var(--white); font-weight: 600; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); padding: 18px 20px; font-size: 0.85rem; }
.footer-bottom p { margin: 0; }

/* Floating actions */
.float-actions { position: fixed; right: 18px; bottom: 18px; z-index: 60; display: flex; flex-direction: column; gap: 10px; }
.float-btn {
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
  color: var(--white); font-weight: 700; font-size: 0.85rem; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}
.float-btn:hover { text-decoration: none; transform: scale(1.05); }
.float-zalo { background: #0068ff; }
.float-call { background: var(--blue); animation: pulse 2s infinite; }
.float-call svg { width: 24px; height: 24px; fill: none; stroke: var(--white); stroke-width: 2; stroke-linejoin: round; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(10, 155, 245, 0.5); }
  70% { box-shadow: 0 0 0 14px rgba(10, 155, 245, 0); }
  100% { box-shadow: 0 0 0 0 rgba(10, 155, 245, 0); }
}

/* Responsive */
@media (max-width: 1280px) {
  .header-hotline { display: none; }
  .main-nav { gap: 18px; }
}
@media (max-width: 1100px) {
  .solution-grid, .service-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .amenity-grid { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1024px) {
  :root { --header-h: 66px; }
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--line);
    padding: 8px 20px 20px; display: none; box-shadow: var(--shadow);
  }
  .nav-open .main-nav { display: flex; }
  .main-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .main-nav .nav-cta { margin-top: 14px; border-bottom: 0; padding: 12px; }
  .hero { padding-top: 40px; }
  .hero-inner, .location, .contact { grid-template-columns: 1fr; }
  .hero-slider { aspect-ratio: 16 / 10; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .g-big, .g-wide { grid-column: span 2; }
  .footer-inner { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .section { padding: 56px 0; }
  .container { padding: 0 16px; }
  .brand-name { font-size: 1.3rem; }
  .brand img { width: 40px; height: 40px; }
  .solution-grid, .service-grid, .steps, .field-row { grid-template-columns: 1fr; }
  .amenity-grid { grid-template-columns: 1fr 1fr; }
  .contact-form { padding: 18px; }
  .field-row-3 { grid-template-columns: 1fr 1fr; }
  .field-row-3 .field:first-child { grid-column: span 2; }
  .float-btn { width: 48px; height: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}
