/* Visafy — static site styles
   Colors sampled directly from the real Visafy logo (images/logo.png):
   gold #FFC609, near-black #231F20, teal #008073 */

:root {
  --gold: #ffc609;
  --black: #231f20;
  --teal: #008073;
  --grey-bg: #f4f4f2;
  --grey-border: #dcdcdc;
  --text: #2b2b2b;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Lato", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--text);
  background: #ffffff;
  line-height: 1.6;
}

h1, h2, h3, .brand-word {
  font-family: "Bebas Neue", "Helvetica Neue", Arial, sans-serif;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--black);
  margin: 0 0 0.4em;
}

h1 { font-size: 2.6rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.3rem; }

a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Top bar */
.topbar {
  background: #ffffff;
  border-bottom: 1px solid var(--grey-border);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  max-width: 1100px;
  margin: 0 auto;
}
.logo img { height: 48px; }
.topbar-contact {
  font-size: 0.95rem;
  color: var(--black);
  text-align: right;
}
.topbar-contact a { color: var(--black); font-weight: bold; }

/* Nav */
nav.mainnav {
  background: var(--gold);
}
.mainnav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mainnav ul {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
}
.mainnav a {
  display: block;
  padding: 16px 24px;
  color: #ffffff;
  font-family: "Bebas Neue", "Helvetica Neue", Arial, sans-serif;
  font-weight: normal;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 1.4rem;
  transition: background-color .2s linear, color .2s linear;
}
.mainnav a:hover,
.mainnav a:focus,
.mainnav li.active a {
  background: var(--black);
  color: var(--gold);
  text-decoration: none;
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  padding: 12px 16px;
  cursor: pointer;
  color: var(--black);
}

/* Breadcrumb-style page header (non-home pages) */
.page-header {
  background: var(--grey-bg);
  padding: 40px 0 30px;
  border-bottom: 1px solid var(--grey-border);
}
.page-header .crumb {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--black);
  margin-bottom: 8px;
}
.page-header .crumb a { color: var(--gold); }

/* Hero (home page) */
.hero {
  background: var(--grey-bg);
  padding: 30px 0;
}
.hero-inner {
  position: relative;
}
.hero-inner::after {
  content: "";
  display: block;
  height: 20px;
  background: url("../images/hero-shadow.png") no-repeat center top;
  background-size: 100% auto;
}
.hero img {
  width: 100%;
  height: 450px;
  object-fit: cover;
  display: block;
}
.hero-caption {
  position: absolute;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  background: rgba(35,31,32,0.85);
  color: #ffffff;
  padding: 14px 20px;
  text-align: center;
  max-width: 95%;
}
.hero-caption h1 {
  color: #ffffff;
  margin: 0;
  font-size: 1.5rem;
  white-space: nowrap;
}

/* Section underline heading, RSJuno-style bar */
.section-heading {
  margin-bottom: 28px;
}
.section-heading .bar {
  display: flex;
  height: 6px;
  margin-top: 10px;
}
.section-heading .bar span:first-child { flex: 1; background: var(--gold); }
.section-heading .bar span:last-child { width: 40px; background: var(--black); }

section { padding: 50px 0; }
section.alt { background: var(--grey-bg); }

/* Buttons */
.btn {
  display: inline-block;
  background: var(--gold);
  color: var(--black);
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 12px 28px;
  border-radius: 2px;
  font-size: 0.9rem;
}
.btn:hover { background: var(--black); color: var(--gold); text-decoration: none; }

/* Service cards */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 20px;
}
.service-card {
  background: #ffffff;
  border: 1px solid var(--grey-border);
  padding: 26px;
}
.service-card h3 { color: var(--black); }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.contact-details p { margin: 4px 0; }
.enquiry-cta { padding-top: 4px; }

/* Agent photo (Our Service page) */
.agent-grid {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 30px;
  align-items: start;
  margin-top: 30px;
}
.agent-photo {
  display: block;
  border: 20px solid var(--grey-border);
  line-height: 1;
}
.agent-photo img { width: 100%; display: block; }
.agent-text p { margin-top: 0; }

/* Migration Assistance */
.migration-grid {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 30px;
  align-items: start;
}
.migration-badge img { max-width: 100%; }
.migration-badge p { margin-top: 0; }

/* Footer */
footer {
  background: var(--black);
  color: #e5e5e5;
  padding: 40px 0 24px;
  margin-top: 0;
}
footer h3 { color: var(--gold); font-size: 1.1rem; }
.specialties {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px 24px;
}
.specialties li::before {
  content: "\f054";
  font-family: "FontAwesome";
  font-size: .8em;
  font-weight: 700;
  color: var(--gold);
  margin-right: 10px;
}
.footer-bottom {
  border-top: 1px solid #444;
  margin-top: 24px;
  padding-top: 16px;
  font-size: 0.85rem;
  color: #999;
  text-align: center;
}

/* Responsive */
@media (max-width: 800px) {
  .services-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .migration-grid { grid-template-columns: 1fr; }
  .migration-badge img { max-width: 200px; }
  .agent-grid { grid-template-columns: 1fr; }
  .agent-photo { max-width: 220px; }
  .specialties { grid-template-columns: 1fr 1fr; }
  .topbar-inner { flex-direction: column; align-items: flex-start; gap: 8px; }
}

@media (max-width: 700px) {
  .nav-toggle { display: block; }
  .mainnav .container { flex-wrap: wrap; }
  .mainnav ul {
    flex-direction: column;
    width: 100%;
    display: none;
  }
  .mainnav ul.open { display: flex; }
  .mainnav a { padding: 14px 24px; }
  .hero img { height: 300px; }
  .hero-caption h1 { font-size: 0.85rem; }
}
