/* AGST Capital Advisory Services — site styles
   Design: Stitch "AGST Navy & Gold" (navy for trust, gold for prosperity, emerald for growth) */

:root {
  --navy: #0B2A4A;
  --navy-deep: #071D33;
  --navy-soft: #163A60;
  --gold: #C8962E;
  --gold-light: #E0B354;
  --gold-ink: #8A6212;        /* gold dark enough for small text on light backgrounds */
  --green: #1E7A55;
  --green-tint: #EEF6F1;
  --ivory: #FAF7F0;
  --ivory-deep: #F4EFE3;
  --white: #FFFFFF;
  --ink: #1F2937;
  --ink-soft: #4B5563;
  --line: #E6DFD1;

  --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 8px;
  --shadow-sm: 0 1px 2px rgba(11, 42, 74, .06);
  --shadow-md: 0 10px 30px -12px rgba(11, 42, 74, .22);
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --section-y: clamp(64px, 9vw, 112px);
  --header-h: 72px;

  --jaali: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Cg fill='none' stroke='%23C8962E' stroke-width='1'%3E%3Cpath d='M24 0 48 24 24 48 0 24Z'/%3E%3Ccircle cx='24' cy='24' r='6'/%3E%3Ccircle cx='0' cy='0' r='6'/%3E%3Ccircle cx='48' cy='0' r='6'/%3E%3Ccircle cx='0' cy='48' r='6'/%3E%3Ccircle cx='48' cy='48' r='6'/%3E%3C/g%3E%3C/svg%3E");
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-serif); color: var(--navy); line-height: 1.2; margin: 0; font-weight: 700; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
strong { font-weight: 700; color: var(--navy); }
::selection { background: var(--gold); color: var(--white); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section-y) 0; position: relative; }
.section--white { background: var(--white); }
.section--ivory { background: var(--ivory); }
.section--navy { background: var(--navy); color: rgba(255, 255, 255, .88); overflow: hidden; }
.section--navy h2, .section--navy h3 { color: var(--white); }
.section--navy strong { color: var(--gold-light); }

.jaali::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--jaali);
  background-size: 48px 48px;
  opacity: .07;
  pointer-events: none;
}
.section--ivory.jaali::before { opacity: .05; }
.jaali > .container { position: relative; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--navy); color: var(--white); padding: 10px 16px; border-radius: var(--radius);
  text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 12px; }

.icon {
  width: 24px; height: 24px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round;
}
.icon--sm { width: 20px; height: 20px; }

/* ---------- Section headings ---------- */
.rule { display: block; width: 48px; height: 3px; border-radius: 3px; background: var(--gold); margin-bottom: 20px; }
.rule--green { background: var(--green); }
.section-head { max-width: 780px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head--center .rule { margin-left: auto; margin-right: auto; }
.section-title { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.6rem); letter-spacing: -.01em; }
.section-head p { margin-top: 18px; color: var(--ink-soft); font-size: 1.0625rem; }
.section--navy .section-head p { color: rgba(255, 255, 255, .82); }

.eyebrow {
  display: block;
  font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold-ink);
  margin-bottom: 14px;
}
.eyebrow--green { color: var(--green); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 247, 240, .96);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid rgba(217, 210, 197, .6);
}
.header-inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.brand-mark {
  width: 42px; height: 42px; flex: none; border-radius: var(--radius);
  background: var(--navy); border: 1px solid rgba(200, 150, 46, .5);
  display: grid; place-items: center;
  font-family: var(--font-serif); font-weight: 700; font-size: 1.25rem; color: var(--gold);
  box-shadow: inset 0 -3px 0 rgba(200, 150, 46, .35);
}
.brand-name { font-family: var(--font-serif); font-weight: 700; font-size: 1.2rem; color: var(--navy); line-height: 1.15; letter-spacing: -.01em; }
.brand-name span { font-family: var(--font-sans); font-weight: 600; font-size: 1rem; letter-spacing: 0; color: rgba(11, 42, 74, .9); }

.nav { display: none; align-items: center; gap: 28px; }
.nav a {
  text-decoration: none; font-size: .9rem; font-weight: 500; color: var(--ink); line-height: 1.35;
  transition: color .15s ease;
}
.nav a:hover { color: var(--gold-ink); }
.nav .nav-cta {
  background: var(--navy); color: var(--white); padding: 10px 18px; border-radius: 999px; font-weight: 600;
  white-space: nowrap; transition: background .15s ease;
}
.nav .nav-cta:hover { background: var(--navy-soft); color: var(--white); }

.menu-toggle {
  display: inline-grid; place-items: center; width: 44px; height: 44px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); color: var(--navy); cursor: pointer;
}
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

.mobile-nav { border-top: 1px solid var(--line); background: var(--ivory); box-shadow: var(--shadow-md); }
.mobile-nav[hidden] { display: none; }
.mobile-nav ul { padding: 8px var(--gutter) 16px; }
.mobile-nav a {
  display: block; padding: 14px 0; text-decoration: none; font-weight: 500; color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.mobile-nav li:last-child a { border-bottom: 0; color: var(--gold-ink); font-weight: 700; }

@media (min-width: 1180px) {
  .nav { display: flex; }
  .menu-toggle, .mobile-nav { display: none !important; }
  .nav a:not(.nav-cta) { max-width: 150px; }
}
@media (max-width: 420px) {
  .brand-name { font-size: 1.05rem; }
  .brand-name span { font-size: .9rem; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--navy); color: var(--white);
  min-height: clamp(520px, 78vh, 680px);
  display: flex; align-items: center;
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(11, 42, 74, .78) 0%, rgba(11, 42, 74, .72) 45%, rgba(7, 29, 51, .94) 100%);
}
.hero.jaali::before { z-index: 1; opacity: .06; }
.hero-content { position: relative; z-index: 2; text-align: center; padding-top: 72px; padding-bottom: 80px; }
.hero .rule { margin: 0 auto 26px; width: 64px; }
.hero h1 {
  color: var(--white);
  font-size: clamp(2.3rem, 1.4rem + 4.4vw, 4.25rem);
  letter-spacing: -.02em; line-height: 1.1;
  text-shadow: 0 2px 24px rgba(0, 0, 0, .25);
}
.tagline {
  margin-top: 18px;
  font-family: var(--font-serif); font-style: italic; font-weight: 500;
  font-size: clamp(1.15rem, .9rem + 1.3vw, 1.85rem);
  color: var(--gold-light);
}
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 12px; margin-top: 40px; max-width: 900px; margin-left: auto; margin-right: auto; }
.chip {
  padding: 8px 16px; border-radius: 999px;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .22);
  font-size: .875rem; font-weight: 500; color: rgba(255, 255, 255, .95);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}

/* ---------- Intro ---------- */
.split { display: grid; gap: clamp(36px, 5vw, 64px); align-items: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: 7fr 5fr; }
  .split--reverse { grid-template-columns: 5fr 7fr; }
  .split--even { grid-template-columns: 1fr 1fr; }
}
.prose { margin-top: 24px; }
.prose p { color: var(--ink-soft); font-size: 1.0625rem; }
.prose p + p { margin-top: 18px; }
.prose strong { color: var(--navy); }

.photo {
  margin: 0;
  background: var(--white); padding: 8px; border-radius: 12px;
  border: 1px solid var(--line); box-shadow: var(--shadow-md);
}
.photo img { border-radius: 6px; width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; }
.photo--wide img { aspect-ratio: 16 / 10; }

/* ---------- Funding cards ---------- */
.cards-2 { display: grid; gap: 24px; }
@media (min-width: 860px) { .cards-2 { grid-template-columns: 1fr 1fr; gap: 32px; } }
.card {
  background: var(--ivory); border: 1px solid var(--line); border-radius: 12px;
  padding: clamp(24px, 3.5vw, 40px);
  position: relative; overflow: hidden;
}
.card--accent::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--gold), var(--gold-light)); }
.card-title { display: flex; align-items: center; gap: 14px; font-size: 1.45rem; }
.icon-box {
  width: 44px; height: 44px; flex: none; display: grid; place-items: center;
  border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); color: var(--gold);
}
.card > p { margin-top: 16px; color: var(--ink-soft); }
.card hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0 20px; }

.checklist li { display: flex; gap: 12px; align-items: flex-start; padding: 7px 0; font-weight: 500; color: var(--ink); }
.checklist .icon { color: var(--gold); margin-top: 2px; }
.checklist strong { font-weight: 600; }
.checklist--green .icon { color: var(--green); }
@media (min-width: 640px) { .checklist--cols { display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; } }

/* ---------- Facilities (navy band) ---------- */
.facilities { display: grid; gap: 24px; }
@media (min-width: 960px) { .facilities { grid-template-columns: 2fr 1fr; } }
.panel {
  border-radius: 12px; padding: clamp(22px, 3vw, 36px);
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .12);
  position: relative;
}
.panel--gold { border-color: rgba(200, 150, 46, .75); background: rgba(200, 150, 46, .05); }
.panel-title { display: flex; align-items: center; gap: 12px; font-size: 1.35rem; color: var(--gold-light) !important; margin-bottom: 22px; }
.panel-title .icon { color: var(--gold); }
.tile-grid { display: grid; gap: 12px; }
@media (min-width: 520px) { .tile-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .tile-grid--3 { grid-template-columns: repeat(3, 1fr); } }
.facility {
  display: flex; align-items: center; gap: 12px; min-height: 60px;
  padding: 12px 16px; border-radius: 6px;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .1);
  font-size: .95rem; font-weight: 500; color: var(--white); line-height: 1.4;
}
.facility::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); flex: none; }
.panel--gold .tile-grid { grid-template-columns: 1fr; }
.panel--gold .facility { background: rgba(200, 150, 46, .1); border-color: rgba(200, 150, 46, .35); }
.panel--gold .facility strong { color: var(--gold-light); font-weight: 600; }
.facilities-note { max-width: 820px; margin: clamp(32px, 4vw, 48px) auto 0; text-align: center; color: rgba(255, 255, 255, .82); font-size: 1.0625rem; }

/* ---------- Credit rating ---------- */
.credit { display: grid; gap: clamp(32px, 5vw, 56px); }
@media (min-width: 960px) { .credit { grid-template-columns: 5fr 7fr; align-items: start; } }
.credit-intro .section-title { margin-bottom: 18px; }
.credit-intro p { color: var(--ink-soft); font-size: 1.0625rem; }
.credit-intro hr { border: 0; border-top: 1px solid var(--line); margin: 28px 0 20px; }
.service-tiles { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 480px) { .service-tiles { grid-template-columns: 1fr 1fr; } }
@media (min-width: 700px) { .service-tiles { grid-template-columns: repeat(3, 1fr); } }
.service-tile {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 18px; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 14px;
  font-weight: 600; font-size: .95rem; color: var(--navy); line-height: 1.4;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.service-tile .icon { color: var(--gold); }
.service-tile:hover { border-color: rgba(200, 150, 46, .6); transform: translateY(-2px); box-shadow: var(--shadow-md); }
@media (prefers-reduced-motion: reduce) { .service-tile:hover { transform: none; } }

/* ---------- Agri ---------- */
.callout {
  margin-top: 28px; padding: 18px 22px; border-left: 3px solid var(--green);
  background: var(--green-tint); border-radius: 0 var(--radius) var(--radius) 0; color: var(--ink);
}
.content-block .section-title { margin-bottom: 18px; }
.content-block > p { color: var(--ink-soft); font-size: 1.0625rem; }
.content-block hr { border: 0; border-top: 1px solid var(--line); margin: 26px 0 18px; }

/* ---------- Real estate ---------- */
.boxlist { display: grid; gap: 12px; }
@media (min-width: 560px) { .boxlist { grid-template-columns: 1fr 1fr; } .boxlist li:last-child:nth-child(odd) { grid-column: 1 / -1; } }
.boxlist li {
  display: flex; align-items: center; gap: 12px;
  background: var(--white); border: 1px solid var(--line); border-radius: 6px;
  padding: 14px 16px; font-weight: 500; line-height: 1.4;
}
.boxlist .icon { color: var(--gold); }
@media (max-width: 899px) { .order-first-mobile { order: -1; } }

/* ---------- Why AGST ---------- */
.why-grid { display: grid; gap: 20px; }
@media (min-width: 640px) { .why-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) {
  .why-grid { grid-template-columns: repeat(6, 1fr); gap: 24px; }
  .why-grid > * { grid-column: span 2; }
  .why-grid > :nth-child(4), .why-grid > :nth-child(5) { grid-column: span 3; }
}
@media (min-width: 640px) and (max-width: 999px) { .why-grid > :last-child { grid-column: 1 / -1; } }
.why-card {
  background: var(--ivory); border: 1px solid var(--line); border-radius: 12px;
  padding: clamp(24px, 3vw, 32px);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.why-card:hover { border-color: rgba(200, 150, 46, .55); box-shadow: var(--shadow-md); }
.why-card .icon-box { width: 48px; height: 48px; margin-bottom: 22px; }
.why-card h3 { font-size: 1.25rem; margin-bottom: 10px; }
.why-card p { color: var(--ink-soft); }

/* ---------- CTA + Contact ---------- */
.cta { text-align: center; }
.cta .container { position: relative; }
.cta .rule { margin: 0 auto 24px; width: 64px; }
.cta h2 { font-size: clamp(1.9rem, 1.2rem + 3vw, 3rem); max-width: 760px; margin: 0 auto; }
.cta-text { max-width: 820px; margin: 22px auto 0; font-size: clamp(1.02rem, .95rem + .35vw, 1.2rem); color: rgba(255, 255, 255, .88); }
.cta-text strong { font-weight: 600; }

.contact-card {
  margin: clamp(36px, 5vw, 52px) auto 0; max-width: 760px;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(200, 150, 46, .45); border-radius: 14px;
  padding: clamp(22px, 3.5vw, 32px);
  display: grid; gap: 18px; justify-items: center;
}
.contact-person { display: flex; align-items: center; gap: 12px; font-family: var(--font-serif); font-size: 1.5rem; font-weight: 700; color: var(--white); }
.contact-person .icon-box { background: rgba(200, 150, 46, .15); border-color: rgba(200, 150, 46, .5); }
.contact-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; width: 100%; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 12px 22px; border-radius: 999px;
  font-weight: 600; font-size: 1rem; text-decoration: none; line-height: 1.3;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
  overflow-wrap: anywhere;
}
.btn--gold { background: var(--gold); color: var(--navy-deep); }
.btn--gold:hover { background: var(--gold-light); }
.btn--outline { border: 1px solid rgba(255, 255, 255, .45); color: var(--white); }
.btn--outline:hover { border-color: var(--gold-light); color: var(--gold-light); }
@media (max-width: 520px) { .contact-links .btn { width: 100%; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: rgba(255, 255, 255, .8); border-top: 3px solid var(--gold); text-align: center; padding: clamp(48px, 6vw, 64px) 0 32px; }
.footer-name { font-family: var(--font-serif); font-size: clamp(1.4rem, 1.1rem + 1vw, 1.75rem); font-weight: 700; color: var(--white); }
.footer-tagline { margin-top: 6px; font-family: var(--font-serif); font-style: italic; color: var(--gold-light); font-size: 1.1rem; }
.footer-line { margin-top: 14px; font-weight: 700; color: var(--white); }
.footer-contact { margin-top: 20px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; font-size: .95rem; }
.footer-contact a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: rgba(255, 255, 255, .85); }
.footer-contact a:hover { color: var(--gold-light); }
.footer-contact .icon { color: var(--gold); }
.disclaimer {
  margin-top: 32px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: .82rem; font-style: italic; line-height: 1.65; color: rgba(255, 255, 255, .6);
  max-width: 980px; margin-left: auto; margin-right: auto;
}
