:root{
  --brand: #FB923C;
  --brand-dark: #EA580C;
  --brand-soft: #FFF7ED;
  --bg: #fafafc;
  --panel: #ffffff;
  --text: #0b1220;
  --muted: #5b6578;
  --line: #eaecef;
  --radius: 18px;
  --shadow: 0 12px 40px rgba(2,8,23,.06);
}
*{box-sizing:border-box}
html,body{height:100%}
body{margin:0;font-family:Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial; color:var(--text); background:var(--bg); line-height:1.6}
.container{max-width:1120px;margin:0 auto;padding:1rem 1.25rem}
.bg-blob{position:fixed;top:0;left:0;width:100%;height:260px;z-index:-1;opacity:.8}
.site-header{position:sticky;top:0;background:rgba(255,255,255,.9);backdrop-filter:blur(10px);border-bottom:1px solid var(--line);z-index:10}
.header-inner{display:flex;align-items:center;gap:.75rem}
.brand{display:flex;align-items:center;gap:.6rem;text-decoration:none;color:inherit}
.logo{height:38px;width:auto;filter:drop-shadow(0 2px 6px rgba(0,0,0,.06))}
.brand-text{font-weight:800;letter-spacing:.3px}
.nav{margin-left:auto;display:flex;gap:.25rem;flex-wrap:nowrap;position:relative}
.nav a{position:relative;text-decoration:none;color:var(--muted);padding:.35rem .75rem;border-radius:12px;transition:.2s}
.nav a:hover{color:var(--text)}
.nav a::after{content:"";position:absolute;left:.6rem;right:.6rem;bottom:.35rem;height:2px;background:linear-gradient(90deg,var(--brand),var(--brand-dark));transform:scaleX(0);transform-origin:left;transition:transform .25s ease}
.nav a:hover::after, .nav a.active::after{transform:scaleX(1)}
.lang{display:flex;gap:.25rem;margin-left:.5rem}
.lang-switch{border:1px solid var(--line);background:var(--panel);border-radius:10px;padding:.35rem .55rem;cursor:pointer}
.lang-switch.active{border-color:var(--brand);box-shadow:0 0 0 3px rgba(251,146,60,.25)}
.menu-toggle{display:none;margin-left:.5rem;background:var(--panel);border:1px solid var(--line);border-radius:10px;padding:.35rem .5rem}
.hero{padding:5rem 0 3rem;display:grid;gap:1.25rem;grid-template-columns:1.2fr .8fr;align-items:center}
.badge{display:inline-block;background:var(--brand-soft);color:#8a5200;padding:.25rem .6rem;border-radius:999px;font-weight:600}
.btn{display:inline-block;background:linear-gradient(135deg,var(--brand),var(--brand-dark));color:white;font-weight:700;border:none;border-radius:999px;padding:.9rem 1.2rem;text-decoration:none;box-shadow:var(--shadow);transform:translateY(0);transition:transform .15s ease, filter .2s}
.btn:hover{transform:translateY(-1px);filter:saturate(1.1)}
.grid{display:grid;gap:1rem;grid-template-columns:repeat(auto-fit,minmax(260px,1fr))}
.card{background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);padding:1.1rem;box-shadow:var(--shadow)}
.card h3{margin-top:.2rem}
/* Make entire card clickable */
.card { position: relative; }
.card-link{
  position: absolute;
  inset: 0;
  border-radius: inherit;
  text-indent: -9999px;     /* hide link text */
}
.card-link:focus-visible{
  outline: none;
  box-shadow: 0 0 0 3px rgba(251,146,60,.35); /* brand focus ring */
  border-radius: inherit;
}
.card:hover{ transform: translateY(-1px); } /* optional micro-hover */
.icon{width:26px;height:26px;vertical-align:middle;margin-right:.35rem}
.divider{height:1px;background:var(--line);margin:1rem 0}
.kicker{text-transform:uppercase;letter-spacing:.12em;font-size:.85rem;color:#8b8f99}
.section{padding:2rem 0}
.site-footer{border-top:1px solid var(--line);margin-top:2rem;background:#fff}
.foot{display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap}
/* Tables */
.table{
  width:100%;
  border-collapse:collapse;      /* cleaner borders */
}

.table th,
.table td{
  border-bottom:1px solid var(--line);
  padding:.9rem 1.25rem;         /* base left/right spacing */
  text-align:left;
  vertical-align:middle;
}

/* Extra space between columns (Role | Type | Location) */
.table th:nth-child(1),
.table td:nth-child(1){ padding-right:2rem; }  /* Role → more space to the right */

.table th:nth-child(2),
.table td:nth-child(2){
  padding-left:2rem;              /* space on both sides of Type */
  padding-right:2rem;
  white-space:nowrap;             /* keep “Full-time”, etc. on one line */
}

.table th:nth-child(3),
.table td:nth-child(3){
  padding-left:2rem;              /* space before Location */
  white-space:nowrap;
}

/* Contact form layout */
.contact-form .form-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(240px, 1fr));
  gap: 1rem 1.25rem;                 /* row gap | column gap */
}

.contact-form .form-field label{
  display:block;
  font-weight:600;
  margin-bottom:.4rem;
  color:var(--text);
}

.contact-form input,
.contact-form textarea{
  width:100%;
  padding:.8rem .95rem;
  border:1px solid var(--line);
  border-radius:12px;
  background:#fff;
  color:var(--text);
  outline:none;
  transition:border-color .15s ease, box-shadow .15s ease;
}

.contact-form input:focus,
.contact-form textarea:focus{
  border-color:var(--brand);
  box-shadow:0 0 0 3px rgba(251,146,60,.18);
}

.contact-form textarea{
  resize:vertical;                    /* allow vertical resize only */
  min-height:140px;
}

.contact-form .form-span-2{
  grid-column:1 / -1;                 /* span both columns */
}

.contact-form .form-actions{
  display:flex;
  align-items:center;
  gap:.75rem;
}

/* Mobile: stack to one column */
@media (max-width: 720px){
  .contact-form .form-grid{
    grid-template-columns: 1fr;
  }
}

/* Scroll reveal */
.reveal{opacity:0;transform:translateY(10px);transition:opacity .6s ease, transform .6s ease}
.reveal.show{opacity:1;transform:none}
/* Mobile nav */
@media (max-width: 860px){
  .menu-toggle{display:inline-block}
  .nav{display:none;position:absolute;right:1rem;top:62px;background:#fff;border:1px solid var(--line);border-radius:12px;padding:.5rem;flex-direction:column;min-width:230px;box-shadow:var(--shadow)}
  .nav.show{display:flex}
  .hero{grid-template-columns:1fr}
}

/* ===========================
   HERO (background + spacing)
   =========================== */

/* Base hero */
.hero{
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 420px;
  display: grid;
  gap: 1rem;                            /* comfortable spacing */
  grid-template-columns: 1.2fr .8fr;
}

/* Background image */
.hero::before{
  content:"";
  position:absolute;
  inset:0;
  background: url("../images/hero-bg.jpg") center/cover no-repeat;
  z-index:-2;
  filter: contrast(1.05) brightness(0.96);
}

/* Soft tint for contrast */
.hero::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  background:
    linear-gradient(180deg, rgba(255,255,255,.01), rgba(255,255,255,.01)),
    radial-gradient(1200px 600px at 15% 20%, rgba(251,146,60,.15), transparent 20%);
  backdrop-filter: blur(0.01px);
}

/* Optional: calm the top SVG blob */
.bg-blob{ opacity:.5; }

/* ---------- Home-specific alignment ---------- */
body[data-page="home"] .hero.container{
  padding-left: 1.5rem;                 /* slightly in from the edge */
  padding-right: .75rem;
}

body[data-page="home"] .hero{
  gap: .7rem;
  grid-template-columns: 1.2fr .8fr;
}

/* Left text block */
body[data-page="home"] .hero > .reveal:first-child{
  justify-self: start;
  text-align: left;
  margin-left: 0;                       /* remove negative offset */
  padding-left: 10px;                   /* gentle right shift */
}

/* Right card */
body[data-page="home"] .hero .card{
  justify-self: start;
  transform: translateX(-2px);          /* subtle left pull for balance */
}

/* ---------- Responsive tweaks ---------- */
@media (min-width: 1200px){
  body[data-page="home"] .hero.container{
    padding-left: 1.75rem;
    padding-right: .75rem;
  }
  body[data-page="home"] .hero{ gap: .6rem; }
}

@media (max-width: 860px){
  .hero{ min-height: 360px; grid-template-columns: 1fr; }
  .bg-blob{ opacity:.35; }
  body[data-page="home"] .hero.container{
    padding-left: 1rem;
    padding-right: 1rem;
  }
  body[data-page="home"] .hero > .reveal:first-child{
    padding-left: 0;
  }
}

/* Nudge the “Why Amytang?” card a bit left */
body[data-page="home"] .hero .card{
  transform: translateX(-18px);   /* was -2px; make more negative for more left */
}

/* Make Why Amytang rows use a 2-column layout: [icon | text] */
body[data-page="home"] .hero .card p{
  display: grid;
  grid-template-columns: 28px 1fr;   /* <- left column for icon, right column for text */
  column-gap: .75rem;
  align-items: start;
  margin: 1rem 0;
}

/* Ensure the icon sits in the first column and doesn't stretch the line height */
body[data-page="home"] .hero .card p .icon{
  width: 26px;
  height: 26px;
  margin: 0;                         /* remove extra margins if any */
  align-self: start;
}

/* Make the text occupy the second column (works if it’s inside a <span>) */
body[data-page="home"] .hero .card p > span{
  grid-column: 2;
}

/* Hanging indent for capability card titles on the Home page */
body[data-page="home"] .grid .card h3{
  display: grid;
  grid-template-columns: 26px 1fr;   /* left = icon, right = text */
  column-gap: .6rem;
  align-items: start;
  line-height: 1.25;
}

body[data-page="home"] .grid .card h3 .icon{
  width: 26px;
  height: 26px;
  margin: 0;                         /* remove any side margin */
  align-self: start;                  /* sit at top of the text block */
}

body[data-page="home"] .grid .card h3 > span{
  grid-column: 2;                     /* text goes in the right column */
  word-break: break-word;             /* safe wrap if a word is long */
}

:root{
  --brand-50:  #FFF7ED;   /* very light */
  --brand-100: #FFE7D3;
  --brand-200: #FFD6B3;
}

/* base card stays as-is */
.card{ background: var(--panel); }

/* soft brand fills */
.card--soft     { background: var(--brand-50); }
.card--soft-2   { background: var(--brand-100); }
.card--soft-3   { background: var(--brand-200); }

/* keep border subtle but visible on colored bg */
.card--soft,
.card--soft-2,
.card--soft-3{
  border-color: rgba(234, 88, 12, .18); /* brand-dark with alpha */
}

/* Soft brand tints for cards */
.card--tint1{ background: #FFE0C2; border-color: rgba(234,88,12,.3); }  /* very light orange */
.card--tint2{ background: #F8FAFF; border-color: rgba(2,8,23,.08); }      /* light blue */
.card--tint3{ background: #FFF4F6; border-color: rgba(234,88,12,.12); }   /* light rose */
.card--tint4{ background: #F4FFF8; border-color: rgba(2,8,23,.08); }      /* light mint */

/* (Nice to have) Slightly stronger hover on colored cards */
.card--tint1:hover,
.card--tint2:hover,
.card--tint3:hover,
.card--tint4:hover{
  filter: saturate(1.04) brightness(1.02);
  box-shadow: 0 16px 44px rgba(2,8,23,.08);
}

/* =====================
   TEAM PAGE STYLES
   ===================== */

.team-photo-grid{
  margin: 2rem 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.team-photo-grid img{
  width: 100%;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

/* Team Profiles */
.team-profiles{
  margin-top: 2rem;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.profile-card{
  background: white;
  padding: 1.25rem;
  border-radius: 18px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  text-align: center;
}

.profile-photo{
  width: 120px;
  height: 120px;
  border-radius: 100px;
  object-fit: cover;
  margin-bottom: .75rem;
}

.profile-card .muted{
  font-weight: 600;
}

/* === Team Section Layout === */
.team-profiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.8rem;
  margin-top: 2rem;
}

/* === Team Profile Cards === */
.profile-card {
  background: #FFF3E6; /* light orange box */
  border: 1px solid rgba(234, 88, 12, .25);
  border-radius: 18px;
  padding: 1.8rem;
  box-shadow: var(--shadow);
  text-align: left;
}

/* Team profile titles */
.profile-card h3 {
  font-weight: 700;
  margin: 1rem 0 .3rem;
  color: var(--text);
}

/* Team photos */
.profile-photo {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  margin: 0 auto 1rem;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.profile-card h3,
.profile-card .muted {
  text-align: center;
}

.profile-card p {
  text-align: left;       /* keep long text readable */
}

.hero-title-highlight {
  background: rgba(255, 255, 255, 0.55); 
  padding: 0.2rem 0.6rem;
  border-radius: 8px;
  backdrop-filter: blur(3px);
  display: inline-block;
}

.hero-sub-title-highlight {
  background: rgba(255, 255, 255, 0.9); 
  padding: 0.2rem 0.6rem;
  border-radius: 8px;
  backdrop-filter: blur(0px);
  display: inline-block;
}


body[data-page="home"] .hero .lead {
  color: #0b1220 !important;   /* your main black text color */
}

.nav a {
  display: flex;
  justify-content: center;   /* center text horizontally */
  align-items: center;       /* center vertically */
  text-align: center;        /* center multi-line text */
  white-space: nowrap;       /* prevent breaking into 2 lines */
}