/* ============================================
   Youtility Services Limited – Modern Website
   Mobile-first · Clean UX · Navy + Gold brand
   ============================================ */

:root {
  --navy: #0b1c2d;
  --navy-mid: #132a42;
  --navy-light: #1a3650;
  --gold: #c9a227;
  --gold-soft: #e8d48b;
  --gold-dark: #a8841a;
  --white: #ffffff;
  --off-white: #f7f8fa;
  --gray-100: #eef1f5;
  --gray-200: #dce2ea;
  --gray-500: #6b7a8c;
  --gray-700: #3d4a5c;
  --text: #1a2433;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(11, 28, 45, 0.08);
  --shadow-lg: 0 12px 40px rgba(11, 28, 45, 0.12);
  --transition: 0.25s ease;
  --font: "Inter", system-ui, -apple-system, sans-serif;
  --font-display: "Playfair Display", Georgia, serif;
  --header-h: 72px;
  --container: 1120px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button, input, textarea { font: inherit; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--gold);
  color: var(--navy);
  padding: 0.5rem 1rem;
  z-index: 1000;
  border-radius: 4px;
  font-weight: 600;
}
.skip-link:focus { top: 1rem; }

/* ---------- Header ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  z-index: 100;
  background: rgba(11, 28, 45, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background var(--transition), box-shadow var(--transition);
}
.header.scrolled {
  background: rgba(11, 28, 45, 0.98);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--white);
}
.logo-mark {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--navy);
  font-weight: 800;
  font-size: 1.25rem;
  display: grid;
  place-items: center;
  border-radius: 10px;
  flex-shrink: 0;
}
.logo-img{
  height:40px;
  width:auto;
  border-radius:8px;
  box-shadow: var(--shadow);
  background: linear-gradient(135deg,var(--gold),var(--gold-dark));
  padding:6px;
  transition: transform 300ms ease, box-shadow 300ms ease;
}
.logo-img:hover{transform:translateY(-3px) scale(1.02);box-shadow:var(--shadow-lg)}

/* smaller logo on narrow screens */
@media (max-width:899px){
  .logo-img{height:32px;padding:4px}
}

/* Logo fallback behavior: when image exists hide text, otherwise show text */
.logo.has-logo .logo-text { display: none; }
.logo.no-logo .logo-img { display: none; }
.logo.no-logo .logo-text { display:flex;flex-direction:column }
.logo-text { display:flex;flex-direction:column }

/* Reveal animations */
.reveal{opacity:0;transform:translateY(18px) scale(0.995);transition:opacity 600ms cubic-bezier(.2,.9,.3,1),transform 650ms cubic-bezier(.2,.9,.3,1)}
.reveal.in-view{opacity:1;transform:translateY(0) scale(1)}

/* Hero subtle animation */
.hero-content{opacity:0;transform:translateY(8px);transition:opacity 800ms ease, transform 800ms ease}
.hero-content.in-view{opacity:1;transform:none}

/* Button micro-interactions */
.btn{transition:transform 220ms cubic-bezier(.2,.9,.3,1),box-shadow 220ms ease}
.btn:hover{transform:translateY(-3px);box-shadow:0 12px 30px rgba(11,28,45,0.12)}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.logo-text strong {
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}
.logo-text span {
  font-size: 0.65rem;
  opacity: 0.75;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}
.nav a {
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  transition: color var(--transition), background var(--transition);
}
.nav a:hover,
.nav a:focus-visible {
  color: var(--white);
  background: rgba(255,255,255,0.08);
}
.nav-cta {
  background: var(--gold) !important;
  color: var(--navy) !important;
  font-weight: 600 !important;
  margin-left: 0.5rem;
}
.nav-cta:hover {
  background: var(--gold-soft) !important;
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 10px;
}
.menu-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav */
@media (max-width: 899px) {
  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--navy);
    flex-direction: column;
    align-items: stretch;
    padding: 1.5rem;
    gap: 0.25rem;
    transform: translateX(100%);
    transition: transform 0.32s cubic-bezier(.2,.9,.3,1);
    overflow-y: auto;
    display: flex;
  }
  .nav.open {
    transform: translateX(0);
  }
  .nav a {
    padding: 1rem 1.25rem;
    font-size: 1.05rem;
    border-radius: 10px;
  }
  .nav-cta {
    margin: 1rem 0 0 !important;
    text-align: center;
  }
}

@media (min-width: 900px) {
  .nav { display: flex; }
  .menu-toggle { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 3rem) 0 4rem;
  background: var(--navy);
  color: var(--white);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(201, 162, 39, 0.12), transparent 50%),
    radial-gradient(ellipse 60% 50% at 10% 80%, rgba(26, 54, 80, 0.8), transparent 50%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-mid) 100%);
  pointer-events: none;
}
.hero-bg::after {
  content: "";
  position: absolute;
  right: -10%;
  top: 10%;
  width: 55%;
  height: 80%;
  background: linear-gradient(135deg, transparent 40%, rgba(201, 162, 39, 0.04) 100%);
  border-radius: 40% 60% 50% 50%;
  border: 1px solid rgba(201, 162, 39, 0.08);
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}
.hero-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 6vw, 3.75rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}
.hero h1 span {
  color: var(--gold-soft);
}
.hero-lead {
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  color: rgba(255,255,255,0.8);
  max-width: 540px;
  margin-bottom: 2rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}
.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(0.7); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 10px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform 0.15s ease;
}
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: var(--gold);
  color: var(--navy);
}
.btn-primary:hover {
  background: var(--gold-soft);
}
.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,0.35);
  color: var(--white);
}
.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.btn-full { width: 100%; }

/* ---------- Sections ---------- */
.section {
  padding: 4.5rem 0;
}
@media (min-width: 768px) {
  .section { padding: 5.5rem 0; }
}

.section-header {
  margin-bottom: 2.5rem;
  max-width: 640px;
}
.section-header.light { color: var(--white); }
.section-header.light .section-lead { color: rgba(255,255,255,0.75); }

.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 0.65rem;
}
.section-header.light .eyebrow,
.eyebrow.light { color: var(--gold); }

.section-header h2,
.outlook-block h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin-bottom: 0.75rem;
}
.section-header.light h2 { color: var(--white); }

.section-lead {
  font-size: 1.05rem;
  color: var(--gray-500);
}

/* ---------- About ---------- */
.about { background: var(--off-white); }
.about-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 3rem;
}
@media (min-width: 800px) {
  .about-grid {
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
    align-items: start;
  }
}
.about-text p {
  margin-bottom: 1rem;
  color: var(--gray-700);
}
.about-text p:last-child { margin-bottom: 0; }

.about-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.mini-card {
  background: var(--white);
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-left: 4px solid var(--gold);
}
.mini-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.5rem;
}
.mini-card p {
  font-size: 0.9rem;
  color: var(--gray-700);
  line-height: 1.55;
}

.values-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1.25rem;
}
.values-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 560px) {
  .values-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .values-grid { grid-template-columns: repeat(5, 1fr); }
}
.value-card {
  background: var(--white);
  padding: 1.35rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.value-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.value-icon {
  color: var(--gold);
  font-size: 0.75rem;
  margin-bottom: 0.6rem;
}
.value-card h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.4rem;
}
.value-card p {
  font-size: 0.85rem;
  color: var(--gray-500);
  line-height: 1.5;
}

/* ---------- Segments ---------- */
.segments {
  background: var(--navy);
  color: var(--white);
}
.segments-grid {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 600px) {
  .segments-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .segments-grid { grid-template-columns: repeat(3, 1fr); }
}
.segment-card {
  background: var(--navy-light);
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.06);
  transition: border-color var(--transition), transform var(--transition);
}
.segment-card:hover {
  border-color: rgba(201, 162, 39, 0.35);
  transform: translateY(-4px);
}
.segment-num {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}
.segment-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.65rem;
  line-height: 1.3;
}
.segment-card p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.72);
  line-height: 1.55;
}

/* ---------- Advantage ---------- */
.advantage { background: var(--white); }
.advantage-grid {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 600px) {
  .advantage-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .advantage-grid { grid-template-columns: repeat(3, 1fr); }
}
.adv-card {
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--off-white);
  border: 1px solid var(--gray-100);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.adv-card:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow);
}
.adv-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.5rem;
}
.adv-card p {
  font-size: 0.9rem;
  color: var(--gray-500);
  line-height: 1.55;
}

/* ---------- CSR ---------- */
.csr {
  background: var(--navy-mid);
  color: var(--white);
}
.csr-grid {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 600px) {
  .csr-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .csr-grid { grid-template-columns: repeat(4, 1fr); }
}
.csr-card {
  background: rgba(255,255,255,0.04);
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.08);
  transition: background var(--transition);
}
.csr-card:hover {
  background: rgba(255,255,255,0.08);
}
.csr-num {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.06em;
  display: block;
  margin-bottom: 0.6rem;
}
.csr-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.csr-card p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.5;
}

/* ---------- Leadership ---------- */
.leadership { background: var(--off-white); }
.leadership-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--white);
  -webkit-overflow-scrolling: touch;
}
.leadership-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  min-width: 640px;
}
.leadership-table th,
.leadership-table td {
  padding: 1rem 1.15rem;
  text-align: left;
  border-bottom: 1px solid var(--gray-100);
}
.leadership-table th {
  background: var(--navy);
  color: var(--white);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.leadership-table tbody tr:last-child td { border-bottom: none; }
.leadership-table tbody tr:hover td { background: var(--gray-100); }
.leadership-table td:first-child {
  font-weight: 600;
  color: var(--navy);
}

/* Card-style table on small screens */
@media (max-width: 640px) {
  .leadership-table { min-width: 0; }
  .leadership-table thead { display: none; }
  .leadership-table,
  .leadership-table tbody,
  .leadership-table tr,
  .leadership-table td {
    display: block;
    width: 100%;
  }
  .leadership-table tr {
    padding: 1rem 1.15rem;
    border-bottom: 1px solid var(--gray-200);
  }
  .leadership-table tr:last-child { border-bottom: none; }
  .leadership-table td {
    padding: 0.25rem 0;
    border: none;
    display: flex;
    gap: 0.5rem;
  }
  .leadership-table td::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--gray-500);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    min-width: 100px;
    flex-shrink: 0;
  }
  .leadership-table td:first-child {
    font-size: 1rem;
    margin-bottom: 0.35rem;
  }
  .leadership-table td:first-child::before { display: none; }
}

/* ---------- Outlook ---------- */
.outlook { background: var(--white); }
.outlook-grid {
  display: grid;
  gap: 2rem;
}
@media (min-width: 800px) {
  .outlook-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}
.outlook-block p {
  color: var(--gray-700);
  margin-bottom: 1rem;
}
.outlook-block.highlight {
  background: var(--navy);
  color: var(--white);
  padding: 2rem;
  border-radius: var(--radius-lg);
}
.outlook-block.highlight h2 { color: var(--white); }
.outlook-block.highlight p { color: rgba(255,255,255,0.8); }
.outlook-list {
  margin-top: 1rem;
}
.outlook-list li {
  position: relative;
  padding-left: 1.35rem;
  margin-bottom: 0.65rem;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.9);
}
.outlook-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
}

/* ---------- Contact ---------- */
.contact {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-mid) 100%);
  color: var(--white);
  padding-bottom: 5rem;
}
.contact-inner {
  display: grid;
  gap: 2.5rem;
}
@media (min-width: 800px) {
  .contact-inner {
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: 4rem;
  }
}
.contact-text h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  margin-bottom: 0.85rem;
}
.contact-text > p {
  color: rgba(255,255,255,0.75);
  margin-bottom: 1.5rem;
}
.contact-details {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.85);
}
.contact-details strong { color: var(--gold-soft); }

.contact-form {
  background: rgba(255,255,255,0.05);
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.1);
}
.form-row {
  margin-bottom: 1.15rem;
}
.form-row label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
  color: rgba(255,255,255,0.9);
}
.form-row input,
.form-row textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  background: rgba(0,0,0,0.2);
  color: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-row input::placeholder,
.form-row textarea::placeholder {
  color: rgba(255,255,255,0.4);
}
.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.2);
}
.form-note {
  margin-top: 1rem;
  font-size: 0.9rem;
  text-align: center;
  min-height: 1.4em;
}
.form-note.success { color: #7dcea0; }
.form-note.error { color: #f5b7b1; }

/* ---------- Footer ---------- */
.footer {
  background: #061018;
  color: rgba(255,255,255,0.7);
  padding: 2.5rem 0 2rem;
  font-size: 0.9rem;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: flex-start;
}
.footer-brand .logo { margin-bottom: 0.5rem; }
.footer-brand p {
  font-size: 0.85rem;
  opacity: 0.8;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}
.footer-links a:hover { color: var(--gold); }
.footer-copy {
  font-size: 0.8rem;
  opacity: 0.6;
  width: 100%;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}
@media (min-width: 700px) {
  .footer-inner {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
  }
  .footer-copy {
    width: 100%;
    text-align: center;
  }
}

/* Focus visible for keyboard users */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
