/* ================================================
   aiforsmes.ie — Main Stylesheet
   ================================================ */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  color: #1a2942;
  background: #ffffff;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* --- Design Tokens --- */
:root {
  --navy:       #1a2942;
  --navy-dark:  #111d2e;
  --green:      #2fc791;
  --green-dark: #1fa876;
  --green-light:#e8faf4;
  --teal:       #1a6b5a;
  --white:      #ffffff;
  --grey-50:    #f8fafb;
  --grey-100:   #f0f4f7;
  --grey-200:   #dde4ea;
  --grey-500:   #7a8fa3;
  --grey-700:   #4a5a6a;
  --gradient:   linear-gradient(135deg, #1a6b5a 0%, #2fc791 60%, #5de8a8 100%);
  --gradient-h: linear-gradient(90deg,  #1a6b5a 0%, #2fc791 60%, #5de8a8 100%);
  --shadow-sm:  0 2px 8px rgba(26,41,66,.08);
  --shadow-md:  0 6px 24px rgba(26,41,66,.12);
  --shadow-lg:  0 16px 48px rgba(26,41,66,.16);
  --radius:     12px;
  --radius-lg:  20px;
  --max-width:  1160px;
  --section-py: 96px;
}

/* --- Typography --- */
h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; }

h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }
h4 { font-size: 1rem; font-weight: 600; }

p { color: var(--grey-700); }

a { color: var(--green-dark); text-decoration: none; transition: color .2s; }
a:hover { color: var(--green); }

/* --- Layout Helpers --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: var(--section-py) 0; }
.section--grey { background: var(--grey-50); }
.section--navy { background: var(--navy); color: var(--white); }
.section--navy p { color: rgba(255,255,255,.75); }

.section-label {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 12px;
}

.section-title {
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--grey-700);
  max-width: 640px;
  margin-bottom: 56px;
}

.center { text-align: center; }
.center .section-subtitle { margin-left: auto; margin-right: auto; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 6px;
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .01em;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: background .18s, color .18s, border-color .18s;
  text-decoration: none;
  white-space: nowrap;
}

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

.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--grey-200);
}
.btn-outline:hover {
  border-color: var(--navy);
  background: var(--grey-50);
  color: var(--navy);
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.35);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.7);
}

/* ================================================
   NAV
   ================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--grey-200);
}

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

.nav__logo img {
  height: 36px;
  width: auto;
  display: block;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav__links a {
  font-size: .9rem;
  font-weight: 500;
  color: var(--grey-700);
  transition: color .2s;
}
.nav__links a:hover { color: var(--navy); }

.nav__cta { margin-left: 16px; }

/* Hamburger */
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.nav__burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all .25s;
}

/* Mobile nav */
@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__burger { display: flex; }
  .nav__cta { display: none; }

  .nav__links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--grey-200);
    padding: 24px;
    gap: 20px;
    align-items: flex-start;
    box-shadow: var(--shadow-md);
  }
  .nav__links.open .nav__cta {
    display: inline-flex;
    margin-left: 0;
  }
}

/* ================================================
   HERO
   ================================================ */
.hero {
  background: var(--white);
  overflow: hidden;
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/hero-bg.webp');
  background-size: cover;
  background-position: center right;
  opacity: .18;
  pointer-events: none;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 96px 0;
  position: relative;
}

.hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 100px;
  background: var(--green-light);
  color: var(--teal);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero__tag::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}

.hero__title {
  margin-bottom: 20px;
  color: var(--navy);
}

.hero__title span {
  background: var(--gradient-h);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__lead {
  font-size: 1.1rem;
  color: var(--grey-700);
  margin-bottom: 36px;
  max-width: 520px;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero__proof {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--grey-200);
}

.hero__proof-stat { text-align: center; }
.hero__proof-stat strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  background: var(--gradient-h);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero__proof-stat span { font-size: .8rem; color: var(--grey-700); }
.hero__proof-divider { width: 1px; height: 36px; background: var(--grey-200); }

.hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero__visual img {
  width: 100%;
  max-width: 520px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

@media (max-width: 900px) {
  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 64px 0;
  }
  .hero__lead { margin-left: auto; margin-right: auto; }
  .hero__actions { justify-content: center; }
  .hero__proof { justify-content: center; }
  .hero__visual { display: none; }
}

/* ================================================
   PROBLEM
   ================================================ */
.problem__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.problem__lead {
  font-size: 1.05rem;
  color: var(--grey-700);
  margin-bottom: 28px;
}

.problem__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.problem__list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: .95rem;
  color: var(--grey-700);
}

.problem__list li::before {
  content: '';
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff0f0;
  border: 2px solid #ffb3b3;
  margin-top: 2px;
}

.problem__callout {
  background: var(--navy);
  color: var(--white);
  padding: 40px;
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

.problem__callout::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 180px;
  height: 180px;
  background: var(--gradient);
  border-radius: 50%;
  opacity: .15;
}

.problem__callout-label {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 16px;
  display: block;
}

.problem__callout h3 {
  color: var(--white);
  font-size: 1.4rem;
  margin-bottom: 16px;
}

.problem__callout p {
  color: rgba(255,255,255,.75);
  font-size: .95rem;
}

@media (max-width: 768px) {
  .problem__grid { grid-template-columns: 1fr; }
}

/* ================================================
   HOW IT WORKS
   ================================================ */
.steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  left: 31px;
  top: 48px;
  bottom: 48px;
  width: 2px;
  background: var(--grey-200);
}

.step {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  padding: 32px 0;
  position: relative;
}

.step__number {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--grey-200);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--navy);
  z-index: 1;
  transition: all .3s;
}

.step:hover .step__number {
  background: var(--gradient);
  border-color: transparent;
  color: var(--white);
  box-shadow: 0 4px 16px rgba(47,199,145,.4);
}

.step__body { padding-top: 12px; }

.step__body h3 {
  color: var(--navy);
  margin-bottom: 6px;
}

.step__body p { font-size: .95rem; }

@media (max-width: 640px) {
  .steps::before { left: 23px; }
  .step__number { width: 48px; height: 48px; font-size: 1rem; }
}

/* ================================================
   SERVICES
   ================================================ */
.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: all .3s;
  position: relative;
  overflow: hidden;
}

.service-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-h);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s;
}

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

.service-card:hover::after { transform: scaleX(1); }

.service-card__icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  background: var(--green-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.4rem;
}

.service-card h3 {
  color: var(--navy);
  margin-bottom: 12px;
}

.service-card p { font-size: .9rem; }

.service-card__tag {
  display: inline-block;
  margin-top: 20px;
  font-size: .75rem;
  font-weight: 600;
  color: var(--green-dark);
  background: var(--green-light);
  padding: 4px 10px;
  border-radius: 100px;
}

/* ================================================
   DIFFERENTIATORS
   ================================================ */
.diff__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.diff-card {
  padding: 32px 28px;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  transition: background .3s;
}

.diff-card:hover {
  background: rgba(255,255,255,.1);
}

.diff-card__icon {
  font-size: 1.8rem;
  margin-bottom: 16px;
  display: block;
}

.diff-card h3 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.diff-card p {
  font-size: .9rem;
  color: rgba(255,255,255,.65);
}

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

/* ================================================
   USE CASES
   ================================================ */
.usecases__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.usecase-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  border: 1px solid var(--grey-200);
  transition: all .3s;
}

.usecase-card:hover {
  box-shadow: var(--shadow-sm);
  border-color: var(--green);
}

.usecase-card__icon {
  font-size: 1.6rem;
  margin-bottom: 14px;
}

.usecase-card h4 {
  color: var(--navy);
  font-size: .95rem;
  margin-bottom: 10px;
}

.usecase-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.usecase-card ul li {
  font-size: .85rem;
  color: var(--grey-700);
  padding-left: 14px;
  position: relative;
}

.usecase-card ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--green);
  font-size: .75rem;
  top: 1px;
}

/* ================================================
   FAQ
   ================================================ */
.faq__list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.faq-item {
  border-bottom: 1px solid var(--grey-200);
}

.faq-item:first-child { border-top: 1px solid var(--grey-200); }

.faq-item__question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 22px 0;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
}

.faq-item__question svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  transition: transform .25s;
  color: var(--green-dark);
}

.faq-item.open .faq-item__question svg { transform: rotate(45deg); }

.faq-item__answer {
  display: none;
  padding: 0 0 22px;
  font-size: .95rem;
  color: var(--grey-700);
}

.faq-item.open .faq-item__answer { display: block; }

/* ================================================
   CTA BANNER
   ================================================ */
.cta-banner {
  background: var(--gradient);
  padding: 80px 0;
  text-align: center;
}

.cta-banner h2 {
  color: var(--white);
  margin-bottom: 16px;
}

.cta-banner p {
  color: rgba(255,255,255,.85);
  font-size: 1.05rem;
  max-width: 540px;
  margin: 0 auto 36px;
}

.cta-banner .btn-white {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
  font-weight: 600;
}

.cta-banner .btn-white:hover {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

/* ================================================
   CONTACT
   ================================================ */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact__info h2 { margin-bottom: 16px; }

.contact__info p {
  font-size: 1rem;
  margin-bottom: 32px;
}

.contact__detail {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  font-size: .95rem;
  color: var(--grey-700);
}

.contact__detail span:first-child {
  font-size: 1.1rem;
}

.contact__form {
  background: var(--grey-50);
  padding: 40px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--grey-200);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--grey-200);
  border-radius: 8px;
  font-size: .95rem;
  color: var(--navy);
  background: var(--white);
  transition: border-color .2s, box-shadow .2s;
  font-family: inherit;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(47,199,145,.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--grey-500); }

.form-group--row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 900px) {
  .contact__grid { grid-template-columns: 1fr; }
  .form-group--row { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .contact__form { padding: 24px; }
}

/* ================================================
   FOOTER
   ================================================ */
.footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,.7);
  padding: 60px 0 32px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer__brand img {
  height: 32px;
  width: auto;
  margin-bottom: 16px;
  filter: brightness(0) invert(1);
}

.footer__brand p {
  font-size: .875rem;
  color: rgba(255,255,255,.55);
  max-width: 280px;
  line-height: 1.6;
}

.footer__col h4 {
  color: var(--white);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer__col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__col ul li a {
  font-size: .875rem;
  color: rgba(255,255,255,.55);
  transition: color .2s;
}

.footer__col ul li a:hover { color: var(--green); }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer__bottom p {
  font-size: .8rem;
  color: rgba(255,255,255,.4);
}

.footer__bottom a {
  color: rgba(255,255,255,.4);
  font-size: .8rem;
}

.footer__bottom a:hover { color: var(--green); }

@media (max-width: 900px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; text-align: center; }
}

/* ================================================
   UTILITIES & ANIMATIONS
   ================================================ */
.text-green { color: var(--green); }
.text-navy  { color: var(--navy); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 100px;
  font-size: .75rem;
  font-weight: 600;
}

.badge-green { background: var(--green-light); color: var(--teal); }
.badge-navy  { background: var(--navy); color: var(--white); }

/* Fade-in on scroll */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
[data-reveal].revealed {
  opacity: 1;
  transform: none;
}

[data-reveal-delay="1"] { transition-delay: .1s; }
[data-reveal-delay="2"] { transition-delay: .2s; }
[data-reveal-delay="3"] { transition-delay: .3s; }
[data-reveal-delay="4"] { transition-delay: .4s; }
[data-reveal-delay="5"] { transition-delay: .5s; }
