/* ============================================================
   IBA — Irwin Business Automation
   Global Stylesheet
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Black+Ops+One&family=Playfair+Display:ital,wght@0,600;0,700;1,600&family=Inter:wght@300;400;500;600&display=swap');

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

:root {
  --navy:         #0c1a2e;
  --charcoal:     #1c2334;
  --body:         #4b5563;
  --muted:        #9ca3af;
  --white:        #ffffff;
  --warm:         #f6f3ee;
  --border:       #e5ded4;
  --accent:       #2d6a9f;
  --accent-hover: #245680;
  --accent-light: rgba(45, 106, 159, 0.10);
  --nav-height:   68px;
  --radius:       4px;
  --transition:   0.18s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--charcoal);
  background: var(--white);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* --- Layout ----------------------------------------------- */
.container {
  width: 100%;
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 28px;
}

.section { padding: 96px 0; }

/* --- Typography ------------------------------------------- */
h1, h2 {
  font-family: 'Playfair Display', Georgia, serif;
  line-height: 1.2;
  color: var(--charcoal);
}

h3, h4 {
  line-height: 1.25;
  font-weight: 600;
  color: var(--charcoal);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.1rem; }

p { color: var(--body); }

/* --- IBA Logo --------------------------------------------- */
.logo {
  font-family: 'Black Ops One', cursive;
  font-size: 1.5rem;
  letter-spacing: 0.04em;
  color: var(--white);
  background: var(--navy);
  padding: 6px 13px;
  border-radius: 3px;
  display: inline-block;
  line-height: 1;
  user-select: none;
}

/* --- Navigation ------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  height: var(--nav-height);
}

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

.nav__links {
  display: flex;
  list-style: none;
  gap: 4px;
}

.nav__links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255,255,255,0.65);
  padding: 6px 16px;
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}

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

.nav__links a.active {
  color: var(--white);
}

/* Hamburger */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* --- Hero ------------------------------------------------- */
.hero {
  background: var(--navy);
  padding: 110px 0 96px;
}

.hero__label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 24px;
}

.hero__title {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--white);
  margin-bottom: 20px;
  max-width: 680px;
}

.hero__body {
  color: rgba(255,255,255,0.6);
  font-size: 1.1rem;
  max-width: 500px;
  line-height: 1.75;
}

/* --- Buttons ---------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 11px 24px;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background var(--transition), color var(--transition),
              border-color var(--transition);
  font-family: inherit;
  text-decoration: none;
  white-space: nowrap;
}

.btn--primary {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.btn--primary:hover {
  background: var(--charcoal);
  border-color: var(--charcoal);
}

.btn--outline {
  background: transparent;
  color: rgba(255,255,255,0.85);
  border-color: rgba(255,255,255,0.3);
}

.btn--outline:hover {
  border-color: rgba(255,255,255,0.65);
  color: var(--white);
}

/* --- Section headings ------------------------------------- */
.section-title { margin-bottom: 20px; }

.section-sub {
  font-size: 1.05rem;
  color: var(--body);
  max-width: 560px;
}

/* --- What We Do (home) ------------------------------------ */
.what-we-do__body {
  max-width: 640px;
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.what-we-do__body p {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--body);
}

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

.contact-info h2 { margin-bottom: 16px; }

.contact-info p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--body);
}

/* Form */
.form {
  background: var(--warm);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 40px 36px;
}

.form__group { margin-bottom: 20px; }

.form__group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--charcoal);
  margin-bottom: 7px;
}

.form__group input,
.form__group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--charcoal);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form__group input:focus,
.form__group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}

.form__group textarea {
  resize: vertical;
  min-height: 140px;
}

.field-error {
  display: block;
  font-size: 0.8rem;
  color: #991b1b;
  margin-top: 5px;
  min-height: 1em;
}

.input--error {
  border-color: #f87171 !important;
}

.form__submit {
  width: 100%;
  padding: 13px;
  font-size: 0.95rem;
  justify-content: center;
}

/* Alert */
.alert {
  padding: 13px 16px;
  border-radius: var(--radius);
  font-size: 0.88rem;
  margin-bottom: 20px;
  font-weight: 500;
}

.alert--success {
  background: #eff6ff;
  color: var(--accent);
  border: 1px solid #bfdbfe;
}

.alert--error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* --- Footer ----------------------------------------------- */
.footer {
  background: var(--navy);
  padding: 44px 0;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer__tagline {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.04em;
}

.footer__links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer__links a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.45);
  transition: color var(--transition);
}

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

/* --- Responsive ------------------------------------------- */
@media (max-width: 768px) {
  .section { padding: 64px 0; }

  .nav__links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--navy);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    flex-direction: column;
    padding: 16px 24px 20px;
    gap: 4px;
  }

  .nav__links.open { display: flex; }

  .nav__links a {
    display: block;
    padding: 10px 14px;
    border-bottom: none;
  }

  .nav__links a.active {
    color: var(--white);
    border-bottom: none;
  }

  .nav__toggle { display: flex; }

  .hero { padding: 72px 0 64px; }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .form { padding: 28px 22px; }

  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer__links { flex-wrap: wrap; gap: 16px; }
}
