/* =========================================================================
   Idea Bizone Management Consultancy — Design System
   Single shared stylesheet. Mobile-first.
   ========================================================================= */

:root {
  /* Palette: navy + grey */
  --navy-900: #0B1F38;   /* darkest — footer / hero bg */
  --navy-800: #0F2540;   /* primary navy — headings, buttons */
  --navy-600: #1B3A5F;   /* hover / gradients */
  --navy-400: #2E5E8C;   /* links / subtle accent */
  --ink:      #1F2933;   /* body text */
  --grey-600: #5B6675;   /* muted text */
  --grey-400: #B4BECA;   /* mid grey — input hover border */
  --grey-300: #D9DEE6;   /* borders */
  --grey-100: #F4F6F9;   /* section backgrounds */
  --white:    #FFFFFF;

  /* Text on dark (navy) surfaces — hierarchy levels */
  --on-dark-primary:   #cdd6e2;   /* links / primary text on navy */
  --on-dark-secondary: #aab6c8;   /* supporting prose on navy */
  --on-dark-tertiary:  #8c9bb0;   /* fine print on navy */

  /* Type */
  --font-head: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  /* Scale / layout */
  --maxw: 1140px;
  --radius: 12px;
  --shadow-sm: 0 1px 3px rgba(11,31,56,.08);
  --shadow-md: 0 10px 30px rgba(11,31,56,.12);

  /* UI status */
  --status-success: #1a7f4b;
  --status-error:   #b42318;
}

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

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

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

a {
  color: var(--navy-400);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

button {
  font: inherit;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--navy-400);
  outline-offset: 2px;
}

/* Motion preferences */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}

/* -------------------------------------------------------------------------
   Base typography
   ------------------------------------------------------------------------- */
body {
  font-family: var(--font-body);
  color: var(--ink);
  line-height: 1.6;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* Sticky footer: page fills the viewport; footer margin-top:auto sinks to bottom */
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  color: var(--navy-800);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.1rem);
}

h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.25rem);
  font-weight: 700;
}

h3 {
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  font-weight: 700;
}

h4 {
  font-size: 1rem;
  font-weight: 700;
}

p {
  max-width: 68ch;
}

strong {
  font-weight: 600;
}

/* Reusable text helpers */
.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy-400);
  margin-bottom: 16px;
}

.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--grey-600);
  max-width: 60ch;
}

.muted {
  color: var(--grey-600);
}

/* -------------------------------------------------------------------------
   Layout helpers
   ------------------------------------------------------------------------- */
.container {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 20px;
  width: 100%;
}

.section {
  padding: 56px 0;
}

.section--tint {
  background: var(--grey-100);
}

.section-head {
  max-width: 60ch;
  margin-bottom: 36px;
}

.section-head p {
  color: var(--grey-600);
}

.stack > * + * {
  margin-top: 1rem;
}

@media (min-width: 768px) {
  .section {
    padding: 72px 0;
  }
}

/* -------------------------------------------------------------------------
   Buttons
   ------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1;
  padding: 14px 24px;
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease,
              color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.btn:hover {
  text-decoration: none;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--navy-800);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--navy-600);
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.btn-ghost {
  background: transparent;
  color: var(--navy-800);
  border-color: var(--grey-300);
}

.btn-ghost:hover {
  border-color: var(--navy-400);
  color: var(--navy-800);
  background: var(--white);
}

/* Ghost button on dark backgrounds (e.g. hero) */
.btn-ghost--light {
  color: var(--white);
  border-color: rgba(255, 255, 255, .35);
}

.btn-ghost--light:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, .08);
  color: var(--white);
}

/* -------------------------------------------------------------------------
   header
   ------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--grey-300);
  box-shadow: var(--shadow-sm);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.brand:hover {
  text-decoration: none;
}

.brand img {
  height: 40px;
  width: auto;
}

/* Hamburger toggle (visible on mobile) */
.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 9px;
  background: transparent;
  border: 1px solid var(--grey-300);
  border-radius: 10px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--navy-800);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav: collapsed drawer below the bar, revealed via .is-open.
   Links are direct children of .site-nav (markup is locked), so a wrapper-free
   max-height collapse is used rather than the grid-rows trick. */
.site-nav {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--white);
  border-bottom: 1px solid var(--grey-300);
  box-shadow: var(--shadow-md);
  max-height: 0;
  overflow: hidden;
  visibility: hidden;
  transition: max-height .28s ease, visibility 0s linear .28s;
}

.site-nav.is-open {
  max-height: 70vh;
  overflow-y: auto;
  visibility: visible;
  transition: max-height .28s ease, visibility 0s;
}

.site-nav a {
  display: block;
  padding: 14px 20px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
  border-top: 1px solid var(--grey-300);
}

.site-nav a:first-child {
  border-top: none;
}

.site-nav a:hover {
  color: var(--navy-400);
  background: var(--grey-100);
  text-decoration: none;
}

.site-nav a[aria-current="page"] {
  color: var(--navy-800);
  font-weight: 700;
}

/* CTA inside the mobile drawer: inset pill button */
.site-nav .nav-cta {
  margin: 14px 20px 18px;
  color: var(--white);
  border-top: none;
  border-radius: var(--radius);
  text-align: center;
}

.site-nav .nav-cta:hover {
  color: var(--white);
  background: var(--navy-600);
}

/* -------------------------------------------------------------------------
   footer
   ------------------------------------------------------------------------- */
.site-footer {
  background: var(--navy-900);
  color: var(--on-dark-primary);
  padding-top: 56px;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  padding-bottom: 40px;
}

.footer-brand .footer-logo {
  height: 42px;
  width: auto;
  margin-bottom: 18px;
  /* Logo is navy on transparent — lift it onto a light chip so it reads on navy */
  background: var(--white);
  padding: 10px 14px;
  border-radius: 10px;
  box-sizing: content-box;
}

.footer-brand p {
  color: var(--on-dark-secondary);
  max-width: 40ch;
}

.footer-col h4 {
  color: var(--white);
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  color: var(--on-dark-primary);
  margin-bottom: 10px;
  width: fit-content;
}

.footer-col a:hover {
  color: var(--white);
}

.footer-contact p {
  margin-bottom: 12px;
  color: var(--on-dark-secondary);
  line-height: 1.5;
}

.footer-contact a {
  display: inline;
  margin: 0;
  color: var(--on-dark-primary);
}

.footer-contact a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding-top: 20px;
  padding-bottom: 28px;
  font-size: 0.85rem;
  color: var(--on-dark-tertiary);
}

/* -------------------------------------------------------------------------
   Desktop: header nav + footer grid
   ------------------------------------------------------------------------- */
@media (min-width: 768px) {
  .nav-toggle {
    display: none;
  }

  .site-nav {
    position: static;
    display: flex;
    align-items: center;
    gap: 28px;
    max-height: none;
    visibility: visible;
    background: none;
    border: none;
    box-shadow: none;
    overflow: visible;
    transition: none;
  }

  .site-nav a {
    display: inline-block;
    padding: 6px 0;
    font-size: 0.95rem;
    color: var(--ink);
    border-top: none;
  }

  .site-nav a:hover {
    color: var(--navy-400);
    background: none;
  }

  .site-nav a[aria-current="page"] {
    color: var(--navy-800);
    font-weight: 700;
  }

  .site-nav .nav-cta {
    margin: 0;
    padding: 12px 22px;
    color: var(--white);
  }

  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1.4fr;
    gap: 48px;
    padding-bottom: 48px;
  }
}

/* -------------------------------------------------------------------------
   hero
   ------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 85% -10%, var(--navy-600) 0%, transparent 55%),
    linear-gradient(160deg, var(--navy-900) 0%, var(--navy-800) 55%, var(--navy-600) 100%);
  color: var(--white);
  isolation: isolate;
}

/* Subtle honeycomb texture echoing the IBZ mark — decorative only */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    radial-gradient(circle at center, rgba(255, 255, 255, .06) 1.4px, transparent 1.5px);
  background-size: 26px 26px;
  background-position: 0 0;
  opacity: .55;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(130% 100% at 80% 0%, #000 30%, transparent 78%);
          mask-image: radial-gradient(130% 100% at 80% 0%, #000 30%, transparent 78%);
}

/* Large outlined hex, anchored to the right — a quiet brand flourish */
/* stroke %232E5E8C === --navy-400; keep in sync if the token changes */
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: -70px;
  right: -120px;
  width: 460px;
  height: 460px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpolygon points='50,3 93,27 93,73 50,97 7,73 7,27' fill='none' stroke='%232E5E8C' stroke-width='1.4'/%3E%3C/svg%3E") no-repeat center / contain;
  opacity: .45;
  pointer-events: none;
}

.hero .container {
  position: relative;
  padding-top: 72px;
  padding-bottom: 80px;
}

.hero .eyebrow {
  color: var(--on-dark-secondary);
}

.hero h1 {
  color: var(--white);
  max-width: 18ch;
}

.hero-sub {
  color: var(--on-dark-secondary);
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  max-width: 56ch;
  margin-top: 22px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

@media (min-width: 768px) {
  .hero .container {
    padding-top: 104px;
    padding-bottom: 116px;
  }
}

/* Compact page hero for interior pages (About / Services) */
.page-hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(160deg, var(--navy-900) 0%, var(--navy-800) 70%, var(--navy-600) 100%);
  color: var(--white);
  isolation: isolate;
}

/* stroke %232E5E8C === --navy-400; keep in sync if the token changes */
.page-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: 50%;
  right: -90px;
  transform: translateY(-50%);
  width: 320px;
  height: 320px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpolygon points='50,3 93,27 93,73 50,97 7,73 7,27' fill='none' stroke='%232E5E8C' stroke-width='1.4'/%3E%3C/svg%3E") no-repeat center / contain;
  opacity: .4;
  pointer-events: none;
}

.page-hero .container {
  position: relative;
  padding-top: 64px;
  padding-bottom: 64px;
}

.page-hero .eyebrow {
  color: var(--on-dark-secondary);
}

.page-hero h1 {
  color: var(--white);
  max-width: 20ch;
}

.page-hero-sub {
  color: var(--on-dark-secondary);
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  max-width: 56ch;
  margin-top: 18px;
}

@media (min-width: 768px) {
  .page-hero .container {
    padding-top: 88px;
    padding-bottom: 88px;
  }
}

/* CTA band — closing call to action shared across pages */
.cta-band {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120% 140% at 100% 0%, var(--navy-600) 0%, transparent 60%),
    var(--navy-900);
  color: var(--white);
  isolation: isolate;
}

.cta-band .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.cta-band h2 {
  color: var(--white);
  max-width: 22ch;
}

@media (min-width: 768px) {
  .cta-band .container {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
  }

  .cta-band .btn {
    flex-shrink: 0;
  }
}

/* -------------------------------------------------------------------------
   cards
   ------------------------------------------------------------------------- */
.card-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}

@media (min-width: 600px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Four-up preview variant (Home services preview) */
@media (min-width: 992px) {
  .card-grid--4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--grey-300);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.card h3 {
  margin-bottom: 10px;
}

.card p {
  color: var(--grey-600);
  margin: 0;
}

/* Thin top accent that brightens on hover — geometric, restrained */
.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 26px;
  right: 26px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: var(--grey-300);
  transition: background-color .2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--navy-400);
}

.card:hover::before {
  background: var(--navy-400);
}

/* Linked card (Home preview): whole card is clickable, no underline */
a.card {
  color: inherit;
}

a.card:hover {
  text-decoration: none;
}

a.card .card-more {
  margin-top: 16px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  color: var(--navy-400);
}

a.card .card-more::after {
  content: " \2192";
  transition: margin-left .2s ease;
}

a.card:hover .card-more::after {
  margin-left: 4px;
}

/* Detailed service block (Services page) — roomier, kicker index */
.service-card {
  padding: 32px 30px;
}

.service-card .service-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 18px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--navy-800);
  background: var(--grey-100);
  border: 1px solid var(--grey-300);
  /* hexagonal nod to the brand mark */
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.service-card h2 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  margin-bottom: 12px;
}

/* "Why us" feature list — flatter than a card, marker accent */
.feature {
  position: relative;
  padding-left: 22px;
}

.feature::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 11px;
  height: 11px;
  background: var(--navy-400);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.feature h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.feature p {
  color: var(--grey-600);
  margin: 0;
}

/* Numbered approach steps (About) — reuse .card-grid for layout */
.step .step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--white);
  background: var(--navy-800);
  border-radius: 50%;
}

/* Intro band: heading beside supporting prose on wide screens */
.split {
  display: grid;
  gap: 24px;
}

@media (min-width: 860px) {
  .split {
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: start;
  }
}

/* -------------------------------------------------------------------------
   form
   ------------------------------------------------------------------------- */

/* Contact page two-column layout */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: start;
}

@media (min-width: 900px) {
  .contact-layout {
    grid-template-columns: 1fr 1fr;
    gap: 56px;
  }
}

/* Left column: contact details */
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.contact-details h2 {
  margin-bottom: 8px;
}

.contact-details .contact-intro {
  color: var(--grey-600);
  margin-bottom: 32px;
  max-width: 48ch;
}

.contact-detail-group {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 36px;
}

.contact-detail-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-detail-item .detail-label {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy-400);
}

.contact-detail-item p,
.contact-detail-item a {
  color: var(--ink);
  font-size: 0.97rem;
  line-height: 1.55;
  margin: 0;
}

.contact-detail-item a:hover {
  color: var(--navy-400);
}

/* Right column: form panel */
.contact-form-panel {
  background: var(--white);
  border: 1px solid var(--grey-300);
  border-radius: var(--radius);
  padding: 36px 32px;
  box-shadow: var(--shadow-sm);
}

.contact-form-panel h2 {
  margin-bottom: 6px;
}

.contact-form-panel .form-intro {
  color: var(--grey-600);
  font-size: 0.95rem;
  margin-bottom: 28px;
}

/* Form fields */
.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}

.form-field label {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--navy-800);
  letter-spacing: 0.01em;
}

.form-field .field-optional {
  font-weight: 400;
  color: var(--grey-600);
  font-size: 0.8rem;
  margin-left: 4px;
}

.form-field input,
.form-field textarea {
  display: block;
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.97rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--grey-300);
  border-radius: var(--radius);
  padding: 12px 14px;
  transition: border-color .18s ease;
  -webkit-appearance: none;
  appearance: none;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--grey-600);
  opacity: 0.7;
}

.form-field input:hover,
.form-field textarea:hover {
  border-color: var(--grey-400);
}

.form-field input:focus,
.form-field textarea:focus {
  outline: 2px solid var(--navy-400);
  outline-offset: 2px;
  border-color: var(--navy-400);
}

.form-field textarea {
  resize: vertical;
  min-height: 130px;
}

/* Submit row */
.form-submit {
  margin-top: 8px;
}

.form-submit .btn {
  width: 100%;
  justify-content: center;
}

/* Status message */
.form-status {
  margin-top: 16px;
  font-size: 0.93rem;
  line-height: 1.5;
  min-height: 1.4em;
}

.form-status.success {
  color: var(--status-success);
}

.form-status.error {
  color: var(--status-error);
}

.form-status a {
  color: inherit;
  text-decoration: underline;
}
