/* ============================================
   TURLINGS ADVIES – Stylesheet
   ============================================ */

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

:root {
  --primary: #039DE3;
  --primary-dark: #0280b8;
  --primary-light: #e8f4fd;
  --dark: #19171A;
  --dark-80: rgba(25, 23, 26, 0.8);
  --white: #FFFFFF;
  --light: #F5F7FA;
  --gray: #6B7280;
  --gray-light: #D1D5DB;
  --shadow-sm: 0 1px 3px rgba(25, 23, 26, 0.08);
  --shadow-md: 0 4px 20px rgba(25, 23, 26, 0.1);
  --shadow-lg: 0 10px 40px rgba(25, 23, 26, 0.12);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1200px;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--dark);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--primary-dark);
}

ul { list-style: none; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: 'Outfit', 'Inter', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--dark);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }

p {
  color: var(--gray);
  max-width: 680px;
}

.text-primary { color: var(--primary); }

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

.section {
  padding: 100px 0;
}

.section--light {
  background: var(--light);
}

.section--dark {
  background: var(--dark);
  color: var(--white);
}

.section--dark p { color: var(--gray-light); }
.section--dark h2,
.section--dark h3 { color: var(--white); }

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}

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

.section-subtitle {
  font-size: 1.1rem;
  margin-bottom: 60px;
}

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  font-family: inherit;
}

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

.btn--primary:hover {
  background: var(--primary-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(3, 157, 227, 0.35);
}

.btn--outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn--outline:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

.btn--white {
  background: var(--white);
  color: var(--dark);
}

.btn--white:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: var(--dark);
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 0;
  transition: all var(--transition);
}

.nav.scrolled {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  padding: 14px 0;
  box-shadow: var(--shadow-sm);
}

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

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

.nav__logo {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--white);
  transition: color var(--transition);
}

.nav.scrolled .nav__logo {
  color: var(--dark);
}

.nav__logo span {
  color: var(--primary);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav__link {
  font-weight: 500;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
  position: relative;
  transition: color var(--transition);
}

.nav.scrolled .nav__link {
  color: var(--gray);
}

.nav__link:hover,
.nav__link.active {
  color: var(--primary);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width var(--transition);
}

.nav__link:hover::after,
.nav__link.active::after {
  width: 100%;
}

.nav__cta {
  padding: 10px 24px;
  font-size: 0.9rem;
}

/* Mobile 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: all var(--transition);
}

.nav.scrolled .nav__toggle span {
  background: var(--dark);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--dark) 0%, #1e2a3a 100%);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: url('https://images.unsplash.com/photo-1497366216548-37526070297c?w=1920&q=80') center/cover no-repeat;
  opacity: 0.15;
}

.hero__shapes {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero__shapes::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(3, 157, 227, 0.12) 0%, transparent 70%);
}

.hero__shapes::after {
  content: '';
  position: absolute;
  bottom: -10%;
  left: -5%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(3, 157, 227, 0.08) 0%, transparent 70%);
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.hero__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(3, 157, 227, 0.12);
  border: 1px solid rgba(3, 157, 227, 0.25);
  border-radius: 50px;
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 28px;
}

.hero__title {
  color: var(--white);
  margin-bottom: 24px;
}

.hero__subtitle {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 40px;
  max-width: 540px;
}

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

.hero__scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.8rem;
  animation: bounce 2s infinite;
}

.hero__scroll svg {
  width: 20px;
  height: 20px;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-8px); }
  60% { transform: translateX(-50%) translateY(-4px); }
}

/* ---------- Intro ---------- */
.intro__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.intro__content p {
  margin-bottom: 16px;
}

.intro__image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.intro__image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

/* ---------- Services ---------- */
.services__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 48px 40px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.04);
  transition: all var(--transition);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.service-card__icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  color: var(--primary);
}

.service-card__icon svg {
  width: 28px;
  height: 28px;
}

.service-card h3 {
  margin-bottom: 16px;
}

.service-card p {
  font-size: 0.95rem;
  margin-bottom: 24px;
}

.service-card__link {
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.service-card__link svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition);
}

.service-card__link:hover svg {
  transform: translateX(4px);
}

/* ---------- Testimonials ---------- */
.testimonials__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.04);
}

.testimonial-card__quote {
  font-size: 1.05rem;
  font-style: italic;
  color: var(--dark);
  margin-bottom: 24px;
  line-height: 1.8;
  position: relative;
  padding-left: 20px;
  border-left: 3px solid var(--primary);
}

.testimonial-card__author {
  font-weight: 600;
  color: var(--dark);
  font-size: 0.9rem;
}

.testimonial-card__role {
  color: var(--gray);
  font-size: 0.85rem;
}

/* ---------- CTA / Contact Strip ---------- */
.cta {
  background: linear-gradient(135deg, var(--primary) 0%, #0280b8 100%);
  padding: 80px 0;
  text-align: center;
}

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

.cta p {
  color: rgba(255, 255, 255, 0.85);
  margin: 0 auto 36px;
  font-size: 1.1rem;
}

.cta__buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.cta__info {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.cta__info-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
}

.cta__info-item svg {
  width: 20px;
  height: 20px;
  opacity: 0.8;
}

/* ---------- Page Hero (inner pages) ---------- */
.page-hero {
  padding: 160px 0 80px;
  background: linear-gradient(135deg, var(--dark) 0%, #1e2a3a 100%);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(3, 157, 227, 0.1) 0%, transparent 70%);
}

.page-hero h1 {
  color: var(--white);
  margin-bottom: 16px;
  position: relative;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.15rem;
  max-width: 600px;
  position: relative;
}

/* ---------- About ---------- */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about__image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about__image img {
  width: 100%;
  height: 450px;
  object-fit: cover;
  object-position: left center;
}

.about__content h2 {
  margin-bottom: 20px;
}

.about__content p {
  margin-bottom: 16px;
}

/* ---------- Expertise ---------- */
.expertise__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.expertise-card {
  text-align: center;
  padding: 40px 24px;
}

.expertise-card__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(3, 157, 227, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--primary);
}

.expertise-card__icon svg {
  width: 28px;
  height: 28px;
}

.expertise-card h3 {
  margin-bottom: 12px;
  font-size: 1.15rem;
}

.expertise-card p {
  font-size: 0.9rem;
  margin: 0 auto;
}

/* ---------- Service Detail ---------- */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.service-detail--reverse {
  direction: rtl;
}

.service-detail--reverse > * {
  direction: ltr;
}

.service-detail__content h3 {
  font-size: 1.6rem;
  margin-bottom: 16px;
}

.service-detail__content p {
  margin-bottom: 16px;
}

.service-detail__list {
  margin-top: 24px;
}

.service-detail__list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  color: var(--gray);
  font-size: 0.95rem;
}

.service-detail__list li svg {
  width: 20px;
  height: 20px;
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.service-detail__image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.service-detail__image img {
  width: 100%;
  height: 380px;
  object-fit: cover;
}

/* ---------- Clients ---------- */
.clients__content {
  max-width: 800px;
  margin: 0 auto;
}

.clients__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 40px;
}

.client-tag {
  padding: 10px 24px;
  background: var(--white);
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--dark);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.04);
}

/* ---------- Contact Page ---------- */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

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

.contact__info > p {
  margin-bottom: 40px;
}

.contact__items {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contact__item {
  display: flex;
  gap: 16px;
}

.contact__item-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}

.contact__item-icon svg {
  width: 22px;
  height: 22px;
}

.contact__item-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gray);
  margin-bottom: 4px;
}

.contact__item-value {
  font-weight: 600;
  color: var(--dark);
  font-size: 1rem;
}

.contact__item-value a {
  color: var(--dark);
}

.contact__item-value a:hover {
  color: var(--primary);
}

/* Contact Form */
.contact__form {
  background: var(--light);
  border-radius: var(--radius);
  padding: 48px;
}

.contact__form h3 {
  margin-bottom: 8px;
}

.contact__form > p {
  margin-bottom: 32px;
  font-size: 0.95rem;
}

.form__group {
  margin-bottom: 20px;
}

.form__label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--dark);
}

.form__input,
.form__textarea {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--gray-light);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--dark);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form__input:focus,
.form__textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(3, 157, 227, 0.12);
}

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

.form__submit {
  width: 100%;
  justify-content: center;
  margin-top: 8px;
}

/* Map */
.contact__map {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--white);
  margin-top: 0;
}

.contact__map::before {
  content: '';
  display: block;
  padding-bottom: 70%;
}

.contact__map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--dark);
  padding: 60px 0 32px;
  color: rgba(255, 255, 255, 0.6);
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 48px;
  flex-wrap: wrap;
  gap: 40px;
}

.footer__brand {
  max-width: 320px;
}

.footer__logo {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--white);
  margin-bottom: 12px;
}

.footer__logo span {
  color: var(--primary);
}

.footer__logo-img {
  height: 32px;
  width: auto;
  display: block;
}

.footer__brand p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.6;
}

.footer__nav h4 {
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.footer__nav a {
  display: block;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
  padding: 4px 0;
  transition: color var(--transition);
}

.footer__nav a:hover {
  color: var(--primary);
}

.footer__contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
  padding: 4px 0;
}

.footer__contact-item svg {
  width: 16px;
  height: 16px;
  opacity: 0.6;
}

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

/* ---------- Animations ---------- */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-up.delay-1 { transition-delay: 0.1s; }
.fade-up.delay-2 { transition-delay: 0.2s; }
.fade-up.delay-3 { transition-delay: 0.3s; }
.fade-up.delay-4 { transition-delay: 0.4s; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .section { padding: 80px 0; }
  .intro__grid,
  .about__grid,
  .service-detail { gap: 48px; }
}

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

  .nav__links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    justify-content: center;
    gap: 24px;
    padding: 40px;
    transition: right var(--transition);
    box-shadow: var(--shadow-lg);
  }

  .nav__links.open {
    right: 0;
  }

  .nav__links .nav__link {
    color: var(--dark);
    font-size: 1.1rem;
  }

  .nav__toggle {
    display: flex;
    z-index: 1001;
  }

  .nav__toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav__toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav__toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .nav__toggle.active span {
    background: var(--dark);
  }

  .overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 998;
  }

  .overlay.active { display: block; }

  .hero__content { max-width: 100%; }
  .hero__buttons { flex-direction: column; }
  .hero__scroll { display: none; }

  .intro__grid,
  .about__grid,
  .services__grid,
  .testimonials__grid,
  .contact__grid,
  .service-detail,
  .service-detail--reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }

  .expertise__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .cta__info {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  .footer__inner {
    flex-direction: column;
  }

  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }

  .contact__form {
    padding: 32px 24px;
  }

  .contact__map {
    margin-top: 32px;
  }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .section { padding: 48px 0; }
  .section-subtitle { margin-bottom: 40px; }

  .service-card { padding: 32px 24px; }
  .testimonial-card { padding: 28px 24px; }

  .page-hero { padding: 140px 0 60px; }
}
