/* San Antonio Marketing Enterprises Inc. — site styles
   Palette taken from the original same.com.ph theme. */

:root {
  --red: #e70810;
  --red-dark: #ba0d12;
  --slate: #323844;
  --slate-2: #404756;
  --slate-deep: #262b35;
  --muted: #7c8392;
  --muted-2: #9fa7b8;
  --line: #e2e3e6;
  --soft: #f5f5f6;
  --white: #ffffff;
  --text: #2b303b;

  --font-head: "Barlow", "Arial Narrow", Arial, sans-serif;
  --font-body: "Inter", Arial, Helvetica, sans-serif;

  --wrap: 1180px;
  --radius: 6px;
  --shadow: 0 10px 30px rgba(38, 43, 53, 0.08);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font: 400 16px/1.7 var(--font-body);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-dark); }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--slate);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 700;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  background: var(--red); color: #fff; padding: 8px 14px; border-radius: var(--radius);
}
.skip-link:focus { left: 8px; color: #fff; }

:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--slate-deep);
  color: var(--muted-2);
  font-size: 0.85rem;
}
.topbar .wrap {
  display: flex; flex-wrap: wrap; gap: 4px 24px;
  justify-content: space-between; align-items: center;
  padding-top: 8px; padding-bottom: 8px;
}
.topbar a { color: #fff; }
.topbar a:hover { color: var(--muted-2); }
.topbar-contacts { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.topbar-label { color: var(--muted-2); margin-right: 4px; }
@media (max-width: 719px) { .topbar-tagline { display: none; } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(150%) blur(6px);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 84px;
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--slate); }
.brand img { width: 120px; height: auto; }
.brand-name {
  font-family: var(--font-head); font-weight: 700; font-size: 0.82rem;
  letter-spacing: 0.04em; text-transform: uppercase;
  line-height: 1.25; color: var(--red); max-width: 12em;
  padding-left: 12px; border-left: 1px solid var(--line);
}
@media (max-width: 380px) { .brand-name { display: none; } }
@media (min-width: 900px) and (max-width: 1100px) { .brand-name { display: none; } }

.nav-toggle {
  display: none;
  background: none; border: 1px solid var(--line); border-radius: var(--radius);
  width: 44px; height: 44px; cursor: pointer; padding: 0;
  align-items: center; justify-content: center;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block; width: 20px; height: 2px; background: var(--slate);
  position: relative; transition: transform .2s, background .2s;
}
.nav-toggle span::before,
.nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.main-nav a {
  display: block; padding: 10px 14px;
  font-family: var(--font-head); font-weight: 600; font-size: 1.02rem;
  letter-spacing: 0.02em; color: var(--slate); border-radius: var(--radius);
}
.main-nav a:hover { color: var(--red); }
.main-nav a[aria-current="page"] { color: var(--red); }
.main-nav .btn { margin-left: 10px; padding: 10px 20px; color: #fff; }
.main-nav .btn:hover { color: #fff; }

@media (max-width: 899px) {
  .nav-toggle { display: inline-flex; }
  .main-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    display: none;
  }
  .nav-open .main-nav { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; padding: 8px 16px 16px; gap: 0; }
  .main-nav a { padding: 12px 4px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .main-nav .btn { margin: 14px 0 0; text-align: center; border-radius: var(--radius); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--red); color: #fff;
  font-family: var(--font-head); font-weight: 700; font-size: 1.02rem;
  letter-spacing: 0.03em;
  padding: 14px 28px; border-radius: var(--radius);
  border: 2px solid var(--red);
  transition: background .2s, border-color .2s, color .2s;
}
.btn:hover { background: var(--red-dark); border-color: var(--red-dark); color: #fff; }
.btn-ghost { background: transparent; border-color: rgba(255,255,255,.7); }
.btn-ghost:hover { background: #fff; border-color: #fff; color: var(--slate); }
.btn-light { background: #fff; border-color: #fff; color: var(--red); }
.btn-light:hover { background: var(--slate); border-color: var(--slate); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.link-arrow {
  font-family: var(--font-head); font-weight: 700; letter-spacing: 0.03em;
  display: inline-flex; align-items: center; gap: 6px;
}
.link-arrow::after { content: "\2192"; transition: transform .2s; }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; overflow: hidden;
  color: #fff; background: var(--slate-deep);
  min-height: min(82vh, 720px);
  display: flex; align-items: center;
}
.hero-slides { position: absolute; inset: 0; }
.hero-slides img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0;
  animation: heroFade 30s infinite;
}
.hero-slides img:nth-child(1) { animation-delay: 0s; }
.hero-slides img:nth-child(2) { animation-delay: 6s; }
.hero-slides img:nth-child(3) { animation-delay: 12s; }
.hero-slides img:nth-child(4) { animation-delay: 18s; }
.hero-slides img:nth-child(5) { animation-delay: 24s; }
@keyframes heroFade {
  0% { opacity: 0; transform: scale(1.06); }
  4% { opacity: 1; }
  20% { opacity: 1; }
  26% { opacity: 0; transform: scale(1); }
  100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-slides img { animation: none; }
  .hero-slides img:first-child { opacity: 1; }
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(38,43,53,.92) 0%, rgba(38,43,53,.75) 45%, rgba(38,43,53,.25) 100%);
}
.hero .wrap { position: relative; z-index: 1; padding-top: 72px; padding-bottom: 72px; }
.hero h1 { color: #fff; max-width: 15em; }
.hero h1 em { font-style: normal; color: var(--red); }
.hero p { font-size: 1.15rem; max-width: 36em; color: #e4e6ea; margin-bottom: 1.8em; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-head); font-weight: 700; font-size: 0.9rem;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--red); margin-bottom: 14px;
}
.eyebrow::before {
  content: ""; display: inline-block; width: 28px; height: 2px;
  background: currentColor; vertical-align: middle; margin-right: 10px;
}
.hero .eyebrow, .page-hero .eyebrow, .cta-band .eyebrow, .section-dark .eyebrow { color: #fff; }
.section-dark .eyebrow::before { background: var(--red); }
.hero .eyebrow::before, .page-hero .eyebrow::before { background: var(--red); }

/* ---------- Stats strip ---------- */
.stats { background: var(--red); color: #fff; }
.stats ul {
  list-style: none; margin: 0 auto; padding-top: 0; padding-bottom: 0;
  display: grid; grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 820px) { .stats ul { grid-template-columns: repeat(4, 1fr); } }
.stats li { padding: 26px 16px; text-align: center; border-right: 1px solid rgba(255,255,255,.2); }
.stats li:last-child { border-right: 0; }
@media (max-width: 819px) {
  .stats li:nth-child(2n) { border-right: 0; }
  .stats li:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.2); }
}
.stats strong {
  display: block; font-family: var(--font-head); font-weight: 800;
  font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1.1;
}
.stats span { font-size: 0.9rem; letter-spacing: 0.04em; color: #ffe1e2; }

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
@media (max-width: 719px) { .section { padding: 56px 0; } }
.section-soft { background: var(--soft); }
.section-dark { background: var(--slate); color: #d7dae0; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.section-dark .section-head p { color: var(--muted-2); }

.split {
  display: grid; gap: 40px; align-items: center;
}
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: 64px; }
  .split.wide-left { grid-template-columns: 1.3fr 1fr; }
  .split.wide-right { grid-template-columns: 1fr 1.3fr; }
}
.split.top { align-items: start; }
.lead { font-size: 1.15rem; color: var(--slate-2); }
.muted { color: var(--muted); }

.figure { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.figure img { width: 100%; }
.figure-caption { font-size: 0.85rem; color: var(--muted); margin-top: 10px; }

/* ---------- Service cards ---------- */
.cards { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards.cols-3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; color: var(--text);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
a.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; color: var(--text); }
.card::before {
  content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 48px;
  background: var(--red); border-radius: var(--radius) 0 0 0;
  transition: width .25s;
}
a.card:hover::before { width: 100%; border-radius: var(--radius) var(--radius) 0 0; }
.card-num {
  font-family: var(--font-head); font-weight: 800; font-size: 0.95rem;
  color: var(--red); letter-spacing: 0.1em; margin-bottom: 8px;
}
.card h3 { margin-bottom: 0.4em; }
.card p { color: var(--muted); font-size: 0.97rem; margin-bottom: 1.2em; }
.card .link-arrow { margin-top: auto; color: var(--red); }

.card-thumbs { display: flex; gap: 6px; margin: -4px 0 18px; }
.card-thumbs img { width: 56px; height: 56px; border-radius: 4px; object-fit: cover; }

/* ---------- Why choose us ---------- */
.features { display: grid; gap: 1px; background: rgba(255,255,255,.08); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 700px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .features { grid-template-columns: repeat(4, 1fr); } }
.feature { background: var(--slate); padding: 32px 28px; }
.feature-num {
  font-family: var(--font-head); font-size: 2.6rem; font-weight: 800; line-height: 1;
  color: var(--red); margin-bottom: 16px;
}
.feature h3 { color: #fff; font-size: 1.25rem; }
.feature p { color: var(--muted-2); font-size: 0.97rem; margin: 0; }

/* ---------- Ports ---------- */
.ports-list {
  list-style: none; padding: 0; margin: 0 0 28px;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 24px;
}
@media (min-width: 560px) { .ports-list.cols-3 { grid-template-columns: repeat(3, 1fr); } }
.ports-list li {
  padding: 10px 0 10px 22px; border-bottom: 1px solid var(--line);
  font-weight: 500; color: var(--slate); position: relative;
}
.ports-list li::before {
  content: ""; position: absolute; left: 0; top: 50%; margin-top: -5px;
  width: 10px; height: 10px; border-radius: 50%;
  border: 2px solid var(--red);
}
.ports-list.plain li::before { border-color: var(--muted-2); }
.ports-map { max-width: 560px; margin: 0 auto; }

/* ---------- Logo walls ---------- */
.logo-groups { display: grid; gap: 32px; }
@media (min-width: 900px) { .logo-groups { grid-template-columns: 1fr 3fr; } }
.logo-group h3 {
  font-size: 0.95rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 18px;
}
.logo-row { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.logo-tile {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; display: flex; align-items: center; justify-content: center;
}
.logo-tile img { width: 100%; max-width: 200px; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(110deg, var(--red-dark), var(--red));
  color: #fff; padding: 64px 0;
}
.cta-band .wrap {
  display: flex; flex-wrap: wrap; gap: 24px 48px;
  align-items: center; justify-content: space-between;
}
.cta-band h2 { color: #fff; margin-bottom: 0.25em; }
.cta-band p { color: #ffe1e2; margin: 0; max-width: 40em; font-size: 1.08rem; }

/* ---------- Inner page hero ---------- */
.page-hero {
  position: relative; color: #fff; background: var(--slate-deep);
  padding: 88px 0 72px; overflow: hidden;
}
.page-hero > img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .35;
}
.page-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(38,43,53,.95), rgba(38,43,53,.55));
}
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; margin-bottom: 0.3em; }
.page-hero p { color: #d7dae0; max-width: 42em; font-size: 1.1rem; margin: 0; }

.breadcrumb { font-size: 0.85rem; color: var(--muted-2); margin-bottom: 18px; }
.breadcrumb a { color: #fff; }
.breadcrumb a:hover { color: var(--muted-2); }
.breadcrumb span[aria-hidden] { margin: 0 8px; }

/* ---------- Content blocks ---------- */
.prose h2 { margin-top: 1.4em; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--slate-2); }

.checklist { list-style: none; padding: 0; margin: 0 0 1.4em; }
.checklist li { position: relative; padding: 6px 0 6px 30px; color: var(--slate-2); }
.checklist li::before {
  content: ""; position: absolute; left: 2px; top: 13px;
  width: 12px; height: 7px;
  border-left: 2.5px solid var(--red); border-bottom: 2.5px solid var(--red);
  transform: rotate(-45deg);
}
.checklist.cols { columns: 2 260px; column-gap: 32px; }
.checklist.cols li { break-inside: avoid; }

.service-block {
  display: grid; gap: 28px;
  padding: 48px 0; border-top: 1px solid var(--line);
  scroll-margin-top: 100px;
}
.service-block:first-of-type { border-top: 0; padding-top: 0; }
@media (min-width: 900px) { .service-block { grid-template-columns: 280px 1fr; gap: 56px; } }
.service-block .card-num { font-size: 1rem; }
.service-block h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.service-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 18px; max-width: 280px; }
.service-gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 4px; }
.service-gallery.single { grid-template-columns: 1fr; max-width: 200px; }

.callout {
  background: var(--soft); border-left: 4px solid var(--red);
  padding: 24px 28px; border-radius: 0 var(--radius) var(--radius) 0;
}
.callout p:last-child { margin: 0; }

.pill-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.pill-list li {
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 16px; font-weight: 500; color: var(--slate); font-size: 0.95rem;
}

.timeline { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 26px 28px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: -8px; top: 6px;
  width: 14px; height: 14px; border-radius: 50%;
  background: #fff; border: 3px solid var(--red);
}
.timeline strong { font-family: var(--font-head); font-size: 1.3rem; color: var(--slate); display: block; }
.timeline span { color: var(--muted); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 20px; }
@media (min-width: 640px) { .contact-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .contact-grid { grid-template-columns: repeat(3, 1fr); } }
.contact-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; position: relative;
}
.contact-card::before {
  content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 48px;
  background: var(--red); border-radius: var(--radius) 0 0 0;
}
.contact-card h3 {
  font-size: 0.9rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 12px;
}
.contact-card p, .contact-card address { font-style: normal; margin: 0; font-size: 1.1rem; color: var(--slate); }
.contact-card .big { font-family: var(--font-head); font-size: 1.55rem; font-weight: 700; line-height: 1.35; }
.contact-card .big a { color: var(--slate); }
.contact-card .big a:hover { color: var(--red); }
.contact-card .link-arrow { margin-top: 14px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--slate-deep); color: var(--muted-2); font-size: 0.95rem; }
.footer-main { padding-top: 64px; padding-bottom: 40px; display: grid; gap: 36px; }
@media (min-width: 760px) { .footer-main { grid-template-columns: 1.4fr 1fr 1.3fr; } }
.site-footer h4 {
  color: #fff; font-size: 1rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 16px;
}
.site-footer a { color: #d7dae0; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { padding: 3px 0; }
.site-footer address { font-style: normal; }
.footer-logo { width: 136px; margin-bottom: 18px; background: #fff; padding: 8px 10px; border-radius: var(--radius); box-sizing: content-box; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 20px 0; font-size: 0.85rem;
}
.footer-bottom .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.contact-lines dt { color: #fff; font-weight: 600; margin-top: 10px; }
.contact-lines dt:first-child { margin-top: 0; }
.contact-lines dd { margin: 0; }
